//
// LocalLevelManager::updateLevelOrder from 0x542658 to 0x54268a (50 bytes)
//
// 5 xrefs:
// > LocalLevelManager::moveLevelToTop @ 0x5426c6
// > LocalLevelManager::moveLevelToBottom @ 0x542706
// > LocalLevelManager::importLevelsFromPaths @ 0x542d88
// > LocalLevelManager::dataLoaded @ 0x544792
// > GJAccountManager::backupAccount @ 0x583186
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:52:20 +0000
//
unsigned int __fastcall LocalLevelManager::updateLevelOrder(LocalLevelManager *this)
{
unsigned int i; // r4
cocos2d::CCArray *v3; // r6
int v4; // r0
for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 71)); ++i )
{
v3 = *((cocos2d::CCArray **)this + 71);
v4 = cocos2d::CCArray::count(v3);
*(_DWORD *)(cocos2d::CCArray::objectAtIndex(v3, ~i + v4) + 460) = i;
}
return i;
}