package kotlinx.coroutines.scheduling;

import F1.AbstractC0120f0;
import F1.M;
import java.util.concurrent.RejectedExecutionException;

/* JADX INFO: loaded from: classes2.dex */
public abstract class c extends AbstractC0120f0 {

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

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

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

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

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

    public c(int i2, int i3, long j2, String str) {
        this.f5213r = i2;
        this.f5214x = i3;
        this.f5215y = j2;
        this.f5211H = str;
        this.f5212I = w();
    }

    private final a w() {
        return new a(this.f5213r, this.f5214x, this.f5215y, this.f5211H);
    }

    @Override // F1.E
    public void u(q1.g gVar, Runnable runnable) {
        try {
            a.h(this.f5212I, runnable, null, false, 6, null);
        } catch (RejectedExecutionException unused) {
            M.f587I.u(gVar, runnable);
        }
    }

    public final void z(Runnable runnable, j jVar, boolean z2) {
        try {
            this.f5212I.f(runnable, jVar, z2);
        } catch (RejectedExecutionException unused) {
            M.f587I.X(this.f5212I.d(runnable, jVar));
        }
    }

    public /* synthetic */ c(int i2, int i3, String str, int i4, kotlin.jvm.internal.g gVar) {
        this((i4 & 1) != 0 ? l.f5230c : i2, (i4 & 2) != 0 ? l.f5231d : i3, (i4 & 4) != 0 ? "DefaultDispatcher" : str);
    }

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