//
// cocos2d::ZipUtils::base64URLDecode from 0x1002db24c to 0x1002db320 (212 bytes)
//
// 2 xrefs:
// > GameToolbox::extractServerPopup @ 0x1000485f4
// > LevelTools::base64DecodeString @ 0x10023e1fc
//
// 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:02:44 +0000
//
void __usercall cocos2d::ZipUtils::base64URLDecode(void **a1@, std::string *a2@)
{
int v3; // w0
if ( (*((char *)a1 + 23) & 0x8000000000000000LL) != 0 )
{
if ( !a1[1] )
{
sub_1000097D0(a2, *a1, 0);
return;
}
a1 = (void **)*a1;
}
else if ( !*((_BYTE *)a1 + 23) )
{
*(_OWORD *)&a2->__r_.__value_.__l.__data_ = *(_OWORD *)a1;
a2->__r_.__value_.__r.__words[2] = (std::string::size_type)a1[2];
return;
}
v3 = sub_1002DD8F8(a1);
if ( v3 < 1 )
{
sub_100009900(a2, "");
}
else
{
a2->__r_.__value_.__r.__words[0] = 0;
a2->__r_.__value_.__l.__size_ = 0;
a2->__r_.__value_.__r.__words[2] = 0;
std::string::append(a2, nullptr, (unsigned int)v3);
}
}