//
// LocalLevelManager::updateLevelOrder from 0x14046b690 to 0x14046b6f6 (102 bytes)
//
// 7 xrefs:
// > AutoBackupPopup::onRestore @ 0x1400cbb1e
// > EditLevelLayer::FLAlert_Clicked @ 0x14017c4c3
// > GJAccountManager::backupAccount @ 0x140307795
// > LocalLevelManager::dataLoaded @ 0x14046bc2a
// > LocalLevelManager::importLevelsFromFile @ 0x14046eedf
// > LocalLevelManager::filesPicked @ 0x14046f526
// > ??> @ 0x140928088
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:32:36 +0000
//
__int64 __fastcall LocalLevelManager::updateLevelOrder(__int64 a1)
{
unsigned int i; // ebx
unsigned int v3; // eax
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 368)); ++i )
{
v3 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 368));
*((_DWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 368), v3 + ~i) + 176) = i;
}
return i;
}