discord-jadx/app/src/main/java/s/a/y.java

47 lines
1.6 KiB
Java

package s.a;
import c.q.a.k.a;
import d0.w.d;
import kotlin.coroutines.CoroutineContext;
import kotlinx.coroutines.CoroutineDispatcher;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: CoroutineContext.kt */
public final class y {
public static final boolean a;
/* JADX WARNING: Code restructure failed: missing block: B:12:0x0028, code lost:
if (r0.equals("on") != false) goto L_0x0033;
*/
/* JADX WARNING: Code restructure failed: missing block: B:14:0x0031, code lost:
if (r0.equals("") != false) goto L_0x0033;
*/
static {
boolean z2;
String W = a.W("kotlinx.coroutines.scheduler");
if (W != null) {
int hashCode = W.hashCode();
if (hashCode != 0) {
if (hashCode != 3551) {
if (hashCode == 109935 && W.equals("off")) {
z2 = false;
a = z2;
}
}
}
throw new IllegalStateException(("System property 'kotlinx.coroutines.scheduler' has unrecognized value '" + W + '\'').toString());
}
z2 = true;
a = z2;
}
public static final CoroutineContext a(CoroutineScope coroutineScope, CoroutineContext coroutineContext) {
CoroutineContext plus = coroutineScope.getCoroutineContext().plus(coroutineContext);
CoroutineDispatcher coroutineDispatcher = j0.a;
if (plus == coroutineDispatcher) {
return plus;
}
int i = d.e;
return plus.get(d.b.a) == null ? plus.plus(coroutineDispatcher) : plus;
}
}