//
// LeaderboardsLayer::refreshTabs from 0x451e88 to 0x451eda (82 bytes)
//
// 2 xrefs:
// > LeaderboardsLayer::setupLevelBrowser @ 0x451fd4
// > LeaderboardsLayer::toggleTabButtons @ 0x452166
//
// 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 v2; // r5
int v3; // r0
int v4; // r4
void (__fastcall *v5)(int, int); // r7
cocos2d::CCDirector *v6; // r0
int v7; // r0
v2 = 0;
while ( v2 < cocos2d::CCArray::count(a1->m_tabs) )
{
v3 = cocos2d::CCArray::objectAtIndex(a1->m_tabs, v2++);
v4 = v3;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 492))(v3, 0);
v5 = *(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 504);
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (int)v6->getTouchDispatcher(v6);
v5(v4, *(_DWORD *)(v7 + 96) - 1);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 492))(v4, 1);
}
}