//
// GameManager::iconAndTypeForKey from 0x716474 to 0x716534 (192 bytes)
//
// 2 xrefs:
// > GameManager::finishedLoadingIconAsync @ 0x729814
// > ??> @ 0x6d048
//
// 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:52:16 +0000
//
__int64 __fastcall GameManager::iconAndTypeForKey(__int64 this, int a2, int *a3, int *a4)
{
_DWORD *v4; // x4
int v5; // w4
v4 = *(_DWORD **)(this + 1232);
if ( a2 < v4[1] )
{
v5 = 0;
}
else if ( a2 < v4[2] )
{
v5 = 1;
}
else if ( a2 < v4[3] )
{
v5 = 2;
}
else if ( a2 < v4[4] )
{
v5 = 3;
}
else if ( a2 < v4[5] )
{
v5 = 4;
}
else if ( a2 < v4[6] )
{
v5 = 5;
}
else if ( a2 < v4[7] )
{
v5 = 6;
}
else
{
if ( v4[8] <= a2 )
return this;
v5 = 7;
}
*a4 = v5;
this = *(unsigned int *)(*(_QWORD *)(this + 1232) + 4LL * v5);
*a3 = a2 - this + 1;
return this;
}