{"type": "func", "start": 5372760960, "end": 5372761076, "name": "LeaderboardsLayer::onBack", "pseudocode": "// \n// LeaderboardsLayer::onBack from 0x1403dd380 to 0x1403dd3f4 (116 bytes)\n// \n// 3 xrefs:\n// > LeaderboardsLayer::keyBackClicked @ 0x1403dd409\n// > LeaderboardsLayer::init @ 0x1403db718\n// > <???> @ 0x140924d04\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:39 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall LeaderboardsLayer::onBack(struct cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  __int64 v4; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\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  (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  return GameManager::safePopScene(v4);\n}", "assembly": "; \n; LeaderboardsLayer::onBack from 0x1403dd380 to 0x1403dd3f4 (116 bytes)\n; \n; 3 xrefs:\n; > LeaderboardsLayer::keyBackClicked @ 0x1403dd409\n; > LeaderboardsLayer::init @ 0x1403db718\n; > <???> @ 0x140924d04\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:39 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403dd380\nsub     rsp, 20h                                                       ; +0x2, 0x1403dd382\nmov     rbx, rcx                                                       ; +0x6, 0x1403dd386\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x1403dd389\nmov     rdx, [rax]                                                     ; +0xf, 0x1403dd38f\nmov     rcx, rax                                                       ; +0x12, 0x1403dd392\ncall    qword ptr [rdx+90h]                                            ; +0x15, 0x1403dd395\nmov     rcx, rax                                                       ; +0x1b, 0x1403dd39b\nmov     rdx, rbx                                                       ; +0x1e, 0x1403dd39e\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x21, 0x1403dd3a1\nmov     rax, [rbx]                                                     ; +0x27, 0x1403dd3a7\nxor     edx, edx                                                       ; +0x2a, 0x1403dd3aa\nmov     rcx, rbx                                                       ; +0x2c, 0x1403dd3ac\ncall    qword ptr [rax+3E0h]                                           ; +0x2f, 0x1403dd3af\ncmp     cs:qword_14090BFD0, 0                                          ; +0x35, 0x1403dd3b5\njnz     short loc_1403DD3EA                                            ; +0x3d, 0x1403dd3bd\nmov     ecx, 6E8h; Size                                                ; +0x3f, 0x1403dd3bf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x44, 0x1403dd3c4\nmov     [rsp+28h+arg_0], rax                                           ; +0x49, 0x1403dd3c9\nmov     rcx, rax                                                       ; +0x4e, 0x1403dd3ce\ncall    GameManager__GameManager                                       ; +0x51, 0x1403dd3d1\nnop                                                                    ; +0x56, 0x1403dd3d6\nmov     cs:qword_14090BFD0, rax                                        ; +0x57, 0x1403dd3d7\nmov     rcx, [rax]                                                     ; +0x5e, 0x1403dd3de\nmov     rdx, [rcx+48h]                                                 ; +0x61, 0x1403dd3e1\nmov     rcx, rax                                                       ; +0x65, 0x1403dd3e5\ncall    rdx                                                            ; +0x68, 0x1403dd3e8\nadd     rsp, 20h                                                       ; +0x6a, 0x1403dd3ea\npop     rbx                                                            ; +0x6e, 0x1403dd3ee\njmp     GameManager__safePopScene                                      ; +0x6f, 0x1403dd3ef", "xrefs": ["LeaderboardsLayer::keyBackClicked @ 0x1403dd409", "LeaderboardsLayer::init @ 0x1403db718", "<???> @ 0x140924d04"], "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"}