package com.google.android.gms.measurement.internal; import android.os.RemoteException; import android.text.TextUtils; import java.util.Collections; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes.dex */ final class zzep implements Runnable { private final /* synthetic */ AtomicReference a; private final /* synthetic */ String b; private final /* synthetic */ String c; private final /* synthetic */ String d; private final /* synthetic */ boolean e; private final /* synthetic */ zzk f; private final /* synthetic */ zzeb g; zzep(zzeb zzebVar, AtomicReference atomicReference, String str, String str2, String str3, boolean z, zzk zzkVar) { this.g = zzebVar; this.a = atomicReference; this.b = str; this.c = str2; this.d = str3; this.e = z; this.f = zzkVar; } @Override // java.lang.Runnable public final void run() { zzaj zzajVar; synchronized (this.a) { try { try { zzajVar = this.g.d; } finally { this.a.notify(); } } catch (RemoteException e) { this.g.e().t().a("Failed to get user properties", zzas.a(this.b), this.c, e); this.a.set(Collections.emptyList()); } if (zzajVar == null) { this.g.e().t().a("Failed to get user properties", zzas.a(this.b), this.c, this.d); this.a.set(Collections.emptyList()); return; } if (TextUtils.isEmpty(this.b)) { this.a.set(zzajVar.a(this.c, this.d, this.e, this.f)); } else { this.a.set(zzajVar.a(this.b, this.c, this.d, this.e)); } this.g.H(); this.a.notify(); } } }