package mo;

import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import kotlin.reflect.jvm.internal.impl.protobuf.a;
import kotlin.reflect.jvm.internal.impl.protobuf.d;
import kotlin.reflect.jvm.internal.impl.protobuf.i;
import mo.q;
import mo.u;
import net.sqlcipher.database.SQLiteDatabase;

/* loaded from: classes3.dex */
public final class n extends i.d {
    private static final n K;
    public static kotlin.reflect.jvm.internal.impl.protobuf.r L = new a();
    private int A;
    private List B;
    private List C;
    private int D;
    private u E;
    private int F;
    private int G;
    private List H;
    private byte I;
    private int J;

    /* renamed from: r, reason: collision with root package name */
    private final kotlin.reflect.jvm.internal.impl.protobuf.d f29408r;

    /* renamed from: s, reason: collision with root package name */
    private int f29409s;

    /* renamed from: t, reason: collision with root package name */
    private int f29410t;

    /* renamed from: u, reason: collision with root package name */
    private int f29411u;

    /* renamed from: v, reason: collision with root package name */
    private int f29412v;

    /* renamed from: w, reason: collision with root package name */
    private q f29413w;

    /* renamed from: x, reason: collision with root package name */
    private int f29414x;

    /* renamed from: y, reason: collision with root package name */
    private List f29415y;

    /* renamed from: z, reason: collision with root package name */
    private q f29416z;

    /* loaded from: classes3.dex */
    static class a extends kotlin.reflect.jvm.internal.impl.protobuf.b {
        a() {
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.r
        /* renamed from: j, reason: merged with bridge method [inline-methods] */
        public n b(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
            return new n(eVar, gVar);
        }
    }

    /* loaded from: classes3.dex */
    public static final class b extends i.c {
        private int A;
        private int E;
        private int F;

        /* renamed from: s, reason: collision with root package name */
        private int f29417s;

        /* renamed from: v, reason: collision with root package name */
        private int f29420v;

        /* renamed from: x, reason: collision with root package name */
        private int f29422x;

        /* renamed from: t, reason: collision with root package name */
        private int f29418t = 518;

        /* renamed from: u, reason: collision with root package name */
        private int f29419u = 2054;

        /* renamed from: w, reason: collision with root package name */
        private q f29421w = q.S();

        /* renamed from: y, reason: collision with root package name */
        private List f29423y = Collections.emptyList();

        /* renamed from: z, reason: collision with root package name */
        private q f29424z = q.S();
        private List B = Collections.emptyList();
        private List C = Collections.emptyList();
        private u D = u.C();
        private List G = Collections.emptyList();

        private b() {
            w();
        }

        static /* synthetic */ b l() {
            return q();
        }

        private static b q() {
            return new b();
        }

        private void s() {
            if ((this.f29417s & 512) != 512) {
                this.C = new ArrayList(this.C);
                this.f29417s |= 512;
            }
        }

        private void t() {
            if ((this.f29417s & 256) != 256) {
                this.B = new ArrayList(this.B);
                this.f29417s |= 256;
            }
        }

        private void u() {
            if ((this.f29417s & 32) != 32) {
                this.f29423y = new ArrayList(this.f29423y);
                this.f29417s |= 32;
            }
        }

