//
// sub_100584B80 from 0x100584b80 to 0x100584bf8 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab370
//
// 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:31 +0000
//
__int64 __fastcall sub_100584B80(float32x2_t *a1, float32x2_t a2, float32_t a3)
{
float32x2_t v3; // x8
v3 = a1[59];
if ( !*(_QWORD *)&v3 || !*(_QWORD *)&a1[4] )
return 30;
if ( (*(_BYTE *)(*(_QWORD *)&v3 + 56LL) & 0x10) == 0 )
return 40;
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(vmin_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]);
}