//
// sub_100509FC0 from 0x100509fc0 to 0x10050a044 (132 bytes)
//
// 3 xrefs:
// > ??> @ 0x100827ab0
// > ??> @ 0x100827cd8
// > ??> @ 0x10082a590
//
// 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_100509FC0(float *a1, float *a2, float *a3, float *a4)
{
float result; // s0
_BYTE v9[4]; // [xsp+Ch] [xbp-24h] BYREF
if ( !(*(unsigned int (__fastcall **)(float *, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v9) && (v9[0] & 0x10) != 0 )
{
if ( a2 )
{
result = a1[42];
*a2 = result;
}
if ( a3 )
{
result = a1[43];
*a3 = result;
}
if ( a4 )
{
result = a1[44];
*a4 = result;
}
}
return result;
}