//
// sub_951E8E from 0x951e8e to 0x951ee4 (86 bytes)
//
// 10 xrefs:
// > sub_9520B0 @ 0x95219e
// > sub_9520B0 @ 0x95229a
// > sub_9520B0 @ 0x9522ac
// > sub_9520B0 @ 0x9522bc
// > sub_9520B0 @ 0x9522cc
// > sub_9520B0 @ 0x9522dc
// > sub_9520B0 @ 0x9522ec
// > sub_9520B0 @ 0x9522fc
// > sub_9520B0 @ 0x95230c
// > sub_9520B0 @ 0x95231c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:05:24 +0000
//
int __fastcall sub_951E8E(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;
}