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

import android.content.Context;
import android.os.Bundle;
import android.util.Pair;
import java.util.concurrent.Executor;

/* JADX INFO: loaded from: classes2.dex */
public final class qa1 implements m11 {

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

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

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

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

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

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final nd1 f15670g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final hb1 f15671h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public com.google.common.util.concurrent.w f15672i;

    public qa1(Context context, Executor executor, h70 h70Var, o91 o91Var, la1 la1Var, hb1 hb1Var, fb1 fb1Var) {
        this.f15664a = context;
        this.f15665b = executor;
        this.f15666c = h70Var;
        this.f15668e = o91Var;
        this.f15667d = la1Var;
        this.f15671h = hb1Var;
        this.f15669f = fb1Var;
        this.f15670g = h70Var.c();
    }

    public final s80 a(m91 m91Var) {
        s80 s80Var = new s80(((a80) this.f15666c).f8525c);
        fe0 fe0Var = new fe0();
        fe0Var.f11184a = this.f15664a;
        fe0Var.f11185b = ((pa1) m91Var).f15346a;
        fe0Var.a(this.f15669f);
        s80Var.f16351e = new ge0(fe0Var);
        s80Var.f16350d = new dj0(new cj0());
        return s80Var;
    }

    @Override // com.google.android.gms.internal.ads.m11
    public final boolean zza(n7.a4 a4Var, String str, k11 k11Var, l11 l11Var) {
        md1 md1Var;
        Executor executor = this.f15665b;
        if (str == null) {
            q7.j.b("Ad unit ID should not be null for rewarded video ad.");
            executor.execute(new na1(this, 1));
            return false;
        }
        com.google.common.util.concurrent.w wVar = this.f15672i;
        if (wVar != null && !wVar.isDone()) {
            return false;
        }
        tn tnVar = ao.Q2;
        n7.y yVar = n7.y.f31093e;
        if (((Boolean) yVar.f31096c.b(tnVar)).booleanValue()) {
            n7.x.a();
        }
        boolean zBooleanValue = ((Boolean) ip.f12589c.j()).booleanValue();
        o91 o91Var = this.f15668e;
        if (!zBooleanValue || o91Var.zzd() == null) {
            md1Var = null;
        } else {
            md1Var = (md1) ((t80) ((wp0) o91Var.zzd())).f16779g.zzb();
            md1Var.i(5);
            md1Var.c(a4Var.S);
            md1Var.d(a4Var.f30905m);
        }
        boolean z10 = a4Var.f30898f;
        Context context = this.f15664a;
        ni.s(context, z10);
        if (((Boolean) yVar.f31096c.b(ao.f8856fa)).booleanValue() && z10) {
            ((ps0) ((a80) this.f15666c).D.zzb()).b(true);
        }
        String strA = zzdxh.DYNAMITE_ENTER.a();
        m7.n.C.f30472k.getClass();
        Bundle bundleA = ni.a(new Pair(zzdxh.PUBLIC_API_CALL.a(), Long.valueOf(a4Var.Z)), new Pair(strA, Long.valueOf(System.currentTimeMillis())));
        hb1 hb1Var = this.f15671h;
        hb1Var.f12106c = str;
        hb1Var.f12105b = new n7.f4("reward_mb", 0, 0, true, 0, 0, null, false, false, false, false, false, false, false, false);
        hb1Var.f12104a = a4Var;
        hb1Var.f12118o = bundleA;
        ib1 ib1VarA = hb1Var.a();
        id1 id1VarF = id1.f(context, ni.I(ib1VarA), 5, a4Var);
        pa1 pa1Var = new pa1();
        pa1Var.f15346a = ib1VarA;
        com.google.common.util.concurrent.w wVarZzc = o91Var.zzc(new p91(pa1Var, null), new dh0(this, 26), null);
        this.f15672i = wVarZzc;
        ih1.z1(wVarZzc, new oa1(this, l11Var, md1Var, id1VarF, pa1Var), executor);
        return true;
    }

    @Override // com.google.android.gms.internal.ads.m11
    public final boolean zzb() {
        throw null;
    }
}
