//
// LevelTools::base64EncodeString from 0x1001a93cc to 0x1001a9400 (52 bytes)
//
// 8 xrefs:
// > GameLevelManager::uploadUserMessage @ 0x1000a558c
// > GameLevelManager::uploadComment @ 0x1000a7294
// > GameLevelManager::uploadFriendRequest @ 0x1000a84e4
// > GJGameLevel::dataLoaded @ 0x1000aeb9c
// > EditLevelLayer::textInputClosed @ 0x1000eb8e4
// > GJMultiplayerManager::uploadComment @ 0x1001cf728
// > LevelListLayer::shareCommentClosed @ 0x100246df4
// > TextGameObject::getSaveString @ 0x100265368
//
// 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
//
__n128 __usercall LevelTools::base64EncodeString@(__n128 *a1@, __n128 *a2@)
{
__n128 result; // q0
if ( (a1[1].n128_i8[7] & 0x8000000000000000LL) != 0 )
{
if ( a1->n128_u64[1] )
goto LABEL_3;
}
else if ( a1[1].n128_u8[7] )
{
LABEL_3:
cocos2d::ZipUtils::base64URLEncode();
return result;
}
result = *a1;
*a2 = *a1;
a2[1].n128_u64[0] = a1[1].n128_u64[0];
a1->n128_u64[1] = 0;
a1[1].n128_u64[0] = 0;
a1->n128_u64[0] = 0;
return result;
}