package E3;

import java.io.Serializable;

/* JADX INFO: loaded from: classes3.dex */
public final class r implements q, Serializable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final q f1169a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public volatile transient boolean f1170b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public transient Object f1171c;

    public r(q qVar) {
        this.f1169a = qVar;
    }

    @Override // E3.q
    public final Object get() {
        if (!this.f1170b) {
            synchronized (this) {
                try {
                    if (!this.f1170b) {
                        Object obj = this.f1169a.get();
                        this.f1171c = obj;
                        this.f1170b = true;
                        return obj;
                    }
                } finally {
                }
            }
        }
        return this.f1171c;
    }

    public final String toString() {
        Object obj;
        StringBuilder sb = new StringBuilder("Suppliers.memoize(");
        if (this.f1170b) {
            obj = "<supplier that returned " + this.f1171c + ">";
        } else {
            obj = this.f1169a;
        }
        sb.append(obj);
        sb.append(")");
        return sb.toString();
    }
}
