{"type": "func", "start": 5369618144, "end": 5369618259, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x1400ddee0 to 0x1400ddf53 (115 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400da679\n// > <???> @ 0x14066e22c\n// > <???> @ 0x14066e23c\n// > <???> @ 0x1406c8a3c\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::onSaveAndPlay(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  __int64 v4; // rbx\n  struct cocos2d::CCDelayTime *v5; // rax\n  struct cocos2d::CCSequence *v6; // rax\n  cocos2d::ccColor3B *v7; // r8\n  float v8; // [rsp+20h] [rbp-8h]\n\n  if ( !a1->m_saved )\n  {\n    a1->setKeypadEnabled(a1, 0);\n    a1->m_saved = 1;\n    EditorPauseLayer::saveLevel(a1);\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((CCLightFlash *)a1, (cocos2d::CCPoint)v6, v7, v2, v8);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x1400ddee0 to 0x1400ddf53 (115 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400da679\n; > <???> @ 0x14066e22c\n; > <???> @ 0x14066e23c\n; > <???> @ 0x1406c8a3c\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    rdi                                                            ; +0x0, 0x1400ddee0\nsub     rsp, 20h                                                       ; +0x2, 0x1400ddee2\ncmp     byte ptr [rcx+230h], 0                                         ; +0x6, 0x1400ddee6\nmov     rdi, rcx                                                       ; +0xd, 0x1400ddeed\njnz     short loc_1400DDF4D                                            ; +0x10, 0x1400ddef0\nmov     rax, [rcx]                                                     ; +0x12, 0x1400ddef2\nxor     edx, edx                                                       ; +0x15, 0x1400ddef5\nmov     [rsp+28h+arg_0], rbx                                           ; +0x17, 0x1400ddef7\ncall    qword ptr [rax+3D0h]                                           ; +0x1c, 0x1400ddefc\nmov     rcx, rdi                                                       ; +0x22, 0x1400ddf02\nmov     byte ptr [rdi+230h], 1                                         ; +0x25, 0x1400ddf05\ncall    EditorPauseLayer__saveLevel                                    ; +0x2c, 0x1400ddf0c\nlea     rdx, EditorPauseLayer__playStep2                               ; +0x31, 0x1400ddf11\nmov     rcx, rdi                                                       ; +0x38, 0x1400ddf18\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x3b, 0x1400ddf1b\nxorps   xmm0, xmm0                                                     ; +0x41, 0x1400ddf21\nmov     rbx, rax                                                       ; +0x44, 0x1400ddf24\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x47, 0x1400ddf27\nxor     r8d, r8d                                                       ; +0x4d, 0x1400ddf2d\nmov     rdx, rbx                                                       ; +0x50, 0x1400ddf30\nmov     rcx, rax                                                       ; +0x53, 0x1400ddf33\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x56, 0x1400ddf36\nmov     rdx, rax                                                       ; +0x5c, 0x1400ddf3c\nmov     rcx, rdi                                                       ; +0x5f, 0x1400ddf3f\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x62, 0x1400ddf42\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x1400ddf48\nadd     rsp, 20h                                                       ; +0x6d, 0x1400ddf4d\npop     rdi                                                            ; +0x71, 0x1400ddf51\nretn                                                                   ; +0x72, 0x1400ddf52", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400da679", "<???> @ 0x14066e22c", "<???> @ 0x14066e23c", "<???> @ 0x1406c8a3c"], "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"}