//
// GameStatsManager::getCollectedCoinsForLevel from 0x100330758 to 0x1003307b4 (92 bytes)
//
// 7 xrefs:
// > GameStatsManager::checkCoinAchievement @ 0x100330594
// > GameStatsManager::checkCoinAchievement @ 0x1003305e0
// > GameStatsManager::checkCoinAchievement @ 0x100330630
// > GameStatsManager::checkCoinAchievement @ 0x100330670
// > GameStatsManager::checkCoinAchievement @ 0x1003306a8
// > GameStatsManager::checkCoinAchievement @ 0x1003306dc
// > GameStatsManager::checkCoinAchievement @ 0x100330710
//
// 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 __fastcall GameStatsManager::getCollectedCoinsForLevel(GameStatsManager *a1, GJGameLevel *a2)
{
int v4; // w20
int i; // w22
const char *CoinKey; // x0
v4 = 0;
for ( i = 1; i != 4; ++i )
{
CoinKey = GJGameLevel::getCoinKey(a2, i);
v4 += GameStatsManager::hasSecretCoin(a1, CoinKey);
}
return v4;
}