//
// sub_1800C90C0 from 0x1800c90c0 to 0x1800c9114 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c5a0
// > ??> @ 0x1801fe2f8
//
// 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_1800C90C0(__int64 *a1, int a2, char a3)
{
__int64 result; // rax
__int64 v6; // rax
_QWORD v7[3]; // [rsp+20h] [rbp-18h] BYREF
if ( (a3 & 0x10) == 0 )
return 68;
result = (*(__int64 (__fastcall **)(__int64 *, _QWORD *))(*a1 + 128))(a1, v7);
if ( !(_DWORD)result )
{
v6 = *a1;
LODWORD(v7[0]) = a2;
return (*(__int64 (__fastcall **)(__int64 *, _QWORD))(v6 + 120))(a1, v7[0]);
}
return result;
}