//
// LeaderboardsLayer::refreshTabs from 0x1005138c0 to 0x100513952 (146 bytes)
//
// 2 xrefs:
// > LeaderboardsLayer::setupLevelBrowser @ 0x1005138ac
// > LeaderboardsLayer::toggleTabButtons @ 0x100513b44
//
// 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 __fastcall LeaderboardsLayer::refreshTabs(LeaderboardsLayer *a1)
{
unsigned int v1; // r14d
__int64 v2; // r15
cocos2d::CCDirector *v3; // rax
__int64 v4; // rax
if ( (unsigned int)sub_100720070(a1->m_tabs) )
{
v1 = 0;
do
{
v2 = sub_1007200C0(a1->m_tabs, v1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 984LL))(v2, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = ((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1008LL))(v2, (unsigned int)(*(_DWORD *)(v4 + 124) - 1));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 984LL))(v2, 1);
++v1;
}
while ( v1 < (unsigned int)sub_100720070(a1->m_tabs) );
}
}