package V;

import a.AbstractC0872a;
import androidx.datastore.preferences.protobuf.AbstractC1030t;
import androidx.datastore.preferences.protobuf.AbstractC1032v;
import androidx.datastore.preferences.protobuf.C1018g;
import androidx.datastore.preferences.protobuf.C1023l;
import androidx.datastore.preferences.protobuf.C1033w;
import androidx.datastore.preferences.protobuf.C1034x;
import androidx.datastore.preferences.protobuf.y0;
import androidx.recyclerview.widget.RecyclerView;
import com.google.crypto.tink.shaded.protobuf.AbstractC1257e;
import com.google.crypto.tink.shaded.protobuf.AbstractC1261i;
import com.google.crypto.tink.shaded.protobuf.AbstractC1265m;
import com.google.crypto.tink.shaded.protobuf.AbstractC1270s;
import com.google.crypto.tink.shaded.protobuf.AbstractC1275x;
import com.google.crypto.tink.shaded.protobuf.C1267o;
import com.google.protobuf.AbstractC1320n;
import com.google.protobuf.AbstractC1329s;
import com.google.protobuf.C1295a0;
import com.google.protobuf.C1297b0;
import com.google.protobuf.C1308h;
import com.google.protobuf.C1313j0;
import com.google.protobuf.C1337w;
import com.google.protobuf.C1343z;
import com.google.protobuf.D0;
import com.google.protobuf.InterfaceC1305f0;
import com.google.protobuf.J0;
import com.google.protobuf.k1;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.List;
import x4.AbstractC3250p;

