package defpackage;

/* JADX INFO: loaded from: classes2.dex */
public class i65<T> implements gl7<T> {
    public static final Object c = new Object();
    public volatile Object a = c;
    public volatile gl7 b;

    public i65(gl7 gl7Var) {
        this.b = gl7Var;
    }

    @Override // defpackage.gl7
    public final Object get() {
        Object obj;
        Object obj2 = this.a;
        Object obj3 = c;
        if (obj2 != obj3) {
            return obj2;
        }
        synchronized (this) {
            try {
                obj = this.a;
                if (obj == obj3) {
                    obj = this.b.get();
                    this.a = obj;
                    this.b = null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return obj;
    }
}
