//
// sub_100584B28 from 0x100584b28 to 0x100584b80 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab378
//
// 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_100584B28(__int64 a1, int a2, float a3, float a4)
{
__int64 v4; // x8
float v6; // s0
float v7; // s1
v4 = *(_QWORD *)(a1 + 472);
if ( !v4 || !*(_QWORD *)(a1 + 32) )
return 30;
if ( (*(_BYTE *)(v4 + 56) & 0x10) == 0 )
return 40;
v6 = fmaxf(fminf(a3, 1.0), 0.0);
v7 = fmaxf(fminf(a4, 1.0), 0.0);
*(float *)(a1 + 192) = v6;
*(float *)(a1 + 196) = v7;
if ( a2 )
{
*(float *)(a1 + 200) = v6;
*(float *)(a1 + 204) = v7;
}
return 0;
}