/* JADX INFO: renamed from: V.x, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0629x {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f7176a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f7177b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f7178c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f7179d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public Object f7180e;

    public /* synthetic */ C0629x(int i6) {
        this.f7176a = i6;
    }

    public static void N(int i6) throws com.google.crypto.tink.shaded.protobuf.C {
        if ((i6 & 3) != 0) {
            throw com.google.crypto.tink.shaded.protobuf.C.f();
        }
    }

    public static void O(int i6) throws C1297b0 {
        if ((i6 & 3) != 0) {
            throw C1297b0.g();
        }
    }

    public static void P(int i6) throws com.google.crypto.tink.shaded.protobuf.C {
        if ((i6 & 7) != 0) {
            throw com.google.crypto.tink.shaded.protobuf.C.f();
        }
    }

    public static void Q(int i6) throws C1297b0 {
        if ((i6 & 7) != 0) {
            throw C1297b0.g();
        }
    }

    public void A(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 2) {
                    int I5 = l.I();
                    if ((I5 & 3) != 0) {
                        throw new C1034x("Failed to parse the message.");
                    }
                    int iG = l.g() + I5;
                    do {
                        list.add(Integer.valueOf(l.B()));
                    } while (l.g() < iG);
                    return;
                }
                if (i6 != 5) {
                    throw C1034x.b();
                }
                do {
                    list.add(Integer.valueOf(l.B()));
                    if (l.h()) {
                        return;
                    } else {
                        iH = l.H();
                    }
                } while (iH == this.f7177b);
                this.f7179d = iH;
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.P;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 2) {
                        int iA = abstractC1329s.A();
                        O(iA);
                        int iD = abstractC1329s.d() + iA;
                        do {
                            list.add(Integer.valueOf(abstractC1329s.t()));
                        } while (abstractC1329s.d() < iD);
                        return;
                    }
                    if (i7 != 5) {
                        throw C1297b0.d();
                    }
                    do {
                        list.add(Integer.valueOf(abstractC1329s.t()));
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ = abstractC1329s.z();
                        }
                    } while (iZ == this.f7177b);
                    this.f7179d = iZ;
                    return;
                }
                com.google.protobuf.P p6 = (com.google.protobuf.P) list;
                int i8 = this.f7177b & 7;
                if (i8 == 2) {
                    int iA2 = abstractC1329s.A();
                    O(iA2);
                    int iD2 = abstractC1329s.d() + iA2;
                    do {
                        p6.g(abstractC1329s.t());
                    } while (abstractC1329s.d() < iD2);
                    return;
                }
                if (i8 != 5) {
                    throw C1297b0.d();
                }
                do {
                    p6.g(abstractC1329s.t());
                    if (abstractC1329s.e()) {
                        return;
                    } else {
                        iZ2 = abstractC1329s.z();
                    }
                } while (iZ2 == this.f7177b);
                this.f7179d = iZ2;
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1275x;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 2) {
                        int I6 = l6.I();
                        N(I6);
                        int iG2 = l6.g() + I6;
                        do {
                            list.add(Integer.valueOf(l6.B()));
                        } while (l6.g() < iG2);
                        return;
                    }
                    if (i9 != 5) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    do {
                        list.add(Integer.valueOf(l6.B()));
                        if (l6.h()) {
                            return;
                        } else {
                            iH2 = l6.H();
                        }
                    } while (iH2 == this.f7177b);
                    this.f7179d = iH2;
                    return;
                }
                AbstractC1275x abstractC1275x = (AbstractC1275x) list;
                int i10 = this.f7177b & 7;
                if (i10 == 2) {
                    int I7 = l6.I();
                    N(I7);
                    int iG3 = l6.g() + I7;
                    do {
                        abstractC1275x.g(l6.B());
                    } while (l6.g() < iG3);
                    return;
                }
                if (i10 != 5) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                do {
                    abstractC1275x.g(l6.B());
                    if (l6.h()) {
                        return;
                    } else {
                        iH3 = l6.H();
                    }
                } while (iH3 == this.f7177b);
                this.f7179d = iH3;
                return;
        }
    }

    public void B(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 1) {
                    do {
                        list.add(Long.valueOf(l.C()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int I5 = l.I();
                if ((I5 & 7) != 0) {
                    throw new C1034x("Failed to parse the message.");
                }
                int iG = l.g() + I5;
                do {
                    list.add(Long.valueOf(l.C()));
                } while (l.g() < iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1313j0;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 1) {
                        do {
                            list.add(Long.valueOf(abstractC1329s.u()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iA = abstractC1329s.A();
                    Q(iA);
                    int iD = abstractC1329s.d() + iA;
                    do {
                        list.add(Long.valueOf(abstractC1329s.u()));
                    } while (abstractC1329s.d() < iD);
                    return;
                }
                C1313j0 c1313j0 = (C1313j0) list;
                int i8 = this.f7177b & 7;
                if (i8 == 1) {
                    do {
                        c1313j0.g(abstractC1329s.u());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iA2 = abstractC1329s.A();
                Q(iA2);
                int iD2 = abstractC1329s.d() + iA2;
                do {
                    c1313j0.g(abstractC1329s.u());
                } while (abstractC1329s.d() < iD2);
                return;
            case 4:
                boolean z7 = list instanceof com.google.crypto.tink.shaded.protobuf.J;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 1) {
                        do {
                            list.add(Long.valueOf(l6.C()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int I6 = l6.I();
                    P(I6);
                    int iG2 = l6.g() + I6;
                    do {
                        list.add(Long.valueOf(l6.C()));
                    } while (l6.g() < iG2);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.J j4 = (com.google.crypto.tink.shaded.protobuf.J) list;
                int i10 = this.f7177b & 7;
                if (i10 == 1) {
                    do {
                        j4.g(l6.C());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int I7 = l6.I();
                P(I7);
                int iG3 = l6.g() + I7;
                do {
                    j4.g(l6.C());
                } while (l6.g() < iG3);
                return;
        }
    }

    public void C(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Integer.valueOf(l.D()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Integer.valueOf(l.D()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.P;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Integer.valueOf(abstractC1329s.v()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Integer.valueOf(abstractC1329s.v()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                com.google.protobuf.P p6 = (com.google.protobuf.P) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        p6.g(abstractC1329s.v());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    p6.g(abstractC1329s.v());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1275x;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Integer.valueOf(l6.D()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Integer.valueOf(l6.D()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                AbstractC1275x abstractC1275x = (AbstractC1275x) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        abstractC1275x.g(l6.D());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    abstractC1275x.g(l6.D());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public void D(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Long.valueOf(l.E()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Long.valueOf(l.E()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1313j0;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Long.valueOf(abstractC1329s.w()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Long.valueOf(abstractC1329s.w()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                C1313j0 c1313j0 = (C1313j0) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        c1313j0.g(abstractC1329s.w());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    c1313j0.g(abstractC1329s.w());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof com.google.crypto.tink.shaded.protobuf.J;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Long.valueOf(l6.E()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Long.valueOf(l6.E()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.J j4 = (com.google.crypto.tink.shaded.protobuf.J) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        j4.g(l6.E());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    j4.g(l6.E());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public void E(List list, boolean z6) throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1033w {
        String strF;
        int iH;
        int iH2;
        String strF2;
        int iH3;
        int iH4;
        String strX;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                if ((this.f7177b & 7) != 2) {
                    throw C1034x.b();
                }
                boolean z7 = list instanceof androidx.datastore.preferences.protobuf.A;
                F1.L l = (F1.L) this.f7180e;
                if (z7 && !z6) {
                    androidx.datastore.preferences.protobuf.A a6 = (androidx.datastore.preferences.protobuf.A) list;
                    do {
                        a6.i(n());
                        if (l.h()) {
                            return;
                        } else {
                            iH2 = l.H();
                        }
                    } while (iH2 == this.f7177b);
                    this.f7179d = iH2;
                    return;
                }
                do {
                    if (z6) {
                        K(2);
                        strF = l.G();
                    } else {
                        K(2);
                        strF = l.F();
                    }
                    list.add(strF);
                    if (l.h()) {
                        return;
                    } else {
                        iH = l.H();
                    }
                } while (iH == this.f7177b);
                this.f7179d = iH;
                return;
            case 3:
            default:
                if ((this.f7177b & 7) != 2) {
                    throw C1297b0.d();
                }
                boolean z8 = list instanceof InterfaceC1305f0;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (z8 && !z6) {
                    InterfaceC1305f0 interfaceC1305f0 = (InterfaceC1305f0) list;
                    do {
                        interfaceC1305f0.f(p());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                do {
                    if (z6) {
                        K(2);
                        strX = abstractC1329s.y();
                    } else {
                        K(2);
                        strX = abstractC1329s.x();
                    }
                    list.add(strX);
                    if (abstractC1329s.e()) {
                        return;
                    } else {
                        iZ = abstractC1329s.z();
                    }
                } while (iZ == this.f7177b);
                this.f7179d = iZ;
                return;
            case 4:
                if ((this.f7177b & 7) != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                boolean z9 = list instanceof com.google.crypto.tink.shaded.protobuf.F;
                F1.L l6 = (F1.L) this.f7180e;
                if (z9 && !z6) {
                    com.google.crypto.tink.shaded.protobuf.F f6 = (com.google.crypto.tink.shaded.protobuf.F) list;
                    do {
                        f6.t(o());
                        if (l6.h()) {
                            return;
                        } else {
                            iH4 = l6.H();
                        }
                    } while (iH4 == this.f7177b);
                    this.f7179d = iH4;
                    return;
                }
                do {
                    if (z6) {
                        K(2);
                        strF2 = l6.G();
                    } else {
                        K(2);
                        strF2 = l6.F();
                    }
                    list.add(strF2);
                    if (l6.h()) {
                        return;
                    } else {
                        iH3 = l6.H();
                    }
                } while (iH3 == this.f7177b);
                this.f7179d = iH3;
                return;
        }
    }

    public void F(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Integer.valueOf(l.I()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Integer.valueOf(l.I()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.P;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Integer.valueOf(abstractC1329s.A()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Integer.valueOf(abstractC1329s.A()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                com.google.protobuf.P p6 = (com.google.protobuf.P) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        p6.g(abstractC1329s.A());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    p6.g(abstractC1329s.A());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1275x;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Integer.valueOf(l6.I()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Integer.valueOf(l6.I()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                AbstractC1275x abstractC1275x = (AbstractC1275x) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        abstractC1275x.g(l6.I());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    abstractC1275x.g(l6.I());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public void G(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Long.valueOf(l.J()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Long.valueOf(l.J()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1313j0;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Long.valueOf(abstractC1329s.B()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Long.valueOf(abstractC1329s.B()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                C1313j0 c1313j0 = (C1313j0) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        c1313j0.g(abstractC1329s.B());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    c1313j0.g(abstractC1329s.B());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof com.google.crypto.tink.shaded.protobuf.J;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Long.valueOf(l6.J()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Long.valueOf(l6.J()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.J j4 = (com.google.crypto.tink.shaded.protobuf.J) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        j4.g(l6.J());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    j4.g(l6.J());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public void H(int i6) {
        if (i6 <= 0) {
            return;
        }
        if (i6 > L()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        int i7 = this.f7178c;
        int i8 = i6 < i7 ? i7 - i6 : 0;
        for (int i9 = i8; i9 < i7; i9++) {
            ((Object[]) this.f7180e)[i9] = null;
        }
        int i10 = this.f7178c;
        int i11 = i10 - i8;
        int i12 = i6 - i11;
        this.f7178c = i10 - i11;
        if (i12 > 0) {
            int length = ((Object[]) this.f7180e).length;
            this.f7178c = length;
            int i13 = length - i12;
            for (int i14 = i13; i14 < length; i14++) {
                ((Object[]) this.f7180e)[i14] = null;
            }
            this.f7178c = i13;
        }
    }

    public void I(int i6) {
        if (i6 <= 0) {
            return;
        }
        if (i6 > L()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        int length = ((Object[]) this.f7180e).length;
        int i7 = this.f7177b;
        if (i6 < length - i7) {
            length = i7 + i6;
        }
        while (i7 < length) {
            ((Object[]) this.f7180e)[i7] = null;
            i7++;
        }
        int i8 = this.f7177b;
        int i9 = length - i8;
        int i10 = i6 - i9;
        this.f7177b = this.f7179d & (i8 + i9);
        if (i10 > 0) {
            for (int i11 = 0; i11 < i10; i11++) {
                ((Object[]) this.f7180e)[i11] = null;
            }
            this.f7177b = i10;
        }
    }

    public void J(int i6) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        switch (this.f7176a) {
            case 2:
                if (((F1.L) this.f7180e).g() != i6) {
                    throw C1034x.e();
                }
                return;
            case 3:
            default:
                if (((AbstractC1329s) this.f7180e).d() != i6) {
                    throw C1297b0.h();
                }
                return;
            case 4:
                if (((F1.L) this.f7180e).g() != i6) {
                    throw com.google.crypto.tink.shaded.protobuf.C.g();
                }
                return;
        }
    }

    public void K(int i6) throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1033w {
        switch (this.f7176a) {
            case 2:
                if ((this.f7177b & 7) != i6) {
                    throw C1034x.b();
                }
                return;
            case 3:
            default:
                if ((this.f7177b & 7) != i6) {
                    throw C1297b0.d();
                }
                return;
            case 4:
                if ((this.f7177b & 7) != i6) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                return;
        }
    }

    public int L() {
        return (this.f7178c - this.f7177b) & this.f7179d;
    }

    public boolean M() {
        int i6;
        int i7;
        switch (this.f7176a) {
            case 2:
                F1.L l = (F1.L) this.f7180e;
                if (l.h() || (i6 = this.f7177b) == this.f7178c) {
                    return false;
                }
                return l.K(i6);
            default:
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (abstractC1329s.e() || (i7 = this.f7177b) == this.f7178c) {
                    return false;
                }
                return abstractC1329s.C(i7);
        }
    }

    public void a(int i6, int i7) {
        if (i6 < 0) {
            throw new IllegalArgumentException("Layout positions must be non-negative");
        }
        if (i7 < 0) {
            throw new IllegalArgumentException("Pixel distance must be non-negative");
        }
        int i8 = this.f7179d;
        int i9 = i8 * 2;
        int[] iArr = (int[]) this.f7180e;
        if (iArr == null) {
            int[] iArr2 = new int[4];
            this.f7180e = iArr2;
            Arrays.fill(iArr2, -1);
        } else if (i9 >= iArr.length) {
            int[] iArr3 = new int[i8 * 4];
            this.f7180e = iArr3;
            System.arraycopy(iArr, 0, iArr3, 0, iArr.length);
        }
        int[] iArr4 = (int[]) this.f7180e;
        iArr4[i9] = i6;
        iArr4[i9 + 1] = i7;
        this.f7179d++;
    }

    public C0631z b(int i6) {
        return new C0631z(AbstractC0872a.R((T0.L) this.f7180e, i6), i6, 1L);
    }

    public void c(RecyclerView recyclerView, boolean z6) {
        this.f7179d = 0;
        int[] iArr = (int[]) this.f7180e;
        if (iArr != null) {
            Arrays.fill(iArr, -1);
        }
        androidx.recyclerview.widget.J j4 = recyclerView.f12946q;
        if (recyclerView.f12944p == null || j4 == null || !j4.f12850i) {
            return;
        }
        if (z6) {
            if (!recyclerView.f12930e.g()) {
                j4.i(recyclerView.f12944p.getItemCount(), this);
            }
        } else if (!recyclerView.I()) {
            j4.h(this.f7177b, this.f7178c, recyclerView.f12934j0, this);
        }
        int i6 = this.f7179d;
        if (i6 > j4.f12851j) {
            j4.f12851j = i6;
            j4.f12852k = z6;
            recyclerView.f12926c.n();
        }
    }

    public void d() {
        Object[] objArr = (Object[]) this.f7180e;
        int length = objArr.length;
        int i6 = this.f7177b;
        int i7 = length - i6;
        int i8 = length << 1;
        if (i8 < 0) {
            throw new RuntimeException("Max array capacity exceeded");
        }
        Object[] objArr2 = new Object[i8];
        AbstractC3250p.B(objArr, 0, objArr2, i6, length);
        AbstractC3250p.B((Object[]) this.f7180e, i7, objArr2, 0, this.f7177b);
        this.f7180e = objArr2;
        this.f7177b = 0;
        this.f7178c = length;
        this.f7179d = i8 - 1;
    }

    public int e() {
        return this.f7179d - this.f7178c;
    }

    public int f() {
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7179d;
                if (i6 != 0) {
                    this.f7177b = i6;
                    this.f7179d = 0;
                } else {
                    this.f7177b = ((F1.L) this.f7180e).H();
                }
                int i7 = this.f7177b;
                if (i7 == 0 || i7 == this.f7178c) {
                    return Integer.MAX_VALUE;
                }
                return i7 >>> 3;
            case 3:
            default:
                int i8 = this.f7179d;
                if (i8 != 0) {
                    this.f7177b = i8;
                    this.f7179d = 0;
                } else {
                    this.f7177b = ((AbstractC1329s) this.f7180e).z();
                }
                int i9 = this.f7177b;
                if (i9 == 0 || i9 == this.f7178c) {
                    return Integer.MAX_VALUE;
                }
                return i9 >>> 3;
            case 4:
                int i10 = this.f7179d;
                if (i10 != 0) {
                    this.f7177b = i10;
                    this.f7179d = 0;
                } else {
                    this.f7177b = ((F1.L) this.f7180e).H();
                }
                int i11 = this.f7177b;
                if (i11 == 0 || i11 == this.f7178c) {
                    return Integer.MAX_VALUE;
                }
                return i11 >>> 3;
        }
    }

    public void g(Object obj, androidx.datastore.preferences.protobuf.X x6, C1023l c1023l) {
        int i6 = this.f7178c;
        this.f7178c = ((this.f7177b >>> 3) << 3) | 4;
        try {
            x6.f(obj, this, c1023l);
            if (this.f7177b == this.f7178c) {
            } else {
                throw new C1034x("Failed to parse the message.");
            }
        } finally {
            this.f7178c = i6;
        }
    }

    public void h(Object obj, com.google.crypto.tink.shaded.protobuf.c0 c0Var, C1267o c1267o) {
        int i6 = this.f7178c;
        this.f7178c = ((this.f7177b >>> 3) << 3) | 4;
        try {
            c0Var.e(obj, this, c1267o);
            if (this.f7177b == this.f7178c) {
            } else {
                throw com.google.crypto.tink.shaded.protobuf.C.f();
            }
        } finally {
            this.f7178c = i6;
        }
    }

    public void i(Object obj, J0 j02, C1343z c1343z) {
        int i6 = this.f7178c;
        this.f7178c = ((this.f7177b >>> 3) << 3) | 4;
        try {
            j02.f(obj, this, c1343z);
            if (this.f7177b == this.f7178c) {
            } else {
                throw C1297b0.g();
            }
        } finally {
            this.f7178c = i6;
        }
    }

    public void j(Object obj, androidx.datastore.preferences.protobuf.X x6, C1023l c1023l) throws C1034x {
        F1.L l = (F1.L) this.f7180e;
        int I5 = l.I();
        if (l.f1378a >= 100) {
            throw new C1034x("Protocol message had too many levels of nesting.  May be malicious.  Use CodedInputStream.setRecursionLimit() to increase the depth limit.");
        }
        int iQ = l.q(I5);
        l.f1378a++;
        x6.f(obj, this, c1023l);
        l.c(0);
        l.f1378a--;
        l.o(iQ);
    }

    public void k(Object obj, com.google.crypto.tink.shaded.protobuf.c0 c0Var, C1267o c1267o) throws com.google.crypto.tink.shaded.protobuf.C {
        F1.L l = (F1.L) this.f7180e;
        int I5 = l.I();
        if (l.f1378a >= 100) {
            throw new com.google.crypto.tink.shaded.protobuf.C("Protocol message had too many levels of nesting.  May be malicious.  Use CodedInputStream.setRecursionLimit() to increase the depth limit.");
        }
        int iQ = l.q(I5);
        l.f1378a++;
        c0Var.e(obj, this, c1267o);
        l.c(0);
        l.f1378a--;
        l.o(iQ);
    }

    public void l(Object obj, J0 j02, C1343z c1343z) throws C1297b0 {
        AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
        int iA = abstractC1329s.A();
        if (abstractC1329s.f14351a >= abstractC1329s.f14352b) {
            throw new C1297b0("Protocol message had too many levels of nesting.  May be malicious.  Use CodedInputStream.setRecursionLimit() to increase the depth limit.");
        }
        int i6 = abstractC1329s.i(iA);
        abstractC1329s.f14351a++;
        j02.f(obj, this, c1343z);
        abstractC1329s.a(0);
        abstractC1329s.f14351a--;
        abstractC1329s.h(i6);
    }

    public void m(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Boolean.valueOf(l.r()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Boolean.valueOf(l.r()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1308h;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Boolean.valueOf(abstractC1329s.j()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Boolean.valueOf(abstractC1329s.j()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                C1308h c1308h = (C1308h) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        c1308h.g(abstractC1329s.j());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    c1308h.g(abstractC1329s.j());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1257e;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Boolean.valueOf(l6.r()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Boolean.valueOf(l6.r()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                AbstractC1257e abstractC1257e = (AbstractC1257e) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        abstractC1257e.g(l6.r());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    abstractC1257e.g(l6.r());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public C1018g n() throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1033w {
        K(2);
        return ((F1.L) this.f7180e).s();
    }

    public AbstractC1261i o() throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1033w {
        K(2);
        return ((F1.L) this.f7180e).t();
    }

    public AbstractC1320n p() throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1033w {
        K(2);
        return ((AbstractC1329s) this.f7180e).k();
    }

    public void q(List list) throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1033w {
        int iH;
        int iH2;
        int iZ;
        switch (this.f7176a) {
            case 2:
                if ((this.f7177b & 7) != 2) {
                    throw C1034x.b();
                }
                do {
                    list.add(n());
                    F1.L l = (F1.L) this.f7180e;
                    if (l.h()) {
                        return;
                    } else {
                        iH = l.H();
                    }
                } while (iH == this.f7177b);
                this.f7179d = iH;
                return;
            case 3:
            default:
                if ((this.f7177b & 7) != 2) {
                    throw C1297b0.d();
                }
                do {
                    list.add(p());
                    AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                    if (abstractC1329s.e()) {
                        return;
                    } else {
                        iZ = abstractC1329s.z();
                    }
                } while (iZ == this.f7177b);
                this.f7179d = iZ;
                return;
            case 4:
                if ((this.f7177b & 7) != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                do {
                    list.add(o());
                    F1.L l6 = (F1.L) this.f7180e;
                    if (l6.h()) {
                        return;
                    } else {
                        iH2 = l6.H();
                    }
                } while (iH2 == this.f7177b);
                this.f7179d = iH2;
                return;
        }
    }

    public void r(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 1) {
                    do {
                        list.add(Double.valueOf(l.u()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int I5 = l.I();
                if ((I5 & 7) != 0) {
                    throw new C1034x("Failed to parse the message.");
                }
                int iG = l.g() + I5;
                do {
                    list.add(Double.valueOf(l.u()));
                } while (l.g() < iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1337w;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 1) {
                        do {
                            list.add(Double.valueOf(abstractC1329s.l()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iA = abstractC1329s.A();
                    Q(iA);
                    int iD = abstractC1329s.d() + iA;
                    do {
                        list.add(Double.valueOf(abstractC1329s.l()));
                    } while (abstractC1329s.d() < iD);
                    return;
                }
                C1337w c1337w = (C1337w) list;
                int i8 = this.f7177b & 7;
                if (i8 == 1) {
                    do {
                        c1337w.g(abstractC1329s.l());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iA2 = abstractC1329s.A();
                Q(iA2);
                int iD2 = abstractC1329s.d() + iA2;
                do {
                    c1337w.g(abstractC1329s.l());
                } while (abstractC1329s.d() < iD2);
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1265m;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 1) {
                        do {
                            list.add(Double.valueOf(l6.u()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int I6 = l6.I();
                    P(I6);
                    int iG2 = l6.g() + I6;
                    do {
                        list.add(Double.valueOf(l6.u()));
                    } while (l6.g() < iG2);
                    return;
                }
                AbstractC1265m abstractC1265m = (AbstractC1265m) list;
                int i10 = this.f7177b & 7;
                if (i10 == 1) {
                    do {
                        abstractC1265m.g(l6.u());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int I7 = l6.I();
                P(I7);
                int iG3 = l6.g() + I7;
                do {
                    abstractC1265m.g(l6.u());
                } while (l6.g() < iG3);
                return;
        }
    }

    public void s(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Integer.valueOf(l.v()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Integer.valueOf(l.v()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.P;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Integer.valueOf(abstractC1329s.m()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Integer.valueOf(abstractC1329s.m()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                com.google.protobuf.P p6 = (com.google.protobuf.P) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        p6.g(abstractC1329s.m());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    p6.g(abstractC1329s.m());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1275x;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Integer.valueOf(l6.v()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Integer.valueOf(l6.v()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                AbstractC1275x abstractC1275x = (AbstractC1275x) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        abstractC1275x.g(l6.v());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    abstractC1275x.g(l6.v());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public Object t(y0 y0Var, Class cls, C1023l c1023l) throws com.google.crypto.tink.shaded.protobuf.B, C1295a0, C1034x {
        int iOrdinal = y0Var.ordinal();
        F1.L l = (F1.L) this.f7180e;
        switch (iOrdinal) {
            case 0:
                K(1);
                return Double.valueOf(l.u());
            case 1:
                K(5);
                return Float.valueOf(l.y());
            case 2:
                K(0);
                return Long.valueOf(l.A());
            case 3:
                K(0);
                return Long.valueOf(l.J());
            case 4:
                K(0);
                return Integer.valueOf(l.z());
            case 5:
                K(1);
                return Long.valueOf(l.x());
            case 6:
                K(5);
                return Integer.valueOf(l.w());
            case 7:
                K(0);
                return Boolean.valueOf(l.r());
            case 8:
                K(2);
                return l.G();
            case 9:
            default:
                throw new IllegalArgumentException("unsupported field type.");
            case 10:
                K(2);
                androidx.datastore.preferences.protobuf.X xA = androidx.datastore.preferences.protobuf.U.f11340c.a(cls);
                AbstractC1030t abstractC1030tD = xA.d();
                j(abstractC1030tD, xA, c1023l);
                xA.b(abstractC1030tD);
                return abstractC1030tD;
            case 11:
                return n();
            case 12:
                K(0);
                return Integer.valueOf(l.I());
            case 13:
                K(0);
                return Integer.valueOf(l.v());
            case 14:
                K(5);
                return Integer.valueOf(l.B());
            case 15:
                K(1);
                return Long.valueOf(l.C());
            case 16:
                K(0);
                return Integer.valueOf(l.D());
            case 17:
                K(0);
                return Long.valueOf(l.E());
        }
    }

    public String toString() {
        switch (this.f7176a) {
            case 0:
                StringBuilder sb = new StringBuilder("SelectionInfo(id=1, range=(");
                int i6 = this.f7177b;
                sb.append(i6);
                sb.append('-');
                T0.L l = (T0.L) this.f7180e;
                sb.append(AbstractC0872a.R(l, i6));
                sb.append(',');
                int i7 = this.f7178c;
                sb.append(i7);
                sb.append('-');
                sb.append(AbstractC0872a.R(l, i7));
                sb.append("), prevOffset=");
                return com.google.android.recaptcha.internal.a.m(sb, this.f7179d, ')');
            case 1:
                return "";
            default:
                return super.toString();
        }
    }

    public Object u(k1 k1Var, Class cls, C1343z c1343z) throws com.google.crypto.tink.shaded.protobuf.B, C1297b0, C1033w {
        int iOrdinal = k1Var.ordinal();
        AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
        switch (iOrdinal) {
            case 0:
                K(1);
                return Double.valueOf(abstractC1329s.l());
            case 1:
                K(5);
                return Float.valueOf(abstractC1329s.p());
            case 2:
                K(0);
                return Long.valueOf(abstractC1329s.r());
            case 3:
                K(0);
                return Long.valueOf(abstractC1329s.B());
            case 4:
                K(0);
                return Integer.valueOf(abstractC1329s.q());
            case 5:
                K(1);
                return Long.valueOf(abstractC1329s.o());
            case 6:
                K(5);
                return Integer.valueOf(abstractC1329s.n());
            case 7:
                K(0);
                return Boolean.valueOf(abstractC1329s.j());
            case 8:
                K(2);
                return abstractC1329s.y();
            case 9:
            default:
                throw new IllegalArgumentException("unsupported field type.");
            case 10:
                K(2);
                J0 j0A = D0.f14169c.a(cls);
                Object objD = j0A.d();
                l(objD, j0A, c1343z);
                j0A.b(objD);
                return objD;
            case 11:
                return p();
            case 12:
                K(0);
                return Integer.valueOf(abstractC1329s.A());
            case 13:
                K(0);
                return Integer.valueOf(abstractC1329s.m());
            case 14:
                K(5);
                return Integer.valueOf(abstractC1329s.t());
            case 15:
                K(1);
                return Long.valueOf(abstractC1329s.u());
            case 16:
                K(0);
                return Integer.valueOf(abstractC1329s.v());
            case 17:
                K(0);
                return Long.valueOf(abstractC1329s.w());
        }
    }

    public void v(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 2) {
                    int I5 = l.I();
                    if ((I5 & 3) != 0) {
                        throw new C1034x("Failed to parse the message.");
                    }
                    int iG = l.g() + I5;
                    do {
                        list.add(Integer.valueOf(l.w()));
                    } while (l.g() < iG);
                    return;
                }
                if (i6 != 5) {
                    throw C1034x.b();
                }
                do {
                    list.add(Integer.valueOf(l.w()));
                    if (l.h()) {
                        return;
                    } else {
                        iH = l.H();
                    }
                } while (iH == this.f7177b);
                this.f7179d = iH;
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.P;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 2) {
                        int iA = abstractC1329s.A();
                        O(iA);
                        int iD = abstractC1329s.d() + iA;
                        do {
                            list.add(Integer.valueOf(abstractC1329s.n()));
                        } while (abstractC1329s.d() < iD);
                        return;
                    }
                    if (i7 != 5) {
                        throw C1297b0.d();
                    }
                    do {
                        list.add(Integer.valueOf(abstractC1329s.n()));
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ = abstractC1329s.z();
                        }
                    } while (iZ == this.f7177b);
                    this.f7179d = iZ;
                    return;
                }
                com.google.protobuf.P p6 = (com.google.protobuf.P) list;
                int i8 = this.f7177b & 7;
                if (i8 == 2) {
                    int iA2 = abstractC1329s.A();
                    O(iA2);
                    int iD2 = abstractC1329s.d() + iA2;
                    do {
                        p6.g(abstractC1329s.n());
                    } while (abstractC1329s.d() < iD2);
                    return;
                }
                if (i8 != 5) {
                    throw C1297b0.d();
                }
                do {
                    p6.g(abstractC1329s.n());
                    if (abstractC1329s.e()) {
                        return;
                    } else {
                        iZ2 = abstractC1329s.z();
                    }
                } while (iZ2 == this.f7177b);
                this.f7179d = iZ2;
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1275x;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 2) {
                        int I6 = l6.I();
                        N(I6);
                        int iG2 = l6.g() + I6;
                        do {
                            list.add(Integer.valueOf(l6.w()));
                        } while (l6.g() < iG2);
                        return;
                    }
                    if (i9 != 5) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    do {
                        list.add(Integer.valueOf(l6.w()));
                        if (l6.h()) {
                            return;
                        } else {
                            iH2 = l6.H();
                        }
                    } while (iH2 == this.f7177b);
                    this.f7179d = iH2;
                    return;
                }
                AbstractC1275x abstractC1275x = (AbstractC1275x) list;
                int i10 = this.f7177b & 7;
                if (i10 == 2) {
                    int I7 = l6.I();
                    N(I7);
                    int iG3 = l6.g() + I7;
                    do {
                        abstractC1275x.g(l6.w());
                    } while (l6.g() < iG3);
                    return;
                }
                if (i10 != 5) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                do {
                    abstractC1275x.g(l6.w());
                    if (l6.h()) {
                        return;
                    } else {
                        iH3 = l6.H();
                    }
                } while (iH3 == this.f7177b);
                this.f7179d = iH3;
                return;
        }
    }

    public void w(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 1) {
                    do {
                        list.add(Long.valueOf(l.x()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int I5 = l.I();
                if ((I5 & 7) != 0) {
                    throw new C1034x("Failed to parse the message.");
                }
                int iG = l.g() + I5;
                do {
                    list.add(Long.valueOf(l.x()));
                } while (l.g() < iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1313j0;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 1) {
                        do {
                            list.add(Long.valueOf(abstractC1329s.o()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iA = abstractC1329s.A();
                    Q(iA);
                    int iD = abstractC1329s.d() + iA;
                    do {
                        list.add(Long.valueOf(abstractC1329s.o()));
                    } while (abstractC1329s.d() < iD);
                    return;
                }
                C1313j0 c1313j0 = (C1313j0) list;
                int i8 = this.f7177b & 7;
                if (i8 == 1) {
                    do {
                        c1313j0.g(abstractC1329s.o());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iA2 = abstractC1329s.A();
                Q(iA2);
                int iD2 = abstractC1329s.d() + iA2;
                do {
                    c1313j0.g(abstractC1329s.o());
                } while (abstractC1329s.d() < iD2);
                return;
            case 4:
                boolean z7 = list instanceof com.google.crypto.tink.shaded.protobuf.J;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 1) {
                        do {
                            list.add(Long.valueOf(l6.x()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int I6 = l6.I();
                    P(I6);
                    int iG2 = l6.g() + I6;
                    do {
                        list.add(Long.valueOf(l6.x()));
                    } while (l6.g() < iG2);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.J j4 = (com.google.crypto.tink.shaded.protobuf.J) list;
                int i10 = this.f7177b & 7;
                if (i10 == 1) {
                    do {
                        j4.g(l6.x());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int I7 = l6.I();
                P(I7);
                int iG3 = l6.g() + I7;
                do {
                    j4.g(l6.x());
                } while (l6.g() < iG3);
                return;
        }
    }

    public void x(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 2) {
                    int I5 = l.I();
                    if ((I5 & 3) != 0) {
                        throw new C1034x("Failed to parse the message.");
                    }
                    int iG = l.g() + I5;
                    do {
                        list.add(Float.valueOf(l.y()));
                    } while (l.g() < iG);
                    return;
                }
                if (i6 != 5) {
                    throw C1034x.b();
                }
                do {
                    list.add(Float.valueOf(l.y()));
                    if (l.h()) {
                        return;
                    } else {
                        iH = l.H();
                    }
                } while (iH == this.f7177b);
                this.f7179d = iH;
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.E;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 2) {
                        int iA = abstractC1329s.A();
                        O(iA);
                        int iD = abstractC1329s.d() + iA;
                        do {
                            list.add(Float.valueOf(abstractC1329s.p()));
                        } while (abstractC1329s.d() < iD);
                        return;
                    }
                    if (i7 != 5) {
                        throw C1297b0.d();
                    }
                    do {
                        list.add(Float.valueOf(abstractC1329s.p()));
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ = abstractC1329s.z();
                        }
                    } while (iZ == this.f7177b);
                    this.f7179d = iZ;
                    return;
                }
                com.google.protobuf.E e6 = (com.google.protobuf.E) list;
                int i8 = this.f7177b & 7;
                if (i8 == 2) {
                    int iA2 = abstractC1329s.A();
                    O(iA2);
                    int iD2 = abstractC1329s.d() + iA2;
                    do {
                        e6.g(abstractC1329s.p());
                    } while (abstractC1329s.d() < iD2);
                    return;
                }
                if (i8 != 5) {
                    throw C1297b0.d();
                }
                do {
                    e6.g(abstractC1329s.p());
                    if (abstractC1329s.e()) {
                        return;
                    } else {
                        iZ2 = abstractC1329s.z();
                    }
                } while (iZ2 == this.f7177b);
                this.f7179d = iZ2;
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1270s;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 2) {
                        int I6 = l6.I();
                        N(I6);
                        int iG2 = l6.g() + I6;
                        do {
                            list.add(Float.valueOf(l6.y()));
                        } while (l6.g() < iG2);
                        return;
                    }
                    if (i9 != 5) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    do {
                        list.add(Float.valueOf(l6.y()));
                        if (l6.h()) {
                            return;
                        } else {
                            iH2 = l6.H();
                        }
                    } while (iH2 == this.f7177b);
                    this.f7179d = iH2;
                    return;
                }
                AbstractC1270s abstractC1270s = (AbstractC1270s) list;
                int i10 = this.f7177b & 7;
                if (i10 == 2) {
                    int I7 = l6.I();
                    N(I7);
                    int iG3 = l6.g() + I7;
                    do {
                        abstractC1270s.g(l6.y());
                    } while (l6.g() < iG3);
                    return;
                }
                if (i10 != 5) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                do {
                    abstractC1270s.g(l6.y());
                    if (l6.h()) {
                        return;
                    } else {
                        iH3 = l6.H();
                    }
                } while (iH3 == this.f7177b);
                this.f7179d = iH3;
                return;
        }
    }

    public void y(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Integer.valueOf(l.z()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Integer.valueOf(l.z()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof com.google.protobuf.P;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Integer.valueOf(abstractC1329s.q()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Integer.valueOf(abstractC1329s.q()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                com.google.protobuf.P p6 = (com.google.protobuf.P) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        p6.g(abstractC1329s.q());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    p6.g(abstractC1329s.q());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof AbstractC1275x;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Integer.valueOf(l6.z()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Integer.valueOf(l6.z()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                AbstractC1275x abstractC1275x = (AbstractC1275x) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        abstractC1275x.g(l6.z());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    abstractC1275x.g(l6.z());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public void z(List list) throws C1297b0, com.google.crypto.tink.shaded.protobuf.C, C1034x {
        int iH;
        int iH2;
        int iH3;
        int iZ;
        int iZ2;
        switch (this.f7176a) {
            case 2:
                int i6 = this.f7177b & 7;
                F1.L l = (F1.L) this.f7180e;
                if (i6 == 0) {
                    do {
                        list.add(Long.valueOf(l.A()));
                        if (l.h()) {
                            return;
                        } else {
                            iH = l.H();
                        }
                    } while (iH == this.f7177b);
                    this.f7179d = iH;
                    return;
                }
                if (i6 != 2) {
                    throw C1034x.b();
                }
                int iG = l.g() + l.I();
                do {
                    list.add(Long.valueOf(l.A()));
                } while (l.g() < iG);
                J(iG);
                return;
            case 3:
            default:
                boolean z6 = list instanceof C1313j0;
                AbstractC1329s abstractC1329s = (AbstractC1329s) this.f7180e;
                if (!z6) {
                    int i7 = this.f7177b & 7;
                    if (i7 == 0) {
                        do {
                            list.add(Long.valueOf(abstractC1329s.r()));
                            if (abstractC1329s.e()) {
                                return;
                            } else {
                                iZ = abstractC1329s.z();
                            }
                        } while (iZ == this.f7177b);
                        this.f7179d = iZ;
                        return;
                    }
                    if (i7 != 2) {
                        throw C1297b0.d();
                    }
                    int iD = abstractC1329s.d() + abstractC1329s.A();
                    do {
                        list.add(Long.valueOf(abstractC1329s.r()));
                    } while (abstractC1329s.d() < iD);
                    J(iD);
                    return;
                }
                C1313j0 c1313j0 = (C1313j0) list;
                int i8 = this.f7177b & 7;
                if (i8 == 0) {
                    do {
                        c1313j0.g(abstractC1329s.r());
                        if (abstractC1329s.e()) {
                            return;
                        } else {
                            iZ2 = abstractC1329s.z();
                        }
                    } while (iZ2 == this.f7177b);
                    this.f7179d = iZ2;
                    return;
                }
                if (i8 != 2) {
                    throw C1297b0.d();
                }
                int iD2 = abstractC1329s.d() + abstractC1329s.A();
                do {
                    c1313j0.g(abstractC1329s.r());
                } while (abstractC1329s.d() < iD2);
                J(iD2);
                return;
            case 4:
                boolean z7 = list instanceof com.google.crypto.tink.shaded.protobuf.J;
                F1.L l6 = (F1.L) this.f7180e;
                if (!z7) {
                    int i9 = this.f7177b & 7;
                    if (i9 == 0) {
                        do {
                            list.add(Long.valueOf(l6.A()));
                            if (l6.h()) {
                                return;
                            } else {
                                iH2 = l6.H();
                            }
                        } while (iH2 == this.f7177b);
                        this.f7179d = iH2;
                        return;
                    }
                    if (i9 != 2) {
                        throw com.google.crypto.tink.shaded.protobuf.C.c();
                    }
                    int iG2 = l6.g() + l6.I();
                    do {
                        list.add(Long.valueOf(l6.A()));
                    } while (l6.g() < iG2);
                    J(iG2);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.J j4 = (com.google.crypto.tink.shaded.protobuf.J) list;
                int i10 = this.f7177b & 7;
                if (i10 == 0) {
                    do {
                        j4.g(l6.A());
                        if (l6.h()) {
                            return;
                        } else {
                            iH3 = l6.H();
                        }
                    } while (iH3 == this.f7177b);
                    this.f7179d = iH3;
                    return;
                }
                if (i10 != 2) {
                    throw com.google.crypto.tink.shaded.protobuf.C.c();
                }
                int iG3 = l6.g() + l6.I();
                do {
                    j4.g(l6.A());
                } while (l6.g() < iG3);
                J(iG3);
                return;
        }
    }

    public C0629x(AbstractC1329s abstractC1329s) {
        this.f7176a = 5;
        this.f7179d = 0;
        com.google.protobuf.Z.a(abstractC1329s, "input");
        this.f7180e = abstractC1329s;
        abstractC1329s.f14353c = this;
    }

    public C0629x(F1.L l) {
        this.f7176a = 2;
        this.f7179d = 0;
        Charset charset = AbstractC1032v.f11445a;
        this.f7180e = l;
        l.f1379b = this;
    }

    public C0629x(F1.L l, byte b5) {
        this.f7176a = 4;
        this.f7179d = 0;
        com.google.crypto.tink.shaded.protobuf.A.a(l, "input");
        this.f7180e = l;
        l.f1379b = this;
    }

    public C0629x(int i6, int i7, int i8, T0.L l) {
        this.f7176a = 0;
        this.f7177b = i6;
        this.f7178c = i7;
        this.f7179d = i8;
        this.f7180e = l;
    }
}
