//
// sub_1800E09C0 from 0x1800e09c0 to 0x1800e0a2c (108 bytes)
//
// 4 xrefs:
// > ??> @ 0x18016d0f8
// > ??> @ 0x18016d2e8
// > ??> @ 0x18016d480
// > ??> @ 0x18016d650
//
// 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 __fastcall sub_1800E09C0(__int64 a1, __int64 a2, int a3)
{
float *v3; // rax
__int64 v4; // r9
if ( a3 >= 0 )
{
if ( !a2 || (unsigned __int64)a3 <= 1 )
{
LABEL_9:
*(_QWORD *)(a1 + 144) = a2;
*(_DWORD *)(a1 + 152) = a3;
return 0;
}
v3 = (float *)(a2 + 16);
v4 = 1;
while ( *(v3 - 4) < *(v3 - 1) && *v3 >= 0.0 && *v3 <= 1.0 )
{
++v4;
v3 += 3;
if ( v4 >= a3 )
goto LABEL_9;
}
}
return 31;
}