//
// sub_1800C9F10 from 0x1800c9f10 to 0x1800c9fb5 (165 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c600
// > ??> @ 0x1801fe424
//
// 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
//
__int64 __fastcall sub_1800C9F10(__int64 a1, unsigned __int8 a2)
{
__int64 v2; // rdi
char v3; // bp
unsigned int v6; // ebx
v2 = *(_QWORD *)(a1 + 8);
v3 = 0;
if ( v2 )
{
sub_1801021C0(v2, 8);
v3 = 1;
}
v6 = sub_1800C7CE0(a1, a2);
if ( !v6
&& ((*(_DWORD *)(a1 + 60) & 0x4000) != 0
|| (v6 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 192) + 80LL))(*(_QWORD *)(a1 + 192), a2)) == 0) )
{
v6 = 0;
}
if ( v3 && v2 )
sub_180102300(v2, 8);
return v6;
}