//
// IDNameInput::useRank from 0x794a7e to 0x794aee (112 bytes)
//
// 2 xrefs:
// > IDNameBrowserPopup::rebuildList @ 0x7922ea
// > IDNameInput::collectMatches @ 0x7967e4
//
// 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:59:44 +0000
//
IDNameInput *__fastcall IDNameInput::useRank(IDNameInput *this, unsigned int a2)
{
GameManager *v4; // r0
GameManager *v5; // r0
int v6; // r0
int *IDUseOrder; // r6
int i; // r5
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
*((_DWORD *)this + 3) = 0;
*((_DWORD *)this + 4) = 1065353216;
v4 = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)v4 + 102) )
{
v5 = (GameManager *)GameManager::sharedState(v4);
if ( *(_DWORD *)(*((_DWORD *)v5 + 102) + 2084) )
{
v6 = GameManager::sharedState(v5);
IDUseOrder = LevelSettingsObject::getIDUseOrder(*(LevelSettingsObject **)(*(_DWORD *)(v6 + 408) + 2084), a2);
for ( i = 0; i < (IDUseOrder[1] - *IDUseOrder) >> 2; ++i )
*std::unordered_map::operator[]((int)this, (unsigned int *)(*IDUseOrder + 4 * i)) = i;
}
}
return this;
}