//
// GameStatsManager::getLevelKey from 0x523de0 to 0x523e32 (82 bytes)
//
// 4 xrefs:
// > GameStatsManager::hasCompletedLevel @ 0x523e52
// > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x523ea8
// > GameStatsManager::uncompleteLevel @ 0x523f7c
// > GameStatsManager::completedLevel @ 0x529fe2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:53 +0000
//
GameStatsManager *__fastcall GameStatsManager::getLevelKey(GameStatsManager *this, GJGameLevel *a2, int a3)
{
int v4; // r7
int v5; // r0
int v6; // r6
int v7; // r3
char v8; // r2
int v9; // r3
v4 = *(_DWORD *)(a3 + 268);
v5 = *(_DWORD *)(a3 + 744) - *(_DWORD *)(a3 + 748);
v6 = *(_DWORD *)(a3 + 272);
v7 = *(_DWORD *)(a3 + 952);
v8 = *(_BYTE *)(a3 + 477);
v9 = v7 != 1 && v5 <= 0;
GameStatsManager::getLevelKey(this, (int)a2, v4 - v6, v9, v5 > 0, v8, v5 > 200000);
return this;
}