//
// sub_1002712A8 from 0x1002712a8 to 0x100271314 (108 bytes)
//
// 2 xrefs:
// > sub_1002711A4 @ 0x100271238
// > sub_100271314 @ 0x1002713b8
//
// 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 11:01:46 +0000
//
__int64 __fastcall sub_1002712A8(_BYTE *a1, _BYTE *a2)
{
__darwin_ct_rune_t v4; // w0
__darwin_ct_rune_t v5; // w21
__darwin_ct_rune_t v6; // t1
__int64 result; // x0
__darwin_ct_rune_t v8; // w20
while ( 1 )
{
v4 = (unsigned __int8)*a1;
if ( !*a1 || !*a2 )
break;
v5 = __tolower(v4);
v6 = (unsigned __int8)*a2++;
++a1;
result = (unsigned int)(v5 - __tolower(v6));
if ( (_DWORD)result )
return result;
}
v8 = __tolower(v4);
return (unsigned int)(v8 - __tolower((unsigned __int8)*a2));
}