//
// cocos2d::ZipUtils::base64URLDecode from 0xb295d0 to 0xb296ac (220 bytes)
//
// 2 xrefs:
// > LevelTools::base64DecodeString @ 0x605fa0
// > ??> @ 0x483d8
//
// 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
//
char **__usercall cocos2d::ZipUtils::base64URLDecode@(cocos2d **a1@, char **a2@)
{
cocos2d *v2; // x0
__int64 v4; // x3
int v5; // w0
void *p; // [xsp+28h] [xbp+28h] BYREF
char *v8; // [xsp+30h] [xbp+30h] BYREF
v2 = *a1;
v4 = *((_QWORD *)v2 - 3);
if ( v4 )
{
p = nullptr;
v5 = base64Decode(v2, (const unsigned __int8 *)(unsigned int)v4, &p, 1u);
if ( v5 <= 0 )
{
if ( p )
{
operator delete[](p);
p = nullptr;
}
sub_D153B8((int)a2, &byte_F288A0);
}
else
{
v8 = &byte_124B6C8;
sub_D15FD4(&v8, p, v5);
if ( p )
operator delete[](p);
*a2 = v8;
}
}
else
{
sub_D18D28(a2);
}
return a2;
}