//
// sub_1800C88C0 from 0x1800c88c0 to 0x1800c8961 (161 bytes)
//
// 4 xrefs:
// > ??> @ 0x18016c4e8
// > ??> @ 0x18018ae58
// > ??> @ 0x18018ae68
// > ??> @ 0x1801fe22c
//
// 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:06 +0000
//
__int64 __fastcall sub_1800C88C0(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rcx
__int64 v5; // rcx
result = sub_1800C7A20(a1);
if ( !(_DWORD)result )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 112) + 16LL))(a1 + 112);
v3 = *(_QWORD *)(a1 + 736);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
*(_QWORD *)(a1 + 736) = 0;
}
v4 = *(_QWORD *)(a1 + 752);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
*(_QWORD *)(a1 + 752) = 0;
}
v5 = *(_QWORD *)(a1 + 760);
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
*(_QWORD *)(a1 + 760) = 0;
}
*(_DWORD *)(a1 + 100) = 1232348160;
*(_QWORD *)(a1 + 744) = 0;
*(_DWORD *)(a1 + 104) = 1120403456;
return 0;
}
return result;
}