//
// 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!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}