//
// sub_1800FD0C0 from 0x1800fd0c0 to 0x1800fd17d (189 bytes)
//
// 4 xrefs:
// > sub_1800E2620 @ 0x1800e2c6f
// > ??> @ 0x18018f5bc
// > ??> @ 0x18018f5cc
// > ??> @ 0x180200f80
//
// 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:26 +0000
//
__int64 __fastcall sub_1800FD0C0(_QWORD *a1)
{
_QWORD *v1; // rbx
_QWORD *v2; // rsi
_QWORD *v3; // rdi
v1 = a1 + 8454;
a1[8453] = -1;
a1[8450] = a1 + 8450;
a1[8451] = a1 + 8450;
a1[8452] = 0;
v2 = (_QWORD *)a1[8454];
if ( v2 != a1 + 8454 )
{
do
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)v2[2]);
v3 = (_QWORD *)*v2;
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);
v2 = v3;
}
while ( v3 != v1 );
}
v1[1] = v1;
*v1 = v1;
v1[2] = 0;
return 0;
}