//
// sub_10045E9C0 from 0x10045e9c0 to 0x10045ea18 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x100827d08
//
// 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
//
__int64 __fastcall sub_10045E9C0(__int64 a1, int a2, float a3, float a4)
{
__int64 v4; // x8
float v6; // s0
float v7; // s1
v4 = *(_QWORD *)(a1 + 472);
if ( !v4 || !*(_QWORD *)(a1 + 32) )
return 30;
if ( (*(_BYTE *)(v4 + 56) & 0x10) == 0 )
return 40;
v6 = fmaxf(fminf(a3, 1.0), 0.0);
v7 = fmaxf(fminf(a4, 1.0), 0.0);
*(float *)(a1 + 192) = v6;
*(float *)(a1 + 196) = v7;
if ( a2 )
{
*(float *)(a1 + 200) = v6;
*(float *)(a1 + 204) = v7;
}
return 0;
}