{"type": "func", "start": 5372758672, "end": 5372758856, "name": "LeaderboardsLayer::loadLeaderboardFinished", "pseudocode": "// \n// LeaderboardsLayer::loadLeaderboardFinished from 0x1403dca90 to 0x1403dcb48 (184 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140787478\n// > <???> @ 0x140924cc8\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__int64 __fastcall LeaderboardsLayer::loadLeaderboardFinished(__int64 a1, cocos2d::CCObject *a2, _BYTE *a3)\n{\n  size_t v6; // r8\n  __int64 result; // rax\n  cocos2d::CCObject *v8; // rcx\n  __int128 v9; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v10; // [rsp+30h] [rbp-18h]\n  __int64 v11; // [rsp+38h] [rbp-10h]\n\n  v10 = 0;\n  v11 = 0;\n  v6 = -1;\n  v9 = 0;\n  do\n    ++v6;\n  while ( a3[v6] );\n  sub_14003D230(&v9, a3, v6);\n  result = LeaderboardsLayer::isCorrect(a1 - 408, &v9);\n  if ( (_BYTE)result )\n  {\n    v8 = *(cocos2d::CCObject **)(a1 + 24);\n    if ( v8 )\n      cocos2d::CCObject::release(v8);\n    *(_QWORD *)(a1 + 24) = a2;\n    cocos2d::CCObject::retain(a2);\n    LeaderboardsLayer::setupLevelBrowser((__int64 *)(a1 - 408), *(cocos2d::CCObject **)(a1 + 24));\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 72) + 336LL))(*(_QWORD *)(a1 + 72), 0);\n    return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 80) + 336LL))(*(_QWORD *)(a1 + 80), 0);\n  }\n  return result;\n}", "assembly": "; \n; LeaderboardsLayer::loadLeaderboardFinished from 0x1403dca90 to 0x1403dcb48 (184 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140787478\n; > <???> @ 0x140924cc8\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403dca90\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1403dca95\npush    rdi                                                            ; +0xa, 0x1403dca9a\nsub     rsp, 40h                                                       ; +0xb, 0x1403dca9b\nmov     rbx, rcx                                                       ; +0xf, 0x1403dca9f\nxorps   xmm0, xmm0                                                     ; +0x12, 0x1403dcaa2\nxor     ecx, ecx                                                       ; +0x15, 0x1403dcaa5\nmov     rax, r8                                                        ; +0x17, 0x1403dcaa7\nmov     [rsp+48h+var_18], rcx                                          ; +0x1a, 0x1403dcaaa\nmov     rsi, rdx                                                       ; +0x1f, 0x1403dcaaf\nmov     [rsp+48h+var_10], rcx                                          ; +0x22, 0x1403dcab2\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x27, 0x1403dcab7\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x2e, 0x1403dcabe\ninc     r8                                                             ; +0x33, 0x1403dcac3\ncmp     [rax+r8], cl                                                   ; +0x36, 0x1403dcac6\njnz     short loc_1403DCAC3                                            ; +0x3a, 0x1403dcaca\nmov     rdx, rax                                                       ; +0x3c, 0x1403dcacc\nlea     rcx, [rsp+48h+var_28]                                          ; +0x3f, 0x1403dcacf\ncall    sub_14003D230                                                  ; +0x44, 0x1403dcad4\nlea     rdx, [rsp+48h+var_28]                                          ; +0x49, 0x1403dcad9\nlea     rcx, [rbx-198h]                                                ; +0x4e, 0x1403dcade\ncall    LeaderboardsLayer__isCorrect                                   ; +0x55, 0x1403dcae5\ntest    al, al                                                         ; +0x5a, 0x1403dcaea\njz      short loc_1403DCB38                                            ; +0x5c, 0x1403dcaec\nmov     rcx, [rbx+18h]                                                 ; +0x5e, 0x1403dcaee\ntest    rcx, rcx                                                       ; +0x62, 0x1403dcaf2\njz      short loc_1403DCAFD                                            ; +0x65, 0x1403dcaf5\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x67, 0x1403dcaf7\nmov     rcx, rsi                                                       ; +0x6d, 0x1403dcafd\nmov     [rbx+18h], rsi                                                 ; +0x70, 0x1403dcb00\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x74, 0x1403dcb04\nmov     rdx, [rbx+18h]                                                 ; +0x7a, 0x1403dcb0a\nlea     rcx, [rbx-198h]                                                ; +0x7e, 0x1403dcb0e\ncall    LeaderboardsLayer__setupLevelBrowser                           ; +0x85, 0x1403dcb15\nmov     rcx, [rbx+48h]                                                 ; +0x8a, 0x1403dcb1a\nxor     edx, edx                                                       ; +0x8e, 0x1403dcb1e\nmov     rax, [rcx]                                                     ; +0x90, 0x1403dcb20\ncall    qword ptr [rax+150h]                                           ; +0x93, 0x1403dcb23\nmov     rcx, [rbx+50h]                                                 ; +0x99, 0x1403dcb29\nxor     edx, edx                                                       ; +0x9d, 0x1403dcb2d\nmov     rax, [rcx]                                                     ; +0x9f, 0x1403dcb2f\ncall    qword ptr [rax+150h]                                           ; +0xa2, 0x1403dcb32\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa8, 0x1403dcb38\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xad, 0x1403dcb3d\nadd     rsp, 40h                                                       ; +0xb2, 0x1403dcb42\npop     rdi                                                            ; +0xb6, 0x1403dcb46\nretn                                                                   ; +0xb7, 0x1403dcb47", "xrefs": ["<???> @ 0x140787478", "<???> @ 0x140924cc8"], "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"}