package mo;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
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 kotlin.reflect.jvm.internal.impl.protobuf.j;

/* loaded from: classes3.dex */
public final class b extends kotlin.reflect.jvm.internal.impl.protobuf.i implements kotlin.reflect.jvm.internal.impl.protobuf.q {

    /* renamed from: w, reason: collision with root package name */
    private static final b f29239w;

    /* renamed from: x, reason: collision with root package name */
    public static kotlin.reflect.jvm.internal.impl.protobuf.r f29240x = new a();

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

    /* renamed from: r, reason: collision with root package name */
    private int f29242r;

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

    /* renamed from: t, reason: collision with root package name */
    private List f29244t;

    /* renamed from: u, reason: collision with root package name */
    private byte f29245u;

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

    /* 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 b b(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
            return new b(eVar, gVar);
        }
    }

    /* renamed from: mo.b$b, reason: collision with other inner class name */
    /* loaded from: classes3.dex */
    public static final class C0665b extends kotlin.reflect.jvm.internal.impl.protobuf.i implements kotlin.reflect.jvm.internal.impl.protobuf.q {

        /* renamed from: w, reason: collision with root package name */
        private static final C0665b f29247w;

        /* renamed from: x, reason: collision with root package name */
        public static kotlin.reflect.jvm.internal.impl.protobuf.r f29248x = new a();

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

        /* renamed from: r, reason: collision with root package name */
        private int f29250r;

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

        /* renamed from: t, reason: collision with root package name */
        private c f29252t;

        /* renamed from: u, reason: collision with root package name */
        private byte f29253u;

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

        /* renamed from: mo.b$b$a */
        /* 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 C0665b b(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
                return new C0665b(eVar, gVar);
            }
        }

        /* renamed from: mo.b$b$b, reason: collision with other inner class name */
        /* loaded from: classes3.dex */
        public static final class C0666b extends i.b implements kotlin.reflect.jvm.internal.impl.protobuf.q {

            /* renamed from: q, reason: collision with root package name */
            private int f29255q;

            /* renamed from: r, reason: collision with root package name */
            private int f29256r;

            /* renamed from: s, reason: collision with root package name */
            private c f29257s = c.F();

            private C0666b() {
                n();
            }

            static /* synthetic */ C0666b h() {
                return l();
            }

            private static C0666b l() {
                return new C0666b();
            }

            private void n() {
            }

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

            public C0665b j() {
                C0665b c0665b = new C0665b(this);
                int i10 = this.f29255q;
                int i11 = (i10 & 1) != 1 ? 0 : 1;
                c0665b.f29251s = this.f29256r;
                if ((i10 & 2) == 2) {
                    i11 |= 2;
                }
                c0665b.f29252t = this.f29257s;
                c0665b.f29250r = i11;
                return c0665b;
            }

            /* renamed from: k, reason: merged with bridge method [inline-methods] */
            public C0666b clone() {
                return l().d(j());
            }

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

            @Override // kotlin.reflect.jvm.internal.impl.protobuf.i.b
            /* renamed from: p, reason: merged with bridge method [inline-methods] */
            public C0666b d(C0665b c0665b) {
                if (c0665b == C0665b.p()) {
                    return this;
                }
                if (c0665b.s()) {
                    s(c0665b.q());
                }
                if (c0665b.t()) {
                    q(c0665b.r());
                }
                f(c().g(c0665b.f29249q));
                return this;
            }

            public C0666b q(c cVar) {
                if ((this.f29255q & 2) != 2 || this.f29257s == c.F()) {
                    this.f29257s = cVar;
                } else {
                    this.f29257s = c.a0(this.f29257s).d(cVar).j();
                }
                this.f29255q |= 2;
                return this;
            }

            public C0666b s(int i10) {
                this.f29255q |= 1;
                this.f29256r = i10;
                return this;
            }
        }

        static {
            C0665b c0665b = new C0665b(true);
            f29247w = c0665b;
            c0665b.u();
        }

        public static C0665b p() {
            return f29247w;
        }

