//
// GJGameLevel::setNormalPercent from 0x805550 to 0x8055a0 (80 bytes)
//
// 9 xrefs:
// > GameLevelManager::updateLevelRewards @ 0x805624
// > GameLevelManager::saveFetchedLevels @ 0x805840
// > GameLevelManager::verifyLevelState @ 0x806738
// > GameLevelManager::saveLevel @ 0x819d58
// > GJGameLevel::levelWasAltered @ 0x83c84c
// > GJGameLevel::dataLoaded @ 0x83d188
// > GJGameLevel::savePercentage @ 0x85380c
// > GJGameLevel::handleStatsConflict @ 0x85f9b4
// > ??> @ 0xdbcd0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:45 +0000
//
__int64 __fastcall GJGameLevel::setNormalPercent(GJGameLevel *this, int a2)
{
__int64 result; // x0
*((_DWORD *)this + 213) = a2;
result = (unsigned int)(int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*((_DWORD *)this + 214) = result;
*((_DWORD *)this + 215) = a2 + result;
return result;
}