//
// GameStatsManager::getLevelKey_1 from 0x10033083c to 0x100330880 (68 bytes)
//
// 4 xrefs:
// > GameStatsManager::hasCompletedLevel @ 0x100330b3c
// > GameStatsManager::completedLevel @ 0x100330da0
// > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x10033108c
// > GameStatsManager::uncompleteLevel @ 0x1003311a4
//
// 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
//
__int64 __fastcall GameStatsManager::getLevelKey_1(__int64 a1, __int64 a2)
{
int v2; // w9
int v3; // w10
bool v4; // vf
int v5; // w9
__int64 v6; // x3
_BOOL8 v8; // x2
v2 = *(_DWORD *)(a2 + 804);
v3 = *(_DWORD *)(a2 + 808);
v4 = __OFSUB__(v2, v3);
v5 = v2 - v3;
if ( (v5 < 0) ^ v4 | (v5 == 0) )
v6 = 0;
else
v6 = 1;
v8 = *(_DWORD *)(a2 + 1028) != 1 && v5 < 1;
return GameStatsManager::getLevelKey(
a1,
(unsigned int)(*(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332)),
v8,
v6,
*(unsigned __int8 *)(a2 + 641),
v5 > 200000);
}