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

import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.ReflectedParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable$Class;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable$Reserved;
import com.google.android.gms.internal.ads.ao;
import com.google.android.gms.internal.ads.b30;
import com.google.android.gms.internal.ads.b60;
import com.google.android.gms.internal.ads.cf0;
import com.google.android.gms.internal.ads.el0;
import com.google.android.gms.internal.ads.fk0;
import com.google.android.gms.internal.ads.hw0;
import com.google.android.gms.internal.ads.iy;
import com.google.android.gms.internal.ads.js;
import com.google.android.gms.internal.ads.ks;
import com.google.android.gms.internal.ads.ss0;
import com.google.android.gms.internal.ads.x50;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import n7.c4;
import n7.y;

/* JADX INFO: loaded from: classes2.dex */
@SafeParcelable$Class(creator = "AdOverlayInfoCreator")
@SafeParcelable$Reserved({1})
public final class AdOverlayInfoParcel extends f8.a implements ReflectedParcelable {

    @NonNull
    public static final Parcelable.Creator<AdOverlayInfoParcel> CREATOR = new c4(7);

    /* JADX INFO: renamed from: b0, reason: collision with root package name */
    public static final AtomicLong f7885b0 = new AtomicLong(0);

    /* JADX INFO: renamed from: c0, reason: collision with root package name */
    public static final ConcurrentHashMap f7886c0 = new ConcurrentHashMap();
    public final String Q;
    public final m7.h R;
    public final js S;
    public final String T;
    public final String U;
    public final String V;
    public final cf0 W;
    public final fk0 X;
    public final iy Y;
    public final boolean Z;

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

    /* JADX INFO: renamed from: a0, reason: collision with root package name */
    public final long f7888a0;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final n7.a f7889b;

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final int f7897j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final int f7898k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final String f7899l;

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

    public AdOverlayInfoParcel(g gVar, IBinder iBinder, IBinder iBinder2, IBinder iBinder3, IBinder iBinder4, String str, boolean z10, String str2, IBinder iBinder5, int i10, int i11, String str3, q7.a aVar, String str4, m7.h hVar, IBinder iBinder6, String str5, String str6, String str7, IBinder iBinder7, IBinder iBinder8, IBinder iBinder9, boolean z11, long j10) {
        this.f7887a = gVar;
        this.f7893f = str;
        this.f7894g = z10;
        this.f7895h = str2;
        this.f7897j = i10;
        this.f7898k = i11;
        this.f7899l = str3;
        this.f7900m = aVar;
        this.Q = str4;
        this.R = hVar;
        this.T = str5;
        this.U = str6;
        this.V = str7;
        this.Z = z11;
        this.f7888a0 = j10;
        if (!((Boolean) y.f31093e.f31096c.b(ao.f8892he)).booleanValue()) {
            this.f7889b = (n7.a) k8.b.O(k8.b.M(iBinder));
            this.f7890c = (p) k8.b.O(k8.b.M(iBinder2));
            this.f7891d = (x50) k8.b.O(k8.b.M(iBinder3));
            this.S = (js) k8.b.O(k8.b.M(iBinder6));
            this.f7892e = (ks) k8.b.O(k8.b.M(iBinder4));
            this.f7896i = (d) k8.b.O(k8.b.M(iBinder5));
            this.W = (cf0) k8.b.O(k8.b.M(iBinder7));
            this.X = (fk0) k8.b.O(k8.b.M(iBinder8));
            this.Y = (iy) k8.b.O(k8.b.M(iBinder9));
            return;
        }
        n nVar = (n) f7886c0.remove(Long.valueOf(j10));
        if (nVar == null) {
            throw new NullPointerException("AdOverlayObjects is null");
        }
        this.f7889b = nVar.f7940a;
        this.f7890c = nVar.f7941b;
        this.f7891d = nVar.f7942c;
        this.S = nVar.f7943d;
        this.f7892e = nVar.f7944e;
        this.W = nVar.f7946g;
        this.X = nVar.f7947h;
        this.Y = nVar.f7948i;
        this.f7896i = nVar.f7945f;
        nVar.f7949j.cancel(false);
    }

    @Nullable
    public static AdOverlayInfoParcel zza(@NonNull Intent intent) {
        try {
            Bundle bundleExtra = intent.getBundleExtra("com.google.android.gms.ads.inernal.overlay.AdOverlayInfo");
            bundleExtra.setClassLoader(AdOverlayInfoParcel.class.getClassLoader());
            return (AdOverlayInfoParcel) bundleExtra.getParcelable("com.google.android.gms.ads.inernal.overlay.AdOverlayInfo");
        } catch (Exception e10) {
            if (!((Boolean) y.f31093e.f31096c.b(ao.f8892he)).booleanValue()) {
                return null;
            }
            m7.n.C.f30469h.d("AdOverlayInfoParcel.getFromIntent", e10);
            return null;
        }
    }

