//
// sub_100676F10 from 0x100676f10 to 0x100677010 (256 bytes)
//
// 12 xrefs:
// > sub_100673C98 @ 0x100674128
// > sub_100673C98 @ 0x1006750d0
// > sub_100673C98 @ 0x1006753e0
// > sub_100673C98 @ 0x100675564
// > sub_100673C98 @ 0x100675890
// > sub_1006773BC @ 0x100677c44
// > sub_1006773BC @ 0x100677ce4
// > sub_1006773BC @ 0x100677d2c
// > sub_1006773BC @ 0x100677d60
// > sub_1006A22C8 @ 0x1006a2988
// > sub_1006A22C8 @ 0x1006a29a4
// > sub_1006A22C8 @ 0x1006a29e4
//
// 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:12 +0000
//
__int64 __fastcall sub_100676F10(__int64 a1, char *__s, const char *a3)
{
size_t v6; // x21
char *v7; // x20
unsigned __int8 v8; // w8
__uint32_t v9; // w0
int v10; // t1
char *v11; // x0
size_t v12; // x22
size_t v13; // x21
v6 = strlen(__s);
if ( (unsigned int)sub_10069A1C4(a1, __s, v6) )
{
v7 = (char *)(a1 + v6);
v8 = *v7;
if ( *v7 )
{
do
{
if ( (char)v8 < 0 )
v9 = __maskrune(v8, 0x4000u);
else
v9 = _DefaultRuneLocale.__runetype[v8] & 0x4000;
if ( !v9 )
break;
v10 = (unsigned __int8)*++v7;
v8 = v10;
}
while ( v10 );
}
v11 = strchr(v7, 13);
if ( !v11 )
{
v11 = strchr(v7, 10);
if ( !v11 )
v11 = &v7[strlen(v7)];
}
v12 = v11 - v7;
v13 = strlen(a3);
while ( v12 >= v13 )
{
if ( (unsigned int)sub_10069A1C4(v7, a3, v13) )
return 1;
--v12;
++v7;
}
}
return 0;
}