//
// GameStatsManager::awardSecretKey from 0x8e8794 to 0x8e8818 (132 bytes)
//
// 3 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ffa68
// > PlayLayer::levelComplete @ 0x703f08
// > ??> @ 0xbad90
//
// 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:53 +0000
//
bool __fastcall GameStatsManager::awardSecretKey(GameStatsManager *this)
{
bool shouldAwardSecretKey; // w0
_BOOL4 v3; // w21
int v4; // w19
int v5; // w2
shouldAwardSecretKey = GameStatsManager::shouldAwardSecretKey(this);
v3 = shouldAwardSecretKey;
if ( shouldAwardSecretKey )
{
v4 = *((_DWORD *)this + 192) - *((_DWORD *)this + 193) + 1;
*((_DWORD *)this + 194) = v4;
v5 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 193) = v5;
*((_DWORD *)this + 192) = v4 + v5;
GameStatsManager::incrementStat(this, "21");
}
return v3;
}