//
// GameStatsManager::getBaseCurrency from 0x40d13c to 0x40d170 (52 bytes)
//
// 1 xrefs:
// > GameStatsManager::getBaseCurrencyForLevel @ 0x40d20c
//
// 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 GameStatsManager::getBaseCurrency(GameStatsManager *a1, int a2, bool a3, int a4)
{
unsigned int v4; // r3
unsigned int v6; // r1
if ( a3 )
{
v4 = a4 - 14;
if ( v4 <= 6 && ((1 << v4) & 0x51) != 0 )
return 400;
else
return 20 * a2 + 20;
}
else
{
v6 = a2 - 2;
if ( v6 > 8 )
return 0;
else
return aD_1[v6];
}
}