//
// sub_18000F110 from 0x18000f110 to 0x18000f16b (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c7c8
// > ??> @ 0x18016ca40
//
// 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_18000F110(__int64 a1, __int64 a2, _DWORD *a3)
{
int v5; // edx
_QWORD *v6; // rax
__int64 v7; // r10
__int64 v8; // rcx
if ( !a2 )
return 31;
v5 = 0;
if ( a3 )
*a3 = 0;
v6 = *(_QWORD **)(a1 + 16);
if ( v6 )
{
v7 = *(int *)(a1 + 24);
if ( (int)v7 <= 0 )
return 9;
v8 = 0;
while ( *v6 != a2 )
{
++v5;
++v8;
++v6;
if ( v8 >= v7 )
return 9;
}
if ( a3 )
*a3 = v5;
}
else if ( a2 != *(_QWORD *)(a1 + 96) )
{
return 9;
}
return 0;
}