//
// sub_1005815EC from 0x1005815ec to 0x100581640 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab148
//
// This function is hookable on this platform (idp: arm, 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 11:08:30 +0000
//
__int64 __fastcall sub_1005815EC(float32x2_t *a1, float32x2_t a2, float32_t a3)
{
if ( (~a2.i32[0] & 0x7F800000) == 0 || (~LODWORD(a3) & 0x7F800000) == 0 )
return 29;
a2.f32[1] = a3;
__asm { FMOV V1.2S, #1.0 }
a1[26] = vmax_f32(vminnm_f32(a2, _D1), 0);
return (*(__int64 (__fastcall **)(float32x2_t *, _QWORD, float32_t, float32_t))(*(_QWORD *)a1 + 408LL))(
a1,
0,
a1[24].f32[0],
a1[24].f32[1]);
}