{"type": "func", "start": 4299525492, "end": 4299525676, "name": "LeaderboardsLayer::loadLeaderboardFinished", "pseudocode": "// \n// LeaderboardsLayer::loadLeaderboardFinished from 0x100458d74 to 0x100458e2c (184 bytes)\n// \n// 2 xrefs:\n// > sub_100458F04 @ 0x100458f08\n// > <???> @ 0x100967478\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\nvoid __fastcall LeaderboardsLayer::loadLeaderboardFinished(__int64 a1, __int64 a2, char *__s)\n{\n  char isCorrect; // w0\n  char v6; // w21\n  _DWORD *v7; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v9; // [xsp+1Fh] [xbp-21h]\n\n  sub_100009900(__p, __s);\n  isCorrect = LeaderboardsLayer::isCorrect(a1, __p);\n  v6 = isCorrect;\n  if ( v9 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( (v6 & 1) == 0 )\n      return;\n  }\n  else if ( (isCorrect & 1) == 0 )\n  {\n    return;\n  }\n  v7 = *(_DWORD **)(a1 + 432);\n  if ( v7 )\n  {\n    cocos2d::CCObject::release(v7);\n    *(_QWORD *)(a1 + 432) = 0;\n  }\n  *(_QWORD *)(a1 + 432) = a2;\n  cocos2d::CCObject::retain(a2);\n  LeaderboardsLayer::setupLevelBrowser((__int64 *)a1, *(_QWORD *)(a1 + 432));\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 480) + 344LL))(*(_QWORD *)(a1 + 480), 0);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 488) + 344LL))(*(_QWORD *)(a1 + 488), 0);\n}", "assembly": "; \n; LeaderboardsLayer::loadLeaderboardFinished from 0x100458d74 to 0x100458e2c (184 bytes)\n; \n; 2 xrefs:\n; > sub_100458F04 @ 0x100458f08\n; > <???> @ 0x100967478\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, #0x50                                          ; +0x0, 0x100458d74\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100458d78\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100458d7c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100458d80\nADD             X29, SP, #0x40                                         ; +0x10, 0x100458d84\nMOV             X20, X1                                                ; +0x14, 0x100458d88\nMOV             X19, X0                                                ; +0x18, 0x100458d8c\nADD             X0, SP, #0x40+__p; int                                 ; +0x1c, 0x100458d90\nMOV             X1, X2; __s                                            ; +0x20, 0x100458d94\nBL              sub_100009900                                          ; +0x24, 0x100458d98\nADD             X1, SP, #0x40+__p                                      ; +0x28, 0x100458d9c\nMOV             X0, X19                                                ; +0x2c, 0x100458da0\nBL              LeaderboardsLayer__isCorrect                           ; +0x30, 0x100458da4\nMOV             X21, X0                                                ; +0x34, 0x100458da8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x38, 0x100458dac\nTBNZ            W8, #0x1F, loc_100458DBC                               ; +0x3c, 0x100458db0\nTBNZ            W21, #0, loc_100458DC8                                 ; +0x40, 0x100458db4\nB               loc_100458E18                                          ; +0x44, 0x100458db8\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x48, 0x100458dbc\nBL              __ZdlPv; operator delete(void *)                       ; +0x4c, 0x100458dc0\nTBZ             W21, #0, loc_100458E18                                 ; +0x50, 0x100458dc4\nLDR             X0, [X19,#0x1B0]                                       ; +0x54, 0x100458dc8\nCBZ             X0, loc_100458DD8                                      ; +0x58, 0x100458dcc\nBL              cocos2d__CCObject__release                             ; +0x5c, 0x100458dd0\nSTR             XZR, [X19,#0x1B0]                                      ; +0x60, 0x100458dd4\nSTR             X20, [X19,#0x1B0]                                      ; +0x64, 0x100458dd8\nMOV             X0, X20                                                ; +0x68, 0x100458ddc\nBL              cocos2d__CCObject__retain                              ; +0x6c, 0x100458de0\nLDR             X1, [X19,#0x1B0]                                       ; +0x70, 0x100458de4\nMOV             X0, X19                                                ; +0x74, 0x100458de8\nBL              LeaderboardsLayer__setupLevelBrowser                   ; +0x78, 0x100458dec\nLDR             X0, [X19,#0x1E0]                                       ; +0x7c, 0x100458df0\nLDR             X8, [X0]                                               ; +0x80, 0x100458df4\nLDR             X8, [X8,#0x158]                                        ; +0x84, 0x100458df8\nMOV             W1, #0                                                 ; +0x88, 0x100458dfc\nBLR             X8                                                     ; +0x8c, 0x100458e00\nLDR             X0, [X19,#0x1E8]                                       ; +0x90, 0x100458e04\nLDR             X8, [X0]                                               ; +0x94, 0x100458e08\nLDR             X8, [X8,#0x158]                                        ; +0x98, 0x100458e0c\nMOV             W1, #0                                                 ; +0x9c, 0x100458e10\nBLR             X8                                                     ; +0xa0, 0x100458e14\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x100458e18\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x100458e1c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x100458e20\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x100458e24\nRET                                                                    ; +0xb4, 0x100458e28", "xrefs": ["sub_100458F04 @ 0x100458f08", "<???> @ 0x100967478"], "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"}