//
// sub_B947A0 from 0xb947a0 to 0xb94858 (184 bytes)
//
// 0 xrefs:
//
// 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_B947A0(_BYTE *a1, _BYTE *a2)
{
int v2; // w5
unsigned int v3; // w2
int v4; // w6
int v5; // w4
int v6; // t1
int v7; // w0
v2 = (unsigned __int8)*a1;
if ( *a1 )
{
while ( 1 )
{
v5 = (unsigned __int8)*a2;
if ( !*a2 )
{
v7 = 0;
if ( (unsigned __int8)(v2 - 97) > 0x19u )
return v2 == v7;
goto LABEL_13;
}
v3 = (unsigned __int8)(v2 - 97);
v4 = v2;
if ( v3 <= 0x19 )
v4 = (unsigned __int8)(v2 - 32);
if ( (unsigned __int8)(v5 - 97) <= 0x19u )
v5 = (unsigned __int8)(v5 - 32);
if ( v4 != v5 )
break;
v6 = (unsigned __int8)*++a1;
v2 = v6;
++a2;
if ( !v6 )
goto LABEL_17;
}
v7 = (unsigned __int8)*a2;
if ( v3 > 0x19 )
goto LABEL_14;
LABEL_13:
v2 = (unsigned __int8)(v2 - 32);
}
else
{
LABEL_17:
v7 = (unsigned __int8)*a2;
v2 = 0;
}
LABEL_14:
if ( (unsigned __int8)(v7 - 97) <= 0x19u )
v7 = (unsigned __int8)(v7 - 32);
return v2 == v7;
}