Files
discord-decomp/sources/by-id/module-00069.js
T
2026-07-28 01:06:53 +03:00

90 lines
3.8 KiB
JavaScript

/* Metro module 69; source: unknown; dependencies: [] */
function _fun1446(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:6, offset: 0x00c5c8fc, size: 145 bytes, params: 8, frame: 17
const isEnabled2 = isEnabled;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.isEnabled = isEnabled2;
exports.setEnabled = function(a0) {
};
exports.beginEvent = beginEvent;
exports.endEvent = endEvent;
exports.beginAsyncEvent = beginAsyncEvent;
exports.endAsyncEvent = endAsyncEvent;
exports.counterEvent = counterEvent;
function isEnabled() { // fn#1447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:107, offset: 0x00c5c98d, size: 64 bytes, params: 1, frame: 12
return env0_0.nativeTraceIsTracing ? env0_0.nativeTraceIsTracing(env0_1) : global.Boolean(env0_0.__RCTProfileIsProfiling);
}
function beginEvent(a0, a1) { // fn#1449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:292, offset: 0x00c5c9cd, size: 63 bytes, params: 3, frame: 16
var r5;
let value = a0;
if (isEnabled()) {
if (typeof value !== 'function') {
r5 = value;
} else {
value = value();
r5 = value;
}
env0_0.nativeTraceBeginSection(env0_1, r5, a1);
}
}
function endEvent(a0) { // fn#1450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:412, offset: 0x00c5ca0c, size: 41 bytes, params: 2, frame: 14
if (isEnabled()) {
env0_0.nativeTraceEndSection(env0_1, a0);
}
}
function beginAsyncEvent(a0, a1) { // fn#1451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:494, offset: 0x00c5ca35, size: 84 bytes, params: 3, frame: 18
var r5;
var binding2;
let value = a0;
const binding = env0_2;
if (isEnabled()) {
binding2 = env0_2;
env0_2 = typeof binding2 === 'bigint' ? binding2 + 1n : +binding2 + 1;
if (typeof value !== 'function') {
r5 = value;
} else {
value = value();
r5 = value;
}
env0_0.nativeTraceBeginAsyncSection(env0_1, r5, binding, a1);
}
return binding;
}
function endAsyncEvent(a0, a1, a2) { // fn#1452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:651, offset: 0x00c5ca89, size: 69 bytes, params: 4, frame: 18
var r6;
let value = a0;
if (isEnabled()) {
if (typeof value !== 'function') {
r6 = value;
} else {
value = value();
r6 = value;
}
env0_0.nativeTraceEndAsyncSection(env0_1, r6, a1, a2);
}
}
function counterEvent(a0, a1) { // fn#1453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:94:785, offset: 0x00c5cace, size: 76 bytes, params: 3, frame: 16
var r5;
let value = a0;
if (isEnabled()) {
if (typeof value !== 'function') {
r5 = value;
} else {
value = value();
r5 = value;
}
if (env0_0.nativeTraceCounter) {
env0_0.nativeTraceCounter(env0_1, r5, a1);
}
}
}
}
global.__d(_fun1446, 69, []) /* metro module 69 */;