{"type": "func", "start": 4299523968, "end": 4299524044, "name": "LeaderboardsLayer::onBack", "pseudocode": "// \n// LeaderboardsLayer::onBack from 0x100458780 to 0x1004587cc (76 bytes)\n// \n// 3 xrefs:\n// > LeaderboardsLayer::keyBackClicked @ 0x100459104\n// > sub_100459108 @ 0x10045910c\n// > LeaderboardsLayer::init @ 0x100457d18\n// \n// This function is hookable on this platform (idp: arm, 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:05:24 +0000\n// \n\n__int64 __fastcall LeaderboardsLayer::onBack(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  GameManager::sharedState();\n  return GameManager::safePopScene();\n}", "assembly": "; \n; LeaderboardsLayer::onBack from 0x100458780 to 0x1004587cc (76 bytes)\n; \n; 3 xrefs:\n; > LeaderboardsLayer::keyBackClicked @ 0x100459104\n; > sub_100459108 @ 0x10045910c\n; > LeaderboardsLayer::init @ 0x100457d18\n; \n; This function is hookable on this platform (idp: arm, 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:05:24 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100458780\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100458784\nADD             X29, SP, #0x10                                         ; +0x8, 0x100458788\nMOV             X19, X0                                                ; +0xc, 0x10045878c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x100458790\nLDR             X8, [X0]                                               ; +0x14, 0x100458794\nLDR             X8, [X8,#0xA0]                                         ; +0x18, 0x100458798\nBLR             X8                                                     ; +0x1c, 0x10045879c\nMOV             X1, X19                                                ; +0x20, 0x1004587a0\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x24, 0x1004587a4\nLDR             X8, [X19]                                              ; +0x28, 0x1004587a8\nLDR             X8, [X8,#0x430]                                        ; +0x2c, 0x1004587ac\nMOV             X0, X19                                                ; +0x30, 0x1004587b0\nMOV             W1, #0                                                 ; +0x34, 0x1004587b4\nBLR             X8                                                     ; +0x38, 0x1004587b8\nBL              GameManager__sharedState                               ; +0x3c, 0x1004587bc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x1004587c0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x1004587c4\nB               GameManager__safePopScene                              ; +0x48, 0x1004587c8", "xrefs": ["LeaderboardsLayer::keyBackClicked @ 0x100459104", "sub_100459108 @ 0x10045910c", "LeaderboardsLayer::init @ 0x100457d18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}