//
// sub_100668330 from 0x100668330 to 0x100668364 (52 bytes)
//
// 0 xrefs:
//
// 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_100668330(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;
}