{"type": "func", "start": 5371866000, "end": 5371866150, "name": "LevelLeaderboard::loadLeaderboardFinished", "pseudocode": "// \n// LevelLeaderboard::loadLeaderboardFinished from 0x140302b90 to 0x140302c26 (150 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140588580\n// > <???> @ 0x1406d43f4\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\nvoid LevelLeaderboard::loadLeaderboardFinished(LevelLeaderboard *a1, cocos2d::CCArray *a2, const char *a3)\n{\n  cocos2d::CCObject *v5; // rcx\n  __int64 v6; // rdx\n\n  if ( LevelLeaderboard::isCorrect((LevelLeaderboard *)((char *)a1 - 632), a3) )\n  {\n    v5 = *(cocos2d::CCObject **)&a1->m_uIndexInArray;\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    *(_QWORD *)&a1->m_uIndexInArray = a2;\n    cocos2d::CCObject::retain(a2);\n    LevelLeaderboard::setupLeaderboard(\n      (LevelLeaderboard *)((char *)a1 - 632),\n      *(cocos2d::CCArray **)&a1->m_uIndexInArray);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uOrderOfArrival + 320LL))(\n      *(_QWORD *)&a1->m_uOrderOfArrival,\n      0);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fRotationX + 320LL))(*(_QWORD *)&a1->m_fRotationX, 0);\n    LOBYTE(v6) = a1->m_uAutoReleaseCount != 3;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, v6);\n  }\n}", "assembly": "; \n; LevelLeaderboard::loadLeaderboardFinished from 0x140302b90 to 0x140302c26 (150 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140588580\n; > <???> @ 0x1406d43f4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140302b90\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140302b95\npush    rdi                                                            ; +0xa, 0x140302b9a\nsub     rsp, 20h                                                       ; +0xb, 0x140302b9b\nmov     rsi, rdx                                                       ; +0xf, 0x140302b9f\nmov     rbx, rcx                                                       ; +0x12, 0x140302ba2\nmov     rdx, r8                                                        ; +0x15, 0x140302ba5\nadd     rcx, 0FFFFFFFFFFFFFD88h                                        ; +0x18, 0x140302ba8\ncall    LevelLeaderboard__isCorrect                                    ; +0x1f, 0x140302baf\ntest    al, al                                                         ; +0x24, 0x140302bb4\njz      short loc_140302C16                                            ; +0x26, 0x140302bb6\nmov     rcx, [rbx+20h]                                                 ; +0x28, 0x140302bb8\ntest    rcx, rcx                                                       ; +0x2c, 0x140302bbc\njz      short loc_140302BC7                                            ; +0x2f, 0x140302bbf\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x31, 0x140302bc1\nmov     rcx, rsi                                                       ; +0x37, 0x140302bc7\nmov     [rbx+20h], rsi                                                 ; +0x3a, 0x140302bca\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3e, 0x140302bce\nmov     rdx, [rbx+20h]                                                 ; +0x44, 0x140302bd4\nlea     rcx, [rbx-278h]                                                ; +0x48, 0x140302bd8\ncall    LevelLeaderboard__setupLeaderboard                             ; +0x4f, 0x140302bdf\nmov     rcx, [rbx+30h]                                                 ; +0x54, 0x140302be4\nxor     edx, edx                                                       ; +0x58, 0x140302be8\nmov     rax, [rcx]                                                     ; +0x5a, 0x140302bea\ncall    qword ptr [rax+140h]                                           ; +0x5d, 0x140302bed\nmov     rcx, [rbx+38h]                                                 ; +0x63, 0x140302bf3\nxor     edx, edx                                                       ; +0x67, 0x140302bf7\nmov     rax, [rcx]                                                     ; +0x69, 0x140302bf9\ncall    qword ptr [rax+140h]                                           ; +0x6c, 0x140302bfc\nmov     rcx, [rbx+40h]                                                 ; +0x72, 0x140302c02\ncmp     dword ptr [rbx+18h], 3                                         ; +0x76, 0x140302c06\nsetnz   dl                                                             ; +0x7a, 0x140302c0a\nmov     rax, [rcx]                                                     ; +0x7d, 0x140302c0d\ncall    qword ptr [rax+140h]                                           ; +0x80, 0x140302c10\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x140302c16\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8b, 0x140302c1b\nadd     rsp, 20h                                                       ; +0x90, 0x140302c20\npop     rdi                                                            ; +0x94, 0x140302c24\nretn                                                                   ; +0x95, 0x140302c25", "xrefs": ["<???> @ 0x140588580", "<???> @ 0x1406d43f4"], "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"}