{"type": "func", "start": 5280200, "end": 5280246, "name": "EditorPauseLayer::onSaveAndExit", "pseudocode": "// \n// EditorPauseLayer::onSaveAndExit from 0x5091c8 to 0x5091f6 (46 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:26 +0000\n// \n\nunsigned __int8 *__fastcall EditorPauseLayer::onSaveAndExit(unsigned __int8 *this, cocos2d::CCObject *a2)\n{\n  unsigned __int8 *v2; // r4\n  cocos2d::CCObject *v3; // r5\n\n  v2 = this;\n  v3 = (cocos2d::CCObject *)*(this + 452);\n  if ( !*(this + 452) )\n  {\n    (*(void (__fastcall **)(unsigned __int8 *, _DWORD))(*(_DWORD *)this + 536))(this, *(this + 452));\n    v2[452] = 1;\n    EditorPauseLayer::saveLevel((EditorPauseLayer *)v2);\n    return (unsigned __int8 *)EditorPauseLayer::onExitEditor((LevelEditorLayer **)v2, v3);\n  }\n  return this;\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndExit from 0x5091c8 to 0x5091f6 (46 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:26 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x5091c8\nMOV             R4, R0                                                 ; +0x2, 0x5091ca\nLDRB.W          R5, [R0,#0x1C4]                                        ; +0x4, 0x5091cc\nCBNZ            R5, locret_5091F4                                      ; +0x8, 0x5091d0\nLDR             R3, [R0]                                               ; +0xa, 0x5091d2\nMOV             R1, R5                                                 ; +0xc, 0x5091d4\nLDR.W           R3, [R3,#0x218]                                        ; +0xe, 0x5091d6\nBLX             R3                                                     ; +0x12, 0x5091da\nMOVS            R3, #1                                                 ; +0x14, 0x5091dc\nMOV             R0, R4; this                                           ; +0x16, 0x5091de\nSTRB.W          R3, [R4,#0x1C4]                                        ; +0x18, 0x5091e0\nBL              _ZN16EditorPauseLayer9saveLevelEv; EditorPauseLayer::saveLevel(void) ; +0x1c, 0x5091e4\nMOV             R0, R4; this                                           ; +0x20, 0x5091e8\nMOV             R1, R5; cocos2d::CCObject *                            ; +0x22, 0x5091ea\nPOP.W           {R3-R5,LR}                                             ; +0x24, 0x5091ec\nB.W             _ZN16EditorPauseLayer12onExitEditorEPN7cocos2d8CCObjectE; EditorPauseLayer::onExitEditor(cocos2d::CCObject *) ; +0x28, 0x5091f0\nPOP             {R3-R5,PC}                                             ; +0x2c, 0x5091f4", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}