//
// sub_100164224 from 0x100164224 to 0x100164270 (76 bytes)
//
// 1 xrefs:
// > cocos2d::ZipUtils::urlDecode @ 0x10023e4d8
//
// 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
//
_QWORD *__usercall sub_100164224@(_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_100048C8C(a2, v5, v3, v3 - (_QWORD)v5);
}