package com.google.android.play.integrity.internal; /* loaded from: classes2.dex */ public final class c0 implements d { /* renamed from: c, reason: collision with root package name */ private static final Object f5234c = new Object(); /* renamed from: a, reason: collision with root package name */ private volatile d f5235a; /* renamed from: b, reason: collision with root package name */ private volatile Object f5236b = f5234c; private c0(d dVar) { this.f5235a = dVar; } public static d b(d dVar) { dVar.getClass(); return dVar instanceof c0 ? dVar : new c0(dVar); } @Override // com.google.android.play.integrity.internal.d public final Object a() { Object obj = this.f5236b; Object obj2 = f5234c; if (obj == obj2) { synchronized (this) { obj = this.f5236b; if (obj == obj2) { obj = this.f5235a.a(); Object obj3 = this.f5236b; if (obj3 != obj2 && obj3 != obj) { throw new IllegalStateException("Scoped provider was invoked recursively returning different results: " + obj3 + " & " + obj + ". This is likely due to a circular dependency."); } this.f5236b = obj; this.f5235a = null; } } } return obj; } }