{"type": "func", "start": 4299524212, "end": 4299524524, "name": "LeaderboardsLayer::setupLevelBrowser", "pseudocode": "// \n// LeaderboardsLayer::setupLevelBrowser from 0x100458874 to 0x1004589ac (312 bytes)\n// \n// 3 xrefs:\n// > LeaderboardsLayer::selectLeaderboard @ 0x1004586f4\n// > LeaderboardsLayer::selectLeaderboard @ 0x100458720\n// > LeaderboardsLayer::loadLeaderboardFinished @ 0x100458dec\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::setupLevelBrowser(__int64 *a1, __int64 a2)\n{\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __int64 v6; // x0\n  char *v7; // x0\n  _QWORD *v8; // x0\n  __int64 v9; // x20\n  float v11; // [xsp+0h] [xbp-20h] BYREF\n  __int64 v12; // [xsp+8h] [xbp-18h] BYREF\n\n  if ( a1[53] )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1[53]);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[53] + 536LL))(a1[53]);\n    a1[53] = 0;\n  }\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v12);\n  if ( a2 )\n    v7 = CustomListView::create(a2, 0, 0, 12, 220.0, 356.0, 0.0);\n  else\n    v7 = nullptr;\n  v8 = GJListLayer::create((__int64)v7, 0, 0xFF3E72BF, 0, 356.0, 220.0);\n  a1[53] = (__int64)v8;\n  (*(void (__fastcall **)(__int64 *, _QWORD *))(*a1 + 456))(a1, v8);\n  v9 = a1[53];\n  sub_1000262BC(\n    &v11,\n    (float)(*(float *)&v12 + -356.0) * 0.5,\n    (float)((float)((float)(*((float *)&v12 + 1) + -220.0) * 0.5) + -10.0) + 5.0);\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 184LL))(v9, &v11);\n  return sub_1004589AC(a1);\n}", "assembly": "; \n; LeaderboardsLayer::setupLevelBrowser from 0x100458874 to 0x1004589ac (312 bytes)\n; \n; 3 xrefs:\n; > LeaderboardsLayer::selectLeaderboard @ 0x1004586f4\n; > LeaderboardsLayer::selectLeaderboard @ 0x100458720\n; > LeaderboardsLayer::loadLeaderboardFinished @ 0x100458dec\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; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100458874\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100458878\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10045887c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100458880\nMOV             X20, X1                                                ; +0x10, 0x100458884\nMOV             X19, X0                                                ; +0x14, 0x100458888\nLDR             X8, [X0,#0x1A8]                                        ; +0x18, 0x10045888c\nCBZ             X8, loc_1004588C0                                      ; +0x1c, 0x100458890\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x100458894\nLDR             X8, [X0]                                               ; +0x24, 0x100458898\nLDR             X8, [X8,#0xA0]                                         ; +0x28, 0x10045889c\nBLR             X8                                                     ; +0x2c, 0x1004588a0\nLDR             X1, [X19,#0x1A8]                                       ; +0x30, 0x1004588a4\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x34, 0x1004588a8\nLDR             X0, [X19,#0x1A8]                                       ; +0x38, 0x1004588ac\nLDR             X8, [X0]                                               ; +0x3c, 0x1004588b0\nLDR             X8, [X8,#0x218]                                        ; +0x40, 0x1004588b4\nBLR             X8                                                     ; +0x44, 0x1004588b8\nSTR             XZR, [X19,#0x1A8]                                      ; +0x48, 0x1004588bc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x1004588c0\nADD             X8, SP, #0x20+var_18                                   ; +0x50, 0x1004588c4\nBL              cocos2d__CCDirector__getWinSize                        ; +0x54, 0x1004588c8\nCBZ             X20, loc_1004588FC                                     ; +0x58, 0x1004588cc\nMOV             W8, #0x435C0000                                        ; +0x5c, 0x1004588d0\nFMOV            S0, W8                                                 ; +0x60, 0x1004588d4\nMOV             W8, #0x43B20000                                        ; +0x64, 0x1004588d8\nFMOV            S1, W8                                                 ; +0x68, 0x1004588dc\nFMOV            S2, WZR                                                ; +0x6c, 0x1004588e0\nMOV             X0, X20                                                ; +0x70, 0x1004588e4\nMOV             X1, #0                                                 ; +0x74, 0x1004588e8\nMOV             W2, #0                                                 ; +0x78, 0x1004588ec\nMOV             W3, #0xC                                               ; +0x7c, 0x1004588f0\nBL              CustomListView__create                                 ; +0x80, 0x1004588f4\nB               loc_100458900                                          ; +0x84, 0x1004588f8\nMOV             X0, #0                                                 ; +0x88, 0x1004588fc\nMOV             W8, #0x43B20000                                        ; +0x8c, 0x100458900\nFMOV            S0, W8                                                 ; +0x90, 0x100458904\nMOV             W8, #0x435C0000                                        ; +0x94, 0x100458908\nFMOV            S1, W8                                                 ; +0x98, 0x10045890c\nMOV             X1, #0                                                 ; +0x9c, 0x100458910\nMOV             W2, #0xFF3E72BF                                        ; +0xa0, 0x100458914\nMOV             W3, #0                                                 ; +0xa8, 0x10045891c\nBL              GJListLayer__create                                    ; +0xac, 0x100458920\nMOV             X1, X0                                                 ; +0xb0, 0x100458924\nSTR             X0, [X19,#0x1A8]                                       ; +0xb4, 0x100458928\nLDR             X8, [X19]                                              ; +0xb8, 0x10045892c\nLDR             X8, [X8,#0x1C8]                                        ; +0xbc, 0x100458930\nMOV             X0, X19                                                ; +0xc0, 0x100458934\nBLR             X8                                                     ; +0xc4, 0x100458938\nMOV             W8, #0xC3B20000                                        ; +0xc8, 0x10045893c\nFMOV            S0, W8                                                 ; +0xcc, 0x100458940\nLDP             S1, S2, [SP,#0x20+var_18]                              ; +0xd0, 0x100458944\nFADD            S0, S1, S0                                             ; +0xd4, 0x100458948\nFMOV            S1, #0.5                                               ; +0xd8, 0x10045894c\nFMUL            S0, S0, S1                                             ; +0xdc, 0x100458950\nMOV             W8, #0xC35C0000                                        ; +0xe0, 0x100458954\nFMOV            S3, W8                                                 ; +0xe4, 0x100458958\nFADD            S2, S2, S3                                             ; +0xe8, 0x10045895c\nFMUL            S1, S2, S1                                             ; +0xec, 0x100458960\nFMOV            S2, #-10.0                                             ; +0xf0, 0x100458964\nFADD            S1, S1, S2                                             ; +0xf4, 0x100458968\nLDR             X20, [X19,#0x1A8]                                      ; +0xf8, 0x10045896c\nFMOV            S2, #5.0                                               ; +0xfc, 0x100458970\nFADD            S1, S1, S2                                             ; +0x100, 0x100458974\nMOV             X0, SP                                                 ; +0x104, 0x100458978\nBL              sub_1000262BC                                          ; +0x108, 0x10045897c\nLDR             X8, [X20]                                              ; +0x10c, 0x100458980\nLDR             X8, [X8,#0xB8]                                         ; +0x110, 0x100458984\nMOV             X1, SP                                                 ; +0x114, 0x100458988\nMOV             X0, X20                                                ; +0x118, 0x10045898c\nBLR             X8                                                     ; +0x11c, 0x100458990\nMOV             X0, X19                                                ; +0x120, 0x100458994\nBL              sub_1004589AC                                          ; +0x124, 0x100458998\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x128, 0x10045899c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x12c, 0x1004589a0\nADD             SP, SP, #0x30 ; '0'                                    ; +0x130, 0x1004589a4\nRET                                                                    ; +0x134, 0x1004589a8", "xrefs": ["LeaderboardsLayer::selectLeaderboard @ 0x1004586f4", "LeaderboardsLayer::selectLeaderboard @ 0x100458720", "LeaderboardsLayer::loadLeaderboardFinished @ 0x100458dec"], "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"}