//
// GameStatsManager::getCollectedCoinsForLevel from 0x1003ce6b4 to 0x1003ce710 (92 bytes)
//
// 7 xrefs:
// > sub_1003CE49C @ 0x1003ce4f0
// > sub_1003CE49C @ 0x1003ce53c
// > sub_1003CE49C @ 0x1003ce58c
// > sub_1003CE49C @ 0x1003ce5cc
// > sub_1003CE49C @ 0x1003ce604
// > sub_1003CE49C @ 0x1003ce638
// > sub_1003CE49C @ 0x1003ce66c
//
// 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:04:10 +0000
//
__int64 __fastcall GameStatsManager::getCollectedCoinsForLevel(__int64 a1, __int64 a2)
{
__int64 v4; // x20
__int64 v5; // x22
__int64 CoinKey_1; // x0
LODWORD(v4) = 0;
v5 = 1;
do
{
CoinKey_1 = GJGameLevel::getCoinKey_1(a2, v5);
v4 = (unsigned int)v4 + (unsigned int)GameStatsManager::hasSecretCoin(a1, CoinKey_1);
v5 = (unsigned int)(v5 + 1);
}
while ( (_DWORD)v5 != 4 );
return v4;
}