{"type": "func", "start": 4299927744, "end": 4299928067, "name": "EndLevelLayer::onRestartCheckpoint", "pseudocode": "// \n// EndLevelLayer::onRestartCheckpoint from 0x1004bb0c0 to 0x1004bb203 (323 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x1004ba086\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:31:03 +0000\n// \n\nvoid __fastcall EndLevelLayer::onRestartCheckpoint(__int64 a1, double a2)\n{\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rax\n  _OWORD *v7; // r14\n  __int64 v8; // rax\n  __int64 v9; // r14\n  void *v10[5]; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 619) )\n  {\n    *(_BYTE *)(a1 + 619) = 1;\n    v3 = GameManager::sharedState();\n    if ( !(unsigned __int8)GameManager::getGameVariable(v3, \"0024\") )\n      PlatformToolbox::hideCursor(a2);\n    v4 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::clearAllAudio(v4);\n    v5 = *(_QWORD *)(a1 + 608);\n    if ( *(_BYTE *)(v5 + 12544) == 1 && !*(_BYTE *)(v5 + 12545) )\n      sub_10008D8C0(a2);\n    v6 = FMODAudioEngine::sharedEngine();\n    strcpy((char *)v10, \" playSound_01.ogg\");\n    FMODAudioEngine::playEffect(v6, (__int64)v10, (__m128)0x3F800000u, 0.0, 0.30000001);\n    if ( ((__int64)v10[0] & 1) != 0 )\n      operator delete(v10[2]);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 0);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1000LL))(a1, 0);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1088LL))(a1, 0);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n    v7 = cocos2d::CCDelayTime::create((__m128)0x3F000000u);\n    v8 = cocos2d::CCCallFunc::create(*(_QWORD *)(a1 + 608), 1609, 0);\n    v9 = sub_10039EB60((__int64)v7, v8, 0);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 16);\n    cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 608), v9);\n  }\n}", "assembly": "; \n; EndLevelLayer::onRestartCheckpoint from 0x1004bb0c0 to 0x1004bb203 (323 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x1004ba086\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:31:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004bb0c0\nmov     rbp, rsp                                                       ; +0x1, 0x1004bb0c1\npush    r14                                                            ; +0x4, 0x1004bb0c4\npush    rbx                                                            ; +0x6, 0x1004bb0c6\nsub     rsp, 20h                                                       ; +0x7, 0x1004bb0c7\ncmp     byte ptr [rdi+26Bh], 0                                         ; +0xb, 0x1004bb0cb\njnz     loc_1004BB1FA                                                  ; +0x12, 0x1004bb0d2\nmov     rbx, rdi                                                       ; +0x18, 0x1004bb0d8\nmov     byte ptr [rdi+26Bh], 1                                         ; +0x1b, 0x1004bb0db\ncall    GameManager__sharedState                                       ; +0x22, 0x1004bb0e2\nlea     rsi, a0024; \"0024\"                                             ; +0x27, 0x1004bb0e7\nmov     rdi, rax                                                       ; +0x2e, 0x1004bb0ee\ncall    GameManager__getGameVariable                                   ; +0x31, 0x1004bb0f1\ntest    al, al                                                         ; +0x36, 0x1004bb0f6\njnz     short loc_1004BB0FF                                            ; +0x38, 0x1004bb0f8\ncall    PlatformToolbox__hideCursor                                    ; +0x3a, 0x1004bb0fa\ncall    FMODAudioEngine__sharedEngine                                  ; +0x3f, 0x1004bb0ff\nmov     rdi, rax                                                       ; +0x44, 0x1004bb104\ncall    FMODAudioEngine__clearAllAudio                                 ; +0x47, 0x1004bb107\nmov     rdi, [rbx+260h]                                                ; +0x4c, 0x1004bb10c\ncmp     byte ptr [rdi+3100h], 1                                        ; +0x53, 0x1004bb113\njnz     short loc_1004BB12A                                            ; +0x5a, 0x1004bb11a\ncmp     byte ptr [rdi+3101h], 0                                        ; +0x5c, 0x1004bb11c\njnz     short loc_1004BB12A                                            ; +0x63, 0x1004bb123\ncall    sub_10008D8C0                                                  ; +0x65, 0x1004bb125\ncall    FMODAudioEngine__sharedEngine                                  ; +0x6a, 0x1004bb12a\nmov     [rbp+var_28], 20h ; ' '                                        ; +0x6f, 0x1004bb12f\nmovups  xmm0, xmmword ptr cs:aPlaysound01Ogg; \"playSound_01.ogg\"       ; +0x73, 0x1004bb133\nmovups  xmmword ptr [rbp+var_28+1], xmm0                               ; +0x7a, 0x1004bb13a\nmov     [rbp+var_28+11h], 0                                            ; +0x7e, 0x1004bb13e\nlea     rsi, [rbp+var_28]                                              ; +0x82, 0x1004bb142\nmovss   xmm0, cs:alpha                                                 ; +0x86, 0x1004bb146\nmovss   xmm2, cs:dword_100A03748                                       ; +0x8e, 0x1004bb14e\nxorps   xmm1, xmm1                                                     ; +0x96, 0x1004bb156\nmov     rdi, rax                                                       ; +0x99, 0x1004bb159\ncall    FMODAudioEngine__playEffect                                    ; +0x9c, 0x1004bb15c\ntest    [rbp+var_28], 1                                                ; +0xa1, 0x1004bb161\njz      short loc_1004BB170                                            ; +0xa5, 0x1004bb165\nmov     rdi, qword ptr [rbp+var_28+10h]; __p                           ; +0xa7, 0x1004bb167\ncall    __ZdlPv; operator delete(void *)                               ; +0xab, 0x1004bb16b\nmov     rax, [rbx]                                                     ; +0xb0, 0x1004bb170\nmov     rdi, rbx                                                       ; +0xb3, 0x1004bb173\nxor     esi, esi                                                       ; +0xb6, 0x1004bb176\ncall    qword ptr [rax+528h]                                           ; +0xb8, 0x1004bb178\nmov     rax, [rbx]                                                     ; +0xbe, 0x1004bb17e\nmov     rdi, rbx                                                       ; +0xc1, 0x1004bb181\nxor     esi, esi                                                       ; +0xc4, 0x1004bb184\ncall    qword ptr [rax+3E8h]                                           ; +0xc6, 0x1004bb186\nmov     rax, [rbx]                                                     ; +0xcc, 0x1004bb18c\nmov     rdi, rbx                                                       ; +0xcf, 0x1004bb18f\nxor     esi, esi                                                       ; +0xd2, 0x1004bb192\ncall    qword ptr [rax+440h]                                           ; +0xd4, 0x1004bb194\nmov     rax, [rbx]                                                     ; +0xda, 0x1004bb19a\nmov     rdi, rbx                                                       ; +0xdd, 0x1004bb19d\nxor     esi, esi                                                       ; +0xe0, 0x1004bb1a0\ncall    qword ptr [rax+430h]                                           ; +0xe2, 0x1004bb1a2\nmovss   xmm0, cs:dword_100A03578                                       ; +0xe8, 0x1004bb1a8\ncall    cocos2d__CCDelayTime__create                                   ; +0xf0, 0x1004bb1b0\nmov     r14, rax                                                       ; +0xf5, 0x1004bb1b5\nmov     rdi, [rbx+260h]                                                ; +0xf8, 0x1004bb1b8\nmov     esi, 649h                                                      ; +0xff, 0x1004bb1bf\nxor     edx, edx                                                       ; +0x104, 0x1004bb1c4\ncall    cocos2d__CCCallFunc__create                                    ; +0x106, 0x1004bb1c6\nmov     rdi, r14                                                       ; +0x10b, 0x1004bb1cb\nmov     rsi, rax                                                       ; +0x10e, 0x1004bb1ce\nxor     edx, edx                                                       ; +0x111, 0x1004bb1d1\nxor     eax, eax                                                       ; +0x113, 0x1004bb1d3\ncall    sub_10039EB60                                                  ; +0x115, 0x1004bb1d5\nmov     r14, rax                                                       ; +0x11a, 0x1004bb1da\nmov     rax, [rax]                                                     ; +0x11d, 0x1004bb1dd\nmov     rdi, r14                                                       ; +0x120, 0x1004bb1e0\nmov     esi, 10h                                                       ; +0x123, 0x1004bb1e3\ncall    qword ptr [rax+48h]                                            ; +0x128, 0x1004bb1e8\nmov     rdi, [rbx+260h]                                                ; +0x12b, 0x1004bb1eb\nmov     rsi, r14                                                       ; +0x132, 0x1004bb1f2\ncall    cocos2d__CCNode__runAction                                     ; +0x135, 0x1004bb1f5\nadd     rsp, 20h                                                       ; +0x13a, 0x1004bb1fa\npop     rbx                                                            ; +0x13e, 0x1004bb1fe\npop     r14                                                            ; +0x13f, 0x1004bb1ff\npop     rbp                                                            ; +0x141, 0x1004bb201\nretn                                                                   ; +0x142, 0x1004bb202", "xrefs": ["EndLevelLayer::customSetup @ 0x1004ba086"], "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"}