//
// sub_18000F110 from 0x18000f110 to 0x18000f16b (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c7c8
// > ??> @ 0x18016ca40
//
// 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:52:44 +0000
//
__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;
}