{"type": "func", "start": 5371609296, "end": 5371609409, "name": "LeaderboardsLayer::onBack", "pseudocode": "// \n// LeaderboardsLayer::onBack from 0x1402c40d0 to 0x1402c4141 (113 bytes)\n// \n// 3 xrefs:\n// > LeaderboardsLayer::keyBackClicked @ 0x1402c4159\n// > LeaderboardsLayer::init @ 0x1402c257d\n// > <???> @ 0x1406d2ab0\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 LeaderboardsLayer::onBack(LeaderboardsLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  GameManager *v5; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\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  a1->setKeypadEnabled(a1, 0);\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::safePopScene(v5);\n}", "assembly": "; \n; LeaderboardsLayer::onBack from 0x1402c40d0 to 0x1402c4141 (113 bytes)\n; \n; 3 xrefs:\n; > LeaderboardsLayer::keyBackClicked @ 0x1402c4159\n; > LeaderboardsLayer::init @ 0x1402c257d\n; > <???> @ 0x1406d2ab0\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, 0x1402c40d0\nsub     rsp, 20h                                                       ; +0x2, 0x1402c40d2\nmov     rbx, rcx                                                       ; +0x6, 0x1402c40d6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x1402c40d9\nmov     rdx, [rax]                                                     ; +0xf, 0x1402c40df\nmov     rcx, rax                                                       ; +0x12, 0x1402c40e2\ncall    qword ptr [rdx+90h]                                            ; +0x15, 0x1402c40e5\nmov     rcx, rax                                                       ; +0x1b, 0x1402c40eb\nmov     rdx, rbx                                                       ; +0x1e, 0x1402c40ee\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x21, 0x1402c40f1\nmov     rax, [rbx]                                                     ; +0x27, 0x1402c40f7\nxor     edx, edx                                                       ; +0x2a, 0x1402c40fa\nmov     rcx, rbx                                                       ; +0x2c, 0x1402c40fc\ncall    qword ptr [rax+3D0h]                                           ; +0x2f, 0x1402c40ff\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x35, 0x1402c4105\njnz     short loc_1402C4137                                            ; +0x3d, 0x1402c410d\nmov     ecx, 668h; Size                                                ; +0x3f, 0x1402c410f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x44, 0x1402c4114\nmov     [rsp+28h+arg_0], rax                                           ; +0x49, 0x1402c4119\nmov     rcx, rax                                                       ; +0x4e, 0x1402c411e\ncall    sub_14017AB00                                                  ; +0x51, 0x1402c4121\nnop                                                                    ; +0x56, 0x1402c4126\nmov     cs:qword_1406C2ED8, rax                                        ; +0x57, 0x1402c4127\nmov     rdx, [rax]                                                     ; +0x5e, 0x1402c412e\nmov     rcx, rax                                                       ; +0x61, 0x1402c4131\ncall    qword ptr [rdx+48h]                                            ; +0x64, 0x1402c4134\nadd     rsp, 20h                                                       ; +0x67, 0x1402c4137\npop     rbx                                                            ; +0x6b, 0x1402c413b\njmp     GameManager__safePopScene                                      ; +0x6c, 0x1402c413c", "xrefs": ["LeaderboardsLayer::keyBackClicked @ 0x1402c4159", "LeaderboardsLayer::init @ 0x1402c257d", "<???> @ 0x1406d2ab0"], "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"}