{"type": "func", "start": 5372756704, "end": 5372756878, "name": "LeaderboardsLayer::refreshTabs", "pseudocode": "// \n// LeaderboardsLayer::refreshTabs from 0x1403dc2e0 to 0x1403dc38e (174 bytes)\n// \n// 5 xrefs:\n// > LeaderboardsLayer::setupLevelBrowser @ 0x1403dc2ba\n// > LeaderboardsLayer::toggleTabButtons @ 0x1403dc9a7\n// > <???> @ 0x1408c40ec\n// > <???> @ 0x1408c40fc\n// > <???> @ 0x140924c68\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\nunsigned int __fastcall LeaderboardsLayer::refreshTabs(__int64 a1)\n{\n  unsigned int v2; // edi\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v4; // rbx\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rdx\n\n  v2 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 496));\n  if ( result )\n  {\n    do\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 496), v2);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v4 + 920LL))(v4, 0);\n      v6 = cocos2d::CCDirector::sharedDirector(v5);\n      v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v4 + 944LL))(\n        v4,\n        (unsigned int)(*(_DWORD *)(v7 + 128) - 1));\n      LOBYTE(v8) = 1;\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 920LL))(v4, v8);\n      ++v2;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 496));\n    }\n    while ( v2 < result );\n  }\n  return result;\n}", "assembly": "; \n; LeaderboardsLayer::refreshTabs from 0x1403dc2e0 to 0x1403dc38e (174 bytes)\n; \n; 5 xrefs:\n; > LeaderboardsLayer::setupLevelBrowser @ 0x1403dc2ba\n; > LeaderboardsLayer::toggleTabButtons @ 0x1403dc9a7\n; > <???> @ 0x1408c40ec\n; > <???> @ 0x1408c40fc\n; > <???> @ 0x140924c68\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], rsi                                               ; +0x0, 0x1403dc2e0\npush    rdi                                                            ; +0x5, 0x1403dc2e5\nsub     rsp, 20h                                                       ; +0x6, 0x1403dc2e6\nmov     rsi, rcx                                                       ; +0xa, 0x1403dc2ea\nxor     edi, edi                                                       ; +0xd, 0x1403dc2ed\nmov     rcx, [rcx+1F0h]                                                ; +0xf, 0x1403dc2ef\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x1403dc2f6\ntest    eax, eax                                                       ; +0x1c, 0x1403dc2fc\njz      loc_1403DC383                                                  ; +0x1e, 0x1403dc2fe\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x1403dc304\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x1403dc309\nmov     rcx, [rsi+1F0h]                                                ; +0x30, 0x1403dc310\nmov     edx, edi                                                       ; +0x37, 0x1403dc317\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1403dc319\nxor     edx, edx                                                       ; +0x3f, 0x1403dc31f\nmov     rbx, rax                                                       ; +0x41, 0x1403dc321\nmov     rcx, [rax]                                                     ; +0x44, 0x1403dc324\nmov     r8, [rcx+398h]                                                 ; +0x47, 0x1403dc327\nmov     rcx, rax                                                       ; +0x4e, 0x1403dc32e\ncall    r8                                                             ; +0x51, 0x1403dc331\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x54, 0x1403dc334\nmov     rcx, [rax]                                                     ; +0x5a, 0x1403dc33a\nmov     rdx, [rcx+90h]                                                 ; +0x5d, 0x1403dc33d\nmov     rcx, rax                                                       ; +0x64, 0x1403dc344\ncall    rdx                                                            ; +0x67, 0x1403dc347\nmov     rcx, rbx                                                       ; +0x69, 0x1403dc349\nmov     edx, [rax+80h]                                                 ; +0x6c, 0x1403dc34c\nmov     rax, [rbx]                                                     ; +0x72, 0x1403dc352\ndec     edx                                                            ; +0x75, 0x1403dc355\ncall    qword ptr [rax+3B0h]                                           ; +0x77, 0x1403dc357\nmov     rax, [rbx]                                                     ; +0x7d, 0x1403dc35d\nmov     dl, 1                                                          ; +0x80, 0x1403dc360\nmov     rcx, rbx                                                       ; +0x82, 0x1403dc362\ncall    qword ptr [rax+398h]                                           ; +0x85, 0x1403dc365\nmov     rcx, [rsi+1F0h]                                                ; +0x8b, 0x1403dc36b\ninc     edi                                                            ; +0x92, 0x1403dc372\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x94, 0x1403dc374\ncmp     edi, eax                                                       ; +0x9a, 0x1403dc37a\njb      short loc_1403DC310                                            ; +0x9c, 0x1403dc37c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9e, 0x1403dc37e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa3, 0x1403dc383\nadd     rsp, 20h                                                       ; +0xa8, 0x1403dc388\npop     rdi                                                            ; +0xac, 0x1403dc38c\nretn                                                                   ; +0xad, 0x1403dc38d", "xrefs": ["LeaderboardsLayer::setupLevelBrowser @ 0x1403dc2ba", "LeaderboardsLayer::toggleTabButtons @ 0x1403dc9a7", "<???> @ 0x1408c40ec", "<???> @ 0x1408c40fc", "<???> @ 0x140924c68"], "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"}