package defpackage;

import com.google.android.gms.internal.play_billing.zzhb;
import com.google.android.gms.internal.play_billing.zzip;
import java.io.IOException;

/* JADX INFO: renamed from: ˏᵥᵟ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1887 extends AbstractC4814 {
    private static final C1887 zzb;
    private int zzd;
    private int zze = 0;
    private Object zzf;
    private int zzg;
    private C1819 zzh;
    private int zzi;

    static {
        C1887 c1887 = new C1887();
        zzb = c1887;
        AbstractC4814.m10036(C1887.class, c1887);
    }

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public static C2580 m5122() {
        return (C2580) zzb.m10042();
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public static /* synthetic */ void m5123(C1887 c1887, int i) {
        c1887.zzg = i - 1;
        c1887.zzd |= 1;
    }

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public static void m5124(C1887 c1887, EnumC4161 enumC4161) {
        c1887.zzi = enumC4161.f15883;
        c1887.zzd |= 4;
    }

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public static C1887 m5125(byte[] bArr) throws zzhb {
        AbstractC4814 abstractC4814 = zzb;
        int length = bArr.length;
        C3828 c3828 = C3828.f14619;
        int i = AbstractC5348.f20178;
        C3828 c38282 = C3828.f14619;
        if (length != 0) {
            AbstractC4814 abstractC4814M10038 = abstractC4814.m10038();
            try {
                InterfaceC5045 interfaceC5045M10748 = C5215.f19640.m10748(abstractC4814M10038.getClass());
                C4449 c4449 = new C4449();
                c38282.getClass();
                interfaceC5045M10748.mo5387(abstractC4814M10038, bArr, 0, length, c4449);
                interfaceC5045M10748.mo5383(abstractC4814M10038);
                abstractC4814 = abstractC4814M10038;
            } catch (zzhb e) {
                throw e;
            } catch (zzip e2) {
                C1974.m5336(e2.getMessage());
                return null;
            } catch (IOException e3) {
                if (e3.getCause() instanceof zzhb) {
                    throw ((zzhb) e3.getCause());
                }
                throw new zzhb(e3.getMessage(), e3);
            } catch (IndexOutOfBoundsException unused) {
                C1974.m5336("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 (abstractC4814 == null || AbstractC4814.m10035(abstractC4814, true)) {
            return (C1887) abstractC4814;
        }
        C1974.m5336(new zzip().getMessage());
        return null;
    }

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public static /* synthetic */ void m5126(C1887 c1887, C1819 c1819) {
        c1887.zzh = c1819;
        c1887.zzd |= 2;
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public static /* synthetic */ void m5127(C1887 c1887, C3658 c3658) {
        c1887.zzf = c3658;
        c1887.zze = 7;
    }

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public static /* synthetic */ void m5128(C1887 c1887, C1436 c1436) {
        c1887.zzf = c1436;
        c1887.zze = 6;
    }

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public final C3658 m5129() {
        return this.zze == 7 ? (C3658) this.zzf : C3658.m8248();
    }

    @Override // defpackage.AbstractC4814
    /* JADX INFO: renamed from: ᵱᵽʡᵚ */
    public final Object mo1693(int i) {
        int i2 = i - 1;
        if (i2 == 0) {
            return (byte) 1;
        }
        if (i2 == 2) {
            return new C3071(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", C5407.f20499, "zzh", C1175.class, "zzi", C5407.f20500, C1436.class, C3658.class});
        }
        if (i2 == 3) {
            return new C1887();
        }
        if (i2 == 4) {
            return new C2580(zzb);
        }
        if (i2 == 5) {
            return zzb;
        }
        throw null;
    }
}
