package m4;

import java.util.concurrent.TimeUnit;

/* JADX INFO: renamed from: m4.z1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class RunnableC2564z1 implements Runnable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f21226a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ A1 f21227b;

    public /* synthetic */ RunnableC2564z1(A1 a12, int i6) {
        this.f21226a = i6;
        this.f21227b = a12;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f21226a) {
            case 0:
                A1 a12 = this.f21227b;
                if (!a12.f20571f) {
                    a12.f20572g = null;
                } else {
                    TimeUnit timeUnit = TimeUnit.NANOSECONDS;
                    long jB = a12.f20570e - a12.f20569d.b();
                    if (jB <= 0) {
                        a12.f20571f = false;
                        a12.f20572g = null;
                        a12.f20568c.run();
                    } else {
                        a12.f20572g = a12.f20566a.schedule(new RunnableC2564z1(a12, 1), jB, timeUnit);
                    }
                }
                break;
            default:
                A1 a13 = this.f21227b;
                a13.f20567b.execute(new RunnableC2564z1(a13, 0));
                break;
        }
    }
}
