The portion of the soft power circuit that interacts with the machine's OS is circled in green in the image below. Essentially, when the machine is on, pin 1 on UB13 (the reset pin on the flip flop) is pulled high via R112. When you select "shut down" in the Finder, Mac OS does its cleanup work...