//
// sub_100608C6C from 0x100608c6c to 0x100608d20 (180 bytes)
//
// 1 xrefs:
// > sub_100607C2C @ 0x100607cc8
//
// 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
//
bool __fastcall sub_100608C6C(_BYTE *__s1, size_t a2, void *__s2, size_t __n, __int16 a5)
{
size_t v5; // x8
size_t v6; // x10
_BYTE *v7; // x9
v5 = a2;
if ( a5 < 0 )
{
v6 = a2;
v7 = __s1;
if ( a2 > __n )
{
if ( (a5 & 0x10) != 0 )
{
v6 = a2;
v7 = __s1;
do
{
if ( !*v7 )
break;
if ( *v7 == 46 )
break;
++v7;
--v6;
}
while ( v6 > __n );
}
else
{
v6 = a2;
v7 = __s1;
do
{
if ( !*v7 )
break;
++v7;
--v6;
}
while ( v6 > __n );
}
}
if ( v6 == __n )
{
v5 = __n;
__s1 = v7;
return memcmp(__s1, __s2, v5) == 0;
}
}
if ( a2 == __n )
return memcmp(__s1, __s2, v5) == 0;
return 0;
}