//
// LevelTools::base64EncodeString from 0x72c764 to 0x72c7cc (104 bytes)
//
// 30 xrefs:
// > TextGameObject::getSaveString @ 0x7866ac
// > LevelSettingsObject::getSaveString @ 0x7a6be8
// > CreateStartPosPopup::onCreate @ 0x7d9918
// > EditLevelLayer::textInputClosed @ 0x7ef4b0
// > GameLevelManager::sendThreadMessage @ 0x8259dc
// > GameLevelManager::sendThreadMessage @ 0x825af0
// > GameLevelManager::sendThreadMessage @ 0x825c78
// > GameLevelManager::sendThreadMessage @ 0x825d90
// > GameLevelManager::sendThreadMessage @ 0x825e10
// > GameLevelManager::getThreads @ 0x8263cc
// > GameLevelManager::getThreadMessages @ 0x82691c
// > GameLevelManager::searchThreadMessages @ 0x826c5c
// > GameLevelManager::updateThread @ 0x8283b4
// > GameLevelManager::getUserSearch @ 0x828780
// > GameLevelManager::getFriendRequests @ 0x8290cc
// > GameLevelManager::appendModReason @ 0x8302a8
// > GJGameLevel::dataLoaded @ 0x83dcf8
// > GameLevelManager::uploadUserMessage @ 0x83f6e4
// > GameLevelManager::uploadComment @ 0x83fa78
// > GameLevelManager::uploadFriendRequest @ 0x840934
// > MusicDownloadManager::getCustomSFXRawPath @ 0x9668f8
// > MusicDownloadManager::getCustomSFXRawPath @ 0x9669cc
// > MusicDownloadManager::encodeCustomSFX @ 0x96e5ac
// > GJMultiplayerManager::uploadComment @ 0xac6f00
// > StartPosLayer::onClose @ 0xb68d90
// > LevelListLayer::shareCommentClosed @ 0xbae018
// > CreatorSettingsPopup::setTextPopupClosed @ 0xc97a14
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0xccf5f0
// > LevelControlConfig::encodeB64 @ 0xcf5630
// > ??> @ 0xbb6c0
//
// 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 12:52:34 +0000
//
_QWORD *__usercall LevelTools::base64EncodeString@(__int64 a1@, _QWORD *a2@)
{
__int64 v3; // x2
__int64 v4; // x3
v3 = *(_BYTE *)a1 >> 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v3 = *(_QWORD *)(a1 + 8);
if ( v3 )
{
cocos2d::ZipUtils::base64URLEncode(a2);
return a2;
}
else
{
v4 = *(_QWORD *)(a1 + 8);
*a2 = *(_QWORD *)a1;
a2[1] = v4;
a2[2] = *(_QWORD *)(a1 + 16);
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
return a2;
}
}