//
// LevelSettingsObject::getIDUseOrder from 0x79265c to 0x792770 (276 bytes)
//
// 2 xrefs:
// > IDNameInput::useRank @ 0xce6594
// > ??> @ 0x42610
//
// 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 12:53:30 +0000
//
__int64 *__fastcall LevelSettingsObject::getIDUseOrder(LevelSettingsObject *this, int a2)
{
unsigned __int8 v4; // w0
unsigned __int64 v5; // x3
unsigned __int64 v6; // x6
unsigned __int64 v7; // x4
__int64 *v8; // x0
unsigned __int64 v9; // x1
unsigned __int64 v10; // x1
v4 = atomic_load((unsigned __int8 *)&byte_155C6F0);
if ( (v4 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_155C6F0) )
{
qword_155C6D8 = 0;
qword_155C6E0 = 0;
qword_155C6E8 = 0;
_cxa_guard_release((__guard *)&byte_155C6F0);
__cxa_atexit((void (*)(void *))std::vector::~vector, &qword_155C6D8, &unk_1548000);
}
v5 = *((_QWORD *)this + 69);
if ( v5 )
{
v6 = v5 - 1;
v7 = ((v5 - 1) & v5) != 0 ? a2 % v5 : v6 & a2;
v8 = *(__int64 **)(*((_QWORD *)this + 68) + 8 * v7);
if ( v8 )
{
while ( 1 )
{
v8 = (__int64 *)*v8;
if ( !v8 )
break;
v9 = v8[1];
v10 = ((v5 - 1) & v5) != 0 ? v9 % v5 : v6 & v9;
if ( v7 != v10 )
break;
if ( *((_DWORD *)v8 + 4) == a2 )
return v8 + 3;
}
}
}
return &qword_155C6D8;
}