//
// GameManager::iconTypeToUnlockType from 0x1003af824 to 0x1003af918 (244 bytes)
//
// 6 xrefs:
// > sub_10022E664 @ 0x10022e694
// > GJGarageLayer::getItems @ 0x1003a23dc
// > GJGarageLayer::onSelect @ 0x1003a26e4
// > GJGarageLayer::onSelect @ 0x1003a2aa0
// > sub_1003A2C94 @ 0x1003a2cd0
// > GameManager::isIconUnlocked @ 0x1003af7dc
//
// 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 11:03:53 +0000
//
__int64 __fastcall GameManager::iconTypeToUnlockType(__int64 a1, int a2)
{
if ( a2 > 5 )
{
if ( a2 <= 97 )
{
switch ( a2 )
{
case 6:
return 9;
case 7:
return 13;
case 8:
return 14;
}
}
else
{
if ( a2 <= 99 )
{
if ( a2 == 98 )
return 11;
else
return 10;
}
if ( a2 == 100 )
return 12;
if ( a2 == 101 )
return 15;
}
return 0;
}
if ( a2 <= 2 )
{
switch ( a2 )
{
case 0:
return 1;
case 1:
return 4;
case 2:
return 5;
}
return 0;
}
if ( a2 == 3 )
return 6;
if ( a2 == 4 )
return 7;
return 8;
}