//
// sub_1001ED064 from 0x1001ed064 to 0x1001ed0b0 (76 bytes)
//
// 1 xrefs:
// > cocos2d::ZipUtils::urlDecode @ 0x1002db524
//
// 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:00:36 +0000
//
_QWORD *__usercall sub_1001ED064@(_QWORD *result@, _QWORD *a2@)
{
int v2; // w9
unsigned __int64 v3; // x2
unsigned __int64 v4; // x9
void *v5; // x1
v2 = *((_DWORD *)result + 24);
if ( (v2 & 0x10) != 0 )
{
v3 = result[11];
v4 = result[6];
if ( v3 < v4 )
{
result[11] = v4;
v3 = v4;
}
v5 = (void *)result[5];
}
else
{
if ( (v2 & 8) == 0 )
{
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
return result;
}
v5 = (void *)result[2];
v3 = result[4];
}
return sub_1000500C8(a2, v5, v3, v3 - (_QWORD)v5);
}