//
// sub_1800C8DE0 from 0x1800c8de0 to 0x1800c8e33 (83 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c560
// > ??> @ 0x1801fe2a4
//
// 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_1800C8DE0(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v4; // rcx
int v5; // eax
result = sub_1800C7B20(a1, a2);
if ( !(_DWORD)result )
{
v4 = *(_QWORD *)(a1 + 744);
if ( v4 || (v4 = *(_QWORD *)(a1 + 736)) != 0 || *(_QWORD *)(a1 + 664) && (v4 = a1 + 112, a1 != -112) )
{
v5 = *(_DWORD *)(a1 + 84);
++*(_DWORD *)(v4 + 616);
*(_DWORD *)(v4 + 612) = v5;
}
return 0;
}
return result;
}