//
// GameManager::countForType from 0x322486 to 0x3224f0 (106 bytes)
//
// 3 xrefs:
// > GJGarageLayer::getItems @ 0x405d50
// > GJGarageLayer::setupPage @ 0x40619e
// > GJGarageLayer::onArrow @ 0x4065ba
//
// 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
//
int GameManager::countForType(GameManager *a1, IconType a2)
{
if ( a2 == Robot )
return 68;
if ( (unsigned int)a2 > Robot )
{
if ( a2 == Jetpack )
{
return 8;
}
else if ( (unsigned int)a2 > Jetpack )
{
switch ( a2 )
{
case Special:
return 7;
case ShipFire:
return 6;
case DeathEffect:
return 20;
default:
return 0;
}
}
else if ( a2 == Spider )
{
return 69;
}
else
{
return 43;
}
}
else if ( a2 == Ball )
{
return 118;
}
else if ( (unsigned int)a2 > Ball )
{
if ( a2 == Ufo )
return 149;
else
return 96;
}
else if ( a2 )
{
return 169;
}
else
{
return 485;
}
}