//
// GameStatsManager::hasSecretCoin from 0x517364 to 0x5173c4 (96 bytes)
//
// 25 xrefs:
// > GameManager::verifySyncedCoins @ 0x4135e2
// > GameManager::verifySyncedCoins @ 0x4135fc
// > GameManager::verifySyncedCoins @ 0x413616
// > GameManager::verifySyncedCoins @ 0x413654
// > GameManager::verifySyncedCoins @ 0x41366e
// > GameManager::verifySyncedCoins @ 0x413688
// > GameManager::verifySyncedCoins @ 0x4136a2
// > GameManager::verifySyncedCoins @ 0x4136b2
// > GameManager::verifySyncedCoins @ 0x4136c2
// > GameManager::verifyCoinUnlocks @ 0x419e3c
// > GameManager::verifyCoinUnlocks @ 0x419e56
// > GameManager::verifyCoinUnlocks @ 0x419e70
// > GameManager::verifyCoinUnlocks @ 0x419eae
// > GameManager::verifyCoinUnlocks @ 0x419ec8
// > GameManager::verifyCoinUnlocks @ 0x419ee2
// > GameManager::verifyCoinUnlocks @ 0x419f00
// > GameManager::verifyCoinUnlocks @ 0x419f14
// > GameManager::verifyCoinUnlocks @ 0x419f28
// > PauseLayer::customSetup @ 0x4914cc
// > LevelPage::updateDynamicPage @ 0x514592
// > GameStatsManager::getCollectedCoinsForLevel @ 0x5173de
// > EndLevelLayer::customSetup @ 0x536a38
// > GJBaseGameLayer::hasUniqueCoin @ 0x58f216
// > GJBaseGameLayer::processItems @ 0x59c2e2
// > LevelAreaInnerLayer::init @ 0x6a565a
//
// 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:51:43 +0000
//
int __fastcall GameStatsManager::hasSecretCoin(GameStatsManager *this, const char *a2)
{
int v2; // r6
const char *SecretCoinKey; // r7
size_t v4; // r0
int v5; // r6
int result; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 92);
memset(v7, 0, sizeof(v7));
SecretCoinKey = (const char *)GameStatsManager::getSecretCoinKey(this, a2);
v4 = strlen(SecretCoinKey);
std::string::__init(v7, SecretCoinKey, v4);
v5 = cocos2d::CCDictionary::objectForKey(v2, v7);
std::string::~string((int)v7);
result = v5;
if ( v5 )
return 1;
return result;
}