//
// sub_1800E09C0 from 0x1800e09c0 to 0x1800e0a2c (108 bytes)
//
// 4 xrefs:
// > ??> @ 0x18016d0f8
// > ??> @ 0x18016d2e8
// > ??> @ 0x18016d480
// > ??> @ 0x18016d650
//
// This function is hookable on this platform (idp: pc, 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 10:54:15 +0000
//
__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;
}