//
// sub_1800D1490 from 0x1800d1490 to 0x1800d14f4 (100 bytes)
//
// 2 xrefs:
// > sub_1800D2A40 @ 0x1800d2b25
// > ??> @ 0x1801feb98
//
// 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:09 +0000
//
__int64 __fastcall sub_1800D1490(__int64 a1)
{
_DWORD *v2; // rdx
__int64 result; // rax
if ( (int)--*(_DWORD *)(a1 + 424) <= 0 )
{
v2 = *(_DWORD **)(a1 + 416);
*(_DWORD *)(a1 + 424) = 0;
if ( v2 )
{
result = sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);
*(_QWORD *)(a1 + 416) = 0;
}
}
return result;
}