package com.google.android.gms.internal.ads;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.google.android.gms.ads.RequestConfiguration$PublisherPrivacyPersonalizationState;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/* JADX INFO: loaded from: classes2.dex */
public final class c71 implements n61 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final p7.n0 f9790a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Context f9791b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final dv1 f9792c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final ScheduledExecutorService f9793d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final hg1 f9794e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final ib1 f9795f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final q7.a f9796g;

    public c71(p7.o0 o0Var, Context context, a30 a30Var, ScheduledExecutorService scheduledExecutorService, hg1 hg1Var, ib1 ib1Var, q7.a aVar) {
        this.f9790a = o0Var;
        this.f9791b = context;
        this.f9792c = a30Var;
        this.f9793d = scheduledExecutorService;
        this.f9794e = hg1Var;
        this.f9795f = ib1Var;
        this.f9796g = aVar;
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x0090, code lost:
    
        if (java.util.Arrays.asList(r1.split(",")).contains(r5.f9791b.getPackageName()) == false) goto L28;
     */
    /* JADX WARN: Removed duplicated region for block: B:10:0x003c  */
    @Override // com.google.android.gms.internal.ads.n61
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final com.google.common.util.concurrent.w zza() {
        com.google.common.util.concurrent.w wVarQ0;
        ScheduledExecutorService scheduledExecutorService = this.f9793d;
        tn tnVar = ao.Fb;
        n7.y yVar = n7.y.f31093e;
        if (((Boolean) yVar.f31096c.b(tnVar)).booleanValue() && ((p7.o0) this.f9790a).E()) {
            tn tnVar2 = ao.Jb;
            yn ynVar = yVar.f31096c;
            if (((Boolean) ynVar.b(tnVar2)).booleanValue()) {
                if (this.f9795f.f12452a.Y != RequestConfiguration$PublisherPrivacyPersonalizationState.DISABLED.a()) {
                    if (this.f9796g.f32214c >= ((Integer) ynVar.b(ao.Db)).intValue() && Build.VERSION.SDK_INT >= ((Integer) ynVar.b(ao.Eb)).intValue()) {
                        if (((Boolean) ynVar.b(ao.Bb)).booleanValue()) {
                            String str = (String) ynVar.b(ao.Cb);
                            if (!TextUtils.isEmpty(str)) {
                            }
                        }
                        try {
                            wVarQ0 = ih1.Z0(this.f9794e.a(false), ((Integer) ynVar.b(ao.Hb)).intValue(), TimeUnit.MILLISECONDS, scheduledExecutorService);
                        } catch (Exception e10) {
                            wVarQ0 = ih1.q0(e10);
                        }
                        wu1 wu1VarS = wu1.s(wVarQ0);
                        b71 b71Var = b71.f9417a;
                        dv1 dv1Var = this.f9792c;
                        return ih1.Z0(ih1.W0(ih1.e1(wu1VarS, b71Var, dv1Var), Throwable.class, new wt(this, 9), dv1Var), ((Integer) n7.y.f31093e.f31096c.b(ao.Hb)).intValue(), TimeUnit.MILLISECONDS, scheduledExecutorService);
                    }
                }
            }
        }
        return ih1.k(new d71("", -1));
    }

    @Override // com.google.android.gms.internal.ads.n61
    public final int zzb() {
        return 56;
    }
}
