//
// sub_601420 from 0x601420 to 0x601446 (38 bytes)
//
// 3 xrefs:
// > sub_602140 @ 0x602176
// > sub_602188 @ 0x6021ce
// > sub_6049F4 @ 0x604c44
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_BYTE *__fastcall sub_601420(unsigned int *a1, int a2, _BYTE *a3)
{
unsigned int *v3; // r4
unsigned int v4; // r5
_BYTE *result; // r0
unsigned int v6; // r1
unsigned int v7; // t1
v3 = a1;
v4 = (unsigned int)&a1[a2];
result = a3;
while ( (unsigned int)v3 < v4 )
{
v7 = *v3++;
v6 = v7;
if ( v7 >= 0x10000 )
result = (_BYTE *)sub_5FFF74((int)result, v6);
else
result = sub_600D38(result, v6);
}
return result;
}