//
// LocalLevelManager::updateLevelOrder from 0x1006ca940 to 0x1006ca9b5 (117 bytes)
//
// 1 xrefs:
// > GJAccountManager::backupAccount @ 0x1000a1903
//
// 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 12:35:35 +0000
//
__int64 __fastcall LocalLevelManager::updateLevelOrder(__int64 a1)
{
unsigned int v1; // r14d
int v2; // r12d
__int64 v3; // r15
int v4; // eax
v1 = 0;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 360)) )
{
v2 = -1;
do
{
v3 = *(_QWORD *)(a1 + 360);
v4 = sub_1007FEF90(v3);
*(_DWORD *)(sub_1007FEFE0(v3, (unsigned int)(v4 + v2--)) + 632) = v1++;
}
while ( v1 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 360)) );
}
return v1;
}