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

import android.os.RemoteException;
import android.text.TextUtils;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicReference;

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

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

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

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

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final /* synthetic */ String f14960;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final /* synthetic */ boolean f14961;

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

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

    public RunnableC4941(C4987 c4987, AtomicReference atomicReference, String str, String str2, String str3, boolean z, C4977 c4977) {
        this.f14963 = c4987;
        this.f14957 = atomicReference;
        this.f14958 = str;
        this.f14959 = str2;
        this.f14960 = str3;
        this.f14961 = z;
        this.f14962 = c4977;
    }

    @Override // java.lang.Runnable
    public final void run() {
        InterfaceC4823 interfaceC4823;
        synchronized (this.f14957) {
            try {
                try {
                    interfaceC4823 = this.f14963.f15084;
                } catch (RemoteException e) {
                    this.f14963.mo8165().f14444.m8037("(legacy) Failed to get user properties; remote exception", C4794.m8038(this.f14958), this.f14959, e);
                    this.f14957.set(Collections.emptyList());
                }
                if (interfaceC4823 == null) {
                    this.f14963.mo8165().f14444.m8037("(legacy) Failed to get user properties; not connected to service", C4794.m8038(this.f14958), this.f14959, this.f14960);
                    this.f14957.set(Collections.emptyList());
                    return;
                }
                if (TextUtils.isEmpty(this.f14958)) {
                    this.f14957.set(interfaceC4823.mo8095(this.f14959, this.f14960, this.f14961, this.f14962));
                } else {
                    this.f14957.set(interfaceC4823.mo8093(this.f14958, this.f14959, this.f14960, this.f14961));
                }
                this.f14963.m8521();
                this.f14957.notify();
            } finally {
                this.f14957.notify();
            }
        }
    }
}
