{"type": "func", "start": 5371605248, "end": 5371605414, "name": "LeaderboardsLayer::refreshTabs", "pseudocode": "// \n// LeaderboardsLayer::refreshTabs from 0x1402c3100 to 0x1402c31a6 (166 bytes)\n// \n// 5 xrefs:\n// > LeaderboardsLayer::setupLevelBrowser @ 0x1402c30e3\n// > LeaderboardsLayer::toggleTabButtons @ 0x1402c376e\n// > <???> @ 0x14068cbd4\n// > <???> @ 0x14068cbe4\n// > <???> @ 0x1406d29fc\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::refreshTabs(LeaderboardsLayer *a1)\n{\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v3; // rbx\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  __int64 v6; // rax\n  DS_Dictionary *v7; // rdx\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_tabs); ++i )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_tabs, i);\n    v3->__vftable[12].encodeWithCoder(v3, nullptr);\n    v5 = cocos2d::CCDirector::sharedDirector(v4);\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);\n    v3->__vftable[12].setTag(v3, *(_DWORD *)(v6 + 124) - 1);\n    LOBYTE(v7) = 1;\n    v3->__vftable[12].encodeWithCoder(v3, v7);\n  }\n}", "assembly": "; \n; LeaderboardsLayer::refreshTabs from 0x1402c3100 to 0x1402c31a6 (166 bytes)\n; \n; 5 xrefs:\n; > LeaderboardsLayer::setupLevelBrowser @ 0x1402c30e3\n; > LeaderboardsLayer::toggleTabButtons @ 0x1402c376e\n; > <???> @ 0x14068cbd4\n; > <???> @ 0x14068cbe4\n; > <???> @ 0x1406d29fc\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], rsi                                               ; +0x0, 0x1402c3100\npush    rdi                                                            ; +0x5, 0x1402c3105\nsub     rsp, 20h                                                       ; +0x6, 0x1402c3106\nmov     rsi, rcx                                                       ; +0xa, 0x1402c310a\nxor     edi, edi                                                       ; +0xd, 0x1402c310d\nmov     rcx, [rcx+1F0h]                                                ; +0xf, 0x1402c310f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x1402c3116\ntest    eax, eax                                                       ; +0x1c, 0x1402c311c\njz      short loc_1402C319B                                            ; +0x1e, 0x1402c311e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x20, 0x1402c3120\nnop     word ptr [rax+rax+00000000h]                                   ; +0x25, 0x1402c3125\nmov     rcx, [rsi+1F0h]                                                ; +0x30, 0x1402c3130\nmov     edx, edi                                                       ; +0x37, 0x1402c3137\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1402c3139\nxor     edx, edx                                                       ; +0x3f, 0x1402c313f\nmov     rcx, rax                                                       ; +0x41, 0x1402c3141\nmov     rbx, rax                                                       ; +0x44, 0x1402c3144\nmov     r8, [rax]                                                      ; +0x47, 0x1402c3147\ncall    qword ptr [r8+388h]                                            ; +0x4a, 0x1402c314a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x51, 0x1402c3151\nmov     rcx, rax                                                       ; +0x57, 0x1402c3157\nmov     rdx, [rax]                                                     ; +0x5a, 0x1402c315a\ncall    qword ptr [rdx+90h]                                            ; +0x5d, 0x1402c315d\nmov     r8, [rbx]                                                      ; +0x63, 0x1402c3163\nmov     rcx, rbx                                                       ; +0x66, 0x1402c3166\nmov     edx, [rax+7Ch]                                                 ; +0x69, 0x1402c3169\ndec     edx                                                            ; +0x6c, 0x1402c316c\ncall    qword ptr [r8+3A0h]                                            ; +0x6e, 0x1402c316e\nmov     rax, [rbx]                                                     ; +0x75, 0x1402c3175\nmov     dl, 1                                                          ; +0x78, 0x1402c3178\nmov     rcx, rbx                                                       ; +0x7a, 0x1402c317a\ncall    qword ptr [rax+388h]                                           ; +0x7d, 0x1402c317d\nmov     rcx, [rsi+1F0h]                                                ; +0x83, 0x1402c3183\ninc     edi                                                            ; +0x8a, 0x1402c318a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8c, 0x1402c318c\ncmp     edi, eax                                                       ; +0x92, 0x1402c3192\njb      short loc_1402C3130                                            ; +0x94, 0x1402c3194\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x96, 0x1402c3196\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x9b, 0x1402c319b\nadd     rsp, 20h                                                       ; +0xa0, 0x1402c31a0\npop     rdi                                                            ; +0xa4, 0x1402c31a4\nretn                                                                   ; +0xa5, 0x1402c31a5", "xrefs": ["LeaderboardsLayer::setupLevelBrowser @ 0x1402c30e3", "LeaderboardsLayer::toggleTabButtons @ 0x1402c376e", "<???> @ 0x14068cbd4", "<???> @ 0x14068cbe4", "<???> @ 0x1406d29fc"], "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"}