//
// sub_100509CD4 from 0x100509cd4 to 0x100509d58 (132 bytes)
//
// 3 xrefs:
// > ??> @ 0x100827a90
// > ??> @ 0x100827cb8
// > ??> @ 0x10082a570
//
// 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_100509CD4(__int64 a1, __int64 a2, __int64 a3)
{
float result; // s0
_BYTE v7[4]; // [xsp+Ch] [xbp-24h] BYREF
if ( !(*(unsigned int (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v7) && (v7[0] & 0x10) != 0 )
{
if ( a2 )
{
*(_QWORD *)a2 = *(_QWORD *)(a1 + 128);
result = *(float *)(a1 + 136);
*(float *)(a2 + 8) = result;
}
if ( a3 )
{
*(_QWORD *)a3 = *(_QWORD *)(a1 + 140);
result = *(float *)(a1 + 148);
*(float *)(a3 + 8) = result;
}
}
return result;
}