//
// sub_1800BEDA0 from 0x1800beda0 to 0x1800bee08 (104 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016bdc8
// > ??> @ 0x1801fd908
//
// 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_1800BEDA0(__int64 a1)
{
_DWORD *v2; // rdx
if ( *(_QWORD *)(a1 + 64) )
{
sub_1800D0DA0();
*(_QWORD *)(a1 + 64) = 0;
}
v2 = *(_DWORD **)(a1 + 1048);
if ( v2 )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);
*(_QWORD *)(a1 + 1048) = 0;
}
return sub_1800BDB60(a1);
}