package p138.p176.p177.p242.p265.p266;

import android.os.RemoteException;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.د, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC4876 implements Runnable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ AtomicReference f14675;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ C4977 f14676;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final /* synthetic */ C4987 f14677;

    public RunnableC4876(C4987 c4987, AtomicReference atomicReference, C4977 c4977) {
        this.f14677 = c4987;
        this.f14675 = atomicReference;
        this.f14676 = c4977;
    }

    @Override // java.lang.Runnable
    public final void run() {
        InterfaceC4823 interfaceC4823;
        synchronized (this.f14675) {
            try {
                try {
                    interfaceC4823 = this.f14677.f15084;
                } catch (RemoteException e) {
                    this.f14677.mo8165().f14444.m8035("Failed to get app instance id", e);
                }
                if (interfaceC4823 == null) {
                    this.f14677.mo8165().f14444.m8034("Failed to get app instance id");
                    return;
                }
                this.f14675.set(interfaceC4823.mo8105(this.f14676));
                String str = (String) this.f14675.get();
                if (str != null) {
                    this.f14677.m8058().f14331.set(str);
                    this.f14677.m8168().f14655.m8084(str);
                }
                this.f14677.m8521();
                this.f14675.notify();
            } finally {
                this.f14675.notify();
            }
        }
    }
}
