package w8;

import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class i {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final t f34224a = new t();

    public i() {
    }

    public final void a(Exception exc) {
        this.f34224a.k(exc);
    }

    public final boolean b(Exception exc) {
        t tVar = this.f34224a;
        tVar.getClass();
        if (exc == null) {
            throw new NullPointerException("Exception must not be null");
        }
        synchronized (tVar.f34250a) {
            try {
                if (tVar.f34252c) {
                    return false;
                }
                tVar.f34252c = true;
                tVar.f34254e = exc;
                tVar.f34251b.g(tVar);
                return true;
            } finally {
            }
        }
    }

    public void setResult(@Nullable Object obj) {
        this.f34224a.zzb(obj);
    }

    public boolean trySetResult(@Nullable Object obj) {
        return this.f34224a.zze(obj);
    }

    public i(l lVar) {
        ((t) lVar.f34228b).d(j.f34225a, new l(new l(this)));
    }
}
