{"type": "func", "start": 5372371984, "end": 5372372130, "name": "PauseLayer::onRestart", "pseudocode": "// \n// PauseLayer::onRestart from 0x14037e410 to 0x14037e4a2 (146 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::customSetup @ 0x14037cdb5\n// > <???> @ 0x1406d5d8c\n// > <???> @ 0x1406d5d98\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::onRestart(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), 0);\n  a1->removeMeAndCleanup(a1);\n}", "assembly": "; \n; PauseLayer::onRestart from 0x14037e410 to 0x14037e4a2 (146 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::customSetup @ 0x14037cdb5\n; > <???> @ 0x1406d5d8c\n; > <???> @ 0x1406d5d98\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, 0x14037e410\nsub     rsp, 20h                                                       ; +0x2, 0x14037e412\nmov     rbx, rcx                                                       ; +0x6, 0x14037e416\ncmp     byte ptr [rcx+221h], 0                                         ; +0x9, 0x14037e419\njz      short loc_14037E447                                            ; +0x10, 0x14037e420\nmov     byte ptr [rcx+221h], 0                                         ; +0x12, 0x14037e422\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x14037e429\nmov     rdx, [rax]                                                     ; +0x1f, 0x14037e42f\nmov     rcx, rax                                                       ; +0x22, 0x14037e432\ncall    qword ptr [rdx+90h]                                            ; +0x25, 0x14037e435\nmov     rcx, rax                                                       ; +0x2b, 0x14037e43b\nmov     rdx, rbx                                                       ; +0x2e, 0x14037e43e\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x31, 0x14037e441\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x37, 0x14037e447\ntest    rcx, rcx                                                       ; +0x3e, 0x14037e44e\njnz     short loc_14037E482                                            ; +0x41, 0x14037e451\nmov     ecx, 668h; Size                                                ; +0x43, 0x14037e453\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x14037e458\nmov     [rsp+28h+arg_0], rax                                           ; +0x4d, 0x14037e45d\nmov     rcx, rax                                                       ; +0x52, 0x14037e462\ncall    sub_14017AB00                                                  ; +0x55, 0x14037e465\nnop                                                                    ; +0x5a, 0x14037e46a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5b, 0x14037e46b\nmov     rdx, [rax]                                                     ; +0x62, 0x14037e472\nmov     rcx, rax                                                       ; +0x65, 0x14037e475\ncall    qword ptr [rdx+48h]                                            ; +0x68, 0x14037e478\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x6b, 0x14037e47b\nxor     edx, edx                                                       ; +0x72, 0x14037e482\nmov     rcx, [rcx+208h]                                                ; +0x74, 0x14037e484\ncall    PlayLayer__resumeAndRestart                                    ; +0x7b, 0x14037e48b\nmov     rax, [rbx]                                                     ; +0x80, 0x14037e490\nmov     rcx, rbx                                                       ; +0x83, 0x14037e493\nadd     rsp, 20h                                                       ; +0x86, 0x14037e496\npop     rbx                                                            ; +0x8a, 0x14037e49a\njmp     qword ptr [rax+200h]                                           ; +0x8b, 0x14037e49b", "xrefs": ["PauseLayer::customSetup @ 0x14037cdb5", "<???> @ 0x1406d5d8c", "<???> @ 0x1406d5d98"], "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"}