{"type": "func", "start": 5370291424, "end": 5370291597, "name": "EditorPauseLayer::onResume", "pseudocode": "// \n// EditorPauseLayer::onResume from 0x1401824e0 to 0x14018258d (173 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::keyBackClicked @ 0x1401833f9\n// > EditorPauseLayer::customSetup @ 0x14018164a\n// > <???> @ 0x140918c14\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 11:27:37 +0000\n// \n\nvoid __fastcall EditorPauseLayer::onResume(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n\n  if ( !*(_BYTE *)(a1 + 568) )\n  {\n    v2 = EditorSFXManager::sharedState();\n    EditorSFXManager::playAction(v2, 223);\n    if ( *(_BYTE *)(a1 + 545) )\n    {\n      *(_BYTE *)(a1 + 545) = 0;\n      v4 = cocos2d::CCDirector::sharedDirector(v3);\n      v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n      cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, (struct cocos2d::CCObject *)a1);\n    }\n    LevelEditorLayer::updateOptions(*(_QWORD *)(a1 + 576));\n    *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 576) + 14904LL) + 1660LL) = 0;\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 528LL))(a1);\n    if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 576) + 14904LL) + 1663LL) )\n      EditorUI::recreateButtonTabs();\n  }\n}", "assembly": "; \n; EditorPauseLayer::onResume from 0x1401824e0 to 0x14018258d (173 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::keyBackClicked @ 0x1401833f9\n; > EditorPauseLayer::customSetup @ 0x14018164a\n; > <???> @ 0x140918c14\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 11:27:37 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401824e0\nsub     rsp, 20h                                                       ; +0x2, 0x1401824e2\ncmp     byte ptr [rcx+238h], 0                                         ; +0x6, 0x1401824e6\nmov     rbx, rcx                                                       ; +0xd, 0x1401824ed\njnz     loc_140182587                                                  ; +0x10, 0x1401824f0\ncall    EditorSFXManager__sharedState                                  ; +0x16, 0x1401824f6\nmov     rcx, rax                                                       ; +0x1b, 0x1401824fb\nmov     edx, 0DFh                                                      ; +0x1e, 0x1401824fe\ncall    EditorSFXManager__playAction                                   ; +0x23, 0x140182503\ncmp     byte ptr [rbx+221h], 0                                         ; +0x28, 0x140182508\njz      short loc_140182539                                            ; +0x2f, 0x14018250f\nmov     byte ptr [rbx+221h], 0                                         ; +0x31, 0x140182511\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x140182518\nmov     rcx, [rax]                                                     ; +0x3e, 0x14018251e\nmov     rdx, [rcx+90h]                                                 ; +0x41, 0x140182521\nmov     rcx, rax                                                       ; +0x48, 0x140182528\ncall    rdx                                                            ; +0x4b, 0x14018252b\nmov     rcx, rax                                                       ; +0x4d, 0x14018252d\nmov     rdx, rbx                                                       ; +0x50, 0x140182530\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x53, 0x140182533\nmov     rcx, [rbx+240h]                                                ; +0x59, 0x140182539\ncall    LevelEditorLayer__updateOptions                                ; +0x60, 0x140182540\nmov     rax, [rbx+240h]                                                ; +0x65, 0x140182545\nmov     rcx, [rax+3A38h]                                               ; +0x6c, 0x14018254c\nmov     byte ptr [rcx+67Ch], 0                                         ; +0x73, 0x140182553\nmov     rcx, rbx                                                       ; +0x7a, 0x14018255a\nmov     rax, [rbx]                                                     ; +0x7d, 0x14018255d\ncall    qword ptr [rax+210h]                                           ; +0x80, 0x140182560\nmov     rax, [rbx+240h]                                                ; +0x86, 0x140182566\nmov     rcx, [rax+3A38h]                                               ; +0x8d, 0x14018256d\ncmp     byte ptr [rcx+67Fh], 0                                         ; +0x94, 0x140182574\njz      short loc_140182587                                            ; +0x9b, 0x14018257b\nadd     rsp, 20h                                                       ; +0x9d, 0x14018257d\npop     rbx                                                            ; +0xa1, 0x140182581\njmp     EditorUI__recreateButtonTabs                                   ; +0xa2, 0x140182582\nadd     rsp, 20h                                                       ; +0xa7, 0x140182587\npop     rbx                                                            ; +0xab, 0x14018258b\nretn                                                                   ; +0xac, 0x14018258c", "xrefs": ["EditorPauseLayer::keyBackClicked @ 0x1401833f9", "EditorPauseLayer::customSetup @ 0x14018164a", "<???> @ 0x140918c14"], "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"}