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

import android.os.SystemClock;
import java.util.concurrent.Executor;
import org.json.JSONException;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class qa0 implements kj {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public x50 f15657a;

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final i8.c f15660d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f15661e = false;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public boolean f15662f = false;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final ma0 f15663g = new ma0();

    public qa0(Executor executor, ka0 ka0Var, i8.c cVar) {
        this.f15658b = executor;
        this.f15659c = ka0Var;
        this.f15660d = cVar;
    }

    public final void a() {
        try {
            JSONObject jSONObjectZzb = this.f15659c.zzb(this.f15663g);
            if (this.f15657a != null) {
                this.f15658b.execute(new bv(this, jSONObjectZzb, 21));
            }
        } catch (JSONException unused) {
            p7.l0.h();
        }
    }

    @Override // com.google.android.gms.internal.ads.kj
    public final void p(jj jjVar) {
        boolean z10 = this.f15662f ? false : jjVar.f12901j;
        ma0 ma0Var = this.f15663g;
        ma0Var.f14044a = z10;
        ((i8.d) this.f15660d).getClass();
        ma0Var.f14046c = SystemClock.elapsedRealtime();
        ma0Var.f14048e = jjVar;
        if (this.f15661e) {
            a();
        }
    }
}
