{"type": "func", "start": 4297668608, "end": 4297668712, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x100293800 to 0x100293868 (104 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x100291ad0\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::onSaveAndPlay(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v2; // r14d\n  unsigned int v3; // eax\n  int v4; // ecx\n  int v5; // r8d\n  int v6; // r9d\n  cocos2d::CCAction *v7; // rax\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    v2 = (unsigned int)cocos2d::CCDelayTime::create(0.0);\n    v3 = (unsigned int)cocos2d::CCCallFunc::create(\n                         a1,\n                         (cocos2d::SEL_CallFunc)(unsigned __int64)EditorPauseLayer::playStep2);\n    v7 = (cocos2d::CCAction *)sub_1003B5760(v2, v3, 0, v4, v5, v6);\n    cocos2d::CCNode::runAction(a1, v7);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x100293800 to 0x100293868 (104 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x100291ad0\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\ncmp     byte ptr [rdi+230h], 0                                         ; +0x0, 0x100293800\njz      short loc_10029380A                                            ; +0x7, 0x100293807\nretn                                                                   ; +0x9, 0x100293809\npush    rbp                                                            ; +0xa, 0x10029380a\nmov     rbp, rsp                                                       ; +0xb, 0x10029380b\npush    r14                                                            ; +0xe, 0x10029380e\npush    rbx                                                            ; +0x10, 0x100293810\nmov     rax, [rdi]                                                     ; +0x11, 0x100293811\nmov     rbx, rdi                                                       ; +0x14, 0x100293814\nxor     esi, esi                                                       ; +0x17, 0x100293817\ncall    qword ptr [rax+420h]                                           ; +0x19, 0x100293819\nmov     byte ptr [rbx+230h], 1                                         ; +0x1f, 0x10029381f\nmov     rdi, rbx                                                       ; +0x26, 0x100293826\ncall    EditorPauseLayer__saveLevel                                    ; +0x29, 0x100293829\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x10029382e\ncall    cocos2d__CCDelayTime__create                                   ; +0x31, 0x100293831\nmov     r14, rax                                                       ; +0x36, 0x100293836\nlea     rsi, EditorPauseLayer__playStep2                               ; +0x39, 0x100293839\nmov     rdi, rbx                                                       ; +0x40, 0x100293840\nxor     edx, edx                                                       ; +0x43, 0x100293843\ncall    cocos2d__CCCallFunc__create                                    ; +0x45, 0x100293845\nmov     rdi, r14                                                       ; +0x4a, 0x10029384a\nmov     rsi, rax                                                       ; +0x4d, 0x10029384d\nxor     edx, edx                                                       ; +0x50, 0x100293850\nxor     eax, eax                                                       ; +0x52, 0x100293852\ncall    sub_1003B5760                                                  ; +0x54, 0x100293854\nmov     rdi, rbx                                                       ; +0x59, 0x100293859\nmov     rsi, rax                                                       ; +0x5c, 0x10029385c\npop     rbx                                                            ; +0x5f, 0x10029385f\npop     r14                                                            ; +0x60, 0x100293860\npop     rbp                                                            ; +0x62, 0x100293862\njmp     cocos2d__CCNode__runAction                                     ; +0x63, 0x100293863", "xrefs": ["EditorPauseLayer::customSetup @ 0x100291ad0"], "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"}