//
// GameLevelManager::verifyLevelState from 0x4abae4 to 0x4abb30 (76 bytes)
//
// 1 xrefs:
// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x4c1cf0
//
// 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:49:58 +0000
//
unsigned int __fastcall GameLevelManager::verifyLevelState(GameLevelManager *this, GJGameLevel *a2)
{
GameStatsManager *v3; // r0
unsigned int result; // r0
GameStatsManager *v5; // r0
v3 = (GameStatsManager *)GameStatsManager::sharedState(this);
result = GameStatsManager::hasCompletedLevel(v3, a2);
if ( result )
{
result = GJGameLevel::shouldCheatReset(a2);
if ( result )
{
v5 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)result);
GameStatsManager::uncompleteLevel(v5, a2);
GJGameLevel::setNormalPercent(a2, 0);
GJGameLevel::setNewNormalPercent(a2, 0);
result = GJGameLevel::setNewNormalPercent2(a2, 0);
*((_DWORD *)a2 + 260) = 0;
*((_DWORD *)a2 + 267) = 0;
*((_BYTE *)a2 + 673) = 1;
}
}
return result;
}