package com.google.android.gms.measurement.internal; import android.os.RemoteException; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes.dex */ final class zzef implements Runnable { private final /* synthetic */ AtomicReference a; private final /* synthetic */ zzk b; private final /* synthetic */ zzeb c; zzef(zzeb zzebVar, AtomicReference atomicReference, zzk zzkVar) { this.c = zzebVar; this.a = atomicReference; this.b = zzkVar; } @Override // java.lang.Runnable public final void run() { zzaj zzajVar; synchronized (this.a) { try { try { zzajVar = this.c.d; } catch (RemoteException e) { this.c.e().t().a("Failed to get app instance id", e); } if (zzajVar == null) { this.c.e().t().a("Failed to get app instance id"); return; } this.a.set(zzajVar.d(this.b)); String str = (String) this.a.get(); if (str != null) { this.c.p().a(str); this.c.l().l.a(str); } this.c.H(); this.a.notify(); } finally { this.a.notify(); } } } }