    @Nullable
    private static final IBinder zzc(Object obj) {
        if (((Boolean) y.f31093e.f31096c.b(ao.f8892he)).booleanValue()) {
            return null;
        }
        return new k8.b(obj);
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        int I = com.bumptech.glide.g.I(20293, parcel);
        com.bumptech.glide.g.q(parcel, 2, this.f7887a, i10);
        n7.a aVar = this.f7889b;
        com.bumptech.glide.g.p(parcel, 3, zzc(aVar));
        p pVar = this.f7890c;
        com.bumptech.glide.g.p(parcel, 4, zzc(pVar));
        x50 x50Var = this.f7891d;
        com.bumptech.glide.g.p(parcel, 5, zzc(x50Var));
        ks ksVar = this.f7892e;
        com.bumptech.glide.g.p(parcel, 6, zzc(ksVar));
        com.bumptech.glide.g.r(parcel, 7, this.f7893f);
        com.bumptech.glide.g.C(parcel, 8, 4);
        parcel.writeInt(this.f7894g ? 1 : 0);
        com.bumptech.glide.g.r(parcel, 9, this.f7895h);
        d dVar = this.f7896i;
        com.bumptech.glide.g.p(parcel, 10, zzc(dVar));
        com.bumptech.glide.g.C(parcel, 11, 4);
        parcel.writeInt(this.f7897j);
        com.bumptech.glide.g.C(parcel, 12, 4);
        parcel.writeInt(this.f7898k);
        com.bumptech.glide.g.r(parcel, 13, this.f7899l);
        com.bumptech.glide.g.q(parcel, 14, this.f7900m, i10);
        com.bumptech.glide.g.r(parcel, 16, this.Q);
        com.bumptech.glide.g.q(parcel, 17, this.R, i10);
        js jsVar = this.S;
        com.bumptech.glide.g.p(parcel, 18, zzc(jsVar));
        com.bumptech.glide.g.r(parcel, 19, this.T);
        com.bumptech.glide.g.r(parcel, 24, this.U);
        com.bumptech.glide.g.r(parcel, 25, this.V);
        cf0 cf0Var = this.W;
        com.bumptech.glide.g.p(parcel, 26, zzc(cf0Var));
        fk0 fk0Var = this.X;
        com.bumptech.glide.g.p(parcel, 27, zzc(fk0Var));
        iy iyVar = this.Y;
        com.bumptech.glide.g.p(parcel, 28, zzc(iyVar));
        com.bumptech.glide.g.C(parcel, 29, 4);
        parcel.writeInt(this.Z ? 1 : 0);
        com.bumptech.glide.g.C(parcel, 30, 8);
        long j10 = this.f7888a0;
        parcel.writeLong(j10);
        com.bumptech.glide.g.N(I, parcel);
        if (((Boolean) y.f31093e.f31096c.b(ao.f8892he)).booleanValue()) {
            f7886c0.put(Long.valueOf(j10), new n(aVar, pVar, x50Var, jsVar, ksVar, dVar, cf0Var, fk0Var, iyVar, b30.f9362d.schedule(new o(j10), ((Integer) r2.f31096c.b(ao.je)).intValue(), TimeUnit.SECONDS)));
        }
    }

    public AdOverlayInfoParcel(g gVar, n7.a aVar, p pVar, d dVar, q7.a aVar2, x50 x50Var, fk0 fk0Var, String str) {
        this.f7887a = gVar;
        this.f7889b = aVar;
        this.f7890c = pVar;
        this.f7891d = x50Var;
        this.S = null;
        this.f7892e = null;
        this.f7893f = null;
        this.f7894g = false;
        this.f7895h = null;
        this.f7896i = dVar;
        this.f7897j = -1;
        this.f7898k = 4;
        this.f7899l = null;
        this.f7900m = aVar2;
        this.Q = null;
        this.R = null;
        this.T = str;
        this.U = null;
        this.V = null;
        this.W = null;
        this.X = fk0Var;
        this.Y = null;
        this.Z = false;
        this.f7888a0 = f7885b0.getAndIncrement();
    }

    public AdOverlayInfoParcel(x50 x50Var, q7.a aVar, String str, String str2, hw0 hw0Var) {
        this.f7887a = null;
        this.f7889b = null;
        this.f7890c = null;
        this.f7891d = x50Var;
        this.S = null;
        this.f7892e = null;
        this.f7893f = null;
        this.f7894g = false;
        this.f7895h = null;
        this.f7896i = null;
        this.f7897j = 14;
        this.f7898k = 5;
        this.f7899l = null;
        this.f7900m = aVar;
        this.Q = null;
        this.R = null;
        this.T = str;
        this.U = str2;
        this.V = null;
        this.W = null;
        this.X = null;
        this.Y = hw0Var;
        this.Z = false;
        this.f7888a0 = f7885b0.getAndIncrement();
    }

