package defpackage;

import android.os.SystemClock;

/* renamed from: ˎᵺˑ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1790 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C1875 f7195;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public boolean f7196;

    public C1790() {
        this(C1875.f7592);
    }

    public C1790(C1875 c1875) {
        this.f7195 = c1875;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final synchronized boolean m5098() {
        if (this.f7196) {
            return false;
        }
        this.f7196 = true;
        notifyAll();
        return true;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final synchronized boolean m5099(long j) {
        if (j <= 0) {
            return this.f7196;
        }
        this.f7195.getClass();
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        long j2 = j + jElapsedRealtime;
        if (j2 < jElapsedRealtime) {
            m5101();
        } else {
            boolean z = false;
            while (!this.f7196 && jElapsedRealtime < j2) {
                try {
                    this.f7195.getClass();
                    wait(j2 - jElapsedRealtime);
                } catch (InterruptedException unused) {
                    z = true;
                }
                this.f7195.getClass();
                jElapsedRealtime = SystemClock.elapsedRealtime();
            }
            if (z) {
                Thread.currentThread().interrupt();
            }
        }
        return this.f7196;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final synchronized void m5100() {
        while (!this.f7196) {
            this.f7195.getClass();
            wait();
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final synchronized void m5101() {
        boolean z = false;
        while (!this.f7196) {
            try {
                this.f7195.getClass();
                wait();
            } catch (InterruptedException unused) {
                z = true;
            }
        }
        if (z) {
            Thread.currentThread().interrupt();
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final synchronized void m5102() {
        this.f7196 = false;
    }
}
