//
// sub_100668760 from 0x100668760 to 0x10066880d (173 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
//
void __fastcall sub_100668760(unsigned int *a1, unsigned int *a2)
{
unsigned int v2; // r8d
unsigned __int64 v3; // rax
__int64 v4; // rdx
__int64 v5; // r8
if ( *a2 )
{
v2 = *a1;
if ( *a1 )
{
v3 = 0;
do
{
LODWORD(v4) = 0;
if ( v2 )
{
v4 = v2;
v5 = 0;
while ( *(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * v5) != *(_QWORD *)(*((_QWORD *)a2 + 2) + 8 * v3) )
{
if ( v4 == ++v5 )
goto LABEL_4;
}
if ( v5 != 0xFFFFFFFFLL )
{
LODWORD(v4) = v4 - 1;
*a1 = v4;
if ( (unsigned int)v4 > (unsigned int)v5 )
{
do
{
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * v5) = *(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * v5 + 8);
++v5;
}
while ( (unsigned int)v4 != v5 );
}
}
}
LABEL_4:
++v3;
v2 = v4;
}
while ( v3 < *a2 );
}
}
}