//
// sub_601D4C from 0x601d4c to 0x601d70 (36 bytes)
//
// 3 xrefs:
// > sub_602140 @ 0x60214e
// > sub_602188 @ 0x6021b4
// > sub_6049F4 @ 0x604c22
//
// 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
//
int __fastcall sub_601D4C(unsigned int *a1, int a2)
{
unsigned int v2; // r5
unsigned int *v3; // r4
int result; // r0
unsigned int v5; // r1
unsigned int v6; // t1
v2 = (unsigned int)&a1[a2];
v3 = a1;
result = 0;
while ( (unsigned int)v3 < v2 )
{
v6 = *v3++;
v5 = v6;
if ( v6 >= 0x10000 )
result += 4;
else
result = sub_5FFF60(result, v5);
}
return result;
}