//
// sub_B9459C from 0xb9459c to 0xb94674 (216 bytes)
//
// 11 xrefs:
// > sub_4DE2D0 @ 0x4de314
// > sub_4DE2D0 @ 0x4de324
// > sub_4DE2D0 @ 0x4de334
// > sub_BB9BF8 @ 0xbb9c44
// > sub_BB9BF8 @ 0xbb9c54
// > sub_BB9BF8 @ 0xbb9c64
// > sub_BB9BF8 @ 0xbb9c74
// > sub_BBA0E0 @ 0xbba258
// > sub_BBA0E0 @ 0xbba270
// > sub_BBA0E0 @ 0xbba288
// > sub_BBA0E0 @ 0xbba2a0
//
// 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_B9459C(_BYTE *a1, _BYTE *a2)
{
int v3; // w5
unsigned int v4; // w2
int v5; // w6
int v6; // w4
int v7; // t1
int v8; // w0
if ( !a1 || !a2 )
return a1 == nullptr && a2 == nullptr;
v3 = (unsigned __int8)*a1;
if ( !*a1 )
{
LABEL_20:
v8 = (unsigned __int8)*a2;
v3 = 0;
goto LABEL_15;
}
while ( 1 )
{
v6 = (unsigned __int8)*a2;
if ( !*a2 )
{
v8 = 0;
if ( (unsigned __int8)(v3 - 97) > 0x19u )
return v3 == v8;
goto LABEL_14;
}
v4 = (unsigned __int8)(v3 - 97);
v5 = v3;
if ( v4 <= 0x19 )
v5 = (unsigned __int8)(v3 - 32);
if ( (unsigned __int8)(v6 - 97) <= 0x19u )
v6 = (unsigned __int8)(v6 - 32);
if ( v5 != v6 )
break;
v7 = (unsigned __int8)*++a1;
v3 = v7;
++a2;
if ( !v7 )
goto LABEL_20;
}
v8 = (unsigned __int8)*a2;
if ( v4 <= 0x19 )
LABEL_14:
v3 = (unsigned __int8)(v3 - 32);
LABEL_15:
if ( (unsigned __int8)(v8 - 97) <= 0x19u )
v8 = (unsigned __int8)(v8 - 32);
return v3 == v8;
}