{"type": "func", "start": 5372372144, "end": 5372372290, "name": "PauseLayer::onRestartFull", "pseudocode": "// \n// PauseLayer::onRestartFull from 0x14037e4b0 to 0x14037e542 (146 bytes)\n// \n// 2 xrefs:\n// > PauseLayer::customSetup @ 0x14037cc73\n// > <???> @ 0x1406d5da4\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 PauseLayer::onRestartFull(PauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_forcePrioRegistered )\n  {\n    a1->m_forcePrioRegistered = 0;\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n  }\n  v5 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v5 = qword_1406C2ED8;\n  }\n  PlayLayer::resumeAndRestart(*(PlayLayer **)(v5 + 520), 1);\n  a1->removeMeAndCleanup(a1);\n}", "assembly": "; \n; PauseLayer::onRestartFull from 0x14037e4b0 to 0x14037e542 (146 bytes)\n; \n; 2 xrefs:\n; > PauseLayer::customSetup @ 0x14037cc73\n; > <???> @ 0x1406d5da4\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    rbx                                                            ; +0x0, 0x14037e4b0\nsub     rsp, 20h                                                       ; +0x2, 0x14037e4b2\nmov     rbx, rcx                                                       ; +0x6, 0x14037e4b6\ncmp     byte ptr [rcx+221h], 0                                         ; +0x9, 0x14037e4b9\njz      short loc_14037E4E7                                            ; +0x10, 0x14037e4c0\nmov     byte ptr [rcx+221h], 0                                         ; +0x12, 0x14037e4c2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x14037e4c9\nmov     rdx, [rax]                                                     ; +0x1f, 0x14037e4cf\nmov     rcx, rax                                                       ; +0x22, 0x14037e4d2\ncall    qword ptr [rdx+90h]                                            ; +0x25, 0x14037e4d5\nmov     rcx, rax                                                       ; +0x2b, 0x14037e4db\nmov     rdx, rbx                                                       ; +0x2e, 0x14037e4de\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x31, 0x14037e4e1\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x37, 0x14037e4e7\ntest    rcx, rcx                                                       ; +0x3e, 0x14037e4ee\njnz     short loc_14037E522                                            ; +0x41, 0x14037e4f1\nmov     ecx, 668h; Size                                                ; +0x43, 0x14037e4f3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x14037e4f8\nmov     [rsp+28h+arg_0], rax                                           ; +0x4d, 0x14037e4fd\nmov     rcx, rax                                                       ; +0x52, 0x14037e502\ncall    sub_14017AB00                                                  ; +0x55, 0x14037e505\nnop                                                                    ; +0x5a, 0x14037e50a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5b, 0x14037e50b\nmov     rdx, [rax]                                                     ; +0x62, 0x14037e512\nmov     rcx, rax                                                       ; +0x65, 0x14037e515\ncall    qword ptr [rdx+48h]                                            ; +0x68, 0x14037e518\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x6b, 0x14037e51b\nmov     dl, 1                                                          ; +0x72, 0x14037e522\nmov     rcx, [rcx+208h]                                                ; +0x74, 0x14037e524\ncall    PlayLayer__resumeAndRestart                                    ; +0x7b, 0x14037e52b\nmov     rax, [rbx]                                                     ; +0x80, 0x14037e530\nmov     rcx, rbx                                                       ; +0x83, 0x14037e533\nadd     rsp, 20h                                                       ; +0x86, 0x14037e536\npop     rbx                                                            ; +0x8a, 0x14037e53a\njmp     qword ptr [rax+200h]                                           ; +0x8b, 0x14037e53b", "xrefs": ["PauseLayer::customSetup @ 0x14037cc73", "<???> @ 0x1406d5da4"], "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"}