{"type": "func", "start": 4297581264, "end": 4297581398, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x10027e2d0 to 0x10027e356 (134 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x10027d3ce\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 12:27:42 +0000\n// \n\nvoid __fastcall EditorPauseLayer::onSaveAndPlay(__int64 a1)\n{\n  double v2; // xmm0_8\n  __int64 v3; // rax\n  __int64 v4; // rdi\n  int v5; // r14d\n  int v6; // eax\n  int v7; // ecx\n  int v8; // r8d\n  int v9; // r9d\n  __int64 v10; // rax\n\n  if ( !*(_BYTE *)(a1 + 568) )\n  {\n    v2 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n    *(_BYTE *)(a1 + 568) = 1;\n    v3 = LocalLevelManager::sharedState(v2);\n    sub_1004A5220(v3, 30.0);\n    v4 = *(_QWORD *)(a1 + 576);\n    if ( v4 )\n      LevelEditorLayer::saveLevel(v4);\n    v5 = cocos2d::CCDelayTime::create(0.0);\n    v6 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep2, 0);\n    v10 = sub_10039EB60(v5, v6, 0, v7, v8, v9);\n    cocos2d::CCNode::runAction(a1, v10);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x10027e2d0 to 0x10027e356 (134 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x10027d3ce\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 12:27:42 +0000\n; \ncmp     byte ptr [rdi+238h], 0                                         ; +0x0, 0x10027e2d0\njz      short loc_10027E2DA                                            ; +0x7, 0x10027e2d7\nretn                                                                   ; +0x9, 0x10027e2d9\npush    rbp                                                            ; +0xa, 0x10027e2da\nmov     rbp, rsp                                                       ; +0xb, 0x10027e2db\npush    r14                                                            ; +0xe, 0x10027e2de\npush    rbx                                                            ; +0x10, 0x10027e2e0\nmov     rbx, rdi                                                       ; +0x11, 0x10027e2e1\nmov     rax, [rdi]                                                     ; +0x14, 0x10027e2e4\nxor     esi, esi                                                       ; +0x17, 0x10027e2e7\ncall    qword ptr [rax+430h]                                           ; +0x19, 0x10027e2e9\nmov     byte ptr [rbx+238h], 1                                         ; +0x1f, 0x10027e2ef\ncall    LocalLevelManager__sharedState                                 ; +0x26, 0x10027e2f6\nmovsd   xmm0, cs:qword_100A072C8                                       ; +0x2b, 0x10027e2fb\nmov     rdi, rax                                                       ; +0x33, 0x10027e303\ncall    sub_1004A5220                                                  ; +0x36, 0x10027e306\nmov     rdi, [rbx+240h]                                                ; +0x3b, 0x10027e30b\ntest    rdi, rdi                                                       ; +0x42, 0x10027e312\njz      short loc_10027E31C                                            ; +0x45, 0x10027e315\ncall    LevelEditorLayer__saveLevel                                    ; +0x47, 0x10027e317\nxorps   xmm0, xmm0                                                     ; +0x4c, 0x10027e31c\ncall    cocos2d__CCDelayTime__create                                   ; +0x4f, 0x10027e31f\nmov     r14, rax                                                       ; +0x54, 0x10027e324\nlea     rsi, EditorPauseLayer__playStep2                               ; +0x57, 0x10027e327\nmov     rdi, rbx                                                       ; +0x5e, 0x10027e32e\nxor     edx, edx                                                       ; +0x61, 0x10027e331\ncall    cocos2d__CCCallFunc__create                                    ; +0x63, 0x10027e333\nmov     rdi, r14                                                       ; +0x68, 0x10027e338\nmov     rsi, rax                                                       ; +0x6b, 0x10027e33b\nxor     edx, edx                                                       ; +0x6e, 0x10027e33e\nxor     eax, eax                                                       ; +0x70, 0x10027e340\ncall    sub_10039EB60                                                  ; +0x72, 0x10027e342\nmov     rdi, rbx                                                       ; +0x77, 0x10027e347\nmov     rsi, rax                                                       ; +0x7a, 0x10027e34a\npop     rbx                                                            ; +0x7d, 0x10027e34d\npop     r14                                                            ; +0x7e, 0x10027e34e\npop     rbp                                                            ; +0x80, 0x10027e350\njmp     cocos2d__CCNode__runAction                                     ; +0x81, 0x10027e351", "xrefs": ["EditorPauseLayer::customSetup @ 0x10027d3ce"], "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"}