//
// sub_1800D7B90 from 0x1800d7b90 to 0x1800d7bd1 (65 bytes)
//
// 6 xrefs:
// > sub_180098710 @ 0x1800988b9
// > sub_1800DC1E0 @ 0x1800dc263
// > sub_1800E2E00 @ 0x1800e2e52
// > sub_1800E4050 @ 0x1800e4074
// > sub_1800E4790 @ 0x1800e4891
// > sub_1800E6830 @ 0x1800e68e1
//
// 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_1800D7B90(__int64 a1, int a2, _QWORD *a3)
{
_QWORD *v5; // rdx
_QWORD *v6; // rax
__int64 v7; // rcx
if ( !a3 )
return 31;
v5 = (_QWORD *)(a1 + 328);
*a3 = 0;
v6 = *(_QWORD **)(a1 + 328);
if ( v6 == (_QWORD *)(a1 + 328) )
return 54;
while ( 1 )
{
v7 = v6[2];
if ( *(_DWORD *)(v7 + 20) == a2 )
break;
v6 = (_QWORD *)*v6;
if ( v6 == v5 )
return 54;
}
*a3 = v7;
return 0;
}