//
// sub_1800D7B00 from 0x1800d7b00 to 0x1800d7b3c (60 bytes)
//
// 3 xrefs:
// > sub_1800E4790 @ 0x1800e4836
// > sub_1800FD770 @ 0x1800fd7dd
// > sub_1800FE610 @ 0x1800fea71
//
// 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:12 +0000
//
__int64 __fastcall sub_1800D7B00(__int64 a1, int a2, _QWORD *a3)
{
_QWORD *v4; // rcx
_QWORD *v5; // rax
if ( !a3 )
return 31;
v4 = (_QWORD *)(a1 + 384);
*a3 = 0;
v5 = (_QWORD *)*v4;
if ( (_QWORD *)*v4 == v4 )
return 54;
while ( *((_DWORD *)v5 + 36) != a2 )
{
v5 = (_QWORD *)*v5;
if ( v5 == v4 )
return 54;
}
*a3 = v5;
return 0;
}