//
// sub_18009D9B0 from 0x18009d9b0 to 0x18009da41 (145 bytes)
//
// 3 xrefs:
// > sub_1800890B0 @ 0x1800890e7
// > sub_18008A090 @ 0x18008a124
// > ??> @ 0x1801fad34
//
// 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:51 +0000
//
_OWORD *__fastcall sub_18009D9B0(__int64 a1)
{
int v2; // ecx
__int64 v3; // rdx
_OWORD *v4; // rax
_OWORD *result; // rax
if ( *(_QWORD *)(a1 + 8) )
{
v2 = 0;
if ( *(int *)(a1 + 16) > 0 )
{
v3 = 0;
do
{
v3 += 4;
++v2;
*(_DWORD *)(v3 + *(_QWORD *)(a1 + 8) - 4) = 0;
}
while ( v2 < *(_DWORD *)(a1 + 16) );
}
}
memset(*(void **)(a1 + 1320), 0, 4LL * *(int *)(a1 + 1480));
v4 = *(_OWORD **)(a1 + 520);
*v4 = 0;
v4[1] = 0;
result = *(_OWORD **)(a1 + 528);
*result = 0;
result[1] = 0;
result[2] = 0;
result[3] = 0;
result[4] = 0;
result[5] = 0;
*(_QWORD *)(a1 + 52) = 0;
*(_QWORD *)(a1 + 84) = 0;
return result;
}