{"type": "func", "start": 5372371840, "end": 5372371984, "name": "PauseLayer::onResume", "pseudocode": "// \n// PauseLayer::onResume from 0x14037e380 to 0x14037e410 (144 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::keyDown @ 0x14037ed4f\n// > PauseLayer::customSetup @ 0x14037cd58\n// > <???> @ 0x1406d5d8c\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\n// Hidden C++ exception states: #wind=1\nvoid PauseLayer::onResume(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::resume(*(PlayLayer **)(v5 + 520));\n  a1->removeMeAndCleanup(a1);\n}", "assembly": "; \n; PauseLayer::onResume from 0x14037e380 to 0x14037e410 (144 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::keyDown @ 0x14037ed4f\n; > PauseLayer::customSetup @ 0x14037cd58\n; > <???> @ 0x1406d5d8c\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, 0x14037e380\nsub     rsp, 20h                                                       ; +0x2, 0x14037e382\nmov     rbx, rcx                                                       ; +0x6, 0x14037e386\ncmp     byte ptr [rcx+221h], 0                                         ; +0x9, 0x14037e389\njz      short loc_14037E3B7                                            ; +0x10, 0x14037e390\nmov     byte ptr [rcx+221h], 0                                         ; +0x12, 0x14037e392\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x14037e399\nmov     rdx, [rax]                                                     ; +0x1f, 0x14037e39f\nmov     rcx, rax                                                       ; +0x22, 0x14037e3a2\ncall    qword ptr [rdx+90h]                                            ; +0x25, 0x14037e3a5\nmov     rcx, rax                                                       ; +0x2b, 0x14037e3ab\nmov     rdx, rbx                                                       ; +0x2e, 0x14037e3ae\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x31, 0x14037e3b1\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x37, 0x14037e3b7\ntest    rcx, rcx                                                       ; +0x3e, 0x14037e3be\njnz     short loc_14037E3F2                                            ; +0x41, 0x14037e3c1\nmov     ecx, 668h; Size                                                ; +0x43, 0x14037e3c3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x14037e3c8\nmov     [rsp+28h+arg_0], rax                                           ; +0x4d, 0x14037e3cd\nmov     rcx, rax                                                       ; +0x52, 0x14037e3d2\ncall    sub_14017AB00                                                  ; +0x55, 0x14037e3d5\nnop                                                                    ; +0x5a, 0x14037e3da\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5b, 0x14037e3db\nmov     rdx, [rax]                                                     ; +0x62, 0x14037e3e2\nmov     rcx, rax                                                       ; +0x65, 0x14037e3e5\ncall    qword ptr [rdx+48h]                                            ; +0x68, 0x14037e3e8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x6b, 0x14037e3eb\nmov     rcx, [rcx+208h]                                                ; +0x72, 0x14037e3f2\ncall    PlayLayer__resume                                              ; +0x79, 0x14037e3f9\nmov     rax, [rbx]                                                     ; +0x7e, 0x14037e3fe\nmov     rcx, rbx                                                       ; +0x81, 0x14037e401\nadd     rsp, 20h                                                       ; +0x84, 0x14037e404\npop     rbx                                                            ; +0x88, 0x14037e408\njmp     qword ptr [rax+200h]                                           ; +0x89, 0x14037e409", "xrefs": ["PauseLayer::keyDown @ 0x14037ed4f", "PauseLayer::customSetup @ 0x14037cd58", "<???> @ 0x1406d5d8c"], "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"}