package kotlinx.coroutines.q2;

import java.util.concurrent.RejectedExecutionException;
import kotlinx.coroutines.k1;
import kotlinx.coroutines.t0;

/* JADX INFO: compiled from: Dispatcher.kt */
/* JADX INFO: loaded from: classes.dex */
public class c extends k1 {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private final int f1142f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private final int f1143g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private final long f1144h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private final String f1145i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private a f1146j;

    public c(int i2, int i3, long j2, String str) {
        this.f1142f = i2;
        this.f1143g = i3;
        this.f1144h = j2;
        this.f1145i = str;
        this.f1146j = K();
    }

    private final a K() {
        return new a(this.f1142f, this.f1143g, this.f1144h, this.f1145i);
    }

    @Override // kotlinx.coroutines.i0
    public void H(h.u.g gVar, Runnable runnable) {
        try {
            a.l(this.f1146j, runnable, null, false, 6, null);
        } catch (RejectedExecutionException unused) {
            t0.f1168k.H(gVar, runnable);
        }
    }

    public final void N(Runnable runnable, j jVar, boolean z) {
        try {
            this.f1146j.j(runnable, jVar, z);
        } catch (RejectedExecutionException unused) {
            t0.f1168k.n0(this.f1146j.d(runnable, jVar));
        }
    }

    public /* synthetic */ c(int i2, int i3, String str, int i4, h.x.d.h hVar) {
        this((i4 & 1) != 0 ? l.b : i2, (i4 & 2) != 0 ? l.f1156c : i3, (i4 & 4) != 0 ? "DefaultDispatcher" : str);
    }

    public c(int i2, int i3, String str) {
        this(i2, i3, l.f1157d, str);
    }
}
