package defpackage;

import com.google.android.gms.internal.play_billing.zzgs;
import com.google.android.gms.internal.play_billing.zzik;
import java.io.IOException;

/* renamed from: ʻﹳ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0044 extends AbstractC5102 {
    private static final C0044 zzb;
    private int zzd;
    private int zze = 0;
    private Object zzf;
    private int zzg;
    private C2256 zzh;
    private int zzi;

    static {
        C0044 c0044 = new C0044();
        zzb = c0044;
        AbstractC5102.m10565(C0044.class, c0044);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public static /* synthetic */ void m1076(C0044 c0044, C0335 c0335) {
        c0044.zzf = c0335;
        c0044.zze = 7;
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public static C3826 m1077() {
        return (C3826) zzb.m10573();
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public static /* synthetic */ void m1078(C0044 c0044, C2093 c2093) {
        c0044.zzf = c2093;
        c0044.zze = 6;
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public static /* synthetic */ void m1079(C0044 c0044, C2256 c2256) {
        c0044.zzh = c2256;
        c0044.zzd |= 2;
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public static void m1080(C0044 c0044, EnumC2590 enumC2590) {
        c0044.zzi = enumC2590.f10058;
        c0044.zzd |= 4;
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public static C0044 m1081(byte[] bArr) throws zzgs {
        C0044 c0044 = zzb;
        int length = bArr.length;
        C2365 c2365 = C2365.f9286;
        int i = AbstractC4340.f16260;
        C2365 c23652 = C2365.f9286;
        if (length != 0) {
            AbstractC5102 abstractC5102M10572 = c0044.m10572();
            try {
                InterfaceC0760 interfaceC0760M2966 = C0842.f3872.m2966(abstractC5102M10572.getClass());
                C4572 c4572 = new C4572();
                c23652.getClass();
                interfaceC0760M2966.mo2833(abstractC5102M10572, bArr, 0, length, c4572);
                interfaceC0760M2966.mo2836(abstractC5102M10572);
                c0044 = abstractC5102M10572;
            } catch (zzgs e) {
                throw e;
            } catch (zzik e2) {
                C1499.m4430(e2.getMessage());
                return null;
            } catch (IOException e3) {
                if (e3.getCause() instanceof zzgs) {
                    throw ((zzgs) e3.getCause());
                }
                throw new zzgs(e3.getMessage(), e3);
            } catch (IndexOutOfBoundsException unused) {
                C1499.m4430("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
                return null;
            }
        }
        if (c0044 == null || AbstractC5102.m10566(c0044, true)) {
            return c0044;
        }
        C1499.m4430(new zzik().getMessage());
        return null;
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public static /* synthetic */ void m1082(C0044 c0044, int i) {
        c0044.zzg = i - 1;
        c0044.zzd |= 1;
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final C0335 m1083() {
        return this.zze == 7 ? (C0335) this.zzf : C0335.m1751();
    }

    @Override // defpackage.AbstractC5102
    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final Object mo1084(int i) {
        int i2 = i - 1;
        if (i2 == 0) {
            return (byte) 1;
        }
        if (i2 == 2) {
            return new C5381(zzb, "\u0004\u0006\u0001\u0001\u0001\u0007\u0006\u0000\u0000\u0000\u0001᠌\u0000\u0002ဉ\u0001\u0004<\u0000\u0005᠌\u0002\u0006<\u0000\u0007<\u0000", new Object[]{"zzf", "zze", "zzd", "zzg", C3787.f14139, "zzh", C1796.class, "zzi", C3787.f14136, C2093.class, C0335.class});
        }
        if (i2 == 3) {
            return new C0044();
        }
        if (i2 == 4) {
            return new C3826(zzb);
        }
        if (i2 == 5) {
            return zzb;
        }
        throw null;
    }
}
