package ᨨ;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.concurrent.TimeUnit;
import ඓ.K.K.K.C1293;

/* renamed from: ᨨ.ᓆ  reason: contains not printable characters */
/* compiled from: Timeout */
public class C1477 {

    /* renamed from: 㸾  reason: contains not printable characters */
    public static final C1477 f5502 = new C1478();

    /* renamed from: ʬ  reason: contains not printable characters */
    public long f5503;

    /* renamed from: ῲ  reason: contains not printable characters */
    public long f5504;

    /* renamed from: K  reason: contains not printable characters */
    public boolean f5505;

    /* renamed from: ᨨ.ᓆ$K  reason: contains not printable characters */
    /* compiled from: Timeout */
    public class C1478 extends C1477 {
        @Override // ᨨ.C1477
        /* renamed from: ඓ  reason: contains not printable characters */
        public void m3707() throws IOException {
        }

        @Override // ᨨ.C1477
        /* renamed from: K  reason: contains not printable characters */
        public C1477 m3708(long j) {
            return this;
        }

        @Override // ᨨ.C1477
        /* renamed from: K  reason: contains not printable characters */
        public C1477 m3709(long j, TimeUnit timeUnit) {
            return this;
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public long m3700() {
        if (this.f5505) {
            return this.f5504;
        }
        throw new IllegalStateException("No deadline");
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public void m3701() throws IOException {
        if (Thread.interrupted()) {
            throw new InterruptedIOException("thread interrupted");
        } else if (this.f5505 && this.f5504 - System.nanoTime() <= 0) {
            throw new InterruptedIOException("deadline reached");
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public C1477 m3702() {
        this.f5503 = 0;
        return this;
    }

    /* renamed from: K  reason: contains not printable characters */
    public C1477 m3705(long j, TimeUnit timeUnit) {
        if (j < 0) {
            throw new IllegalArgumentException(C1293.m3409("timeout < 0: ", j));
        } else if (timeUnit != null) {
            this.f5503 = timeUnit.toNanos(j);
            return this;
        } else {
            throw new IllegalArgumentException("unit == null");
        }
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public boolean m3706() {
        return this.f5505;
    }

    /* renamed from: K  reason: contains not printable characters */
    public C1477 m3704(long j) {
        this.f5505 = true;
        this.f5504 = j;
        return this;
    }

    /* renamed from: K  reason: contains not printable characters */
    public C1477 m3703() {
        this.f5505 = false;
        return this;
    }
}
