//
// sub_1800CAC40 from 0x1800cac40 to 0x1800cac8d (77 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c7a0
// > ??> @ 0x1801fe4c0
//
// 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_1800CAC40(__int64 a1, int a2, __int64 a3)
{
__int64 result; // rax
int v6; // [rsp+48h] [rbp+20h] BYREF
v6 = 0;
result = sub_18000E700(a1, a2, a3);
if ( !(_DWORD)result )
{
result = sub_180098070(a3, &v6);
if ( !(_DWORD)result )
{
if ( v6 == 25 )
*(_QWORD *)(a1 + 584) = a3;
return 0;
}
}
return result;
}