//
// GameManager::generateSecretNumber from 0x71d5f8 to 0x71d698 (160 bytes)
//
// 2 xrefs:
// > SecretLayer2::onSubmit @ 0xa92040
// > ??> @ 0x8beb8
//
// 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:52:21 +0000
//
__int64 __fastcall GameManager::generateSecretNumber(GameManager *this)
{
int v1; // w19
int v2; // w20
int v3; // w0
float v4; // s1
GameManager *v5; // x0
__int64 v6; // x19
__int64 result; // x0
v1 = 0;
v2 = 0;
do
{
v3 = rand();
v4 = (float)v1++;
v5 = (GameManager *)(unsigned int)(int)(float)(roundf((float)((float)((float)v3 * 4.6566e-10) * 8.0) + 1.0)
* powf(10.0, v4));
v2 += (int)v5;
}
while ( v1 != 7 );
v6 = GameManager::sharedState(v5);
result = (unsigned int)(int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*(_DWORD *)(v6 + 908) = result;
*(_DWORD *)(v6 + 904) = v2 + result;
return result;
}