//
// sub_1005EB214 from 0x1005eb214 to 0x1005eb27c (104 bytes)
//
// 4 xrefs:
// > ??> @ 0x1009abc80
// > ??> @ 0x1009abe28
// > ??> @ 0x1009abfd0
// > ??> @ 0x1009ac160
//
// 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:09:45 +0000
//
__int64 __fastcall sub_1005EB214(__int64 a1, float *a2, unsigned int a3)
{
float *v3; // x8
float v4; // s0
__int64 v5; // x9
float v6; // s2
if ( (a3 & 0x80000000) == 0 )
{
if ( !a2 || a3 < 2 )
{
LABEL_12:
*(_QWORD *)(a1 + 144) = a2;
*(_DWORD *)(a1 + 152) = a3;
return 0;
}
v3 = a2 + 4;
v4 = *a2;
v5 = a3 - 1LL;
while ( 1 )
{
v6 = v4;
v4 = *(v3 - 1);
if ( v4 <= v6 )
break;
if ( *v3 < 0.0 || *v3 > 1.0 )
break;
v3 += 3;
if ( !--v5 )
goto LABEL_12;
}
}
return 31;
}