{"type": "func", "start": 4199994, "end": 4200040, "name": "EditorPauseLayer::onSaveAndExit", "pseudocode": "// \n// EditorPauseLayer::onSaveAndExit from 0x40163a to 0x401668 (46 bytes)\n// \n// 0 xrefs:\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  _BOOL4 m_saved; // r5\n\n  m_saved = a1->m_saved;\n  if ( !a1->m_saved )\n  {\n    a1->setKeypadEnabled(a1, a1->m_saved);\n    a1->m_saved = 1;\n    EditorPauseLayer::saveLevel(a1);\n    EditorPauseLayer::onExitEditor(a1, (cocos2d::CCObject *)m_saved);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndExit from 0x40163a to 0x401668 (46 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x40163a\nMOV             R4, R0                                                 ; +0x2, 0x40163c\nLDRB.W          R5, [R0,#0x1C0]                                        ; +0x4, 0x40163e\nCBNZ            R5, locret_401666                                      ; +0x8, 0x401642\nLDR             R3, [R0]                                               ; +0xa, 0x401644\nMOV             R1, R5                                                 ; +0xc, 0x401646\nLDR.W           R3, [R3,#0x210]                                        ; +0xe, 0x401648\nBLX             R3                                                     ; +0x12, 0x40164c\nMOVS            R3, #1                                                 ; +0x14, 0x40164e\nMOV             R0, R4; this                                           ; +0x16, 0x401650\nSTRB.W          R3, [R4,#0x1C0]                                        ; +0x18, 0x401652\nBL              _ZN16EditorPauseLayer9saveLevelEv; EditorPauseLayer::saveLevel(void) ; +0x1c, 0x401656\nMOV             R0, R4; this                                           ; +0x20, 0x40165a\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x22, 0x40165c\nPOP.W           {R3-R5,LR}                                             ; +0x24, 0x40165e\nB.W             _ZN16EditorPauseLayer12onExitEditorEPN7cocos2d8CCObjectE; EditorPauseLayer::onExitEditor(cocos2d::CCObject *) ; +0x28, 0x401662\nPOP             {R3-R5,PC}                                             ; +0x2c, 0x401666", "xrefs": [], "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"}