//
// sub_1800D7C00 from 0x1800d7c00 to 0x1800d7c40 (64 bytes)
//
// 3 xrefs:
// > sub_1800DC1E0 @ 0x1800dc247
// > sub_1800E4740 @ 0x1800e4764
// > sub_1800E6830 @ 0x1800e68c1
//
// 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_1800D7C00(__int64 a1, int a2, _DWORD *a3)
{
_QWORD *v3; // r10
int v4; // r9d
_QWORD *i; // rax
__int64 v6; // rcx
if ( a3 )
{
v3 = (_QWORD *)(a1 + 328);
v4 = 0;
for ( i = *(_QWORD **)(a1 + 328); i != v3; i = (_QWORD *)*i )
{
v6 = i[2];
if ( *(_DWORD *)(v6 + 24) != 1010 )
{
if ( v4 == a2 )
{
*a3 = *(_DWORD *)(v6 + 20);
return 0;
}
++v4;
}
}
}
return 31;
}