package s8; import java.io.Serializable; /* loaded from: classes2.dex */ final class q implements g, Serializable { /* renamed from: a, reason: collision with root package name */ private c9.a f14104a; /* renamed from: b, reason: collision with root package name */ private volatile Object f14105b; /* renamed from: c, reason: collision with root package name */ private final Object f14106c; public q(c9.a aVar, Object obj) { d9.j.e(aVar, "initializer"); this.f14104a = aVar; this.f14105b = t.f14108a; this.f14106c = obj == null ? this : obj; } public boolean a() { return this.f14105b != t.f14108a; } @Override // s8.g public Object getValue() { Object obj; Object obj2 = this.f14105b; t tVar = t.f14108a; if (obj2 != tVar) { return obj2; } synchronized (this.f14106c) { obj = this.f14105b; if (obj == tVar) { c9.a aVar = this.f14104a; d9.j.b(aVar); obj = aVar.invoke(); this.f14105b = obj; this.f14104a = null; } } return obj; } public String toString() { return a() ? String.valueOf(getValue()) : "Lazy value not initialized yet."; } public /* synthetic */ q(c9.a aVar, Object obj, int i10, d9.g gVar) { this(aVar, (i10 & 2) != 0 ? null : obj); } }