{"type": "func", "start": 5370291600, "end": 5370291745, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x140182590 to 0x140182621 (145 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1401816a0\n// > <???> @ 0x14089e3a0\n// > <???> @ 0x14089e3b0\n// > <???> @ 0x140918c20\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:37 +0000\n// \n\nvoid __fastcall EditorPauseLayer::onSaveAndPlay(_BYTE *a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  struct cocos2d::CCFiniteTimeAction *v5; // rax\n  struct cocos2d::CCAction *v6; // rax\n\n  if ( !a1[568] )\n  {\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    a1[568] = 1;\n    v3 = LocalLevelManager::sharedState(v2);\n    GManager::waitForSave(v3, 30.0);\n    if ( *((_QWORD *)a1 + 72) )\n      LevelEditorLayer::saveLevel();\n    v4 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep2);\n    v5 = cocos2d::CCDelayTime::create(0.0);\n    v6 = cocos2d::CCSequence::create(v5, v4, 0);\n    cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v6);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x140182590 to 0x140182621 (145 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1401816a0\n; > <???> @ 0x14089e3a0\n; > <???> @ 0x14089e3b0\n; > <???> @ 0x140918c20\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:37 +0000\n; \npush    rdi                                                            ; +0x0, 0x140182590\nsub     rsp, 20h                                                       ; +0x2, 0x140182592\ncmp     byte ptr [rcx+238h], 0                                         ; +0x6, 0x140182596\nmov     rdi, rcx                                                       ; +0xd, 0x14018259d\njnz     short loc_14018261B                                            ; +0x10, 0x1401825a0\nmov     rax, [rcx]                                                     ; +0x12, 0x1401825a2\nxor     edx, edx                                                       ; +0x15, 0x1401825a5\nmov     [rsp+28h+arg_0], rbx                                           ; +0x17, 0x1401825a7\ncall    qword ptr [rax+3E0h]                                           ; +0x1c, 0x1401825ac\nmov     byte ptr [rdi+238h], 1                                         ; +0x22, 0x1401825b2\ncall    LocalLevelManager__sharedState                                 ; +0x29, 0x1401825b9\nmovsd   xmm1, cs:qword_140835380                                       ; +0x2e, 0x1401825be\nmov     rcx, rax                                                       ; +0x36, 0x1401825c6\ncall    GManager__waitForSave                                          ; +0x39, 0x1401825c9\nmov     rcx, [rdi+240h]                                                ; +0x3e, 0x1401825ce\ntest    rcx, rcx                                                       ; +0x45, 0x1401825d5\njz      short loc_1401825DF                                            ; +0x48, 0x1401825d8\ncall    LevelEditorLayer__saveLevel                                    ; +0x4a, 0x1401825da\nlea     rdx, EditorPauseLayer__playStep2                               ; +0x4f, 0x1401825df\nmov     rcx, rdi                                                       ; +0x56, 0x1401825e6\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x59, 0x1401825e9\nxorps   xmm0, xmm0                                                     ; +0x5f, 0x1401825ef\nmov     rbx, rax                                                       ; +0x62, 0x1401825f2\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x65, 0x1401825f5\nxor     r8d, r8d                                                       ; +0x6b, 0x1401825fb\nmov     rdx, rbx                                                       ; +0x6e, 0x1401825fe\nmov     rcx, rax                                                       ; +0x71, 0x140182601\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x74, 0x140182604\nmov     rdx, rax                                                       ; +0x7a, 0x14018260a\nmov     rcx, rdi                                                       ; +0x7d, 0x14018260d\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x80, 0x140182610\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x140182616\nadd     rsp, 20h                                                       ; +0x8b, 0x14018261b\npop     rdi                                                            ; +0x8f, 0x14018261f\nretn                                                                   ; +0x90, 0x140182620", "xrefs": ["EditorPauseLayer::customSetup @ 0x1401816a0", "<???> @ 0x14089e3a0", "<???> @ 0x14089e3b0", "<???> @ 0x140918c20"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}