decord/source/13375_base64Decode.js
2026-07-24 07:16:23 +00:00

54 lines
2.1 KiB
JavaScript

// Module ID: 13375
// Function ID: 102572
// Name: base64Decode
// Dependencies: []
// Module 13375 (base64Decode)
let closure_0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 62, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 63, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51];
export default function base64Decode(arg0, arg1) {
let num = 2;
if ("=" !== arg0[arg0.length - 2]) {
let num3 = 0;
if ("=" === arg0[length - 1]) {
num3 = 1;
}
num = num3;
}
let num4 = 0;
let num5 = 0;
let num6 = 0;
let num7 = 0;
if (0 < (arg0.length - num & 4294967292)) {
do {
let tmp2 = dependencyMap;
let tmp3 = dependencyMap[arg0.charCodeAt(arg0, num5)] << 18;
let tmp4 = dependencyMap[arg0.charCodeAt(arg0, num5 + 1)] << 12;
let tmp5 = dependencyMap[arg0.charCodeAt(arg0, num5 + 2)] << 6;
let tmp6 = tmp3 | tmp4 | tmp5 | dependencyMap[arg0.charCodeAt(arg0, num5 + 3)];
let tmp7 = +num4;
arg1[tmp7] = tmp6 >> 16 & 255;
let tmp8 = +tmp7 + 1;
arg1[tmp8] = tmp6 >> 8 & 255;
let tmp9 = +tmp8 + 1;
num4 = tmp9 + 1;
arg1[tmp9] = 255 & tmp6;
num5 = num5 + 4;
num6 = num4;
num7 = num5;
} while (num5 < tmp);
}
let sum = num6;
if (1 === num) {
const tmp12 = dependencyMap[arg0.charCodeAt(arg0, num7)] << 10;
const tmp14 = tmp12 | dependencyMap[arg0.charCodeAt(arg0, num7 + 1)] << 4 | dependencyMap[arg0.charCodeAt(arg0, num7 + 2)] >> 2;
arg1[+num6] = tmp14 >> 8 & 255;
sum = tmp16 + 1;
arg1[++num6 + 1] = 255 & tmp14;
const tmp13 = dependencyMap[arg0.charCodeAt(arg0, num7 + 1)] << 4;
}
if (2 === num) {
arg1[+sum] = 255 & (dependencyMap[arg0.charCodeAt(arg0, num7)] << 2 | dependencyMap[arg0.charCodeAt(arg0, num7 + 1)] >> 4);
const tmp18 = dependencyMap[arg0.charCodeAt(arg0, num7)] << 2;
}
};