//
// sub_1006865C8 from 0x1006865c8 to 0x100686720 (344 bytes)
//
// 2 xrefs:
// > sub_100682ECC @ 0x100683d78
// > sub_100682ECC @ 0x100683db0
//
// This function is hookable on this platform (idp: arm, 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 11:11:25 +0000
//
__int64 __fastcall sub_1006865C8(char *a1, const char *a2)
{
size_t v5; // x21
char *v6; // x0
size_t v7; // x22
size_t v8; // x24
size_t i; // x25
size_t v10; // x8
size_t v11; // x24
size_t v12; // x26
if ( a2 && *a2 )
{
if ( (unsigned int)sub_10069A120("*", a2) )
return 1;
v5 = strlen(a2);
v6 = strchr(a1, 58);
if ( v6 )
v7 = v6 - a1;
else
v7 = strlen(a1);
if ( v5 )
{
v8 = 0;
do
{
while ( v8 < v5 && memchr(", ", a2[v8], 3u) )
++v8;
if ( v8 == v5 )
break;
for ( i = v8; i < v5; ++i )
{
if ( memchr(", ", a2[i], 3u) )
break;
}
if ( a2[v8] == 46 )
v10 = v8 + 1;
else
v10 = v8;
v11 = i - v10;
v12 = v7 - (i - v10);
if ( v7 >= i - v10 && (unsigned int)sub_10069A1C4(&a2[v10], &a1[v12], i - v10) )
{
if ( v7 == v11 )
return 1;
if ( a1[v12 - 1] == 46 )
return 1;
}
v8 = i + 1;
}
while ( i + 1 < v5 );
}
}
return 0;
}