//
// sub_1005ED7FC from 0x1005ed7fc to 0x1005ed840 (68 bytes)
//
// 1 xrefs:
// > sub_1005ED7FC @ 0x1005ed830
//
// 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_1005ED7FC(unsigned __int16 *a1, unsigned __int16 *a2)
{
unsigned __int16 v2; // w8
int v3; // t1
unsigned __int16 v4; // w10
bool v5; // cf
int v6; // w9
int v7; // t1
do
{
v3 = *a1++;
v2 = v3;
v4 = v3 + 32;
v5 = (unsigned int)(v3 - 65) >= 0x1A;
v7 = *a2++;
v6 = v7;
if ( !v5 )
v2 = v4;
if ( (unsigned int)(v6 - 65) < 0x1A )
LOWORD(v6) = v6 + 32;
}
while ( v2 && v2 == (unsigned __int16)v6 );
return (unsigned int)((__int16)v2 - (__int16)v6);
}