        private void u() {
            this.f29251s = 0;
            this.f29252t = c.F();
        }

        public static C0666b v() {
            return C0666b.h();
        }

        public static C0666b w(C0665b c0665b) {
            return v().d(c0665b);
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
        public void a(kotlin.reflect.jvm.internal.impl.protobuf.f fVar) {
            getSerializedSize();
            if ((this.f29250r & 1) == 1) {
                fVar.Z(1, this.f29251s);
            }
            if ((this.f29250r & 2) == 2) {
                fVar.c0(2, this.f29252t);
            }
            fVar.h0(this.f29249q);
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
        public int getSerializedSize() {
            int i10 = this.f29254v;
            if (i10 != -1) {
                return i10;
            }
            int o10 = (this.f29250r & 1) == 1 ? 0 + kotlin.reflect.jvm.internal.impl.protobuf.f.o(1, this.f29251s) : 0;
            if ((this.f29250r & 2) == 2) {
                o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(2, this.f29252t);
            }
            int size = o10 + this.f29249q.size();
            this.f29254v = size;
            return size;
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.q
        public final boolean isInitialized() {
            byte b10 = this.f29253u;
            if (b10 == 1) {
                return true;
            }
            if (b10 == 0) {
                return false;
            }
            if (!s()) {
                this.f29253u = (byte) 0;
                return false;
            }
            if (!t()) {
                this.f29253u = (byte) 0;
                return false;
            }
            if (r().isInitialized()) {
                this.f29253u = (byte) 1;
                return true;
            }
            this.f29253u = (byte) 0;
            return false;
        }

        public int q() {
            return this.f29251s;
        }

        public c r() {
            return this.f29252t;
        }

        public boolean s() {
            return (this.f29250r & 1) == 1;
        }

        public boolean t() {
            return (this.f29250r & 2) == 2;
        }

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

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

        /* renamed from: mo.b$b$c */
        /* loaded from: classes3.dex */
        public static final class c extends kotlin.reflect.jvm.internal.impl.protobuf.i implements kotlin.reflect.jvm.internal.impl.protobuf.q {
            private static final c F;
            public static kotlin.reflect.jvm.internal.impl.protobuf.r G = new a();
            private List A;
            private int B;
            private int C;
            private byte D;
            private int E;

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

            /* renamed from: r, reason: collision with root package name */
            private int f29259r;

            /* renamed from: s, reason: collision with root package name */
            private EnumC0668c f29260s;

            /* renamed from: t, reason: collision with root package name */
            private long f29261t;

            /* renamed from: u, reason: collision with root package name */
            private float f29262u;

            /* renamed from: v, reason: collision with root package name */
            private double f29263v;

            /* renamed from: w, reason: collision with root package name */
            private int f29264w;

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

            /* renamed from: y, reason: collision with root package name */
            private int f29266y;

            /* renamed from: z, reason: collision with root package name */
            private b f29267z;

            /* renamed from: mo.b$b$c$a */
            /* 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 c b(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
                    return new c(eVar, gVar);
                }
            }

            /* renamed from: mo.b$b$c$b, reason: collision with other inner class name */
            /* loaded from: classes3.dex */
            public static final class C0667b extends i.b implements kotlin.reflect.jvm.internal.impl.protobuf.q {
                private int A;
                private int B;

                /* renamed from: q, reason: collision with root package name */
                private int f29268q;

                /* renamed from: s, reason: collision with root package name */
                private long f29270s;

                /* renamed from: t, reason: collision with root package name */
                private float f29271t;

                /* renamed from: u, reason: collision with root package name */
                private double f29272u;

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

                /* renamed from: w, reason: collision with root package name */
                private int f29274w;

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

                /* renamed from: r, reason: collision with root package name */
                private EnumC0668c f29269r = EnumC0668c.BYTE;

                /* renamed from: y, reason: collision with root package name */
                private b f29276y = b.t();

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

                private C0667b() {
                    o();
                }

                static /* synthetic */ C0667b h() {
                    return l();
                }

                private static C0667b l() {
                    return new C0667b();
                }

                private void n() {
                    if ((this.f29268q & 256) != 256) {
                        this.f29277z = new ArrayList(this.f29277z);
                        this.f29268q |= 256;
                    }
                }

                private void o() {
                }

                public C0667b A(int i10) {
                    this.f29268q |= 16;
                    this.f29273v = i10;
                    return this;
                }

                public C0667b B(EnumC0668c enumC0668c) {
                    enumC0668c.getClass();
                    this.f29268q |= 1;
                    this.f29269r = enumC0668c;
                    return this;
                }

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

                public c j() {
                    c cVar = new c(this);
                    int i10 = this.f29268q;
                    int i11 = (i10 & 1) != 1 ? 0 : 1;
                    cVar.f29260s = this.f29269r;
                    if ((i10 & 2) == 2) {
                        i11 |= 2;
                    }
                    cVar.f29261t = this.f29270s;
                    if ((i10 & 4) == 4) {
                        i11 |= 4;
                    }
                    cVar.f29262u = this.f29271t;
                    if ((i10 & 8) == 8) {
                        i11 |= 8;
                    }
                    cVar.f29263v = this.f29272u;
                    if ((i10 & 16) == 16) {
                        i11 |= 16;
                    }
                    cVar.f29264w = this.f29273v;
                    if ((i10 & 32) == 32) {
                        i11 |= 32;
                    }
                    cVar.f29265x = this.f29274w;
                    if ((i10 & 64) == 64) {
                        i11 |= 64;
                    }
                    cVar.f29266y = this.f29275x;
                    if ((i10 & 128) == 128) {
                        i11 |= 128;
                    }
                    cVar.f29267z = this.f29276y;
                    if ((this.f29268q & 256) == 256) {
                        this.f29277z = Collections.unmodifiableList(this.f29277z);
                        this.f29268q &= -257;
                    }
                    cVar.A = this.f29277z;
                    if ((i10 & 512) == 512) {
                        i11 |= 256;
                    }
                    cVar.B = this.A;
                    if ((i10 & UserMetadata.MAX_ATTRIBUTE_SIZE) == 1024) {
                        i11 |= 512;
                    }
                    cVar.C = this.B;
                    cVar.f29259r = i11;
                    return cVar;
                }

                /* renamed from: k, reason: merged with bridge method [inline-methods] */
                public C0667b clone() {
                    return l().d(j());
                }

                public C0667b p(b bVar) {
                    if ((this.f29268q & 128) != 128 || this.f29276y == b.t()) {
                        this.f29276y = bVar;
                    } else {
                        this.f29276y = b.y(this.f29276y).d(bVar).j();
                    }
                    this.f29268q |= 128;
                    return this;
                }

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

                @Override // kotlin.reflect.jvm.internal.impl.protobuf.i.b
                /* renamed from: s, reason: merged with bridge method [inline-methods] */
                public C0667b d(c cVar) {
                    if (cVar == c.F()) {
                        return this;
                    }
                    if (cVar.X()) {
                        B(cVar.N());
                    }
                    if (cVar.V()) {
                        z(cVar.L());
                    }
                    if (cVar.U()) {
                        y(cVar.K());
                    }
                    if (cVar.R()) {
                        v(cVar.G());
                    }
                    if (cVar.W()) {
                        A(cVar.M());
                    }
                    if (cVar.Q()) {
                        u(cVar.E());
                    }
                    if (cVar.S()) {
                        w(cVar.H());
                    }
                    if (cVar.O()) {
                        p(cVar.z());
                    }
                    if (!cVar.A.isEmpty()) {
                        if (this.f29277z.isEmpty()) {
                            this.f29277z = cVar.A;
                            this.f29268q &= -257;
                        } else {
                            n();
                            this.f29277z.addAll(cVar.A);
                        }
                    }
                    if (cVar.P()) {
                        t(cVar.A());
                    }
                    if (cVar.T()) {
                        x(cVar.J());
                    }
                    f(c().g(cVar.f29258q));
                    return this;
                }

                public C0667b t(int i10) {
                    this.f29268q |= 512;
                    this.A = i10;
                    return this;
                }

                public C0667b u(int i10) {
                    this.f29268q |= 32;
                    this.f29274w = i10;
                    return this;
                }

                public C0667b v(double d10) {
                    this.f29268q |= 8;
                    this.f29272u = d10;
                    return this;
                }

                public C0667b w(int i10) {
                    this.f29268q |= 64;
                    this.f29275x = i10;
                    return this;
                }

                public C0667b x(int i10) {
                    this.f29268q |= UserMetadata.MAX_ATTRIBUTE_SIZE;
                    this.B = i10;
                    return this;
                }

                public C0667b y(float f10) {
                    this.f29268q |= 4;
                    this.f29271t = f10;
                    return this;
                }

                public C0667b z(long j10) {
                    this.f29268q |= 2;
                    this.f29270s = j10;
                    return this;
                }
            }

            /* renamed from: mo.b$b$c$c, reason: collision with other inner class name */
            /* loaded from: classes3.dex */
            public enum EnumC0668c implements j.a {
                BYTE(0, 0),
                CHAR(1, 1),
                SHORT(2, 2),
                INT(3, 3),
                LONG(4, 4),
                FLOAT(5, 5),
                DOUBLE(6, 6),
                BOOLEAN(7, 7),
                STRING(8, 8),
                CLASS(9, 9),
                ENUM(10, 10),
                ANNOTATION(11, 11),
                ARRAY(12, 12);

                private static j.b internalValueMap = new a();
                private final int value;

                /* renamed from: mo.b$b$c$c$a */
                /* loaded from: classes3.dex */
                static class a implements j.b {
                    a() {
                    }

                    @Override // kotlin.reflect.jvm.internal.impl.protobuf.j.b
                    /* renamed from: a, reason: merged with bridge method [inline-methods] */
                    public EnumC0668c findValueByNumber(int i10) {
                        return EnumC0668c.valueOf(i10);
                    }
                }

                EnumC0668c(int i10, int i11) {
                    this.value = i11;
                }

                @Override // kotlin.reflect.jvm.internal.impl.protobuf.j.a
                public final int getNumber() {
                    return this.value;
                }

                public static EnumC0668c valueOf(int i10) {
                    switch (i10) {
                        case 0:
                            return BYTE;
                        case 1:
                            return CHAR;
                        case 2:
                            return SHORT;
                        case 3:
                            return INT;
                        case 4:
                            return LONG;
                        case 5:
                            return FLOAT;
                        case 6:
                            return DOUBLE;
                        case 7:
                            return BOOLEAN;
                        case 8:
                            return STRING;
                        case 9:
                            return CLASS;
                        case 10:
                            return ENUM;
                        case 11:
                            return ANNOTATION;
                        case 12:
                            return ARRAY;
                        default:
                            return null;
                    }
                }
            }

            static {
                c cVar = new c(true);
                F = cVar;
                cVar.Y();
            }

            public static c F() {
                return F;
            }

            private void Y() {
                this.f29260s = EnumC0668c.BYTE;
                this.f29261t = 0L;
                this.f29262u = BitmapDescriptorFactory.HUE_RED;
                this.f29263v = 0.0d;
                this.f29264w = 0;
                this.f29265x = 0;
                this.f29266y = 0;
                this.f29267z = b.t();
                this.A = Collections.emptyList();
                this.B = 0;
                this.C = 0;
            }

            public static C0667b Z() {
                return C0667b.h();
            }

            public static C0667b a0(c cVar) {
                return Z().d(cVar);
            }

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

            public c B(int i10) {
                return (c) this.A.get(i10);
            }

            public int C() {
                return this.A.size();
            }

            public List D() {
                return this.A;
            }

            public int E() {
                return this.f29265x;
            }

            public double G() {
                return this.f29263v;
            }

            public int H() {
                return this.f29266y;
            }

            public int J() {
                return this.C;
            }

            public float K() {
                return this.f29262u;
            }

            public long L() {
                return this.f29261t;
            }

            public int M() {
                return this.f29264w;
            }

            public EnumC0668c N() {
                return this.f29260s;
            }

            public boolean O() {
                return (this.f29259r & 128) == 128;
            }

            public boolean P() {
                return (this.f29259r & 256) == 256;
            }

            public boolean Q() {
                return (this.f29259r & 32) == 32;
            }

            public boolean R() {
                return (this.f29259r & 8) == 8;
            }

            public boolean S() {
                return (this.f29259r & 64) == 64;
            }

            public boolean T() {
                return (this.f29259r & 512) == 512;
            }

            public boolean U() {
                return (this.f29259r & 4) == 4;
            }

            public boolean V() {
                return (this.f29259r & 2) == 2;
            }

            public boolean W() {
                return (this.f29259r & 16) == 16;
            }

            public boolean X() {
                return (this.f29259r & 1) == 1;
            }

            @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
            public void a(kotlin.reflect.jvm.internal.impl.protobuf.f fVar) {
                getSerializedSize();
                if ((this.f29259r & 1) == 1) {
                    fVar.R(1, this.f29260s.getNumber());
                }
                if ((this.f29259r & 2) == 2) {
                    fVar.s0(2, this.f29261t);
                }
                if ((this.f29259r & 4) == 4) {
                    fVar.V(3, this.f29262u);
                }
                if ((this.f29259r & 8) == 8) {
                    fVar.P(4, this.f29263v);
                }
                if ((this.f29259r & 16) == 16) {
                    fVar.Z(5, this.f29264w);
                }
                if ((this.f29259r & 32) == 32) {
                    fVar.Z(6, this.f29265x);
                }
                if ((this.f29259r & 64) == 64) {
                    fVar.Z(7, this.f29266y);
                }
                if ((this.f29259r & 128) == 128) {
                    fVar.c0(8, this.f29267z);
                }
                for (int i10 = 0; i10 < this.A.size(); i10++) {
                    fVar.c0(9, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.A.get(i10));
                }
                if ((this.f29259r & 512) == 512) {
                    fVar.Z(10, this.C);
                }
                if ((this.f29259r & 256) == 256) {
                    fVar.Z(11, this.B);
                }
                fVar.h0(this.f29258q);
            }

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

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

            @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
            public int getSerializedSize() {
                int i10 = this.E;
                if (i10 != -1) {
                    return i10;
                }
                int h10 = (this.f29259r & 1) == 1 ? kotlin.reflect.jvm.internal.impl.protobuf.f.h(1, this.f29260s.getNumber()) + 0 : 0;
                if ((this.f29259r & 2) == 2) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.z(2, this.f29261t);
                }
                if ((this.f29259r & 4) == 4) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.l(3, this.f29262u);
                }
                if ((this.f29259r & 8) == 8) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.f(4, this.f29263v);
                }
                if ((this.f29259r & 16) == 16) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(5, this.f29264w);
                }
                if ((this.f29259r & 32) == 32) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(6, this.f29265x);
                }
                if ((this.f29259r & 64) == 64) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(7, this.f29266y);
                }
                if ((this.f29259r & 128) == 128) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(8, this.f29267z);
                }
                for (int i11 = 0; i11 < this.A.size(); i11++) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(9, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.A.get(i11));
                }
                if ((this.f29259r & 512) == 512) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(10, this.C);
                }
                if ((this.f29259r & 256) == 256) {
                    h10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(11, this.B);
                }
                int size = h10 + this.f29258q.size();
                this.E = size;
                return size;
            }

            @Override // kotlin.reflect.jvm.internal.impl.protobuf.q
            public final boolean isInitialized() {
                byte b10 = this.D;
                if (b10 == 1) {
                    return true;
                }
                if (b10 == 0) {
                    return false;
                }
                if (O() && !z().isInitialized()) {
                    this.D = (byte) 0;
                    return false;
                }
                for (int i10 = 0; i10 < C(); i10++) {
                    if (!B(i10).isInitialized()) {
                        this.D = (byte) 0;
                        return false;
                    }
                }
                this.D = (byte) 1;
                return true;
            }

            public b z() {
                return this.f29267z;
            }

            private c(i.b bVar) {
                super(bVar);
                this.D = (byte) -1;
                this.E = -1;
                this.f29258q = bVar.c();
            }

            private c(boolean z10) {
                this.D = (byte) -1;
                this.E = -1;
                this.f29258q = kotlin.reflect.jvm.internal.impl.protobuf.d.f26243p;
            }

            /* JADX WARN: Failed to find 'out' block for switch in B:6:0x001e. Please report as an issue. */
            /* JADX WARN: Multi-variable type inference failed */
            /* JADX WARN: Type inference failed for: r5v0 */
            /* JADX WARN: Type inference failed for: r5v1 */
            /* JADX WARN: Type inference failed for: r5v2, types: [boolean] */
            private c(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
                this.D = (byte) -1;
                this.E = -1;
                Y();
                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;
                int i10 = 0;
                while (true) {
                    ?? r52 = 256;
                    if (!z10) {
                        try {
                            try {
                                int J = eVar.J();
                                switch (J) {
                                    case 0:
                                        z10 = true;
                                    case 8:
                                        int m10 = eVar.m();
                                        EnumC0668c valueOf = EnumC0668c.valueOf(m10);
                                        if (valueOf == null) {
                                            I.n0(J);
                                            I.n0(m10);
                                        } else {
                                            this.f29259r |= 1;
                                            this.f29260s = valueOf;
                                        }
                                    case 16:
                                        this.f29259r |= 2;
                                        this.f29261t = eVar.G();
                                    case 29:
                                        this.f29259r |= 4;
                                        this.f29262u = eVar.p();
                                    case 33:
                                        this.f29259r |= 8;
                                        this.f29263v = eVar.l();
                                    case 40:
                                        this.f29259r |= 16;
                                        this.f29264w = eVar.r();
                                    case 48:
                                        this.f29259r |= 32;
                                        this.f29265x = eVar.r();
                                    case 56:
                                        this.f29259r |= 64;
                                        this.f29266y = eVar.r();
                                    case 66:
                                        c builder = (this.f29259r & 128) == 128 ? this.f29267z.toBuilder() : null;
                                        b bVar = (b) eVar.t(b.f29240x, gVar);
                                        this.f29267z = bVar;
                                        if (builder != null) {
                                            builder.d(bVar);
                                            this.f29267z = builder.j();
                                        }
                                        this.f29259r |= 128;
                                    case 74:
                                        if ((i10 & 256) != 256) {
                                            this.A = new ArrayList();
                                            i10 |= 256;
                                        }
                                        this.A.add(eVar.t(G, gVar));
                                    case 80:
                                        this.f29259r |= 512;
                                        this.C = eVar.r();
                                    case 88:
                                        this.f29259r |= 256;
                                        this.B = eVar.r();
                                    default:
                                        r52 = j(eVar, I, gVar, J);
                                        if (r52 == 0) {
                                            z10 = true;
                                        }
                                }
                            } catch (kotlin.reflect.jvm.internal.impl.protobuf.k e10) {
                                throw e10.i(this);
                            } catch (IOException e11) {
                                throw new kotlin.reflect.jvm.internal.impl.protobuf.k(e11.getMessage()).i(this);
                            }
                        } catch (Throwable th2) {
                            if ((i10 & 256) == r52) {
                                this.A = Collections.unmodifiableList(this.A);
                            }
                            try {
                                I.H();
                            } catch (IOException unused) {
                            } catch (Throwable th3) {
                                this.f29258q = u10.e();
                                throw th3;
                            }
                            this.f29258q = u10.e();
                            g();
                            throw th2;
                        }
                    } else {
                        if ((i10 & 256) == 256) {
                            this.A = Collections.unmodifiableList(this.A);
                        }
                        try {
                            I.H();
                        } catch (IOException unused2) {
                        } catch (Throwable th4) {
                            this.f29258q = u10.e();
                            throw th4;
                        }
                        this.f29258q = u10.e();
                        g();
                        return;
                    }
                }
            }
        }

        private C0665b(i.b bVar) {
            super(bVar);
            this.f29253u = (byte) -1;
            this.f29254v = -1;
            this.f29249q = bVar.c();
        }

        private C0665b(boolean z10) {
            this.f29253u = (byte) -1;
            this.f29254v = -1;
            this.f29249q = kotlin.reflect.jvm.internal.impl.protobuf.d.f26243p;
        }

        private C0665b(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
            this.f29253u = (byte) -1;
            this.f29254v = -1;
            u();
            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;
            while (!z10) {
                try {
                    try {
                        try {
                            int J = eVar.J();
                            if (J != 0) {
                                if (J == 8) {
                                    this.f29250r |= 1;
                                    this.f29251s = eVar.r();
                                } else if (J != 18) {
                                    if (!j(eVar, I, gVar, J)) {
                                    }
                                } else {
                                    c.C0667b builder = (this.f29250r & 2) == 2 ? this.f29252t.toBuilder() : null;
                                    c cVar = (c) eVar.t(c.G, gVar);
                                    this.f29252t = cVar;
                                    if (builder != null) {
                                        builder.d(cVar);
                                        this.f29252t = builder.j();
                                    }
                                    this.f29250r |= 2;
                                }
                            }
                            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) {
                    try {
                        I.H();
                    } catch (IOException unused) {
                    } catch (Throwable th3) {
                        this.f29249q = u10.e();
                        throw th3;
                    }
                    this.f29249q = u10.e();
                    g();
                    throw th2;
                }
            }
            try {
                I.H();
            } catch (IOException unused2) {
            } catch (Throwable th4) {
                this.f29249q = u10.e();
                throw th4;
            }
            this.f29249q = u10.e();
            g();
        }
    }

    /* loaded from: classes3.dex */
    public static final class c extends i.b implements kotlin.reflect.jvm.internal.impl.protobuf.q {

        /* renamed from: q, reason: collision with root package name */
        private int f29278q;

        /* renamed from: r, reason: collision with root package name */
        private int f29279r;

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

        private c() {
            o();
        }

        static /* synthetic */ c h() {
            return l();
        }

        private static c l() {
            return new c();
        }

        private void n() {
            if ((this.f29278q & 2) != 2) {
                this.f29280s = new ArrayList(this.f29280s);
                this.f29278q |= 2;
            }
        }

        private void o() {
        }

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

        public b j() {
            b bVar = new b(this);
            int i10 = (this.f29278q & 1) != 1 ? 0 : 1;
            bVar.f29243s = this.f29279r;
            if ((this.f29278q & 2) == 2) {
                this.f29280s = Collections.unmodifiableList(this.f29280s);
                this.f29278q &= -3;
            }
            bVar.f29244t = this.f29280s;
            bVar.f29242r = i10;
            return bVar;
        }

        /* renamed from: k, reason: merged with bridge method [inline-methods] */
        public c clone() {
            return l().d(j());
        }

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

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.i.b
        /* renamed from: q, reason: merged with bridge method [inline-methods] */
        public c d(b bVar) {
            if (bVar == b.t()) {
                return this;
            }
            if (bVar.v()) {
                s(bVar.u());
            }
            if (!bVar.f29244t.isEmpty()) {
                if (this.f29280s.isEmpty()) {
                    this.f29280s = bVar.f29244t;
                    this.f29278q &= -3;
                } else {
                    n();
                    this.f29280s.addAll(bVar.f29244t);
                }
            }
            f(c().g(bVar.f29241q));
            return this;
        }

        public c s(int i10) {
            this.f29278q |= 1;
            this.f29279r = i10;
            return this;
        }
    }

    static {
        b bVar = new b(true);
        f29239w = bVar;
        bVar.w();
    }

    public static b t() {
        return f29239w;
    }

    private void w() {
        this.f29243s = 0;
        this.f29244t = Collections.emptyList();
    }

    public static c x() {
        return c.h();
    }

    public static c y(b bVar) {
        return x().d(bVar);
    }

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

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    public void a(kotlin.reflect.jvm.internal.impl.protobuf.f fVar) {
        getSerializedSize();
        if ((this.f29242r & 1) == 1) {
            fVar.Z(1, this.f29243s);
        }
        for (int i10 = 0; i10 < this.f29244t.size(); i10++) {
            fVar.c0(2, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.f29244t.get(i10));
        }
        fVar.h0(this.f29241q);
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    public int getSerializedSize() {
        int i10 = this.f29246v;
        if (i10 != -1) {
            return i10;
        }
        int o10 = (this.f29242r & 1) == 1 ? kotlin.reflect.jvm.internal.impl.protobuf.f.o(1, this.f29243s) + 0 : 0;
        for (int i11 = 0; i11 < this.f29244t.size(); i11++) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(2, (kotlin.reflect.jvm.internal.impl.protobuf.p) this.f29244t.get(i11));
        }
        int size = o10 + this.f29241q.size();
        this.f29246v = size;
        return size;
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.q
    public final boolean isInitialized() {
        byte b10 = this.f29245u;
        if (b10 == 1) {
            return true;
        }
        if (b10 == 0) {
            return false;
        }
        if (!v()) {
            this.f29245u = (byte) 0;
            return false;
        }
        for (int i10 = 0; i10 < r(); i10++) {
            if (!q(i10).isInitialized()) {
                this.f29245u = (byte) 0;
                return false;
            }
        }
        this.f29245u = (byte) 1;
        return true;
    }

    public C0665b q(int i10) {
        return (C0665b) this.f29244t.get(i10);
    }

    public int r() {
        return this.f29244t.size();
    }

    public List s() {
        return this.f29244t;
    }

    public int u() {
        return this.f29243s;
    }

    public boolean v() {
        return (this.f29242r & 1) == 1;
    }

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

    private b(i.b bVar) {
        super(bVar);
        this.f29245u = (byte) -1;
        this.f29246v = -1;
        this.f29241q = bVar.c();
    }

    private b(boolean z10) {
        this.f29245u = (byte) -1;
        this.f29246v = -1;
        this.f29241q = kotlin.reflect.jvm.internal.impl.protobuf.d.f26243p;
    }

    private b(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
        this.f29245u = (byte) -1;
        this.f29246v = -1;
        w();
        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;
        int i10 = 0;
        while (!z10) {
            try {
                try {
                    int J = eVar.J();
                    if (J != 0) {
                        if (J == 8) {
                            this.f29242r |= 1;
                            this.f29243s = eVar.r();
                        } else if (J != 18) {
                            if (!j(eVar, I, gVar, J)) {
                            }
                        } else {
                            if ((i10 & 2) != 2) {
                                this.f29244t = new ArrayList();
                                i10 |= 2;
                            }
                            this.f29244t.add(eVar.t(C0665b.f29248x, gVar));
                        }
                    }
                    z10 = true;
                } catch (Throwable th2) {
                    if ((i10 & 2) == 2) {
                        this.f29244t = Collections.unmodifiableList(this.f29244t);
                    }
                    try {
                        I.H();
                    } catch (IOException unused) {
                    } catch (Throwable th3) {
                        this.f29241q = u10.e();
                        throw th3;
                    }
                    this.f29241q = u10.e();
                    g();
                    throw th2;
                }
            } catch (kotlin.reflect.jvm.internal.impl.protobuf.k e10) {
                throw e10.i(this);
            } catch (IOException e11) {
                throw new kotlin.reflect.jvm.internal.impl.protobuf.k(e11.getMessage()).i(this);
            }
        }
        if ((i10 & 2) == 2) {
            this.f29244t = Collections.unmodifiableList(this.f29244t);
        }
        try {
            I.H();
        } catch (IOException unused2) {
        } catch (Throwable th4) {
            this.f29241q = u10.e();
            throw th4;
        }
        this.f29241q = u10.e();
        g();
    }
}
