//
// LevelTools::base64DecodeString from 0x1001a9400 to 0x1001a9434 (52 bytes)
//
// 7 xrefs:
// > GameLevelManager::getGauntletLevels @ 0x10009f5e0
// > GJFriendRequest::create @ 0x1000a4784
// > GJUserMessage::create @ 0x1000a4d0c
// > GJComment::create @ 0x1000a68f4
// > GJGameLevel::getUnpackedLevelDescription @ 0x1000af834
// > GJLevelList::getUnpackedDescription @ 0x1000b1104
// > TextGameObject::customObjectSetup @ 0x1002651ec
//
// 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::base64DecodeString@(__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::base64URLDecode();
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;
}