//
// sub_7422CE from 0x7422ce to 0x742324 (86 bytes)
//
// 10 xrefs:
// > sub_7424F0 @ 0x7425de
// > sub_7424F0 @ 0x7426da
// > sub_7424F0 @ 0x7426ec
// > sub_7424F0 @ 0x7426fc
// > sub_7424F0 @ 0x74270c
// > sub_7424F0 @ 0x74271c
// > sub_7424F0 @ 0x74272c
// > sub_7424F0 @ 0x74273c
// > sub_7424F0 @ 0x74274c
// > sub_7424F0 @ 0x74275c
//
// 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
//
int __fastcall sub_7422CE(unsigned __int8 *a1, char *a2)
{
size_t v4; // r5
int result; // r0
int v6; // r3
unsigned __int8 *v7; // r0
unsigned __int8 *v8; // r1
int v9; // r2
unsigned __int8 *v10; // r3
v4 = strlen(a2);
if ( !a1 )
return 0;
while ( 1 )
{
result = *a1;
if ( !*a1 )
break;
do
{
do
{
v6 = *a1;
v7 = a1++;
}
while ( v6 == 32 );
}
while ( v6 == 9 );
v8 = v7;
do
{
v9 = *v8;
v10 = v8++;
}
while ( (v9 & 0xDF) != 0 && v9 != 9 );
a1 = v10;
if ( v4 == v10 - v7 && !memcmp(v7, a2, v4) )
return 1;
}
return result;
}