//
// sub_62AAE0 from 0x62aae0 to 0x62ab62 (130 bytes)
//
// 11 xrefs:
// > sub_2B42A8 @ 0x2b42c6
// > sub_2B42A8 @ 0x2b42d2
// > sub_2B42A8 @ 0x2b42de
// > sub_6452C4 @ 0x6452e2
// > sub_6452C4 @ 0x6452ee
// > sub_6452C4 @ 0x6452fa
// > sub_6452C4 @ 0x645306
// > sub_6455B8 @ 0x6456b8
// > sub_6455B8 @ 0x6456c8
// > sub_6455B8 @ 0x6456d8
// > sub_6455B8 @ 0x6456e8
//
// 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_62AAE0(_BYTE *a1, _BYTE *a2)
{
bool v2; // zf
bool v3; // zf
int v5; // r4
int v6; // r5
int v7; // r2
int v8; // t1
unsigned int v9; // r3
int v10; // r0
v2 = a1 == nullptr;
if ( a1 )
v2 = a2 == nullptr;
if ( v2 )
{
v3 = a1 == nullptr;
if ( !a1 )
return a2 == nullptr;
return v3;
}
v5 = (unsigned __int8)*a1;
if ( !*a1 )
{
LABEL_26:
v10 = (unsigned __int8)*a2;
v5 = 0;
goto LABEL_21;
}
while ( 1 )
{
v7 = (unsigned __int8)*a2;
v9 = v5 - 97;
if ( !*a2 )
{
v10 = 0;
if ( v9 > 0x19 )
return v5 == v10;
goto LABEL_20;
}
v6 = v5;
if ( (unsigned __int8)v9 <= 0x19u )
v6 = (unsigned __int8)(v5 - 32);
if ( (unsigned int)(v7 - 97) <= 0x19 )
v7 = (unsigned __int8)(v7 - 32);
if ( v6 != v7 )
break;
v8 = (unsigned __int8)*++a1;
v5 = v8;
++a2;
if ( !v8 )
goto LABEL_26;
}
v10 = (unsigned __int8)*a2;
if ( (unsigned __int8)v9 <= 0x19u )
LABEL_20:
v5 = (unsigned __int8)(v5 - 32);
LABEL_21:
if ( (unsigned int)(v10 - 97) <= 0x19 )
v10 = (unsigned __int8)(v10 - 32);
return v5 == v10;
}