//
// sub_100509E7C from 0x100509e7c to 0x100509ef0 (116 bytes)
//
// 3 xrefs:
// > ??> @ 0x100827aa0
// > ??> @ 0x100827cc8
// > ??> @ 0x10082a580
//
// 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
//
float __fastcall sub_100509E7C(float *a1, float *a2, float *a3)
{
float result; // s0
_BYTE v7[4]; // [xsp+Ch] [xbp-24h] BYREF
if ( !(*(unsigned int (__fastcall **)(float *, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v7) && (v7[0] & 0x10) != 0 )
{
if ( a2 )
{
result = a1[39];
*a2 = result;
}
if ( a3 )
{
result = a1[40];
*a3 = result;
}
}
return result;
}