//
// LocalLevelManager::updateLevelOrder from 0x1001c8f6c to 0x1001c8fe8 (124 bytes)
//
// 3 xrefs:
// > LocalLevelManager::moveLevelToTop @ 0x1001c8f5c
// > LocalLevelManager::dataLoaded @ 0x1001c934c
// > GJAccountManager::backupAccount @ 0x1003a0c64
//
// 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
//
int __fastcall LocalLevelManager::updateLevelOrder(LocalLevelManager *a1)
{
unsigned int v2; // w22
int v3; // w21
cocos2d::CCArray *m_localLevels; // x20
int v5; // w0
int v6; // w20
if ( !(unsigned int)sub_10024A36C(a1->m_localLevels) )
return 0;
v2 = 0;
v3 = -1;
do
{
m_localLevels = a1->m_localLevels;
v5 = sub_10024A36C(m_localLevels);
*(_DWORD *)(sub_10024A388(m_localLevels, (unsigned int)(v5 + v3--)) + 624) = v2;
v6 = ++v2;
}
while ( v2 < (unsigned int)sub_10024A36C(a1->m_localLevels) );
return v6;
}