//
// sub_1800DF060 from 0x1800df060 to 0x1800df098 (56 bytes)
//
// 4 xrefs:
// > ??> @ 0x18016d140
// > ??> @ 0x18016d330
// > ??> @ 0x18016d4c8
// > ??> @ 0x18016d698
//
// 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:15 +0000
//
__int64 __fastcall sub_1800DF060(__int64 a1, _DWORD *a2, _DWORD *a3)
{
__int64 *v3; // r10
int v4; // r11d
int i; // r9d
int v6; // eax
bool v7; // zf
__int64 result; // rax
__int64 v9; // rax
__int64 **v10; // rcx
if ( !a2 )
{
if ( !a3 )
return 31;
goto LABEL_5;
}
*a2 = 0;
if ( a3 )
LABEL_5:
*a3 = 0;
v9 = *(_QWORD *)(a1 + 96);
if ( !v9 )
return 0;
v10 = *(__int64 ***)(v9 + 360);
if ( !v10 )
return 0;
v3 = *v10;
v4 = 0;
for ( i = 0; v3 != (__int64 *)v10; i = v6 )
{
++v4;
v6 = i + 1;
v7 = *((_BYTE *)v3 + 60) == 0;
v3 = (__int64 *)*v3;
if ( v7 )
v6 = i;
}
if ( a2 )
*a2 = v4;
result = 0;
if ( a3 )
*a3 = i;
return result;
}