//
// GameManager::countForType from 0x414482 to 0x4144ec (106 bytes)
//
// 4 xrefs:
// > GJGarageLayer::getItems @ 0x50edac
// > GJGarageLayer::setupPage @ 0x50f1fa
// > GJGarageLayer::onArrow @ 0x50f61a
// > ProfilePage::loadPageFromUserInfo @ 0x5f94bc
//
// 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::countForType(int a1, unsigned int a2)
{
if ( a2 == 5 )
return 68;
if ( a2 > 5 )
{
if ( a2 == 8 )
{
return 8;
}
else if ( a2 > 8 )
{
switch ( a2 )
{
case 'c':
return 7;
case 'e':
return 6;
case 'b':
return 20;
default:
return 0;
}
}
else if ( a2 == 6 )
{
return 69;
}
else
{
return 43;
}
}
else if ( a2 == 2 )
{
return 118;
}
else if ( a2 > 2 )
{
if ( a2 == 3 )
return 149;
else
return 96;
}
else if ( a2 )
{
return 169;
}
else
{
return 485;
}
}