//
// LocalLevelManager::updateLevelOrder from 0x140330890 to 0x140330910 (128 bytes)
//
// 4 xrefs:
// > EditLevelLayer::FLAlert_Clicked @ 0x1400d8ecf
// > GJAccountManager::backupAccount @ 0x140201bdb
// > LocalLevelManager::dataLoaded @ 0x140330a8f
// > ??> @ 0x1406d5024
//
// 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 LocalLevelManager::updateLevelOrder(LocalLevelManager *a1)
{
int v2; // ebx
unsigned int i; // edi
unsigned int v4; // eax
struct cocos2d::CCObject *v5; // rax
v2 = 0;
for ( i = 0; i < cocos2d::CCArray::count(a1->m_localLevels); ++v2 )
{
v4 = cocos2d::CCArray::count(a1->m_localLevels);
v5 = cocos2d::CCArray::objectAtIndex(a1->m_localLevels, v4 + -1 - i++);
v5[12].m_uAutoReleaseCount = v2;
}
return v2;
}