//
// sub_83AB60 from 0x83ab60 to 0x83abe2 (130 bytes)
//
// 11 xrefs:
// > sub_38BC10 @ 0x38bc2e
// > sub_38BC10 @ 0x38bc3a
// > sub_38BC10 @ 0x38bc46
// > sub_855344 @ 0x855362
// > sub_855344 @ 0x85536e
// > sub_855344 @ 0x85537a
// > sub_855344 @ 0x855386
// > sub_855638 @ 0x855738
// > sub_855638 @ 0x855748
// > sub_855638 @ 0x855758
// > sub_855638 @ 0x855768
//
// 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:02:16 +0000
//
bool __fastcall sub_83AB60(_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;
}