//
// sub_1800F1E90 from 0x1800f1e90 to 0x1800f1f2b (155 bytes)
//
// 4 xrefs:
// > ??> @ 0x18018e6a8
// > ??> @ 0x18018e6b8
// > ??> @ 0x1801affb0
// > ??> @ 0x180200590
//
// 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:22 +0000
//
__int64 __fastcall sub_1800F1E90(__int64 *a1)
{
__int64 v1; // rdi
int v2; // ebx
__int64 v3; // rax
__int64 v4; // rsi
__int64 v5; // rcx
v1 = *a1;
v2 = 0;
v3 = *(_QWORD *)(*a1 + 232);
*(_DWORD *)(*a1 + 576) = 0;
if ( *(int *)(v3 + 96) > 0 )
{
v4 = 0;
do
{
v5 = *(_QWORD *)(v4 + *(_QWORD *)(v3 + 104));
if ( *(_DWORD *)v5 )
{
if ( *(_DWORD *)v5 == 2 )
sub_18009BC60(v1, (unsigned int)v2, *(_DWORD *)(v5 + 48) != 0);
}
else
{
sub_18009C0C0(v1, v2, *(float *)(v5 + 56));
}
v3 = *(_QWORD *)(v1 + 232);
++v2;
v4 += 8;
}
while ( v2 < *(_DWORD *)(v3 + 96) );
}
*(_DWORD *)(v1 + 560) = 0;
*(_BYTE *)(v1 + 564) = 1;
return 0;
}