package p138.p176.p177.p242.p258.p263;

import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.dynamite.DynamiteModule;
import java.util.ArrayList;
import p138.p176.p177.p242.p256.BinderC4341;
import p138.p176.p177.p242.p258.p263.C4553;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ބ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4559 extends C4553.AbstractRunnableC4554 {

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

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

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

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public final /* synthetic */ Bundle f14002;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public final /* synthetic */ C4553 f14003;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C4559(C4553 c4553, String str, String str2, Context context, Bundle bundle) {
        super(true);
        this.f14003 = c4553;
        this.f13999 = str;
        this.f14000 = str2;
        this.f14001 = context;
        this.f14002 = bundle;
    }

    @Override // p138.p176.p177.p242.p258.p263.C4553.AbstractRunnableC4554
    /* JADX INFO: renamed from: ֏ */
    public final void mo7602() {
        String str;
        String str2;
        String str3;
        boolean z;
        int iMax;
        try {
            this.f14003.f13985 = new ArrayList();
            InterfaceC4649 interfaceC4649AsInterface = null;
            if (C4553.m7599(this.f13999, this.f14000)) {
                str3 = this.f14000;
                str2 = this.f13999;
                str = this.f14003.f13982;
            } else {
                str = null;
                str2 = null;
                str3 = null;
            }
            C4553.m7600(this.f14001);
            boolean z2 = C4553.f13979.booleanValue() || str2 != null;
            C4553 c4553 = this.f14003;
            C4553 c45532 = this.f14003;
            Context context = this.f14001;
            if (c45532 == null) {
                throw null;
            }
            try {
                interfaceC4649AsInterface = AbstractBinderC4702.asInterface(DynamiteModule.m1334(context, z2 ? DynamiteModule.f2108 : DynamiteModule.f2106, "com.google.android.gms.measurement.dynamite").m1343("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService"));
            } catch (DynamiteModule.LoadingException e) {
                c45532.m7601(e, true, false);
            }
            c4553.f13988 = interfaceC4649AsInterface;
            if (this.f14003.f13988 == null) {
                Log.w(this.f14003.f13982, "Failed to connect to measurement client.");
                return;
            }
            int iM1332 = DynamiteModule.m1332(this.f14001, "com.google.android.gms.measurement.dynamite");
            int iM1333 = DynamiteModule.m1333(this.f14001, "com.google.android.gms.measurement.dynamite", false);
            if (z2) {
                iMax = Math.max(iM1332, iM1333);
                z = iM1333 < iM1332;
            } else {
                if (iM1332 > 0) {
                    iM1333 = iM1332;
                }
                z = iM1332 > 0;
                iMax = iM1333;
            }
            this.f14003.f13988.initialize(new BinderC4341(this.f14001), new C4517(28000L, iMax, z, str, str2, str3, this.f14002), this.f13989);
        } catch (Exception e2) {
            this.f14003.m7601(e2, true, false);
        }
    }
}
