384 lines
13 KiB
JavaScript
384 lines
13 KiB
JavaScript
/* Metro module 1322; source: unknown; dependencies: [] */
|
|
function _fun15110(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:6, offset: 0x00e2336b, size: 143 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.varint64read = undefined;
|
|
exports.varint64write = undefined;
|
|
exports.int64fromString = undefined;
|
|
exports.int64toString = undefined;
|
|
exports.varint32write = undefined;
|
|
exports.varint32read = undefined;
|
|
exports.varint64read = varint64read;
|
|
exports.varint64write = varint64write;
|
|
exports.int64fromString = int64fromString;
|
|
exports.int64toString = int64toString;
|
|
exports.varint32write = function(a0, a1) {
|
|
var r0;
|
|
var r7;
|
|
var r1;
|
|
var value3;
|
|
var value = a0;
|
|
var value2 = 0;
|
|
if (value >= value2) {
|
|
if (value > 127) {
|
|
r0 = value;
|
|
reducibleLoop4: while (true) {
|
|
a1.push(127 & r0 | 128);
|
|
value = r0 >>> 7;
|
|
if (value > 127) {
|
|
r0 = value;
|
|
continue reducibleLoop4;
|
|
}
|
|
r1 = value;
|
|
break reducibleLoop4;
|
|
}
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
a1.push(r1);
|
|
} else {
|
|
r0 = value;
|
|
r7 = value2;
|
|
reducibleLoop1: while (true) {
|
|
a1.push(127 & r0 | 128);
|
|
value = r0 >> 7;
|
|
value3 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (value3 < 9) {
|
|
r0 = value;
|
|
r7 = value3;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
a1.push(1);
|
|
}
|
|
};
|
|
exports.varint32read = varint32read;
|
|
function int64fromString(a0) { // fn#15113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:949, offset: 0x00e23613, size: 141 bytes, params: 2, frame: 16
|
|
let env0_0 = a0;
|
|
const add1e6digit2 = add1e6digit;
|
|
const value = a0[0] == '-';
|
|
if (value) {
|
|
env0_0 = a0.slice(1);
|
|
}
|
|
const env0_2 = 0;
|
|
const env0_3 = 0;
|
|
add1e6digit2(-24, -18);
|
|
add1e6digit2(-18, -12);
|
|
add1e6digit2(-12, -6);
|
|
add1e6digit2(-6);
|
|
return [value, env0_2, env0_3];
|
|
function add1e6digit(a0, a1) { // fn#15114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:1029, owner: int64fromString.add1e6digit, offset: 0x00e236a0, size: 122 bytes, params: 3, frame: 15
|
|
const Number = global.Number;
|
|
let binding = env0_0;
|
|
const value3 = Number(binding.slice(a0, a1));
|
|
binding = env0_3;
|
|
const binding2 = env0_1;
|
|
env0_3 = binding * binding2;
|
|
const value4 = env0_2 * binding2 + value3;
|
|
env0_2 = value4;
|
|
if (value4 >= 4294967296) {
|
|
env0_3 = env0_3 + (env0_2 / 4294967296 | 0);
|
|
env0_2 %= 4294967296;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function int64toString(a0, a1) { // fn#15115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:1227, offset: 0x00e2371a, size: 280 bytes, params: 3, frame: 22
|
|
var r5;
|
|
var r8;
|
|
var r0;
|
|
var r7;
|
|
var Math;
|
|
const closure = function(a0, a1) {
|
|
var r2;
|
|
r2 = a0 ? (0, global.String)(a0) : '';
|
|
return a1 ? '0000000'.slice(r2.length) + r2 : r2;
|
|
};
|
|
if (a1 <= 2097151) {
|
|
return String(4294967296 * a1 + (a0 >>> 0));
|
|
}
|
|
let value = a0 >>> 24;
|
|
value = (value | a1 << 8) >>> 0 & 16777215;
|
|
const value2 = a1 >> 16 & 65535;
|
|
const value5 = (16777215 & a0) + 6777216 * value + 6710656 * value2;
|
|
value += 8147497 * value2;
|
|
const value6 = 2 * value2;
|
|
if (value5 >= 10000000) {
|
|
Math = global.Math;
|
|
value += Math.floor(value5 / 10000000);
|
|
r5 = value5 % 10000000;
|
|
r8 = value;
|
|
} else {
|
|
r5 = value5;
|
|
r8 = value;
|
|
}
|
|
if (r8 >= 10000000) {
|
|
Math = global.Math;
|
|
value = value6 + Math.floor(r8 / 10000000);
|
|
r0 = r8 % 10000000;
|
|
r7 = value;
|
|
} else {
|
|
r0 = r8;
|
|
r7 = value6;
|
|
}
|
|
value = closure(r7, 0);
|
|
value += closure(r0, r7);
|
|
return value + closure(r5, 1);
|
|
}
|
|
|
|
}
|
|
|
|
function varint64read() { // fn#15111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:212, offset: 0x00e233fa, size: 312 bytes, params: 1, frame: 19
|
|
var r2;
|
|
var buf;
|
|
var pos;
|
|
var value2;
|
|
var property;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
let value = 0;
|
|
let r0 = value;
|
|
let r1 = value;
|
|
while (true) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value2 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
|
|
property = buf[value2];
|
|
value3 = r1 | (127 & property) << r0;
|
|
if (!(128 & property)) {
|
|
break;
|
|
}
|
|
value4 = r0 + 7;
|
|
if (!(value4 < 28)) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
property = buf[value];
|
|
value = value3 | (15 & property) << 28;
|
|
value5 = (112 & property) >> 4;
|
|
value6 = 3;
|
|
if (128 & property) {
|
|
r0 = value5;
|
|
r2 = value6;
|
|
loopExit6: while (true) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value7 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value7 === 'bigint' ? value7 + 1n : +value7 + 1;
|
|
property = buf[value7];
|
|
value8 = r0 | (127 & property) << r2;
|
|
if (128 & property) {
|
|
value9 = r2 + 7;
|
|
if (!(value9 <= 31)) {
|
|
throw new global.Error('invalid varint');
|
|
}
|
|
r0 = value8;
|
|
r2 = value9;
|
|
continue;
|
|
}
|
|
break loopExit6;
|
|
}
|
|
this.assertBounds();
|
|
return [value, value8];
|
|
}
|
|
this.assertBounds();
|
|
return [value, value5];
|
|
}
|
|
r0 = value4;
|
|
r1 = value3;
|
|
continue;
|
|
}
|
|
this.assertBounds();
|
|
return [value3, value];
|
|
}
|
|
|
|
function varint64write(a0, a1, a2) { // fn#15112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:613, offset: 0x00e23532, size: 225 bytes, params: 4, frame: 21
|
|
var r9;
|
|
var r10;
|
|
var r0;
|
|
var r1;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var push;
|
|
var value6;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
const value = 0;
|
|
let r8 = value;
|
|
reducibleLoop1: while (true) {
|
|
value2 = a0 >>> r8;
|
|
value3 = value2 >>> 7 === value;
|
|
reducibleJoin3: while (true) {
|
|
if (value3) {
|
|
value4 = value == a1;
|
|
r9 = value4;
|
|
break reducibleJoin3;
|
|
}
|
|
r9 = value3;
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
if (r9) {
|
|
r10 = value2;
|
|
break reducibleJoin5;
|
|
}
|
|
value5 = 128 | value2;
|
|
r10 = value5;
|
|
break reducibleJoin5;
|
|
}
|
|
push = a2.push;
|
|
Reflect.apply(push, a2, [255 & r10]);
|
|
if (r9) {
|
|
return undefined;
|
|
}
|
|
value6 = r8 + 7;
|
|
if (value6 < 28) {
|
|
r8 = value6;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
const value10 = a0 >>> 28 & 15 | (7 & a1) << 4;
|
|
const value11 = 3;
|
|
const value12 = a1 >> value11;
|
|
push = a2.push;
|
|
reducibleJoin9: while (true) {
|
|
if (value12) {
|
|
value13 = 128 | value10;
|
|
r0 = value13;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value10;
|
|
break reducibleJoin9;
|
|
}
|
|
Reflect.apply(push, a2, [255 & r0]);
|
|
if (value12) {
|
|
r1 = value11;
|
|
reducibleLoop10: while (true) {
|
|
value14 = a1 >>> r1;
|
|
value15 = value14 >>> 7 === value;
|
|
reducibleJoin12: while (true) {
|
|
if (value15) {
|
|
r9 = value14;
|
|
break reducibleJoin12;
|
|
}
|
|
value16 = 128 | value14;
|
|
r9 = value16;
|
|
break reducibleJoin12;
|
|
}
|
|
push = a2.push;
|
|
Reflect.apply(push, a2, [255 & r9]);
|
|
if (value15) {
|
|
return undefined;
|
|
}
|
|
value17 = r1 + 7;
|
|
if (value17 < 31) {
|
|
r1 = value17;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
a2.push(a1 >>> 31 & 1);
|
|
}
|
|
}
|
|
|
|
function varint32read() { // fn#15118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1449:1797, offset: 0x00e238ee, size: 408 bytes, params: 1, frame: 18
|
|
var r6;
|
|
var r0;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value8;
|
|
var value9;
|
|
let buf = this.buf;
|
|
let pos = this.pos;
|
|
let value = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
let property = buf[value];
|
|
value = 127 & property;
|
|
if (128 & property) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value2 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
|
|
property = buf[value2];
|
|
value |= (127 & property) << 7;
|
|
if (128 & property) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value3 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
|
|
property = buf[value3];
|
|
value |= (127 & property) << 14;
|
|
if (128 & property) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value4 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value4 === 'bigint' ? value4 + 1n : +value4 + 1;
|
|
property = buf[value4];
|
|
value |= (127 & property) << 21;
|
|
if (128 & property) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value5 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value5 === 'bigint' ? value5 + 1n : +value5 + 1;
|
|
property = buf[value5];
|
|
value6 = 15 & property;
|
|
if (128 & property) {
|
|
r6 = 5;
|
|
while (true) {
|
|
buf = this.buf;
|
|
pos = this.pos;
|
|
value8 = typeof pos === 'bigint' ? pos : +pos;
|
|
this.pos = typeof value8 === 'bigint' ? value8 + 1n : +value8 + 1;
|
|
property = buf[value8];
|
|
value9 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (!(128 & property)) {
|
|
r0 = property;
|
|
break;
|
|
}
|
|
if (value9 < 10) {
|
|
r6 = value9;
|
|
continue;
|
|
}
|
|
r0 = property;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
if (128 & r0) {
|
|
throw new global.Error('invalid varint');
|
|
}
|
|
this.assertBounds();
|
|
return (value | value6 << 28) >>> 0;
|
|
}
|
|
this.assertBounds();
|
|
return value;
|
|
}
|
|
this.assertBounds();
|
|
return value;
|
|
}
|
|
}
|
|
this.assertBounds();
|
|
return value;
|
|
}
|
|
|
|
global.__d(_fun15110, 1322, []) /* metro module 1322 */;
|