//
// LevelTools::base64EncodeString from 0x10023e1bc to 0x10023e1f0 (52 bytes)
//
// 28 xrefs:
// > sub_1000B74A0 @ 0x1000b751c
// > sub_1000C150C @ 0x1000c1584
// > sub_1000C4DD0 @ 0x1000c5004
// > sub_1000C4DD0 @ 0x1000c50b0
// > sub_1000C4DD0 @ 0x1000c5154
// > sub_1000C4DD0 @ 0x1000c51f8
// > sub_1000C4DD0 @ 0x1000c52a4
// > sub_1000C54E0 @ 0x1000c565c
// > sub_1000C5938 @ 0x1000c5b60
// > sub_1000C5CF4 @ 0x1000c5e88
// > sub_1000C8838 @ 0x1000c89f8
// > sub_1000C9054 @ 0x1000c91a8
// > sub_1000C97B0 @ 0x1000c9900
// > sub_1000C9A84 @ 0x1000c9adc
// > GJGameLevel::dataLoaded @ 0x1000d3290
// > EditLevelLayer::textInputClosed @ 0x100111874
// > CreateStartPosPopup::onCreate @ 0x1001c2230
// > MusicDownloadManager::customSFXPathDisplay @ 0x1001d7318
// > MusicDownloadManager::customSFXPathDisplay @ 0x1001d73ac
// > MusicDownloadManager::encodeCustomSFX @ 0x1001d9174
// > StartPosLayer::onClose @ 0x100210834
// > GJMultiplayerManager::uploadComment @ 0x100267650
// > LevelListLayer::shareCommentClosed @ 0x1002e3f80
// > TextGameObject::getSaveString @ 0x100302760
// > sub_1003FC928 @ 0x1003fe0e4
// > CreatorSettingsPopup::setTextPopupClosed @ 0x1004abed8
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1004d3024
// > sub_1004F1048 @ 0x1004f106c
//
// 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 11:01:22 +0000
//
__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;
}