//
// IDNameInput::useRank from 0xce6538 to 0xce6634 (252 bytes)
//
// 3 xrefs:
// > IDNameBrowserPopup::rebuildList @ 0xce2274
// > IDNameInput::collectMatches @ 0xcef02c
// > ??> @ 0xc1630
//
// 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 13:06:39 +0000
//
float *__usercall IDNameInput::useRank@(float *__return_ptr a1@, IDNameInput *this@)
{
int v3; // w19
GameManager *v4; // x0
GameManager *v5; // x0
__int64 v6; // x0
__int64 *IDUseOrder; // x0
__int64 v8; // x1
__int64 *v9; // x21
__int64 v10; // x20
int i; // w19
*(_QWORD *)a1 = 0;
*((_QWORD *)a1 + 1) = 0;
v3 = (int)this;
*((_QWORD *)a1 + 2) = 0;
*((_QWORD *)a1 + 3) = 0;
a1[8] = 1.0;
v4 = *(GameManager **)(GameManager::sharedState(this) + 552);
if ( v4 )
{
v5 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v4) + 552) + 3272LL);
if ( v5 )
{
v6 = GameManager::sharedState(v5);
IDUseOrder = LevelSettingsObject::getIDUseOrder(*(LevelSettingsObject **)(*(_QWORD *)(v6 + 552) + 3272LL), v3);
v8 = *IDUseOrder;
v9 = IDUseOrder;
v10 = 0;
for ( i = 0; i < (int)((v9[1] - *v9) >> 2); v8 = *v9 )
{
*(_DWORD *)std::unordered_map::operator[]((__int64)a1, (int *)(v8 + v10)) = i++;
v10 += 4;
}
}
}
return a1;
}