{"type": "func", "start": 5371645568, "end": 5371645707, "name": "LevelBrowserLayer::onBack", "pseudocode": "// \n// LevelBrowserLayer::onBack from 0x1402cce80 to 0x1402ccf0b (139 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140585178\n// > <???> @ 0x1406d2d50\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 LevelBrowserLayer::onBack(LevelBrowserLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  _BOOL8 v5; // rdx\n  GameManager *v6; // rcx\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_isOverlay )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    LOBYTE(v5) = 1;\n    a1->removeFromParentAndCleanup(a1, v5);\n  }\n  else\n  {\n    a1->setKeypadEnabled(a1, 0);\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n    GameManager::safePopScene(v6);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::onBack from 0x1402cce80 to 0x1402ccf0b (139 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140585178\n; > <???> @ 0x1406d2d50\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, 0x1402cce80\nsub     rsp, 20h                                                       ; +0x2, 0x1402cce82\nmov     rbx, rcx                                                       ; +0x6, 0x1402cce86\ncmp     byte ptr [rcx+2ECh], 0                                         ; +0x9, 0x1402cce89\njz      short loc_1402CCEC4                                            ; +0x10, 0x1402cce90\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x12, 0x1402cce92\nmov     rdx, [rax]                                                     ; +0x18, 0x1402cce98\nmov     rcx, rax                                                       ; +0x1b, 0x1402cce9b\ncall    qword ptr [rdx+90h]                                            ; +0x1e, 0x1402cce9e\nmov     rcx, rax                                                       ; +0x24, 0x1402ccea4\nmov     rdx, rbx                                                       ; +0x27, 0x1402ccea7\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2a, 0x1402cceaa\nmov     rax, [rbx]                                                     ; +0x30, 0x1402cceb0\nmov     dl, 1                                                          ; +0x33, 0x1402cceb3\nmov     rcx, rbx                                                       ; +0x35, 0x1402cceb5\nadd     rsp, 20h                                                       ; +0x38, 0x1402cceb8\npop     rbx                                                            ; +0x3c, 0x1402ccebc\njmp     qword ptr [rax+1F8h]                                           ; +0x3d, 0x1402ccebd\nmov     rax, [rcx]                                                     ; +0x44, 0x1402ccec4\nxor     edx, edx                                                       ; +0x47, 0x1402ccec7\ncall    qword ptr [rax+3D0h]                                           ; +0x49, 0x1402ccec9\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x4f, 0x1402ccecf\njnz     short loc_1402CCF01                                            ; +0x57, 0x1402cced7\nmov     ecx, 668h; Size                                                ; +0x59, 0x1402cced9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5e, 0x1402ccede\nmov     [rsp+28h+arg_0], rax                                           ; +0x63, 0x1402ccee3\nmov     rcx, rax                                                       ; +0x68, 0x1402ccee8\ncall    sub_14017AB00                                                  ; +0x6b, 0x1402cceeb\nnop                                                                    ; +0x70, 0x1402ccef0\nmov     cs:qword_1406C2ED8, rax                                        ; +0x71, 0x1402ccef1\nmov     rdx, [rax]                                                     ; +0x78, 0x1402ccef8\nmov     rcx, rax                                                       ; +0x7b, 0x1402ccefb\ncall    qword ptr [rdx+48h]                                            ; +0x7e, 0x1402ccefe\nadd     rsp, 20h                                                       ; +0x81, 0x1402ccf01\npop     rbx                                                            ; +0x85, 0x1402ccf05\njmp     GameManager__safePopScene                                      ; +0x86, 0x1402ccf06", "xrefs": ["<???> @ 0x140585178", "<???> @ 0x1406d2d50"], "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"}