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

/* JADX INFO: loaded from: classes2.dex */
public final class fd extends d0 implements a1 {
    private static final fd zzb;
    private yc zze;
    private int zzf;
    private int zzg;
    private int zzh;

    static {
        fd fdVar = new fd();
        zzb = fdVar;
        d0.f(fd.class, fdVar);
    }

    public static dd p() {
        return (dd) zzb.i();
    }

    public static void w(fd fdVar, int i10) {
        if (i10 == 1) {
            throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
        }
        fdVar.zzf = i10 - 2;
    }

    @Override // com.google.android.gms.internal.pal.d0
    public final Object m(int i10) {
        int i11 = i10 - 1;
        if (i11 == 0) {
            return (byte) 1;
        }
        if (i11 == 2) {
            return new i1(zzb, "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\t\u0002\f\u0003\u000b\u0004\f", new Object[]{"zze", "zzf", "zzg", "zzh"});
        }
        if (i11 == 3) {
            return new fd();
        }
        if (i11 == 4) {
            return new dd(zzb);
        }
        if (i11 != 5) {
            return null;
        }
        return zzb;
    }

    public final int n() {
        return this.zzg;
    }

    public final yc o() {
        yc ycVar = this.zze;
        return ycVar == null ? yc.p() : ycVar;
    }

    public final boolean s() {
        return this.zze != null;
    }

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

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