//
// sub_10096B3A0 from 0x10096b3a0 to 0x10096b3ec (76 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:38:50 +0000
//
__int64 __fastcall sub_10096B3A0(__int64 a1)
{
float v1; // xmm0_4
float v2; // xmm1_4
__int64 result; // rax
v1 = *(float *)(a1 + 436);
v2 = 0.0;
if ( v1 < 0.0
|| (result = *(unsigned __int8 *)(a1 + 584) ^ 1u,
v2 = fmaxf(0.0, *(float *)(a1 + 432) - *(float *)(a1 + 4 * result + 424)),
v1 > v2) )
{
*(float *)(a1 + 436) = v2;
*(_DWORD *)(a1 + 472) = 0;
}
return result;
}