//
// sub_18006E8E0 from 0x18006e8e0 to 0x18006e96f (143 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801aceb0
// > ??> @ 0x1801f97c8
// > ??> @ 0x1801f97d4
//
// 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
//
void __fastcall sub_18006E8E0(__int64 *a1)
{
__int64 v1; // rdi
unsigned int v2; // ebx
__int64 v3; // rsi
int v4; // eax
v1 = *a1;
v2 = 0;
if ( *(int *)(*(_QWORD *)(*a1 + 232) + 96LL) <= 0 )
{
LABEL_5:
sub_18006F3F0(v1);
*(_DWORD *)(v1 + 544) = *(_DWORD *)(v1 + 808);
sub_18006F4E0(v1);
}
else
{
v3 = 0;
while ( 1 )
{
sub_18009C0C0(v1, v2);
if ( v4 )
break;
++v2;
v3 += 8;
if ( (signed int)v2 >= *(_DWORD *)(*(_QWORD *)(v1 + 232) + 96LL) )
goto LABEL_5;
}
}
}