//
// LocalLevelManager::updateListOrder from 0x1006cabc0 to 0x1006cac35 (117 bytes)
//
// 0 xrefs:
//
// 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::updateListOrder(__int64 a1)
{
unsigned int v1; // r14d
int v2; // r12d
__int64 v3; // r15
int v4; // eax
v1 = 0;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 368)) )
{
v2 = -1;
do
{
v3 = *(_QWORD *)(a1 + 368);
v4 = sub_1007FEF90(v3);
*(_DWORD *)(sub_1007FEFE0(v3, (unsigned int)(v4 + v2--)) + 376) = v1++;
}
while ( v1 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 368)) );
}
return v1;
}