//
// sub_1800CAEC0 from 0x1800caec0 to 0x1800caf04 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x18016c898
//
// 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_1800CAEC0(__int64 a1)
{
__int64 *v1; // r8
__int64 v2; // rdx
v1 = (__int64 *)(a1 + 448);
if ( (__int64 *)*v1 == v1 && *(_QWORD *)(a1 + 456) == a1 + 448 )
{
v2 = *(_QWORD *)(a1 + 8) + 69888LL;
*(_QWORD *)(a1 + 456) = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 69896LL);
*v1 = v2;
*(_QWORD *)(v2 + 8) = v1;
**(_QWORD **)(a1 + 456) = v1;
*(_QWORD *)(a1 + 464) = a1;
}
*(_DWORD *)(a1 + 72) |= 0x80u;
return 0;
}