//
// GameLevelManager::verifyLevelState from 0x3c9464 to 0x3c94b0 (76 bytes)
//
// 1 xrefs:
// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x3c957c
//
// 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
//
void GameLevelManager::verifyLevelState(GameLevelManager *a1, GJGameLevel *a2)
{
GameStatsManager *v3; // r0
GameStatsManager *v4; // r0
v3 = GameStatsManager::sharedState();
if ( GameStatsManager::hasCompletedLevel(v3, a2) && GJGameLevel::shouldCheatReset(a2) )
{
v4 = GameStatsManager::sharedState();
GameStatsManager::uncompleteLevel(v4, a2);
GJGameLevel::setNormalPercent(a2, 0);
GJGameLevel::setNewNormalPercent(a2, 0);
GJGameLevel::setNewNormalPercent2(a2, 0);
a2->m_bestTime = 0;
a2->m_bestPoints = 0;
a2->m_isCompletionLegitimate = 1;
}
}