package p461;

import java.io.InterruptedIOException;
import java.util.concurrent.TimeUnit;
import kotlin.jvm.internal.DefaultConstructorMarker;
import p138.p139.p143.p144.C2803;
import p402.InterfaceC6540;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ޑ.ޖ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public class C7130 {

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final C7130 f20679;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean f20680;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public long f20681;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public long f20682;

    /* JADX INFO: renamed from: ޑ.ޖ$֏, reason: contains not printable characters */
    public static final class C7131 extends C7130 {
        @Override // p461.C7130
        /* JADX INFO: renamed from: ֏ */
        public C7130 mo10459(long j) {
            return this;
        }

        @Override // p461.C7130
        /* JADX INFO: renamed from: ֏ */
        public C7130 mo10460(long j, TimeUnit timeUnit) {
            if (timeUnit != null) {
                return this;
            }
            C6635.m9824("unit");
            throw null;
        }

        @Override // p461.C7130
        /* JADX INFO: renamed from: ނ */
        public void mo10464() {
        }
    }

    /* JADX INFO: renamed from: ޑ.ޖ$ؠ, reason: contains not printable characters */
    public static final class C7132 {
        public C7132() {
        }

        public /* synthetic */ C7132(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    static {
        new C7132(null);
        f20679 = new C7131();
    }

    /* JADX INFO: renamed from: ֏ */
    public C7130 mo10458() {
        this.f20680 = false;
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public C7130 mo10459(long j) {
        this.f20680 = true;
        this.f20681 = j;
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public C7130 mo10460(long j, TimeUnit timeUnit) {
        if (timeUnit == null) {
            C6635.m9824("unit");
            throw null;
        }
        if (!(j >= 0)) {
            throw new IllegalArgumentException(C2803.m4874("timeout < 0: ", j).toString());
        }
        this.f20682 = timeUnit.toNanos(j);
        return this;
    }

    /* JADX INFO: renamed from: ؠ */
    public C7130 mo10461() {
        this.f20682 = 0L;
        return this;
    }

    /* JADX INFO: renamed from: ހ */
    public long mo10462() {
        if (this.f20680) {
            return this.f20681;
        }
        throw new IllegalStateException("No deadline".toString());
    }

    /* JADX INFO: renamed from: ށ */
    public boolean mo10463() {
        return this.f20680;
    }

    /* JADX INFO: renamed from: ނ */
    public void mo10464() throws InterruptedIOException {
        if (Thread.interrupted()) {
            Thread.currentThread().interrupt();
            throw new InterruptedIOException("interrupted");
        }
        if (this.f20680 && this.f20681 - System.nanoTime() <= 0) {
            throw new InterruptedIOException("deadline reached");
        }
    }
}
