//
// LevelSettingsObject::getIDUseOrder from 0x465b58 to 0x465c0e (182 bytes)
//
// 1 xrefs:
// > IDNameInput::useRank @ 0x794ac6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:56 +0000
//
int *__fastcall LevelSettingsObject::getIDUseOrder(LevelSettingsObject *this, unsigned int a2)
{
char v4; // r4
unsigned int v5; // r5
unsigned int v6; // r7
unsigned int v7; // r10
_DWORD *v8; // r3
_DWORD *i; // r4
unsigned int v10; // r0
int v11; // r1
v4 = byte_D2B8E4;
__dmb(0xFu);
if ( (v4 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D2B8E4) )
{
dword_D2B8D8 = 0;
dword_D2B8DC = 0;
dword_D2B8E0 = 0;
_cxa_guard_release((__guard *)&byte_D2B8E4);
_aeabi_atexit();
}
v5 = *((_DWORD *)this + 109);
if ( v5 )
{
v6 = v5 - 1;
v7 = ((v5 - 1) & v5) != 0 ? a2 % v5 : v6 & a2;
v8 = *(_DWORD **)(*((_DWORD *)this + 108) + 4 * v7);
if ( v8 )
{
for ( i = (_DWORD *)*v8; i; i = (_DWORD *)*i )
{
v10 = i[1];
v11 = ((v5 - 1) & v5) != 0 ? v10 % v5 : v6 & v10;
if ( v11 != v7 )
break;
if ( i[2] == a2 )
return i + 3;
}
}
}
return &dword_D2B8D8;
}