**SPOILER**
Both endings have the same condition, you have to exit the door in the blue room.
If you help the girl, you'll get the same ending as Blue Ending 1
If she dies, interact with her body and then return to the blue room to exit. You'll get Blue Ending 2