//
// sub_100747860 from 0x100747860 to 0x100747894 (52 bytes)
//
// 0 xrefs:
//
// 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 12:36:31 +0000
//
__int64 __fastcall sub_100747860(unsigned int *a1, __int64 a2)
{
__int64 v2; // rcx
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rdx
v2 = *a1;
result = 0xFFFFFFFFLL;
if ( *a1 )
{
v4 = *((_QWORD *)a1 + 2);
v5 = 0;
while ( *(_QWORD *)(v4 + 8 * v5) != a2 )
{
if ( v2 == ++v5 )
return result;
}
return (unsigned int)v5;
}
return result;
}