//
// GameLevelManager::verifyLevelState from 0x70b40c to 0x70b4d4 (200 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x70b764
// > ??> @ 0x66420
//
// 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; // x0
GameStatsManager *v4; // x0
int v5; // w0
int v6; // w0
int v7; // w0
int v8; // w0
v3 = GameStatsManager::sharedState();
if ( GameStatsManager::hasCompletedLevel(v3, a2) && GJGameLevel::shouldCheatReset(a2) )
{
v4 = GameStatsManager::sharedState();
GameStatsManager::uncompleteLevel(v4, a2);
GJGameLevel::setNormalPercent(a2, 0);
a2->m_orbCompletion.value = 0;
v5 = rand();
a2->m_newNormalPercent2.value = 0;
v6 = (int)(float)((float)((float)v5 * 4.6566e-10) * 1000.0);
a2->m_orbCompletion.seed = v6;
a2->m_orbCompletion.random = v6;
v7 = rand();
a2->m_bestTime = 0;
a2->m_isCompletionLegitimate = 1;
a2->m_bestPoints = 0;
v8 = (int)(float)((float)((float)v7 * 4.6566e-10) * 1000.0);
a2->m_newNormalPercent2.seed = v8;
a2->m_newNormalPercent2.random = v8;
}
}