    public AdOverlayInfoParcel(el0 el0Var, x50 x50Var, int i10, q7.a aVar, String str, m7.h hVar, String str2, String str3, String str4, cf0 cf0Var, hw0 hw0Var, String str5) {
        this.f7887a = null;
        this.f7889b = null;
        this.f7890c = el0Var;
        this.f7891d = x50Var;
        this.S = null;
        this.f7892e = null;
        this.f7894g = false;
        if (((Boolean) y.f31093e.f31096c.b(ao.f8864g1)).booleanValue()) {
            this.f7893f = null;
            this.f7895h = null;
        } else {
            this.f7893f = str2;
            this.f7895h = str3;
        }
        this.f7896i = null;
        this.f7897j = i10;
        this.f7898k = 1;
        this.f7899l = null;
        this.f7900m = aVar;
        this.Q = str;
        this.R = hVar;
        this.T = str5;
        this.U = null;
        this.V = str4;
        this.W = cf0Var;
        this.X = null;
        this.Y = hw0Var;
        this.Z = false;
        this.f7888a0 = f7885b0.getAndIncrement();
    }

    public AdOverlayInfoParcel(ss0 ss0Var, x50 x50Var, q7.a aVar) {
        this.f7890c = ss0Var;
        this.f7891d = x50Var;
        this.f7897j = 1;
        this.f7900m = aVar;
        this.f7887a = null;
        this.f7889b = null;
        this.S = null;
        this.f7892e = null;
        this.f7893f = null;
        this.f7894g = false;
        this.f7895h = null;
        this.f7896i = null;
        this.f7898k = 1;
        this.f7899l = null;
        this.Q = null;
        this.R = null;
        this.T = null;
        this.U = null;
        this.V = null;
        this.W = null;
        this.X = null;
        this.Y = null;
        this.Z = false;
        this.f7888a0 = f7885b0.getAndIncrement();
    }

    public AdOverlayInfoParcel(n7.a aVar, p pVar, d dVar, x50 x50Var, boolean z10, int i10, q7.a aVar2, fk0 fk0Var, hw0 hw0Var) {
        this.f7887a = null;
        this.f7889b = aVar;
        this.f7890c = pVar;
        this.f7891d = x50Var;
        this.S = null;
        this.f7892e = null;
        this.f7893f = null;
        this.f7894g = z10;
        this.f7895h = null;
        this.f7896i = dVar;
        this.f7897j = i10;
        this.f7898k = 2;
        this.f7899l = null;
        this.f7900m = aVar2;
        this.Q = null;
        this.R = null;
        this.T = null;
        this.U = null;
        this.V = null;
        this.W = null;
        this.X = fk0Var;
        this.Y = hw0Var;
        this.Z = false;
        this.f7888a0 = f7885b0.getAndIncrement();
    }

    public AdOverlayInfoParcel(n7.a aVar, b60 b60Var, js jsVar, ks ksVar, d dVar, x50 x50Var, boolean z10, int i10, String str, String str2, q7.a aVar2, fk0 fk0Var, hw0 hw0Var) {
        this.f7887a = null;
        this.f7889b = aVar;
        this.f7890c = b60Var;
        this.f7891d = x50Var;
        this.S = jsVar;
        this.f7892e = ksVar;
        this.f7893f = str2;
        this.f7894g = z10;
        this.f7895h = str;
        this.f7896i = dVar;
        this.f7897j = i10;
        this.f7898k = 3;
        this.f7899l = null;
        this.f7900m = aVar2;
        this.Q = null;
        this.R = null;
        this.T = null;
        this.U = null;
        this.V = null;
        this.W = null;
        this.X = fk0Var;
        this.Y = hw0Var;
        this.Z = false;
        this.f7888a0 = f7885b0.getAndIncrement();
    }

    public AdOverlayInfoParcel(n7.a aVar, b60 b60Var, js jsVar, ks ksVar, d dVar, x50 x50Var, boolean z10, int i10, String str, q7.a aVar2, fk0 fk0Var, hw0 hw0Var, boolean z11) {
        this.f7887a = null;
        this.f7889b = aVar;
        this.f7890c = b60Var;
        this.f7891d = x50Var;
        this.S = jsVar;
        this.f7892e = ksVar;
        this.f7893f = null;
        this.f7894g = z10;
        this.f7895h = null;
        this.f7896i = dVar;
        this.f7897j = i10;
        this.f7898k = 3;
        this.f7899l = str;
        this.f7900m = aVar2;
        this.Q = null;
        this.R = null;
        this.T = null;
        this.U = null;
        this.V = null;
        this.W = null;
        this.X = fk0Var;
        this.Y = hw0Var;
        this.Z = z11;
        this.f7888a0 = f7885b0.getAndIncrement();
    }
}
