//
// LocalLevelManager::updateLevelOrder from 0x10025ebd8 to 0x10025ec54 (124 bytes)
//
// 5 xrefs:
// > LocalLevelManager::moveLevelToTop @ 0x10025ebc8
// > LocalLevelManager::moveLevelToBottom @ 0x10025ecb0
// > LocalLevelManager::dataLoaded @ 0x10025f2a0
// > LocalLevelManager::importLevelsFromPaths @ 0x10026181c
// > GJAccountManager::backupAccount @ 0x100447618
//
// This function is hookable on this platform (idp: arm, 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:01:37 +0000
//
__int64 __fastcall LocalLevelManager::updateLevelOrder(__int64 a1)
{
unsigned int v2; // w22
int v3; // w21
__int64 v4; // x20
int v5; // w0
__int64 v6; // x20
if ( !(unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 360)) )
return 0;
v2 = 0;
v3 = -1;
do
{
v4 = *(_QWORD *)(a1 + 360);
v5 = sub_1002E757C(v4);
*(_DWORD *)(sub_1002E75A0(v4, (unsigned int)(v5 + v3--)) + 632) = v2;
v6 = ++v2;
}
while ( v2 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 360)) );
return v6;
}