//
// GameStatsManager::hasSecretCoin from 0x1003307b4 to 0x100330820 (108 bytes)
//
// 15 xrefs:
// > GJBaseGameLayer::hasUniqueCoin @ 0x1001e95ec
// > GJBaseGameLayer::processItems @ 0x1001e9d68
// > EndLevelLayer::customSetup @ 0x1002f6a74
// > GameManager::verifyCoinUnlocks @ 0x100313f80
// > GameManager::verifyCoinUnlocks @ 0x100313fa4
// > GameManager::verifyCoinUnlocks @ 0x100313fc8
// > GameManager::verifyCoinUnlocks @ 0x100314028
// > GameManager::verifyCoinUnlocks @ 0x10031404c
// > GameManager::verifyCoinUnlocks @ 0x100314070
// > GameManager::verifyCoinUnlocks @ 0x100314094
// > GameManager::verifyCoinUnlocks @ 0x1003140a8
// > GameManager::verifyCoinUnlocks @ 0x1003140bc
// > GameStatsManager::getCollectedCoinsForLevel @ 0x10033078c
// > LevelAreaInnerLayer::init @ 0x100345bb4
// > LevelPage::updateDynamicPage @ 0x100402e0c
//
// 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
//
bool __fastcall GameStatsManager::hasSecretCoin(GameStatsManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_playerStats; // x19
cocos2d::CCString *v3; // x0
char *CString; // x0
__int64 v5; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
m_playerStats = a1->m_playerStats;
v3 = (cocos2d::CCString *)sub_100268F4C("unique_%s", a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(__p, CString);
v5 = cocos2d::CCDictionary::objectForKey_1(m_playerStats, __p);
if ( v8 < 0 )
operator delete(__p[0]);
return v5 != 0;
}