//
// GameManager::iconAndTypeForKey from 0x4144fa to 0x414526 (44 bytes)
//
// 1 xrefs:
// > GameManager::finishedLoadingIconAsync @ 0x41d81c
//
// 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:47:39 +0000
//
int __fastcall GameManager::iconAndTypeForKey(int this, int a2, int *a3, int *a4)
{
int i; // r4
int v5; // r5
for ( i = 0; ; ++i )
{
v5 = i + 1;
if ( a2 < *(_DWORD *)(*(_DWORD *)(this + 960) + 4 * (i + 1)) )
break;
if ( v5 == 8 )
return this;
}
*a4 = i;
*a3 = a2 - *(_DWORD *)(*(_DWORD *)(this + 960) + 4 * i) + 1;
return this;
}