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

/* JADX INFO: loaded from: classes2.dex */
public final class d42 extends cb2 {
    private static final d42 zzd;
    private static volatile bc2 zze;
    private int zza;
    private int zzb;
    private int zzc;

    static {
        d42 d42Var = new d42();
        zzd = d42Var;
        cb2.v(d42.class, d42Var);
    }

    public static c42 C() {
        return (c42) zzd.r();
    }

    public static d42 D() {
        return zzd;
    }

    public final zzhpt B() {
        zzhpt zzhptVarA = zzhpt.a(this.zza);
        return zzhptVarA == null ? zzhpt.UNRECOGNIZED : zzhptVarA;
    }

    public final /* synthetic */ void E(zzhpt zzhptVar) {
        this.zza = zzhptVar.zza();
    }

    public final int F() {
        int i10 = this.zzb;
        int i11 = i10 != 0 ? i10 != 2 ? i10 != 3 ? i10 != 4 ? i10 != 5 ? 0 : 7 : 6 : 5 : 4 : 2;
        if (i11 == 0) {
            return 1;
        }
        return i11;
    }

    public final int G() {
        int i10 = this.zzc;
        int i11 = i10 != 0 ? i10 != 1 ? i10 != 2 ? 0 : 4 : 3 : 2;
        if (i11 == 0) {
            return 1;
        }
        return i11;
    }

    public final void H(int i10) {
        if (i10 == 1) {
            throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
        }
        this.zzb = i10 - 2;
    }

    public final void I(int i10) {
        if (i10 == 1) {
            throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
        }
        this.zzc = i10 - 2;
    }

    @Override // com.google.android.gms.internal.ads.cb2
    public final Object x(zzibq zzibqVar, cb2 cb2Var) {
        int iOrdinal = zzibqVar.ordinal();
        if (iOrdinal == 0) {
            return (byte) 1;
        }
        if (iOrdinal == 2) {
            return new fc2(zzd, "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\f\u0003\f", new Object[]{"zza", "zzb", "zzc"});
        }
        if (iOrdinal == 3) {
            return new d42();
        }
        if (iOrdinal == 4) {
            return new c42(zzd);
        }
        if (iOrdinal == 5) {
            return zzd;
        }
        if (iOrdinal != 6) {
            throw null;
        }
        bc2 bb2Var = zze;
        if (bb2Var == null) {
            synchronized (d42.class) {
                try {
                    bb2Var = zze;
                    if (bb2Var == null) {
                        bb2Var = new bb2(zzd);
                        zze = bb2Var;
                    }
                } finally {
                }
            }
        }
        return bb2Var;
    }
}
