//
// LevelTools::base64DecodeString from 0x1404680a0 to 0x140468127 (135 bytes)
//
// 17 xrefs:
// > EditLevelLayer::init @ 0x14017907c
// > EditorSoundConfigInfoLayer::onDescription @ 0x140195cb8
// > EditorSoundConfigUploadPopup::init @ 0x14019ac17
// > GameLevelManager::getGauntletLevels @ 0x140231b5f
// > GameLevelManager::storeThreadManifest @ 0x14024e15f
// > GJLevelList::showListInfo @ 0x1402736b3
// > TextGameObject::customObjectSetup @ 0x1402a4b6f
// > GJEditorSoundConfig::showSoundInfo @ 0x140361205
// > InfoLayer::init @ 0x1403ce8e4
// > InfoLayer::init @ 0x1403ce95b
// > InfoLayer::onLevelInfo @ 0x1403d0f60
// > LevelListLayer::onDescription @ 0x14042f71a
// > ShareListLayer::init @ 0x140432184
// > MusicDownloadManager::customSFXPathLeaf @ 0x140486a25
// > ShareLevelLayer::init @ 0x140630a2d
// > StartPosObject::getDisplayName @ 0x140653644
// > ??> @ 0x140927f08
//
// 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 11:32:35 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LevelTools::base64DecodeString(__int64 a1, __int64 a2)
{
if ( *(_QWORD *)(a2 + 16) )
{
cocos2d::ZipUtils::base64URLDecode(a1, a2);
}
else
{
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0;
*(_OWORD *)a1 = *(_OWORD *)a2;
*(_OWORD *)(a1 + 16) = *(_OWORD *)(a2 + 16);
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 24) = 15;
*(_BYTE *)a2 = 0;
}
sub_14003D310(a2);
return a1;
}