//
// sub_1800D4A70 from 0x1800d4a70 to 0x1800d4af1 (129 bytes)
//
// 6 xrefs:
// > sub_180012990 @ 0x180012b36
// > sub_1800FE610 @ 0x1800fed29
// > sub_1800FE610 @ 0x180100616
// > ??> @ 0x18018c0b8
// > ??> @ 0x18018c0c8
// > ??> @ 0x1801fee2c
//
// 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:10 +0000
//
__int64 __fastcall sub_1800D4A70(_DWORD *a1)
{
_QWORD **v1; // rax
_QWORD **v3; // rbx
v1 = *(_QWORD ***)a1;
if ( *(_DWORD **)a1 != a1 )
{
do
{
v3 = (_QWORD **)*v1;
*v1[1] = *v1;
(*v1)[1] = v1[1];
v1[1] = v1;
*v1 = v1;
sub_1800D4B00(v1);
v1 = v3;
}
while ( v3 != (_QWORD **)a1 );
}
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), a1);
return 0;
}