//
// LevelTools::base64DecodeString from 0x100501e70 to 0x100501ebf (79 bytes)
//
// 8 xrefs:
// > GameLevelManager::getGauntletLevels @ 0x10054381d
// > GJFriendRequest::create @ 0x10054d182
// > GJUserMessage::create @ 0x10054dade
// > GJComment::create @ 0x100550ae6
// > GJGameLevel::getUnpackedLevelDescription @ 0x10055f6c6
// > GJLevelList::getUnpackedDescription @ 0x100561f36
// > GJLevelList::showListInfo @ 0x1005630d0
// > TextGameObject::customObjectSetup @ 0x1005d1afd
//
// 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
//
std::string *__fastcall LevelTools::base64DecodeString(std::string *a1, std::string *a2, double a3)
{
unsigned int v3; // eax
v3 = (unsigned int)a2->__r_.__value_.__l.0;
if ( (v3 & 1) != 0 )
{
if ( a2->__r_.__value_.__l.__size_ )
goto LABEL_3;
}
else if ( v3 >> 1 )
{
LABEL_3:
cocos2d::ZipUtils::base64URLDecode(a1, a2, a3);
return a1;
}
a1->__r_.__value_.__r.__words[2] = a2->__r_.__value_.__r.__words[2];
*(_OWORD *)&a1->__r_.__value_.__l.0 = *(_OWORD *)&a2->__r_.__value_.__l.0;
*(_OWORD *)&a2->__r_.__value_.__l.0 = 0;
a2->__r_.__value_.__r.__words[2] = 0;
return a1;
}