//
// LeaderboardsLayer::refreshTabs from 0x1402c3100 to 0x1402c31a6 (166 bytes)
//
// 5 xrefs:
// > LeaderboardsLayer::setupLevelBrowser @ 0x1402c30e3
// > LeaderboardsLayer::toggleTabButtons @ 0x1402c376e
// > ??> @ 0x14068cbd4
// > ??> @ 0x14068cbe4
// > ??> @ 0x1406d29fc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LeaderboardsLayer::refreshTabs(LeaderboardsLayer *a1)
{
unsigned int i; // edi
struct cocos2d::CCObject *v3; // rbx
__int64 v4; // rcx
__int64 v5; // rax
__int64 v6; // rax
DS_Dictionary *v7; // rdx
for ( i = 0; i < cocos2d::CCArray::count(a1->m_tabs); ++i )
{
v3 = cocos2d::CCArray::objectAtIndex(a1->m_tabs, i);
v3->__vftable[12].encodeWithCoder(v3, nullptr);
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
v3->__vftable[12].setTag(v3, *(_DWORD *)(v6 + 124) - 1);
LOBYTE(v7) = 1;
v3->__vftable[12].encodeWithCoder(v3, v7);
}
}