{"type": "func", "start": 5372373232, "end": 5372373433, "name": "PauseLayer::goEdit", "pseudocode": "// \n// PauseLayer::goEdit from 0x14037e8f0 to 0x14037e9b9 (201 bytes)\n// \n// 2 xrefs:\n// > PauseLayer::onEdit @ 0x14037e8a2\n// > <???> @ 0x1406d5dc8\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=2\nvoid PauseLayer::goEdit(PauseLayer *a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  GJGameLoadingLayer *v6; // rax\n  GJGameLoadingLayer *v7; // rbx\n  cocos2d::CCObject *v8; // rcx\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_forcePrioRegistered )\n  {\n    a1->m_forcePrioRegistered = 0;\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  }\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v9 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  v5 = *(_QWORD *)(v4 + 520);\n  v6 = GJGameLoadingLayer::transitionToLoadingLayer(*(GJGameLevel **)(v5 + 2168), 1);\n  v7 = v6;\n  if ( *(GJGameLoadingLayer **)(v5 + 14184) != v6 )\n  {\n    if ( v6 )\n      cocos2d::CCObject::retain(v6);\n    v8 = *(cocos2d::CCObject **)(v5 + 14184);\n    if ( v8 )\n      cocos2d::CCObject::release(v8);\n    *(_QWORD *)(v5 + 14184) = v7;\n  }\n}", "assembly": "; \n; PauseLayer::goEdit from 0x14037e8f0 to 0x14037e9b9 (201 bytes)\n; \n; 2 xrefs:\n; > PauseLayer::onEdit @ 0x14037e8a2\n; > <???> @ 0x1406d5dc8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14037e8f0\npush    rdi                                                            ; +0x5, 0x14037e8f5\nsub     rsp, 20h                                                       ; +0x6, 0x14037e8f6\nmov     rbx, rcx                                                       ; +0xa, 0x14037e8fa\ncmp     byte ptr [rcx+221h], 0                                         ; +0xd, 0x14037e8fd\njz      short loc_14037E92B                                            ; +0x14, 0x14037e904\nmov     byte ptr [rcx+221h], 0                                         ; +0x16, 0x14037e906\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x14037e90d\nmov     rdx, [rax]                                                     ; +0x23, 0x14037e913\nmov     rcx, rax                                                       ; +0x26, 0x14037e916\ncall    qword ptr [rdx+90h]                                            ; +0x29, 0x14037e919\nmov     rcx, rax                                                       ; +0x2f, 0x14037e91f\nmov     rdx, rbx                                                       ; +0x32, 0x14037e922\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x35, 0x14037e925\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3b, 0x14037e92b\ntest    rax, rax                                                       ; +0x42, 0x14037e932\njnz     short loc_14037E966                                            ; +0x45, 0x14037e935\nmov     ecx, 668h; Size                                                ; +0x47, 0x14037e937\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c, 0x14037e93c\nmov     [rsp+28h+arg_0], rax                                           ; +0x51, 0x14037e941\nmov     rcx, rax                                                       ; +0x56, 0x14037e946\ncall    sub_14017AB00                                                  ; +0x59, 0x14037e949\nnop                                                                    ; +0x5e, 0x14037e94e\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5f, 0x14037e94f\nmov     rdx, [rax]                                                     ; +0x66, 0x14037e956\nmov     rcx, rax                                                       ; +0x69, 0x14037e959\ncall    qword ptr [rdx+48h]                                            ; +0x6c, 0x14037e95c\nmov     rax, cs:qword_1406C2ED8                                        ; +0x6f, 0x14037e95f\nmov     rdi, [rax+208h]                                                ; +0x76, 0x14037e966\nmov     dl, 1                                                          ; +0x7d, 0x14037e96d\nmov     rcx, [rdi+878h]                                                ; +0x7f, 0x14037e96f\ncall    GJGameLoadingLayer__transitionToLoadingLayer                   ; +0x86, 0x14037e976\nmov     rbx, rax                                                       ; +0x8b, 0x14037e97b\ncmp     [rdi+3768h], rax                                               ; +0x8e, 0x14037e97e\njz      short loc_14037E9AE                                            ; +0x95, 0x14037e985\ntest    rax, rax                                                       ; +0x97, 0x14037e987\njz      short loc_14037E995                                            ; +0x9a, 0x14037e98a\nmov     rcx, rax                                                       ; +0x9c, 0x14037e98c\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x9f, 0x14037e98f\nmov     rcx, [rdi+3768h]                                               ; +0xa5, 0x14037e995\ntest    rcx, rcx                                                       ; +0xac, 0x14037e99c\njz      short loc_14037E9A7                                            ; +0xaf, 0x14037e99f\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xb1, 0x14037e9a1\nmov     [rdi+3768h], rbx                                               ; +0xb7, 0x14037e9a7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbe, 0x14037e9ae\nadd     rsp, 20h                                                       ; +0xc3, 0x14037e9b3\npop     rdi                                                            ; +0xc7, 0x14037e9b7\nretn                                                                   ; +0xc8, 0x14037e9b8", "xrefs": ["PauseLayer::onEdit @ 0x14037e8a2", "<???> @ 0x1406d5dc8"], "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"}