//
// sub_1800CB7C0 from 0x1800cb7c0 to 0x1800cb7ff (63 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c7a8
// > ??> @ 0x1801fe58c
//
// 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:07 +0000
//
__int64 __fastcall sub_1800CB7C0(__int64 a1, __int64 a2)
{
__int64 result; // rax
result = sub_18000F320((int *)a1, a2);
if ( !(_DWORD)result )
{
if ( !a2 || a2 == *(_QWORD *)(a1 + 584) )
*(_QWORD *)(a1 + 584) = 0;
return 0;
}
return result;
}