//
// GJGameLevel::setNormalPercent from 0x4ab3e4 to 0x4ab416 (50 bytes)
//
// 8 xrefs:
// > GameLevelManager::updateLevelRewards @ 0x4ab452
// > GameLevelManager::verifyLevelState @ 0x4abb0a
// > GameLevelManager::saveFetchedLevels @ 0x4ad908
// > GameLevelManager::saveLevel @ 0x4b5462
// > GJGameLevel::levelWasAltered @ 0x4cadc8
// > GJGameLevel::dataLoaded @ 0x4cb118
// > GJGameLevel::savePercentage @ 0x4d6e6c
// > GJGameLevel::handleStatsConflict @ 0x4dc8b4
//
// 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 GJGameLevel::setNormalPercent(GJGameLevel *this, int a2)
{
unsigned int result; // r0
int v5; // s15
*((_DWORD *)this + 169) = a2;
result = rand();
v5 = (int)(float)(vcvts_n_f32_s32(result, 0x1Fu) * 1000.0);
*((_DWORD *)this + 170) = v5;
*((_DWORD *)this + 171) = v5 + a2;
return result;
}