//
// GameStatsManager::isSecretCoin from 0x8cb6f8 to 0x8cb784 (140 bytes)
//
// 2 xrefs:
// > GameStatsManager::dataLoaded @ 0x8e9050
// > ??> @ 0x9f490
//
// 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 12:56:36 +0000
//
bool __fastcall GameStatsManager::isSecretCoin(__int64 a1, unsigned __int8 *a2)
{
int v2; // w19
size_t v3; // x19
const void *v4; // x0
int v5; // w0
v2 = *a2;
if ( (v2 & 1) != 0 )
{
v3 = *((_QWORD *)a2 + 1);
v4 = *((const void **)a2 + 2);
if ( v3 >= 7 )
v3 = 7;
}
else
{
v4 = a2 + 1;
v3 = v2 >> 1;
if ( (int)v3 >= 7 )
v3 = 7;
}
if ( v3 && memcmp(v4, "unique_", v3) )
return 0;
if ( v3 == 7 )
v5 = 0;
else
v5 = -1;
return v5 == 0;
}