//
// sub_1800FD2E0 from 0x1800fd2e0 to 0x1800fd36f (143 bytes)
//
// 5 xrefs:
// > sub_1800985F0 @ 0x180098642
// > sub_1800E5F70 @ 0x1800e5fd5
// > ??> @ 0x18018f50c
// > ??> @ 0x18018f51c
// > ??> @ 0x180200fb0
//
// 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_1800FD2E0(__int64 a1, __int64 a2)
{
__int64 v2; // rax
_QWORD *v3; // rsi
_QWORD *v5; // rbx
__int64 v6; // rax
_QWORD *v7; // rdi
__int64 v9; // [rsp+40h] [rbp+8h] BYREF
v2 = *(_QWORD *)(a1 + 872);
v3 = (_QWORD *)(a1 + 496);
v5 = (_QWORD *)(v2 - 376);
if ( !v2 )
v5 = nullptr;
if ( v5 != v3 )
{
do
{
v6 = v5[47];
v7 = (_QWORD *)(v6 - 376);
if ( !v6 )
v7 = nullptr;
sub_1800CD800((__int64)v5, &v9);
if ( v9 == a2 )
(*(void (__fastcall **)(_QWORD *))(*v5 + 8LL))(v5);
v5 = v7;
}
while ( v7 != v3 );
}
return 0;
}