        private void v() {
            if ((this.f29417s & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 8192) {
                this.G = new ArrayList(this.G);
                this.f29417s |= UserMetadata.MAX_INTERNAL_KEY_SIZE;
            }
        }

        private void w() {
        }

        public b A(q qVar) {
            if ((this.f29417s & 8) != 8 || this.f29421w == q.S()) {
                this.f29421w = qVar;
            } else {
                this.f29421w = q.t0(this.f29421w).d(qVar).o();
            }
            this.f29417s |= 8;
            return this;
        }

        public b B(u uVar) {
            if ((this.f29417s & UserMetadata.MAX_ATTRIBUTE_SIZE) != 1024 || this.D == u.C()) {
                this.D = uVar;
            } else {
                this.D = u.T(this.D).d(uVar).o();
            }
            this.f29417s |= UserMetadata.MAX_ATTRIBUTE_SIZE;
            return this;
        }

        public b C(int i10) {
            this.f29417s |= 1;
            this.f29418t = i10;
            return this;
        }

        public b D(int i10) {
            this.f29417s |= 2048;
            this.E = i10;
            return this;
        }

        public b E(int i10) {
            this.f29417s |= 4;
            this.f29420v = i10;
            return this;
        }

        public b F(int i10) {
            this.f29417s |= 2;
            this.f29419u = i10;
            return this;
        }

        public b G(int i10) {
            this.f29417s |= 128;
            this.A = i10;
            return this;
        }

        public b H(int i10) {
            this.f29417s |= 16;
            this.f29422x = i10;
            return this;
        }

        public b K(int i10) {
            this.f29417s |= 4096;
            this.F = i10;
            return this;
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.p.a
        /* renamed from: n, reason: merged with bridge method [inline-methods] */
        public n build() {
            n o10 = o();
            if (o10.isInitialized()) {
                return o10;
            }
            throw a.AbstractC0563a.b(o10);
        }

        public n o() {
            n nVar = new n(this);
            int i10 = this.f29417s;
            int i11 = (i10 & 1) != 1 ? 0 : 1;
            nVar.f29410t = this.f29418t;
            if ((i10 & 2) == 2) {
                i11 |= 2;
            }
            nVar.f29411u = this.f29419u;
            if ((i10 & 4) == 4) {
                i11 |= 4;
            }
            nVar.f29412v = this.f29420v;
            if ((i10 & 8) == 8) {
                i11 |= 8;
            }
            nVar.f29413w = this.f29421w;
            if ((i10 & 16) == 16) {
                i11 |= 16;
            }
            nVar.f29414x = this.f29422x;
            if ((this.f29417s & 32) == 32) {
                this.f29423y = Collections.unmodifiableList(this.f29423y);
                this.f29417s &= -33;
            }
            nVar.f29415y = this.f29423y;
            if ((i10 & 64) == 64) {
                i11 |= 32;
            }
            nVar.f29416z = this.f29424z;
            if ((i10 & 128) == 128) {
                i11 |= 64;
            }
            nVar.A = this.A;
            if ((this.f29417s & 256) == 256) {
                this.B = Collections.unmodifiableList(this.B);
                this.f29417s &= -257;
            }
            nVar.B = this.B;
            if ((this.f29417s & 512) == 512) {
                this.C = Collections.unmodifiableList(this.C);
                this.f29417s &= -513;
            }
            nVar.C = this.C;
            if ((i10 & UserMetadata.MAX_ATTRIBUTE_SIZE) == 1024) {
                i11 |= 128;
            }
            nVar.E = this.D;
            if ((i10 & 2048) == 2048) {
                i11 |= 256;
            }
            nVar.F = this.E;
            if ((i10 & 4096) == 4096) {
                i11 |= 512;
            }
            nVar.G = this.F;
            if ((this.f29417s & UserMetadata.MAX_INTERNAL_KEY_SIZE) == 8192) {
                this.G = Collections.unmodifiableList(this.G);
                this.f29417s &= -8193;
            }
            nVar.H = this.G;
            nVar.f29409s = i11;
            return nVar;
        }

        /* renamed from: p, reason: merged with bridge method [inline-methods] */
        public b clone() {
            return q().d(o());
        }

        /* JADX WARN: Removed duplicated region for block: B:17:0x001d  */
        @Override // kotlin.reflect.jvm.internal.impl.protobuf.p.a
        /* renamed from: x, reason: merged with bridge method [inline-methods] */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public b I(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
            n nVar = null;
            try {
                try {
                    n nVar2 = (n) n.L.b(eVar, gVar);
                    if (nVar2 != null) {
                        d(nVar2);
                    }
                    return this;
                } catch (kotlin.reflect.jvm.internal.impl.protobuf.k e10) {
                    n nVar3 = (n) e10.a();
                    try {
                        throw e10;
                    } catch (Throwable th2) {
                        th = th2;
                        nVar = nVar3;
                        if (nVar != null) {
                            d(nVar);
                        }
                        throw th;
                    }
                }
            } catch (Throwable th3) {
                th = th3;
                if (nVar != null) {
                }
                throw th;
            }
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.i.b
        /* renamed from: y, reason: merged with bridge method [inline-methods] */
        public b d(n nVar) {
            if (nVar == n.T()) {
                return this;
            }
            if (nVar.j0()) {
                C(nVar.V());
            }
            if (nVar.m0()) {
                F(nVar.Y());
            }
            if (nVar.l0()) {
                E(nVar.X());
            }
            if (nVar.p0()) {
                A(nVar.b0());
            }
            if (nVar.q0()) {
                H(nVar.c0());
            }
            if (!nVar.f29415y.isEmpty()) {
                if (this.f29423y.isEmpty()) {
                    this.f29423y = nVar.f29415y;
                    this.f29417s &= -33;
                } else {
                    u();
                    this.f29423y.addAll(nVar.f29415y);
                }
            }
            if (nVar.n0()) {
                z(nVar.Z());
            }
            if (nVar.o0()) {
                G(nVar.a0());
            }
            if (!nVar.B.isEmpty()) {
                if (this.B.isEmpty()) {
                    this.B = nVar.B;
                    this.f29417s &= -257;
                } else {
                    t();
                    this.B.addAll(nVar.B);
                }
            }
            if (!nVar.C.isEmpty()) {
                if (this.C.isEmpty()) {
                    this.C = nVar.C;
                    this.f29417s &= -513;
                } else {
                    s();
                    this.C.addAll(nVar.C);
                }
            }
            if (nVar.s0()) {
                B(nVar.e0());
            }
            if (nVar.k0()) {
                D(nVar.W());
            }
            if (nVar.r0()) {
                K(nVar.d0());
            }
            if (!nVar.H.isEmpty()) {
                if (this.G.isEmpty()) {
                    this.G = nVar.H;
                    this.f29417s &= -8193;
                } else {
                    v();
                    this.G.addAll(nVar.H);
                }
            }
            k(nVar);
            f(c().g(nVar.f29408r));
            return this;
        }

        public b z(q qVar) {
            if ((this.f29417s & 64) != 64 || this.f29424z == q.S()) {
                this.f29424z = qVar;
            } else {
                this.f29424z = q.t0(this.f29424z).d(qVar).o();
            }
            this.f29417s |= 64;
            return this;
        }
    }

    static {
        n nVar = new n(true);
        K = nVar;
        nVar.t0();
    }

    public static n T() {
        return K;
    }

    private void t0() {
        this.f29410t = 518;
        this.f29411u = 2054;
        this.f29412v = 0;
        this.f29413w = q.S();
        this.f29414x = 0;
        this.f29415y = Collections.emptyList();
        this.f29416z = q.S();
        this.A = 0;
        this.B = Collections.emptyList();
        this.C = Collections.emptyList();
        this.E = u.C();
        this.F = 0;
        this.G = 0;
        this.H = Collections.emptyList();
    }

    public static b u0() {
        return b.l();
    }

    public static b v0(n nVar) {
        return u0().d(nVar);
    }

    public q P(int i10) {
        return (q) this.B.get(i10);
    }

    public int Q() {
        return this.B.size();
    }

    public List R() {
        return this.C;
    }

    public List S() {
        return this.B;
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.q
    /* renamed from: U, reason: merged with bridge method [inline-methods] */
    public n getDefaultInstanceForType() {
        return K;
    }

    public int V() {
        return this.f29410t;
    }

    public int W() {
        return this.F;
    }

    public int X() {
        return this.f29412v;
    }

    public int Y() {
        return this.f29411u;
    }

    public q Z() {
        return this.f29416z;
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    public void a(kotlin.reflect.jvm.internal.impl.protobuf.f fVar) {
        getSerializedSize();
        i.d.a s10 = s();
        if ((this.f29409s & 2) == 2) {
            fVar.Z(1, this.f29411u);
        }
        if ((this.f29409s & 4) == 4) {
            fVar.Z(2, this.f29412v);
        }
        if ((this.f29409s & 8) == 8) {
            fVar.c0(3, this.f29413w);
        }
        for (int i10 = 0; i10 < this.f29415y.size(); i10++) {
            fVar.c0(4, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.f29415y.get(i10));
        }
        if ((this.f29409s & 32) == 32) {
            fVar.c0(5, this.f29416z);
        }
        if ((this.f29409s & 128) == 128) {
            fVar.c0(6, this.E);
        }
        if ((this.f29409s & 256) == 256) {
            fVar.Z(7, this.F);
        }
        if ((this.f29409s & 512) == 512) {
            fVar.Z(8, this.G);
        }
        if ((this.f29409s & 16) == 16) {
            fVar.Z(9, this.f29414x);
        }
        if ((this.f29409s & 64) == 64) {
            fVar.Z(10, this.A);
        }
        if ((this.f29409s & 1) == 1) {
            fVar.Z(11, this.f29410t);
        }
        for (int i11 = 0; i11 < this.B.size(); i11++) {
            fVar.c0(12, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.B.get(i11));
        }
        if (R().size() > 0) {
            fVar.n0(106);
            fVar.n0(this.D);
        }
        for (int i12 = 0; i12 < this.C.size(); i12++) {
            fVar.a0(((Integer) this.C.get(i12)).intValue());
        }
        for (int i13 = 0; i13 < this.H.size(); i13++) {
            fVar.Z(31, ((Integer) this.H.get(i13)).intValue());
        }
        s10.a(19000, fVar);
        fVar.h0(this.f29408r);
    }

    public int a0() {
        return this.A;
    }

    public q b0() {
        return this.f29413w;
    }

    public int c0() {
        return this.f29414x;
    }

    public int d0() {
        return this.G;
    }

    public u e0() {
        return this.E;
    }

    public s f0(int i10) {
        return (s) this.f29415y.get(i10);
    }

    public int g0() {
        return this.f29415y.size();
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    public int getSerializedSize() {
        int i10 = this.J;
        if (i10 != -1) {
            return i10;
        }
        int o10 = (this.f29409s & 2) == 2 ? kotlin.reflect.jvm.internal.impl.protobuf.f.o(1, this.f29411u) + 0 : 0;
        if ((this.f29409s & 4) == 4) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(2, this.f29412v);
        }
        if ((this.f29409s & 8) == 8) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(3, this.f29413w);
        }
        for (int i11 = 0; i11 < this.f29415y.size(); i11++) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(4, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.f29415y.get(i11));
        }
        if ((this.f29409s & 32) == 32) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(5, this.f29416z);
        }
        if ((this.f29409s & 128) == 128) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(6, this.E);
        }
        if ((this.f29409s & 256) == 256) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(7, this.F);
        }
        if ((this.f29409s & 512) == 512) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(8, this.G);
        }
        if ((this.f29409s & 16) == 16) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(9, this.f29414x);
        }
        if ((this.f29409s & 64) == 64) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(10, this.A);
        }
        if ((this.f29409s & 1) == 1) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(11, this.f29410t);
        }
        for (int i12 = 0; i12 < this.B.size(); i12++) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(12, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.B.get(i12));
        }
        int i13 = 0;
        for (int i14 = 0; i14 < this.C.size(); i14++) {
            i13 += kotlin.reflect.jvm.internal.impl.protobuf.f.p(((Integer) this.C.get(i14)).intValue());
        }
        int i15 = o10 + i13;
        if (!R().isEmpty()) {
            i15 = i15 + 1 + kotlin.reflect.jvm.internal.impl.protobuf.f.p(i13);
        }
        this.D = i13;
        int i16 = 0;
        for (int i17 = 0; i17 < this.H.size(); i17++) {
            i16 += kotlin.reflect.jvm.internal.impl.protobuf.f.p(((Integer) this.H.get(i17)).intValue());
        }
        int size = i15 + i16 + (i0().size() * 2) + n() + this.f29408r.size();
        this.J = size;
        return size;
    }

    public List h0() {
        return this.f29415y;
    }

    public List i0() {
        return this.H;
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.q
    public final boolean isInitialized() {
        byte b10 = this.I;
        if (b10 == 1) {
            return true;
        }
        if (b10 == 0) {
            return false;
        }
        if (!l0()) {
            this.I = (byte) 0;
            return false;
        }
        if (p0() && !b0().isInitialized()) {
            this.I = (byte) 0;
            return false;
        }
        for (int i10 = 0; i10 < g0(); i10++) {
            if (!f0(i10).isInitialized()) {
                this.I = (byte) 0;
                return false;
            }
        }
        if (n0() && !Z().isInitialized()) {
            this.I = (byte) 0;
            return false;
        }
        for (int i11 = 0; i11 < Q(); i11++) {
            if (!P(i11).isInitialized()) {
                this.I = (byte) 0;
                return false;
            }
        }
        if (s0() && !e0().isInitialized()) {
            this.I = (byte) 0;
            return false;
        }
        if (m()) {
            this.I = (byte) 1;
            return true;
        }
        this.I = (byte) 0;
        return false;
    }

    public boolean j0() {
        return (this.f29409s & 1) == 1;
    }

    public boolean k0() {
        return (this.f29409s & 256) == 256;
    }

    public boolean l0() {
        return (this.f29409s & 4) == 4;
    }

    public boolean m0() {
        return (this.f29409s & 2) == 2;
    }

    public boolean n0() {
        return (this.f29409s & 32) == 32;
    }

    public boolean o0() {
        return (this.f29409s & 64) == 64;
    }

    public boolean p0() {
        return (this.f29409s & 8) == 8;
    }

    public boolean q0() {
        return (this.f29409s & 16) == 16;
    }

    public boolean r0() {
        return (this.f29409s & 512) == 512;
    }

    public boolean s0() {
        return (this.f29409s & 128) == 128;
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    /* renamed from: w0, reason: merged with bridge method [inline-methods] */
    public b newBuilderForType() {
        return u0();
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    /* renamed from: x0, reason: merged with bridge method [inline-methods] */
    public b toBuilder() {
        return v0(this);
    }

    private n(i.c cVar) {
        super(cVar);
        this.D = -1;
        this.I = (byte) -1;
        this.J = -1;
        this.f29408r = cVar.c();
    }

    private n(boolean z10) {
        this.D = -1;
        this.I = (byte) -1;
        this.J = -1;
        this.f29408r = kotlin.reflect.jvm.internal.impl.protobuf.d.f26243p;
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x0027. Please report as an issue. */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r4v11 */
    /* JADX WARN: Type inference failed for: r4v14 */
    /* JADX WARN: Type inference failed for: r4v3 */
    /* JADX WARN: Type inference failed for: r4v5 */
    /* JADX WARN: Type inference failed for: r4v7 */
    /* JADX WARN: Type inference failed for: r4v9 */
    /* JADX WARN: Type inference failed for: r5v0 */
    /* JADX WARN: Type inference failed for: r5v1 */
    /* JADX WARN: Type inference failed for: r5v2, types: [boolean] */
    private n(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
        this.D = -1;
        this.I = (byte) -1;
        this.J = -1;
        t0();
        d.b u10 = kotlin.reflect.jvm.internal.impl.protobuf.d.u();
        kotlin.reflect.jvm.internal.impl.protobuf.f I = kotlin.reflect.jvm.internal.impl.protobuf.f.I(u10, 1);
        boolean z10 = false;
        char c10 = 0;
        while (true) {
            ?? r52 = 256;
            if (!z10) {
                try {
                    try {
                        try {
                            int J = eVar.J();
                            switch (J) {
                                case 0:
                                    z10 = true;
                                case 8:
                                    this.f29409s |= 2;
                                    this.f29411u = eVar.r();
                                case 16:
                                    this.f29409s |= 4;
                                    this.f29412v = eVar.r();
                                case 26:
                                    q.c builder = (this.f29409s & 8) == 8 ? this.f29413w.toBuilder() : null;
                                    q qVar = (q) eVar.t(q.K, gVar);
                                    this.f29413w = qVar;
                                    if (builder != null) {
                                        builder.d(qVar);
                                        this.f29413w = builder.o();
                                    }
                                    this.f29409s |= 8;
                                case 34:
                                    int i10 = (c10 == true ? 1 : 0) & 32;
                                    c10 = c10;
                                    if (i10 != 32) {
                                        this.f29415y = new ArrayList();
                                        c10 = (c10 == true ? 1 : 0) | ' ';
                                    }
                                    this.f29415y.add(eVar.t(s.D, gVar));
                                case 42:
                                    q.c builder2 = (this.f29409s & 32) == 32 ? this.f29416z.toBuilder() : null;
                                    q qVar2 = (q) eVar.t(q.K, gVar);
                                    this.f29416z = qVar2;
                                    if (builder2 != null) {
                                        builder2.d(qVar2);
                                        this.f29416z = builder2.o();
                                    }
                                    this.f29409s |= 32;
                                case 50:
                                    u.b builder3 = (this.f29409s & 128) == 128 ? this.E.toBuilder() : null;
                                    u uVar = (u) eVar.t(u.C, gVar);
                                    this.E = uVar;
                                    if (builder3 != null) {
                                        builder3.d(uVar);
                                        this.E = builder3.o();
                                    }
                                    this.f29409s |= 128;
                                case 56:
                                    this.f29409s |= 256;
                                    this.F = eVar.r();
                                case 64:
                                    this.f29409s |= 512;
                                    this.G = eVar.r();
                                case 72:
                                    this.f29409s |= 16;
                                    this.f29414x = eVar.r();
                                case 80:
                                    this.f29409s |= 64;
                                    this.A = eVar.r();
                                case 88:
                                    this.f29409s |= 1;
                                    this.f29410t = eVar.r();
                                case 98:
                                    int i11 = (c10 == true ? 1 : 0) & 256;
                                    c10 = c10;
                                    if (i11 != 256) {
                                        this.B = new ArrayList();
                                        c10 = (c10 == true ? 1 : 0) | 256;
                                    }
                                    this.B.add(eVar.t(q.K, gVar));
                                case 104:
                                    int i12 = (c10 == true ? 1 : 0) & 512;
                                    c10 = c10;
                                    if (i12 != 512) {
                                        this.C = new ArrayList();
                                        c10 = (c10 == true ? 1 : 0) | 512;
                                    }
                                    this.C.add(Integer.valueOf(eVar.r()));
                                case 106:
                                    int i13 = eVar.i(eVar.z());
                                    int i14 = (c10 == true ? 1 : 0) & 512;
                                    c10 = c10;
                                    if (i14 != 512) {
                                        c10 = c10;
                                        if (eVar.e() > 0) {
                                            this.C = new ArrayList();
                                            c10 = (c10 == true ? 1 : 0) | 512;
                                        }
                                    }
                                    while (eVar.e() > 0) {
                                        this.C.add(Integer.valueOf(eVar.r()));
                                    }
                                    eVar.h(i13);
                                case 248:
                                    int i15 = (c10 == true ? 1 : 0) & UserMetadata.MAX_INTERNAL_KEY_SIZE;
                                    c10 = c10;
                                    if (i15 != 8192) {
                                        this.H = new ArrayList();
                                        c10 = (c10 == true ? 1 : 0) | 8192;
                                    }
                                    this.H.add(Integer.valueOf(eVar.r()));
                                case SQLiteDatabase.MAX_SQL_CACHE_SIZE /* 250 */:
                                    int i16 = eVar.i(eVar.z());
                                    int i17 = (c10 == true ? 1 : 0) & UserMetadata.MAX_INTERNAL_KEY_SIZE;
                                    c10 = c10;
                                    if (i17 != 8192) {
                                        c10 = c10;
                                        if (eVar.e() > 0) {
                                            this.H = new ArrayList();
                                            c10 = (c10 == true ? 1 : 0) | 8192;
                                        }
                                    }
                                    while (eVar.e() > 0) {
                                        this.H.add(Integer.valueOf(eVar.r()));
                                    }
                                    eVar.h(i16);
                                default:
                                    r52 = j(eVar, I, gVar, J);
                                    if (r52 == 0) {
                                        z10 = true;
                                    }
                            }
                        } catch (IOException e10) {
                            throw new kotlin.reflect.jvm.internal.impl.protobuf.k(e10.getMessage()).i(this);
                        }
                    } catch (kotlin.reflect.jvm.internal.impl.protobuf.k e11) {
                        throw e11.i(this);
                    }
                } catch (Throwable th2) {
                    if (((c10 == true ? 1 : 0) & 32) == 32) {
                        this.f29415y = Collections.unmodifiableList(this.f29415y);
                    }
                    if (((c10 == true ? 1 : 0) & 256) == r52) {
                        this.B = Collections.unmodifiableList(this.B);
                    }
                    if (((c10 == true ? 1 : 0) & 512) == 512) {
                        this.C = Collections.unmodifiableList(this.C);
                    }
                    if (((c10 == true ? 1 : 0) & UserMetadata.MAX_INTERNAL_KEY_SIZE) == 8192) {
                        this.H = Collections.unmodifiableList(this.H);
                    }
                    try {
                        I.H();
                    } catch (IOException unused) {
                    } catch (Throwable th3) {
                        this.f29408r = u10.e();
                        throw th3;
                    }
                    this.f29408r = u10.e();
                    g();
                    throw th2;
                }
            } else {
                if (((c10 == true ? 1 : 0) & 32) == 32) {
                    this.f29415y = Collections.unmodifiableList(this.f29415y);
                }
                if (((c10 == true ? 1 : 0) & 256) == 256) {
                    this.B = Collections.unmodifiableList(this.B);
                }
                if (((c10 == true ? 1 : 0) & 512) == 512) {
                    this.C = Collections.unmodifiableList(this.C);
                }
                if (((c10 == true ? 1 : 0) & UserMetadata.MAX_INTERNAL_KEY_SIZE) == 8192) {
                    this.H = Collections.unmodifiableList(this.H);
                }
                try {
                    I.H();
                } catch (IOException unused2) {
                } catch (Throwable th4) {
                    this.f29408r = u10.e();
                    throw th4;
                }
                this.f29408r = u10.e();
                g();
                return;
            }
        }
    }
}
