//
// sub_A4F600 from 0xa4f600 to 0xa4f6a4 (164 bytes)
//
// 4 xrefs:
// > friendNameCompare @ 0xa5193c
// > friendNameCompare @ 0xa5198c
// > friendSinceCompare @ 0xa51ab8
// > friendSinceCompare @ 0xa51ae0
//
// 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:00:04 +0000
//
__int64 __fastcall sub_A4F600(unsigned __int8 *a1, _BYTE *a2)
{
unsigned __int8 *v2; // x22
_BYTE *v3; // x20
int v4; // w0
int v5; // w21
int v6; // t1
int v7; // w19
__int64 result; // x0
int v9; // w20
int v10; // w19
v2 = a1;
v3 = a2;
v4 = *a1;
if ( !v4 )
{
v9 = (unsigned __int8)*a2;
goto LABEL_9;
}
v5 = (unsigned __int8)*a2;
if ( !*a2 )
{
LABEL_8:
v9 = 0;
LABEL_9:
v10 = tolower(v4);
return (unsigned int)(v10 - tolower(v9));
}
while ( 1 )
{
v7 = tolower(v4);
result = (unsigned int)(v7 - tolower(v5));
if ( (_DWORD)result )
return result;
v6 = *++v2;
v4 = v6;
if ( !v6 )
{
v9 = (unsigned __int8)v3[1];
goto LABEL_9;
}
v5 = (unsigned __int8)*++v3;
if ( !v5 )
goto LABEL_8;
}
}