package mo;

import java.io.IOException;
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;

/* loaded from: classes3.dex */
public final class u extends i.d {
    private static final u B;
    public static kotlin.reflect.jvm.internal.impl.protobuf.r C = new a();
    private int A;

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

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

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

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

    /* renamed from: v, reason: collision with root package name */
    private q f29532v;

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

    /* renamed from: x, reason: collision with root package name */
    private q f29534x;

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

    /* renamed from: z, reason: collision with root package name */
    private byte f29536z;

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

    /* loaded from: classes3.dex */
    public static final class b extends i.c {

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

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

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

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

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

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

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

        private b() {
            s();
        }

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

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

        private void s() {
        }

        public b A(int i10) {
            this.f29537s |= 32;
            this.f29543y = i10;
            return this;
        }

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

        public u o() {
            u uVar = new u(this);
            int i10 = this.f29537s;
            int i11 = (i10 & 1) != 1 ? 0 : 1;
            uVar.f29530t = this.f29538t;
            if ((i10 & 2) == 2) {
                i11 |= 2;
            }
            uVar.f29531u = this.f29539u;
            if ((i10 & 4) == 4) {
                i11 |= 4;
            }
            uVar.f29532v = this.f29540v;
            if ((i10 & 8) == 8) {
                i11 |= 8;
            }
            uVar.f29533w = this.f29541w;
            if ((i10 & 16) == 16) {
                i11 |= 16;
            }
            uVar.f29534x = this.f29542x;
            if ((i10 & 32) == 32) {
                i11 |= 32;
            }
            uVar.f29535y = this.f29543y;
            uVar.f29529s = i11;
            return uVar;
        }

        /* 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: t, 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) {
            u uVar = null;
            try {
                try {
                    u uVar2 = (u) u.C.b(eVar, gVar);
                    if (uVar2 != null) {
                        d(uVar2);
                    }
                    return this;
                } catch (kotlin.reflect.jvm.internal.impl.protobuf.k e10) {
                    u uVar3 = (u) e10.a();
                    try {
                        throw e10;
                    } catch (Throwable th2) {
                        th = th2;
                        uVar = uVar3;
                        if (uVar != null) {
                            d(uVar);
                        }
                        throw th;
                    }
                }
            } catch (Throwable th3) {
                th = th3;
                if (uVar != null) {
                }
                throw th;
            }
        }

        @Override // kotlin.reflect.jvm.internal.impl.protobuf.i.b
        /* renamed from: u, reason: merged with bridge method [inline-methods] */
        public b d(u uVar) {
            if (uVar == u.C()) {
                return this;
            }
            if (uVar.L()) {
                x(uVar.E());
            }
            if (uVar.M()) {
                y(uVar.F());
            }
            if (uVar.N()) {
                v(uVar.G());
            }
            if (uVar.O()) {
                z(uVar.H());
            }
            if (uVar.P()) {
                w(uVar.J());
            }
            if (uVar.Q()) {
                A(uVar.K());
            }
            k(uVar);
            f(c().g(uVar.f29528r));
            return this;
        }

        public b v(q qVar) {
            if ((this.f29537s & 4) != 4 || this.f29540v == q.S()) {
                this.f29540v = qVar;
            } else {
                this.f29540v = q.t0(this.f29540v).d(qVar).o();
            }
            this.f29537s |= 4;
            return this;
        }

        public b w(q qVar) {
            if ((this.f29537s & 16) != 16 || this.f29542x == q.S()) {
                this.f29542x = qVar;
            } else {
                this.f29542x = q.t0(this.f29542x).d(qVar).o();
            }
            this.f29537s |= 16;
            return this;
        }

        public b x(int i10) {
            this.f29537s |= 1;
            this.f29538t = i10;
            return this;
        }

        public b y(int i10) {
            this.f29537s |= 2;
            this.f29539u = i10;
            return this;
        }

        public b z(int i10) {
            this.f29537s |= 8;
            this.f29541w = i10;
            return this;
        }
    }

    static {
        u uVar = new u(true);
        B = uVar;
        uVar.R();
    }

    public static u C() {
        return B;
    }

    private void R() {
        this.f29530t = 0;
        this.f29531u = 0;
        this.f29532v = q.S();
        this.f29533w = 0;
        this.f29534x = q.S();
        this.f29535y = 0;
    }

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

    public static b T(u uVar) {
        return S().d(uVar);
    }

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

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

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

    public q G() {
        return this.f29532v;
    }

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

    public q J() {
        return this.f29534x;
    }

    public int K() {
        return this.f29535y;
    }

    public boolean L() {
        return (this.f29529s & 1) == 1;
    }

    public boolean M() {
        return (this.f29529s & 2) == 2;
    }

    public boolean N() {
        return (this.f29529s & 4) == 4;
    }

