//
// sub_1800CB7C0 from 0x1800cb7c0 to 0x1800cb7ff (63 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c7a8
// > ??> @ 0x1801fe58c
//
// 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_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;
}