//
// GameManager::iconAndTypeForKey from 0x100381e40 to 0x100381ea5 (101 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GameManager::iconAndTypeForKey(GameManager *a1, int a2, int *a3, int *a4)
{
std::__vector_base::pointer begin; // rax
unsigned int v5; // edi
begin = a1->m_keyStartForIcon.__begin_;
v5 = 0;
if ( begin[1] > a2
|| (v5 = 1, begin[2] > a2)
|| (v5 = 2, begin[3] > a2)
|| (v5 = 3, begin[4] > a2)
|| (v5 = 4, begin[5] > a2)
|| (v5 = 5, begin[6] > a2)
|| (v5 = 6, begin[7] > a2)
|| (v5 = 7, begin[8] > a2) )
{
*a4 = v5;
*a3 = a2 - begin[v5] + 1;
}
}