//
// LevelTools::base64DecodeString from 0x100500ba0 to 0x100500bef (79 bytes)
//
// 62 xrefs:
// > LevelSettingsObject::objectFromDict @ 0x1000dca53
// > StartPosObject::getDisplayName @ 0x10019e36f
// > StartPosLayer::updateInputNode @ 0x10025dbb9
// > sub_100531820 @ 0x100531f6b
// > sub_100531820 @ 0x10053206b
// > sub_100531820 @ 0x1005321c2
// > sub_100532390 @ 0x100532e8b
// > sub_100532390 @ 0x1005337aa
// > sub_100532390 @ 0x1005338aa
// > sub_100533E00 @ 0x1005343da
// > sub_100533E00 @ 0x1005345d2
// > sub_1005349A0 @ 0x100535054
// > sub_1005349A0 @ 0x100535719
// > sub_1005349A0 @ 0x100535896
// > sub_1005349A0 @ 0x100535c8b
// > sub_1005349A0 @ 0x100535d7b
// > sub_100536210 @ 0x10053653e
// > sub_100536210 @ 0x1005366c0
// > sub_100536210 @ 0x1005369a1
// > sub_100536210 @ 0x100536aa2
// > GameLevelManager::onGetThreadsCompleted @ 0x100538d7b
// > GameLevelManager::onGetThreadsCompleted @ 0x100538e6b
// > GameLevelManager::onGetThreadsCompleted @ 0x100538fe4
// > GameLevelManager::onGetThreadsCompleted @ 0x1005392af
// > sub_100539560 @ 0x100539f2b
// > sub_100539560 @ 0x10053a0ef
// > GameLevelManager::onUpdateThreadCompleted @ 0x10053adf4
// > sub_10053B520 @ 0x10053b9ee
// > sub_10053B520 @ 0x10053bade
// > sub_10053B520 @ 0x10053bc55
// > sub_10053B520 @ 0x10053bd4a
// > sub_10053C050 @ 0x10053c85e
// > sub_10053C050 @ 0x10053c96e
// > GameLevelManager::getGauntletLevels @ 0x10055e0ed
// > GJFriendRequest::create @ 0x100567992
// > GJUserMessage::create @ 0x1005682ee
// > GJComment::create @ 0x10056b246
// > sub_100573A30 @ 0x100573d4d
// > sub_100573E40 @ 0x1005746dc
// > sub_100573E40 @ 0x100574bb2
// > GJGameLevel::getUnpackedLevelDescription @ 0x10058c266
// > GJLevelList::getUnpackedDescription @ 0x10058ebe6
// > GJLevelList::showListInfo @ 0x10058f9a0
// > MusicDownloadManager::customSFXPathLeaf @ 0x100652b06
// > MusicDownloadManager::customSFXPathDisplay @ 0x100652c48
// > MusicDownloadManager::importCustomSFXSetup @ 0x100653e6e
// > MusicDownloadManager::importCustomSFXSetup @ 0x100654181
// > sub_100655920 @ 0x100655d5e
// > sub_100655920 @ 0x100655e92
// > MusicDownloadManager::parseMusicLibrary @ 0x10065bd39
// > MusicDownloadManager::parseSFXLibrary @ 0x1006601dc
// > MusicDownloadManager::parseNewsFeed @ 0x1006623c8
// > MusicDownloadManager::parseNewsFeed @ 0x100662438
// > MusicDownloadManager::parseNewsFeed @ 0x1006627dc
// > MusicDownloadManager::parseNewsFeed @ 0x1006628c6
// > MusicDownloadManager::parseNewsFeed @ 0x1006629f2
// > MusicDownloadManager::parseNewsFeed @ 0x100662bb7
// > TextGameObject::customObjectSetup @ 0x1006a339d
// > sub_1008B66E0 @ 0x1008b673b
// > sub_1009076A0 @ 0x1009076f6
// > sub_100907740 @ 0x1009077ac
// > sub_100923C60 @ 0x100923d68
//
// This function is hookable on this platform (idp: pc, 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 12:31:30 +0000
//
std::string *__fastcall LevelTools::base64DecodeString(std::string *a1, std::string *a2)
{
unsigned int v2; // eax
v2 = (unsigned int)a2->__r_.__value_.__l.0;
if ( (v2 & 1) != 0 )
{
if ( a2->__r_.__value_.__l.__size_ )
goto LABEL_3;
}
else if ( v2 >> 1 )
{
LABEL_3:
cocos2d::ZipUtils::base64URLDecode(a1, a2);
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;
}