    public boolean O() {
        return (this.f29529s & 8) == 8;
    }

    public boolean P() {
        return (this.f29529s & 16) == 16;
    }

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

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

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

    @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.f29529s & 1) == 1) {
            fVar.Z(1, this.f29530t);
        }
        if ((this.f29529s & 2) == 2) {
            fVar.Z(2, this.f29531u);
        }
        if ((this.f29529s & 4) == 4) {
            fVar.c0(3, this.f29532v);
        }
        if ((this.f29529s & 16) == 16) {
            fVar.c0(4, this.f29534x);
        }
        if ((this.f29529s & 8) == 8) {
            fVar.Z(5, this.f29533w);
        }
        if ((this.f29529s & 32) == 32) {
            fVar.Z(6, this.f29535y);
        }
        s10.a(200, fVar);
        fVar.h0(this.f29528r);
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.p
    public int getSerializedSize() {
        int i10 = this.A;
        if (i10 != -1) {
            return i10;
        }
        int o10 = (this.f29529s & 1) == 1 ? 0 + kotlin.reflect.jvm.internal.impl.protobuf.f.o(1, this.f29530t) : 0;
        if ((this.f29529s & 2) == 2) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(2, this.f29531u);
        }
        if ((this.f29529s & 4) == 4) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(3, this.f29532v);
        }
        if ((this.f29529s & 16) == 16) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.r(4, this.f29534x);
        }
        if ((this.f29529s & 8) == 8) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(5, this.f29533w);
        }
        if ((this.f29529s & 32) == 32) {
            o10 += kotlin.reflect.jvm.internal.impl.protobuf.f.o(6, this.f29535y);
        }
        int n10 = o10 + n() + this.f29528r.size();
        this.A = n10;
        return n10;
    }

    @Override // kotlin.reflect.jvm.internal.impl.protobuf.q
    public final boolean isInitialized() {
        byte b10 = this.f29536z;
        if (b10 == 1) {
            return true;
        }
        if (b10 == 0) {
            return false;
        }
        if (!M()) {
            this.f29536z = (byte) 0;
            return false;
        }
        if (N() && !G().isInitialized()) {
            this.f29536z = (byte) 0;
            return false;
        }
        if (P() && !J().isInitialized()) {
            this.f29536z = (byte) 0;
            return false;
        }
        if (m()) {
            this.f29536z = (byte) 1;
            return true;
        }
        this.f29536z = (byte) 0;
        return false;
    }

    private u(i.c cVar) {
        super(cVar);
        this.f29536z = (byte) -1;
        this.A = -1;
        this.f29528r = cVar.c();
    }

    private u(boolean z10) {
        this.f29536z = (byte) -1;
        this.A = -1;
        this.f29528r = kotlin.reflect.jvm.internal.impl.protobuf.d.f26243p;
    }

    private u(kotlin.reflect.jvm.internal.impl.protobuf.e eVar, kotlin.reflect.jvm.internal.impl.protobuf.g gVar) {
        q.c builder;
        this.f29536z = (byte) -1;
        this.A = -1;
        R();
        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.f29529s |= 1;
                                this.f29530t = eVar.r();
                            } else if (J != 16) {
                                if (J == 26) {
                                    builder = (this.f29529s & 4) == 4 ? this.f29532v.toBuilder() : null;
                                    q qVar = (q) eVar.t(q.K, gVar);
                                    this.f29532v = qVar;
                                    if (builder != null) {
                                        builder.d(qVar);
                                        this.f29532v = builder.o();
                                    }
                                    this.f29529s |= 4;
                                } else if (J == 34) {
                                    builder = (this.f29529s & 16) == 16 ? this.f29534x.toBuilder() : null;
                                    q qVar2 = (q) eVar.t(q.K, gVar);
                                    this.f29534x = qVar2;
                                    if (builder != null) {
                                        builder.d(qVar2);
                                        this.f29534x = builder.o();
                                    }
                                    this.f29529s |= 16;
                                } else if (J == 40) {
                                    this.f29529s |= 8;
                                    this.f29533w = eVar.r();
                                } else if (J != 48) {
                                    if (!j(eVar, I, gVar, J)) {
                                    }
                                } else {
                                    this.f29529s |= 32;
                                    this.f29535y = eVar.r();
                                }
                            } else {
                                this.f29529s |= 2;
                                this.f29531u = eVar.r();
                            }
                        }
                        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.f29528r = u10.e();
                    throw th3;
                }
                this.f29528r = u10.e();
                g();
                throw th2;
            }
        }
        try {
            I.H();
        } catch (IOException unused2) {
        } catch (Throwable th4) {
            this.f29528r = u10.e();
            throw th4;
        }
        this.f29528r = u10.e();
        g();
    }
}
