//
// sub_1800C8AF0 from 0x1800c8af0 to 0x1800c8b38 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c5a8
// > ??> @ 0x1801fe268
//
// 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_1800C8AF0(__int64 a1, _DWORD *a2, char a3)
{
__int64 result; // rax
int v5; // [rsp+38h] [rbp+10h] BYREF
if ( !a2 )
return 31;
if ( (a3 & 0x10) == 0 )
return 68;
result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 128LL))(a1, &v5);
if ( !(_DWORD)result )
{
*a2 = v5;
return 0;
}
return result;
}