//
// LevelTools::base64EncodeString from 0x605f04 to 0x605f5c (88 bytes)
//
// 9 xrefs:
// > TextGameObject::getSaveString @ 0x65ad30
// > EditLevelLayer::textInputClosed @ 0x6e1efc
// > GJGameLevel::dataLoaded @ 0x70ad24
// > GameLevelManager::uploadUserMessage @ 0x722ca4
// > GameLevelManager::uploadComment @ 0x724114
// > GameLevelManager::uploadFriendRequest @ 0x725fc0
// > GJMultiplayerManager::uploadComment @ 0x983a40
// > LevelListLayer::shareCommentClosed @ 0xa72804
// > ??> @ 0xa5318
//
// 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
//
_QWORD *__usercall LevelTools::base64EncodeString@(cocos2d::ZipUtils *a1@, _QWORD *a2@)
{
if ( *(_QWORD *)(*(_QWORD *)a1 - 24LL) )
{
cocos2d::ZipUtils::base64URLEncode(a1, (const std::string *)a1);
return a2;
}
else
{
*a2 = *(_QWORD *)a1;
*(_QWORD *)a1 = &byte_124B6C8;
return a2;
}
}