//
// sub_1800BE6E0 from 0x1800be6e0 to 0x1800be772 (146 bytes)
//
// 2 xrefs:
// > sub_1800BE8F0 @ 0x1800be91a
// > ??> @ 0x1801fd8a8
//
// 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_1800BE6E0(__int64 *a1)
{
__int64 v1; // rdx
_DWORD *v3; // rax
_QWORD *v4; // rdi
v1 = *a1;
if ( *a1 )
{
v3 = *(_DWORD **)(v1 + 8);
v4 = (_QWORD *)(v1 + 8);
if ( !v3 || (sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v3), *v4 = 0, (v1 = *a1) != 0) )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)v1);
*a1 = 0;
}
}
return 0;
}