//
// sub_180088830 from 0x180088830 to 0x1800888ea (186 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801ae430
// > ??> @ 0x1801fa398
//
// 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:53:41 +0000
//
void __fastcall sub_180088830(__int64 *a1)
{
__int64 v1; // rdi
__int64 v2; // rax
unsigned int v3; // ebx
__int64 i; // rsi
_DWORD *v5; // rcx
int v6; // eax
v1 = *a1;
*(_DWORD *)(v1 + 564) = 1065353216;
*(_DWORD *)(v1 + 544) = 1065353216;
*(_DWORD *)(v1 + 552) = 1065353216;
*(_DWORD *)(v1 + 608) = -1;
*(_BYTE *)(v1 + 612) = 0;
*(_DWORD *)(v1 + 560) = -1;
_InterlockedOr((volatile signed __int32 *)(v1 + 100), 0x10u);
v2 = *(_QWORD *)(v1 + 232);
v3 = 0;
if ( *(int *)(v2 + 96) > 0 )
{
for ( i = 0; ; i += 8 )
{
v5 = *(_DWORD **)(i + *(_QWORD *)(v2 + 104));
if ( *v5 == 1 )
break;
if ( !*v5 )
{
sub_18009C0C0(v1, v3);
LABEL_7:
if ( v6 )
return;
}
v2 = *(_QWORD *)(v1 + 232);
if ( (signed int)++v3 >= *(_DWORD *)(v2 + 96) )
return;
}
v6 = sub_18009C140(v1, v3, (unsigned int)v5[14]);
goto LABEL_7;
}
}