//
// sub_100498EC8 from 0x100498ec8 to 0x100498f44 (124 bytes)
//
// 1 xrefs:
// > sub_100498354 @ 0x100498eb8
//
// 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 __usercall sub_100498EC8@(__int64 a1@, __int64 a2@, float a3@, float a4@)
{
unsigned int v4; // w14
__int64 v5; // x25
float v6; // s10
float v7; // s5
int v8; // w14
v7 = a3 * *(float *)(*(_QWORD *)(v5 + 24) + 4LL * v4);
v8 = vcvts_n_s32_f32(a4 + v6, 0xFu);
*(float *)(a2 - 16) = v7;
if ( v8 < 0 )
v8 = -v8;
return ((__int64 (__fastcall *)())((char *)sub_100498F44
+ 4 * *(unsigned __int8 *)(a1 + ((unsigned __int16)(v8 & 0x7FFF) >> 13))))();
}