//
// GJGameLevel::setNormalPercent from 0x1005408e0 to 0x100540924 (68 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:31:57 +0000
//
__int64 __fastcall GJGameLevel::setNormalPercent(_DWORD *a1, int a2)
{
float v2; // xmm0_4
__int64 result; // rax
a1[213] = a2;
v2 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
a1[214] = (int)v2;
result = (unsigned int)(a2 + (int)v2);
a1[215] = result;
return result;
}