Complex sentence: As Jerry retreats, the safe door opens and Tom walks out shaped as a cube before leaning on the safe and curses unintelligibly over his failure.
Split into simpler sentences: As Jerry retreats, the safe door opens and Tom walks out shaped as a cube. Leaning on the safe, Tom curses unintelligibly over his failure.