{"type": "func", "start": 5280048, "end": 5280138, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x509130 to 0x50918a (90 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::onSaveAndPlay(unsigned __int8 *this, cocos2d::CCObject *a2)\n{\n  unsigned __int8 *v2; // r4\n  int v3; // r5\n  float v4; // r1\n  cocos2d::CCSequence *v5; // r6\n  cocos2d::CCFiniteTimeAction *v6; // r0\n  int v7; // r3\n  cocos2d::CCAction *v8; // r0\n\n  v2 = this;\n  v3 = *(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    v5 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v4);\n    v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, EditorPauseLayer::playStep2, v3);\n    v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, v3, v7, EditorPauseLayer::playStep2, v3);\n    return (unsigned __int8 *)cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v8);\n  }\n  return this;\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x509130 to 0x50918a (90 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            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x509130\nMOV             R4, R0                                                 ; +0x2, 0x509132\nLDRB.W          R5, [R0,#0x1C4]                                        ; +0x4, 0x509134\nCBNZ            R5, loc_509186                                         ; +0x8, 0x509138\nLDR             R3, [R0]                                               ; +0xa, 0x50913a\nMOV             R1, R5                                                 ; +0xc, 0x50913c\nLDR.W           R3, [R3,#0x218]                                        ; +0xe, 0x50913e\nBLX             R3                                                     ; +0x12, 0x509142\nMOVS            R3, #1                                                 ; +0x14, 0x509144\nMOV             R0, R4; this                                           ; +0x16, 0x509146\nSTRB.W          R3, [R4,#0x1C4]                                        ; +0x18, 0x509148\nBL              _ZN16EditorPauseLayer9saveLevelEv; EditorPauseLayer::saveLevel(void) ; +0x1c, 0x50914c\nMOVS            R0, #0; this                                           ; +0x20, 0x509150\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x22, 0x509152\nLDR             R3, =(_ZN16EditorPauseLayer9playStep2Ev_ptr - 0x50915C) ; +0x26, 0x509156\nADD             R3, PC; _ZN16EditorPauseLayer9playStep2Ev_ptr          ; +0x28, 0x509158\nLDR             R3, [R3]; EditorPauseLayer::playStep2(void)            ; +0x2a, 0x50915a\nSTMEA.W         SP, {R3,R5}                                            ; +0x2c, 0x50915c\nADD             R3, SP, #8+var_s0                                      ; +0x30, 0x509160\nLDMDB.W         R3, {R1,R2}                                            ; +0x32, 0x509162\nMOV             R6, R0                                                 ; +0x36, 0x509166\nMOV             R0, R4                                                 ; +0x38, 0x509168\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x3a, 0x50916a\nMOV             R2, R5                                                 ; +0x3e, 0x50916e\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x40, 0x509170\nMOV             R0, R6; this                                           ; +0x42, 0x509172\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x44, 0x509174\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x48, 0x509178\nMOV             R0, R4; this                                           ; +0x4a, 0x50917a\nADD             SP, SP, #8                                             ; +0x4c, 0x50917c\nPOP.W           {R4-R6,LR}                                             ; +0x4e, 0x50917e\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x52, 0x509182\nADD             SP, SP, #8                                             ; +0x56, 0x509186\nPOP             {R4-R6,PC}                                             ; +0x58, 0x509188", "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"}