//
// sub_1800DBD90 from 0x1800dbd90 to 0x1800dbe3e (174 bytes)
//
// 3 xrefs:
// > ??> @ 0x18016cf58
// > ??> @ 0x1801ff468
// > ??> @ 0x1801ff474
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:13 +0000
//
__int64 __fastcall sub_1800DBD90(__int64 a1)
{
_DWORD *v2; // rdx
if ( !(unsigned int)sub_180087CB0((_QWORD *)(a1 + 96)) && !(unsigned int)sub_1800DAB90((_DWORD **)(a1 + 112)) )
{
*(_DWORD *)(a1 + 128) = -1;
*(_DWORD *)(a1 + 132) = 0;
}
sub_1800DAC90((_DWORD **)(a1 + 136));
v2 = *(_DWORD **)(a1 + 48);
if ( v2 )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);
*(_QWORD *)(a1 + 48) = 0;
}
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)a1);
return 0;
}