//
// sub_E0A754 from 0xe0a754 to 0xe0a82c (216 bytes)
//
// 11 xrefs:
// > sub_632060 @ 0x6320a4
// > sub_632060 @ 0x6320b4
// > sub_632060 @ 0x6320c4
// > sub_E2FDB8 @ 0xe2fe04
// > sub_E2FDB8 @ 0xe2fe14
// > sub_E2FDB8 @ 0xe2fe24
// > sub_E2FDB8 @ 0xe2fe34
// > sub_E302A0 @ 0xe30418
// > sub_E302A0 @ 0xe30430
// > sub_E302A0 @ 0xe30448
// > sub_E302A0 @ 0xe30460
//
// 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 13:09:35 +0000
//
bool __fastcall sub_E0A754(_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;
}