//
// GameStatsManager::hasSecretCoin from 0x100032930 to 0x100032a0c (220 bytes)
//
// 70 xrefs:
// > GameStatsManager::checkCoinAchievement @ 0x1000324a6
// > GameStatsManager::checkCoinAchievement @ 0x1000324c2
// > GameStatsManager::checkCoinAchievement @ 0x1000324e1
// > GameStatsManager::checkCoinAchievement @ 0x10003254c
// > GameStatsManager::checkCoinAchievement @ 0x100032568
// > GameStatsManager::checkCoinAchievement @ 0x100032587
// > GameStatsManager::checkCoinAchievement @ 0x1000325e5
// > GameStatsManager::checkCoinAchievement @ 0x100032601
// > GameStatsManager::checkCoinAchievement @ 0x100032620
// > GameStatsManager::checkCoinAchievement @ 0x100032675
// > GameStatsManager::checkCoinAchievement @ 0x100032691
// > GameStatsManager::checkCoinAchievement @ 0x1000326b0
// > GameStatsManager::checkCoinAchievement @ 0x1000326fd
// > GameStatsManager::checkCoinAchievement @ 0x100032719
// > GameStatsManager::checkCoinAchievement @ 0x100032738
// > GameStatsManager::checkCoinAchievement @ 0x100032785
// > GameStatsManager::checkCoinAchievement @ 0x1000327a1
// > GameStatsManager::checkCoinAchievement @ 0x1000327c0
// > GameStatsManager::checkCoinAchievement @ 0x100032810
// > GameStatsManager::checkCoinAchievement @ 0x10003282c
// > GameStatsManager::checkCoinAchievement @ 0x10003284b
// > GameStatsManager::getCollectedCoinsForLevel @ 0x1000328d4
// > GameStatsManager::getCollectedCoinsForLevel @ 0x1000328f0
// > GameStatsManager::getCollectedCoinsForLevel @ 0x10003290f
// > GJBaseGameLayer::hasUniqueCoin @ 0x100106440
// > GJBaseGameLayer::processItems @ 0x100107140
// > LevelAreaInnerLayer::init @ 0x1002667da
// > LevelAreaInnerLayer::init @ 0x1002668ad
// > LevelAreaInnerLayer::init @ 0x10026697d
// > GameManager::verifyCoinUnlocks @ 0x1003636ce
// > GameManager::verifyCoinUnlocks @ 0x1003636f4
// > GameManager::verifyCoinUnlocks @ 0x10036371b
// > GameManager::verifyCoinUnlocks @ 0x100363777
// > GameManager::verifyCoinUnlocks @ 0x10036379d
// > GameManager::verifyCoinUnlocks @ 0x1003637c4
// > GameManager::verifyCoinUnlocks @ 0x10036381b
// > GameManager::verifyCoinUnlocks @ 0x100363841
// > GameManager::verifyCoinUnlocks @ 0x100363868
// > GameManager::verifyCoinUnlocks @ 0x1003638bf
// > GameManager::verifyCoinUnlocks @ 0x1003638e5
// > GameManager::verifyCoinUnlocks @ 0x10036390c
// > GameManager::verifyCoinUnlocks @ 0x100363963
// > GameManager::verifyCoinUnlocks @ 0x100363989
// > GameManager::verifyCoinUnlocks @ 0x1003639b0
// > GameManager::verifyCoinUnlocks @ 0x1003639d0
// > GameManager::verifyCoinUnlocks @ 0x1003639e7
// > GameManager::verifyCoinUnlocks @ 0x1003639fe
// > GameManager::verifySyncedCoins @ 0x100368b5e
// > GameManager::verifySyncedCoins @ 0x100368b84
// > GameManager::verifySyncedCoins @ 0x100368ba8
// > GameManager::verifySyncedCoins @ 0x100368c01
// > GameManager::verifySyncedCoins @ 0x100368c27
// > GameManager::verifySyncedCoins @ 0x100368c4b
// > GameManager::verifySyncedCoins @ 0x100368c9f
// > GameManager::verifySyncedCoins @ 0x100368cc5
// > GameManager::verifySyncedCoins @ 0x100368ce9
// > GameManager::verifySyncedCoins @ 0x100368d3d
// > GameManager::verifySyncedCoins @ 0x100368d63
// > GameManager::verifySyncedCoins @ 0x100368d87
// > GameManager::verifySyncedCoins @ 0x100368ddb
// > GameManager::verifySyncedCoins @ 0x100368e01
// > GameManager::verifySyncedCoins @ 0x100368e25
// > GameManager::verifySyncedCoins @ 0x100368e42
// > GameManager::verifySyncedCoins @ 0x100368e5d
// > GameManager::verifySyncedCoins @ 0x100368e75
// > PauseLayer::customSetup @ 0x1003c0718
// > LevelPage::updateDynamicPage @ 0x100421245
// > LevelPage::updateDynamicPage @ 0x1004212e1
// > LevelPage::updateDynamicPage @ 0x100421378
// > EndLevelLayer::customSetup @ 0x1004ba77a
//
// This function is hookable on this platform (idp: pc, 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 12:19:31 +0000
//
bool __fastcall GameStatsManager::hasSecretCoin(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rax
const char *CString; // r15
size_t v4; // rax
size_t v5; // r14
char *v6; // r12
size_t v7; // r13
__int64 v8; // rbx
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v1 = *(_QWORD *)(a1 + 520);
v2 = sub_10088E820("unique_%s", __dst[0]);
CString = (const char *)cocos2d::CCString::getCString(v2);
v4 = strlen(CString);
if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v5 = v4;
if ( v4 >= 0x17 )
{
v7 = 26;
if ( (v4 | 7) != 0x17 )
v7 = (v4 | 7) + 1;
v6 = (char *)operator new(v7);
__p = v6;
__dst[0] = v7 + 1;
__dst[1] = v5;
goto LABEL_8;
}
LOBYTE(__dst[0]) = 2 * v4;
v6 = (char *)__dst + 1;
if ( v4 )
LABEL_8:
memmove(v6, CString, v5);
v6[v5] = 0;
v8 = cocos2d::CCDictionary::objectForKey(v1, __dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return v8 != 0;
}