{"type": "func", "start": 7923968, "end": 7924056, "name": "EditorPauseLayer::onSaveAndExit", "pseudocode": "// \n// EditorPauseLayer::onSaveAndExit from 0x78e900 to 0x78e958 (88 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x59f10\n// > EditorPauseLayer::customSetup @ 0x78c4ac\n// > <???> @ 0x122ae48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorPauseLayer::onSaveAndExit(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  if ( !a1->m_saved )\n  {\n    a1->setKeypadEnabled(a1, 0);\n    a1->m_saved = 1;\n    EditorPauseLayer::saveLevel(a1);\n    EditorPauseLayer::onExitEditor(a1, nullptr);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndExit from 0x78e900 to 0x78e958 (88 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x59f10\n; > EditorPauseLayer::customSetup @ 0x78c4ac\n; > <???> @ 0x122ae48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x78e900\nMOV             X29, SP                                                ; +0x4, 0x78e904\nLDRB            W2, [X0,#0x230]                                        ; +0x8, 0x78e908\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x78e90c\nCBZ             W2, loc_78E920                                         ; +0x10, 0x78e910\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x14, 0x78e914\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x18, 0x78e918\nRET                                                                    ; +0x1c, 0x78e91c\nLDR             X2, [X0]                                               ; +0x20, 0x78e920\nMOV             X19, X0                                                ; +0x24, 0x78e924\nMOV             W1, #0                                                 ; +0x28, 0x78e928\nLDR             X2, [X2,#0x420]                                        ; +0x2c, 0x78e92c\nBLR             X2                                                     ; +0x30, 0x78e930\nMOV             X0, X19; this                                          ; +0x34, 0x78e934\nMOV             W1, #1                                                 ; +0x38, 0x78e938\nSTRB            W1, [X19,#0x230]                                       ; +0x3c, 0x78e93c\nBL              _ZN16EditorPauseLayer9saveLevelEv; EditorPauseLayer::saveLevel(void) ; +0x40, 0x78e940\nMOV             X0, X19; this                                          ; +0x44, 0x78e944\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0x78e948\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0x78e94c\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x50, 0x78e950\nB               _ZN16EditorPauseLayer12onExitEditorEPN7cocos2d8CCObjectE; EditorPauseLayer::onExitEditor(cocos2d::CCObject *) ; +0x54, 0x78e954", "xrefs": ["<???> @ 0x59f10", "EditorPauseLayer::customSetup @ 0x78c4ac", "<???> @ 0x122ae48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}