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

import androidx.annotation.Nullable;
import java.util.Arrays;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class d9 {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final d9 f10324b;

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

    @Nullable
    public final Integer zzA;

    @Nullable
    public final CharSequence zzb;

    @Nullable
    public final CharSequence zzc;

    @Nullable
    public final CharSequence zzd;

    @Nullable
    public final CharSequence zze;

    @Nullable
    public final CharSequence zzf;

    @Nullable
    public final byte[] zzg;

    @Nullable
    public final Integer zzh;

    @Nullable
    public final Integer zzi;

    @Nullable
    public final Integer zzj;

    @Nullable
    @Deprecated
    public final Integer zzk;

    @Nullable
    public final Boolean zzl;

    @Nullable
    @Deprecated
    public final Integer zzm;

    @Nullable
    public final Integer zzn;

    @Nullable
    public final Integer zzo;

    @Nullable
    public final Integer zzp;

    @Nullable
    public final Integer zzq;

    @Nullable
    public final Integer zzr;

    @Nullable
    public final Integer zzs;

    @Nullable
    public final CharSequence zzt;

    @Nullable
    public final CharSequence zzu;

    @Nullable
    public final CharSequence zzv;

    @Nullable
    public final Integer zzw;

    @Nullable
    public final Integer zzx;

    @Nullable
    public final CharSequence zzy;

    @Nullable
    public final CharSequence zzz;

    static {
        g8 g8Var = new g8();
        bs1 bs1Var = zzguf.f19771b;
        g8Var.f11547a = zzgwa.f19786e;
        f10324b = new d9(g8Var);
        String str = bb1.f9474a;
        Integer.toString(0, 36);
        Integer.toString(1, 36);
        Integer.toString(2, 36);
        Integer.toString(3, 36);
        Integer.toString(4, 36);
        Integer.toString(5, 36);
        Integer.toString(6, 36);
        Integer.toString(8, 36);
        Integer.toString(9, 36);
        Integer.toString(10, 36);
        Integer.toString(11, 36);
        Integer.toString(12, 36);
        Integer.toString(13, 36);
        Integer.toString(14, 36);
        Integer.toString(15, 36);
        Integer.toString(16, 36);
        Integer.toString(17, 36);
        Integer.toString(18, 36);
        Integer.toString(19, 36);
        Integer.toString(20, 36);
        Integer.toString(21, 36);
        Integer.toString(22, 36);
        Integer.toString(23, 36);
        Integer.toString(24, 36);
        Integer.toString(25, 36);
        Integer.toString(26, 36);
        Integer.toString(27, 36);
        Integer.toString(28, 36);
        Integer.toString(29, 36);
        Integer.toString(30, 36);
        Integer.toString(31, 36);
        Integer.toString(32, 36);
        Integer.toString(33, 36);
        Integer.toString(34, 36);
        Integer.toString(1000, 36);
    }

    /* JADX WARN: Removed duplicated region for block: B:13:0x0030  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public d9(g8 g8Var) {
        Boolean boolH = g8Var.h();
        Integer numV = g8Var.v();
        Integer numG = g8Var.g();
        int i10 = 1;
        int i11 = 0;
        if (boolH != null) {
            if (!boolH.booleanValue()) {
                numG = -1;
            } else if (numG == null || numG.intValue() == -1) {
                if (numV != null) {
                    switch (numV.intValue()) {
                        case 1:
                        case 2:
                        case 3:
                        case 4:
                        case 5:
                        case 6:
                        case 7:
                        case 8:
                        case 9:
                        case 10:
                        case 11:
                        case 12:
                        case 13:
                        case 14:
                        case 15:
                        case 16:
                        case 17:
                        case 18:
                        case 19:
                            break;
                        case 20:
                        default:
                            i10 = 0;
                            break;
                        case 21:
                            i10 = 2;
                            break;
                        case 22:
                            i10 = 3;
                            break;
                        case 23:
                            i10 = 4;
                            break;
                        case 24:
                            i10 = 5;
                            break;
                        case 25:
                            i10 = 6;
                            break;
                    }
                    numG = Integer.valueOf(i10);
                }
            }
        } else if (numG != null) {
            boolH = Boolean.valueOf(numG.intValue() != -1);
            if (boolH.booleanValue() && numV == null) {
                switch (numG.intValue()) {
                    case 1:
                        break;
                    case 2:
                        i11 = 21;
                        break;
                    case 3:
                        i11 = 22;
                        break;
                    case 4:
                        i11 = 23;
                        break;
                    case 5:
                        i11 = 24;
                        break;
                    case 6:
                        i11 = 25;
                        break;
                    default:
                        i11 = 20;
                        break;
                }
                numV = Integer.valueOf(i11);
            }
        } else {
            numG = null;
        }
        this.zzb = g8Var.x();
        this.zzc = g8Var.y();
        this.zzd = g8Var.z();
        this.zze = g8Var.a();
        this.zzf = g8Var.b();
        this.zzg = g8Var.c();
        this.zzh = g8Var.d();
        this.zzi = g8Var.e();
        this.zzj = g8Var.f();
        this.zzk = numG;
        this.zzl = boolH;
        this.zzm = g8Var.i();
        this.zzn = g8Var.i();
        this.zzo = g8Var.j();
        this.zzp = g8Var.k();
        this.zzq = g8Var.l();
        this.zzr = g8Var.m();
        this.zzs = g8Var.n();
        this.zzt = g8Var.o();
        this.zzu = g8Var.p();
        this.zzv = g8Var.q();
        this.zzw = g8Var.r();
        this.zzx = g8Var.s();
        this.zzy = g8Var.t();
        this.zzz = g8Var.u();
        this.zzA = numV;
        this.f10325a = g8Var.f11547a;
    }

    public final boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && d9.class == obj.getClass()) {
            d9 d9Var = (d9) obj;
            if (Objects.equals(this.zzb, d9Var.zzb) && Objects.equals(this.zzc, d9Var.zzc) && Objects.equals(this.zzd, d9Var.zzd) && Objects.equals(this.zze, d9Var.zze) && Objects.equals(this.zzf, d9Var.zzf) && Arrays.equals(this.zzg, d9Var.zzg) && Objects.equals(this.zzh, d9Var.zzh) && Objects.equals(this.zzi, d9Var.zzi) && Objects.equals(this.zzj, d9Var.zzj) && Objects.equals(this.zzk, d9Var.zzk) && Objects.equals(this.zzl, d9Var.zzl) && Objects.equals(this.zzn, d9Var.zzn) && Objects.equals(this.zzo, d9Var.zzo) && Objects.equals(this.zzp, d9Var.zzp) && Objects.equals(this.zzq, d9Var.zzq) && Objects.equals(this.zzr, d9Var.zzr) && Objects.equals(this.zzs, d9Var.zzs) && Objects.equals(this.zzt, d9Var.zzt) && Objects.equals(this.zzu, d9Var.zzu) && Objects.equals(this.zzv, d9Var.zzv) && Objects.equals(this.zzw, d9Var.zzw) && Objects.equals(this.zzx, d9Var.zzx) && Objects.equals(this.zzy, d9Var.zzy) && Objects.equals(this.zzz, d9Var.zzz) && Objects.equals(this.zzA, d9Var.zzA) && Objects.equals(this.f10325a, d9Var.f10325a)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Objects.hash(this.zzb, this.zzc, this.zzd, this.zze, null, null, this.zzf, null, null, null, Integer.valueOf(Arrays.hashCode(this.zzg)), this.zzh, null, this.zzi, this.zzj, this.zzk, this.zzl, null, this.zzn, this.zzo, this.zzp, this.zzq, this.zzr, this.zzs, this.zzt, this.zzu, this.zzv, this.zzw, this.zzx, this.zzy, null, this.zzz, this.zzA, Boolean.TRUE, this.f10325a);
    }
}
