{"type": "func", "start": 5371607152, "end": 5371607336, "name": "LeaderboardsLayer::loadLeaderboardFinished", "pseudocode": "// \n// LeaderboardsLayer::loadLeaderboardFinished from 0x1402c3870 to 0x1402c3928 (184 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140582c18\n// > <???> @ 0x1406d2a74\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 LeaderboardsLayer::loadLeaderboardFinished(LeaderboardsLayer *a1, cocos2d::CCArray *a2, const char *a3)\n{\n  size_t v6; // r8\n  cocos2d::CCObject *v7; // rcx\n  __int128 v8; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v9; // [rsp+30h] [rbp-18h]\n  __int64 v10; // [rsp+38h] [rbp-10h]\n\n  v9 = 0;\n  v10 = 0;\n  v6 = -1;\n  v8 = 0;\n  do\n    ++v6;\n  while ( a3[v6] );\n  sub_14003A930(&v8, a3, v6);\n  if ( (unsigned __int8)LeaderboardsLayer::isCorrect(&a1[-1].m_obAnchorPoint.y, &v8) )\n  {\n    v7 = *(cocos2d::CCObject **)&a1->m_uAutoReleaseCount;\n    if ( v7 )\n      cocos2d::CCObject::release(v7);\n    *(_QWORD *)&a1->m_uAutoReleaseCount = a2;\n    cocos2d::CCObject::retain(a2);\n    LeaderboardsLayer::setupLevelBrowser(\n      (LeaderboardsLayer *)((char *)a1 - 408),\n      *(cocos2d::CCArray **)&a1->m_uAutoReleaseCount);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_fVertexZ + 320LL))(*(_QWORD *)&a1->m_fVertexZ, 0);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_obPosition.y + 320LL))(\n      *(_QWORD *)&a1->m_obPosition.y,\n      0);\n  }\n}", "assembly": "; \n; LeaderboardsLayer::loadLeaderboardFinished from 0x1402c3870 to 0x1402c3928 (184 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140582c18\n; > <???> @ 0x1406d2a74\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_8], rbx                                               ; +0x0, 0x1402c3870\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402c3875\npush    rdi                                                            ; +0xa, 0x1402c387a\nsub     rsp, 40h                                                       ; +0xb, 0x1402c387b\nmov     rbx, rcx                                                       ; +0xf, 0x1402c387f\nxorps   xmm0, xmm0                                                     ; +0x12, 0x1402c3882\nxor     ecx, ecx                                                       ; +0x15, 0x1402c3885\nmov     rax, r8                                                        ; +0x17, 0x1402c3887\nmov     [rsp+48h+var_18], rcx                                          ; +0x1a, 0x1402c388a\nmov     rsi, rdx                                                       ; +0x1f, 0x1402c388f\nmov     [rsp+48h+var_10], rcx                                          ; +0x22, 0x1402c3892\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x27, 0x1402c3897\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x2e, 0x1402c389e\ninc     r8                                                             ; +0x33, 0x1402c38a3\ncmp     [rax+r8], cl                                                   ; +0x36, 0x1402c38a6\njnz     short loc_1402C38A3                                            ; +0x3a, 0x1402c38aa\nmov     rdx, rax                                                       ; +0x3c, 0x1402c38ac\nlea     rcx, [rsp+48h+var_28]                                          ; +0x3f, 0x1402c38af\ncall    sub_14003A930                                                  ; +0x44, 0x1402c38b4\nlea     rdx, [rsp+48h+var_28]                                          ; +0x49, 0x1402c38b9\nlea     rcx, [rbx-198h]                                                ; +0x4e, 0x1402c38be\ncall    LeaderboardsLayer__isCorrect                                   ; +0x55, 0x1402c38c5\ntest    al, al                                                         ; +0x5a, 0x1402c38ca\njz      short loc_1402C3918                                            ; +0x5c, 0x1402c38cc\nmov     rcx, [rbx+18h]                                                 ; +0x5e, 0x1402c38ce\ntest    rcx, rcx                                                       ; +0x62, 0x1402c38d2\njz      short loc_1402C38DD                                            ; +0x65, 0x1402c38d5\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x67, 0x1402c38d7\nmov     rcx, rsi                                                       ; +0x6d, 0x1402c38dd\nmov     [rbx+18h], rsi                                                 ; +0x70, 0x1402c38e0\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x74, 0x1402c38e4\nmov     rdx, [rbx+18h]                                                 ; +0x7a, 0x1402c38ea\nlea     rcx, [rbx-198h]                                                ; +0x7e, 0x1402c38ee\ncall    LeaderboardsLayer__setupLevelBrowser                           ; +0x85, 0x1402c38f5\nmov     rcx, [rbx+48h]                                                 ; +0x8a, 0x1402c38fa\nxor     edx, edx                                                       ; +0x8e, 0x1402c38fe\nmov     rax, [rcx]                                                     ; +0x90, 0x1402c3900\ncall    qword ptr [rax+140h]                                           ; +0x93, 0x1402c3903\nmov     rcx, [rbx+50h]                                                 ; +0x99, 0x1402c3909\nxor     edx, edx                                                       ; +0x9d, 0x1402c390d\nmov     rax, [rcx]                                                     ; +0x9f, 0x1402c390f\ncall    qword ptr [rax+140h]                                           ; +0xa2, 0x1402c3912\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa8, 0x1402c3918\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xad, 0x1402c391d\nadd     rsp, 40h                                                       ; +0xb2, 0x1402c3922\npop     rdi                                                            ; +0xb6, 0x1402c3926\nretn                                                                   ; +0xb7, 0x1402c3927", "xrefs": ["<???> @ 0x140582c18", "<???> @ 0x1406d2a74"], "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"}