//
// sub_1005ED840 from 0x1005ed840 to 0x1005ed894 (84 bytes)
//
// 0 xrefs:
//
// 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:09:46 +0000
//
__int64 __fastcall sub_1005ED840(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // x8
int v4; // w10
int v5; // w11
__int16 v6; // w9
__int16 v7; // w10
v3 = 0;
do
{
v4 = *(unsigned __int16 *)(a1 + 2 * v3);
v5 = *(unsigned __int16 *)(a2 + 2 * v3);
if ( (unsigned int)(v4 - 65) >= 0x1A )
v6 = *(_WORD *)(a1 + 2 * v3);
else
v6 = v4 + 32;
if ( (unsigned int)(v5 - 65) >= 0x1A )
v7 = *(_WORD *)(a2 + 2 * v3);
else
v7 = v5 + 32;
if ( !v6 )
break;
++v3;
}
while ( v6 == v7 && (int)v3 < a3 );
return (unsigned int)(v6 - v7);
}