{"type": "func", "start": 5372800080, "end": 5372800222, "name": "LevelBrowserLayer::onBack", "pseudocode": "// \n// LevelBrowserLayer::onBack from 0x1403e6c50 to 0x1403e6cde (142 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140789ee0\n// > <???> @ 0x140924fa4\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:31:43 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall LevelBrowserLayer::onBack(struct cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  __int64 v4; // rdx\n  __int64 v6; // rcx\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( *((_BYTE *)a1 + 748) )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n    LOBYTE(v4) = 1;\n    return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    if ( !qword_14090BFD0 )\n    {\n      v7 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    }\n    return GameManager::safePopScene(v6);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::onBack from 0x1403e6c50 to 0x1403e6cde (142 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140789ee0\n; > <???> @ 0x140924fa4\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:31:43 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403e6c50\nsub     rsp, 20h                                                       ; +0x2, 0x1403e6c52\nmov     rbx, rcx                                                       ; +0x6, 0x1403e6c56\ncmp     byte ptr [rcx+2ECh], 0                                         ; +0x9, 0x1403e6c59\njz      short loc_1403E6C94                                            ; +0x10, 0x1403e6c60\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x12, 0x1403e6c62\nmov     rdx, [rax]                                                     ; +0x18, 0x1403e6c68\nmov     rcx, rax                                                       ; +0x1b, 0x1403e6c6b\ncall    qword ptr [rdx+90h]                                            ; +0x1e, 0x1403e6c6e\nmov     rcx, rax                                                       ; +0x24, 0x1403e6c74\nmov     rdx, rbx                                                       ; +0x27, 0x1403e6c77\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2a, 0x1403e6c7a\nmov     rax, [rbx]                                                     ; +0x30, 0x1403e6c80\nmov     dl, 1                                                          ; +0x33, 0x1403e6c83\nmov     rcx, rbx                                                       ; +0x35, 0x1403e6c85\nadd     rsp, 20h                                                       ; +0x38, 0x1403e6c88\npop     rbx                                                            ; +0x3c, 0x1403e6c8c\njmp     qword ptr [rax+208h]                                           ; +0x3d, 0x1403e6c8d\nmov     rax, [rcx]                                                     ; +0x44, 0x1403e6c94\nxor     edx, edx                                                       ; +0x47, 0x1403e6c97\ncall    qword ptr [rax+3E0h]                                           ; +0x49, 0x1403e6c99\ncmp     cs:qword_14090BFD0, 0                                          ; +0x4f, 0x1403e6c9f\njnz     short loc_1403E6CD4                                            ; +0x57, 0x1403e6ca7\nmov     ecx, 6E8h; Size                                                ; +0x59, 0x1403e6ca9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5e, 0x1403e6cae\nmov     [rsp+28h+arg_0], rax                                           ; +0x63, 0x1403e6cb3\nmov     rcx, rax                                                       ; +0x68, 0x1403e6cb8\ncall    GameManager__GameManager                                       ; +0x6b, 0x1403e6cbb\nnop                                                                    ; +0x70, 0x1403e6cc0\nmov     cs:qword_14090BFD0, rax                                        ; +0x71, 0x1403e6cc1\nmov     rcx, [rax]                                                     ; +0x78, 0x1403e6cc8\nmov     rdx, [rcx+48h]                                                 ; +0x7b, 0x1403e6ccb\nmov     rcx, rax                                                       ; +0x7f, 0x1403e6ccf\ncall    rdx                                                            ; +0x82, 0x1403e6cd2\nadd     rsp, 20h                                                       ; +0x84, 0x1403e6cd4\npop     rbx                                                            ; +0x88, 0x1403e6cd8\njmp     GameManager__safePopScene                                      ; +0x89, 0x1403e6cd9", "xrefs": ["<???> @ 0x140789ee0", "<???> @ 0x140924fa4"], "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"}