{"type": "func", "start": 4298759036, "end": 4298759112, "name": "EditorPauseLayer::onSaveAndExit", "pseudocode": "// \n// EditorPauseLayer::onSaveAndExit from 0x10039db7c to 0x10039dbc8 (76 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x10039c298\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 __fastcall EditorPauseLayer::onSaveAndExit(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCObject *v3; // x1\n\n  if ( !a1->m_saved )\n  {\n    ((void (__fastcall *)(EditorPauseLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    a1->m_saved = 1;\n    EditorPauseLayer::saveLevel(a1);\n    EditorPauseLayer::onExitEditor(a1, v3);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndExit from 0x10039db7c to 0x10039dbc8 (76 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x10039c298\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\nLDRB            W8, [X0,#0x230]                                        ; +0x0, 0x10039db7c\nTBZ             W8, #0, loc_10039DB88                                  ; +0x4, 0x10039db80\nRET                                                                    ; +0x8, 0x10039db84\nSTP             X20, X19, [SP,#var_20]!                                ; +0xc, 0x10039db88\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x10, 0x10039db8c\nADD             X29, SP, #0x20+var_10                                  ; +0x14, 0x10039db90\nMOV             X19, X0                                                ; +0x18, 0x10039db94\nLDR             X8, [X0]                                               ; +0x1c, 0x10039db98\nLDR             X8, [X8,#0x420]                                        ; +0x20, 0x10039db9c\nMOV             W1, #0                                                 ; +0x24, 0x10039dba0\nBLR             X8                                                     ; +0x28, 0x10039dba4\nMOV             W8, #1                                                 ; +0x2c, 0x10039dba8\nSTRB            W8, [X19,#0x230]                                       ; +0x30, 0x10039dbac\nMOV             X0, X19                                                ; +0x34, 0x10039dbb0\nBL              EditorPauseLayer__saveLevel                            ; +0x38, 0x10039dbb4\nMOV             X0, X19                                                ; +0x3c, 0x10039dbb8\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x40, 0x10039dbbc\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x44, 0x10039dbc0\nB               EditorPauseLayer__onExitEditor                         ; +0x48, 0x10039dbc4", "xrefs": ["EditorPauseLayer::customSetup @ 0x10039c298"], "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"}