package kotlin.reflect.w.internal.y0.g;

import com.cvte.vman.instance.InvokeCmd;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import kotlin.reflect.w.internal.y0.g.q;
import kotlin.reflect.w.internal.y0.g.u;
import kotlin.reflect.w.internal.y0.i.a;
import kotlin.reflect.w.internal.y0.i.c;
import kotlin.reflect.w.internal.y0.i.d;
import kotlin.reflect.w.internal.y0.i.e;
import kotlin.reflect.w.internal.y0.i.f;
import kotlin.reflect.w.internal.y0.i.h;
import kotlin.reflect.w.internal.y0.i.j;
import kotlin.reflect.w.internal.y0.i.p;
import kotlin.reflect.w.internal.y0.i.q;
import kotlin.reflect.w.internal.y0.i.r;
import kotlin.reflect.w.internal.y0.i.v;

/* JADX INFO: loaded from: classes2.dex */
public final class n extends h.d<n> implements q {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final n f7905m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static r<n> f7906n = new a();
    public int A;
    public u B;
    public int C;
    public int D;
    public List<Integer> E;
    public byte F;
    public int G;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final c f7907o;

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

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

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

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

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public q f7912t;

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public List<s> f7914v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public q f7915w;

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

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public List<q> f7917y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public List<Integer> f7918z;

    public static class a extends kotlin.reflect.w.internal.y0.i.b<n> {
        @Override // kotlin.reflect.w.internal.y0.i.r
        public Object a(d dVar, f fVar) {
            return new n(dVar, fVar, null);
        }
    }

    public static final class b extends h.c<n, b> implements q {
        public int A;
        public int B;
        public List<Integer> C;

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

        /* JADX INFO: renamed from: p, reason: collision with root package name */
        public int f7920p = InvokeCmd.CMD_XBUG_GET_VMAN_FUNTION_TIME_OUT_LIST;

        /* JADX INFO: renamed from: q, reason: collision with root package name */
        public int f7921q = InvokeCmd.CMD_PROPERTY_BOOL_GET;

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

        /* JADX INFO: renamed from: s, reason: collision with root package name */
        public q f7923s;

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

        /* JADX INFO: renamed from: u, reason: collision with root package name */
        public List<s> f7925u;

        /* JADX INFO: renamed from: v, reason: collision with root package name */
        public q f7926v;

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

        /* JADX INFO: renamed from: x, reason: collision with root package name */
        public List<q> f7928x;

        /* JADX INFO: renamed from: y, reason: collision with root package name */
        public List<Integer> f7929y;

        /* JADX INFO: renamed from: z, reason: collision with root package name */
        public u f7930z;

        public b() {
            q qVar = q.f7965m;
            this.f7923s = qVar;
            this.f7925u = Collections.emptyList();
            this.f7926v = qVar;
            this.f7928x = Collections.emptyList();
            this.f7929y = Collections.emptyList();
            this.f7930z = u.f8070m;
            this.C = Collections.emptyList();
        }

        @Override // r.i0.w.b.y0.i.p.a
        public p a() {
            n nVarN = n();
            if (nVarN.i()) {
                return nVarN;
            }
            throw new v();
        }

        @Override // r.i0.w.b.y0.i.h.b
        public Object clone() {
            b bVar = new b();
            bVar.o(n());
            return bVar;
        }

        @Override // kotlin.reflect.w.internal.y0.i.a.AbstractC0155a, r.i0.w.b.y0.i.p.a
        public /* bridge */ /* synthetic */ p.a h(d dVar, f fVar) throws Throwable {
            p(dVar, fVar);
            return this;
        }

        @Override // kotlin.reflect.w.internal.y0.i.a.AbstractC0155a
        /* JADX INFO: renamed from: j */
        public /* bridge */ /* synthetic */ a.AbstractC0155a h(d dVar, f fVar) throws Throwable {
            p(dVar, fVar);
            return this;
        }

        @Override // r.i0.w.b.y0.i.h.b
        /* JADX INFO: renamed from: k */
        public h.b clone() {
            b bVar = new b();
            bVar.o(n());
            return bVar;
        }

        @Override // r.i0.w.b.y0.i.h.b
        public /* bridge */ /* synthetic */ h.b l(h hVar) {
            o((n) hVar);
            return this;
        }

        public n n() {
            n nVar = new n(this, null);
            int i2 = this.f7919o;
            int i3 = (i2 & 1) != 1 ? 0 : 1;
            nVar.f7909q = this.f7920p;
            if ((i2 & 2) == 2) {
                i3 |= 2;
            }
            nVar.f7910r = this.f7921q;
            if ((i2 & 4) == 4) {
                i3 |= 4;
            }
            nVar.f7911s = this.f7922r;
            if ((i2 & 8) == 8) {
                i3 |= 8;
            }
            nVar.f7912t = this.f7923s;
            if ((i2 & 16) == 16) {
                i3 |= 16;
            }
            nVar.f7913u = this.f7924t;
            if ((i2 & 32) == 32) {
                this.f7925u = Collections.unmodifiableList(this.f7925u);
                this.f7919o &= -33;
            }
            nVar.f7914v = this.f7925u;
            if ((i2 & 64) == 64) {
                i3 |= 32;
            }
            nVar.f7915w = this.f7926v;
            if ((i2 & 128) == 128) {
                i3 |= 64;
            }
            nVar.f7916x = this.f7927w;
            if ((this.f7919o & 256) == 256) {
                this.f7928x = Collections.unmodifiableList(this.f7928x);
                this.f7919o &= -257;
            }
            nVar.f7917y = this.f7928x;
            if ((this.f7919o & 512) == 512) {
                this.f7929y = Collections.unmodifiableList(this.f7929y);
                this.f7919o &= -513;
            }
            nVar.f7918z = this.f7929y;
            if ((i2 & 1024) == 1024) {
                i3 |= 128;
            }
            nVar.B = this.f7930z;
            if ((i2 & 2048) == 2048) {
                i3 |= 256;
            }
            nVar.C = this.A;
            if ((i2 & 4096) == 4096) {
                i3 |= 512;
            }
            nVar.D = this.B;
            if ((this.f7919o & 8192) == 8192) {
                this.C = Collections.unmodifiableList(this.C);
                this.f7919o &= -8193;
            }
            nVar.E = this.C;
            nVar.f7908p = i3;
            return nVar;
        }

        public b o(n nVar) {
            u uVar;
            q qVar;
            q qVar2;
            if (nVar == n.f7905m) {
                return this;
            }
            int i2 = nVar.f7908p;
            if ((i2 & 1) == 1) {
                int i3 = nVar.f7909q;
                this.f7919o |= 1;
                this.f7920p = i3;
            }
            if ((i2 & 2) == 2) {
                int i4 = nVar.f7910r;
                this.f7919o = 2 | this.f7919o;
                this.f7921q = i4;
            }
            if ((i2 & 4) == 4) {
                int i5 = nVar.f7911s;
                this.f7919o = 4 | this.f7919o;
                this.f7922r = i5;
            }
            if (nVar.u()) {
                q qVarN = nVar.f7912t;
                if ((this.f7919o & 8) == 8 && (qVar2 = this.f7923s) != q.f7965m) {
                    q.c cVarY = q.y(qVar2);
                    cVarY.l(qVarN);
                    qVarN = cVarY.n();
                }
                this.f7923s = qVarN;
                this.f7919o |= 8;
            }
            if ((nVar.f7908p & 16) == 16) {
                int i6 = nVar.f7913u;
                this.f7919o = 16 | this.f7919o;
                this.f7924t = i6;
            }
            if (!nVar.f7914v.isEmpty()) {
                if (this.f7925u.isEmpty()) {
                    this.f7925u = nVar.f7914v;
                    this.f7919o &= -33;
                } else {
                    if ((this.f7919o & 32) != 32) {
                        this.f7925u = new ArrayList(this.f7925u);
                        this.f7919o |= 32;
                    }
                    this.f7925u.addAll(nVar.f7914v);
                }
            }
            if (nVar.s()) {
                q qVarN2 = nVar.f7915w;
                if ((this.f7919o & 64) == 64 && (qVar = this.f7926v) != q.f7965m) {
                    q.c cVarY2 = q.y(qVar);
                    cVarY2.l(qVarN2);
                    qVarN2 = cVarY2.n();
                }
                this.f7926v = qVarN2;
                this.f7919o |= 64;
            }
            if (nVar.t()) {
                int i7 = nVar.f7916x;
                this.f7919o |= 128;
                this.f7927w = i7;
            }
            if (!nVar.f7917y.isEmpty()) {
                if (this.f7928x.isEmpty()) {
                    this.f7928x = nVar.f7917y;
                    this.f7919o &= -257;
                } else {
                    if ((this.f7919o & 256) != 256) {
                        this.f7928x = new ArrayList(this.f7928x);
                        this.f7919o |= 256;
                    }
                    this.f7928x.addAll(nVar.f7917y);
                }
            }
            if (!nVar.f7918z.isEmpty()) {
                if (this.f7929y.isEmpty()) {
                    this.f7929y = nVar.f7918z;
                    this.f7919o &= -513;
                } else {
                    if ((this.f7919o & 512) != 512) {
                        this.f7929y = new ArrayList(this.f7929y);
                        this.f7919o |= 512;
                    }
                    this.f7929y.addAll(nVar.f7918z);
                }
            }
            if ((nVar.f7908p & 128) == 128) {
                u uVarN = nVar.B;
                if ((this.f7919o & 1024) == 1024 && (uVar = this.f7930z) != u.f8070m) {
                    u.b bVar = new u.b();
                    bVar.o(uVar);
                    bVar.o(uVarN);
                    uVarN = bVar.n();
                }
                this.f7930z = uVarN;
                this.f7919o |= 1024;
            }
            int i8 = nVar.f7908p;
            if ((i8 & 256) == 256) {
                int i9 = nVar.C;
                this.f7919o |= 2048;
                this.A = i9;
            }
            if ((i8 & 512) == 512) {
                int i10 = nVar.D;
                this.f7919o |= 4096;
                this.B = i10;
            }
            if (!nVar.E.isEmpty()) {
                if (this.C.isEmpty()) {
                    this.C = nVar.E;
                    this.f7919o &= -8193;
                } else {
                    if ((this.f7919o & 8192) != 8192) {
                        this.C = new ArrayList(this.C);
                        this.f7919o |= 8192;
                    }
                    this.C.addAll(nVar.E);
                }
            }
            m(nVar);
            this.f8259f = this.f8259f.b(nVar.f7907o);
            return this;
        }

        /* JADX WARN: Removed duplicated region for block: B:15:0x001b  */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
            To view partially-correct add '--show-bad-code' argument
        */
        public r.i0.w.b.y0.g.n.b p(kotlin.reflect.w.internal.y0.i.d r3, kotlin.reflect.w.internal.y0.i.f r4) throws java.lang.Throwable {
            /*
                r2 = this;
                r0 = 0
                r.i0.w.b.y0.i.r<r.i0.w.b.y0.g.n> r1 = kotlin.reflect.w.internal.y0.g.n.f7906n     // Catch: java.lang.Throwable -> Lf kotlin.reflect.w.internal.y0.i.j -> L11
                java.lang.Object r3 = r1.a(r3, r4)     // Catch: java.lang.Throwable -> Lf kotlin.reflect.w.internal.y0.i.j -> L11
                r.i0.w.b.y0.g.n r3 = (kotlin.reflect.w.internal.y0.g.n) r3     // Catch: java.lang.Throwable -> Lf kotlin.reflect.w.internal.y0.i.j -> L11
                if (r3 == 0) goto Le
                r2.o(r3)
            Le:
                return r2
            Lf:
                r3 = move-exception
                goto L19
            L11:
                r3 = move-exception
                r.i0.w.b.y0.i.p r4 = r3.f8275f     // Catch: java.lang.Throwable -> Lf
                r.i0.w.b.y0.g.n r4 = (kotlin.reflect.w.internal.y0.g.n) r4     // Catch: java.lang.Throwable -> Lf
                throw r3     // Catch: java.lang.Throwable -> L17
            L17:
                r3 = move-exception
                r0 = r4
            L19:
                if (r0 == 0) goto L1e
                r2.o(r0)
            L1e:
                throw r3
            */
            throw new UnsupportedOperationException("Method not decompiled: r.i0.w.b.y0.g.n.b.p(r.i0.w.b.y0.i.d, r.i0.w.b.y0.i.f):r.i0.w.b.y0.g.n$b");
        }
    }

    static {
        n nVar = new n();
        f7905m = nVar;
        nVar.v();
    }

    public n() {
        this.A = -1;
        this.F = (byte) -1;
        this.G = -1;
        this.f7907o = c.f8234f;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r4v0 */
    /* JADX WARN: Type inference failed for: r4v1 */
    /* JADX WARN: Type inference failed for: r4v2, types: [boolean] */
    public n(d dVar, f fVar, kotlin.reflect.w.internal.y0.g.a aVar) {
        int i2;
        List list;
        Object obj;
        int i3;
        int iL;
        int iD;
        Object objH;
        int i4;
        this.A = -1;
        this.F = (byte) -1;
        this.G = -1;
        v();
        c.b bVarN = c.n();
        e eVarK = e.k(bVarN, 1);
        boolean z2 = false;
        int i5 = 0;
        while (true) {
            ?? Q = 32;
            if (z2) {
                if (((i5 == true ? 1 : 0) & 32) == 32) {
                    this.f7914v = Collections.unmodifiableList(this.f7914v);
                }
                if (((i5 == true ? 1 : 0) & 256) == 256) {
                    this.f7917y = Collections.unmodifiableList(this.f7917y);
                }
                if (((i5 == true ? 1 : 0) & 512) == 512) {
                    this.f7918z = Collections.unmodifiableList(this.f7918z);
                }
                if (((i5 == true ? 1 : 0) & 8192) == 8192) {
                    this.E = Collections.unmodifiableList(this.E);
                }
                try {
                    eVarK.j();
                } catch (IOException unused) {
                } catch (Throwable th) {
                    this.f7907o = bVarN.d();
                    throw th;
                }
                this.f7907o = bVarN.d();
                this.f8262f.i();
                return;
            }
            try {
                try {
                    int iO = dVar.o();
                    q.c cVarY = null;
                    u.b bVar = null;
                    q.c cVarY2 = null;
                    switch (iO) {
                        case 0:
                            z2 = true;
                            break;
                        case 8:
                            this.f7908p |= 2;
                            this.f7910r = dVar.l();
                            break;
                        case 16:
                            this.f7908p |= 4;
                            this.f7911s = dVar.l();
                            break;
                        case 26:
                            i2 = 8;
                            if ((this.f7908p & 8) == 8) {
                                q qVar = this.f7912t;
                                Objects.requireNonNull(qVar);
                                cVarY = q.y(qVar);
                            }
                            q qVar2 = (q) dVar.h(q.f7966n, fVar);
                            this.f7912t = qVar2;
                            if (cVarY != null) {
                                cVarY.l(qVar2);
                                this.f7912t = cVarY.n();
                            }
                            this.f7908p |= i2;
                            break;
                        case 34:
                            int i6 = (i5 == true ? 1 : 0) & 32;
                            int i7 = i5;
                            if (i6 != 32) {
                                this.f7914v = new ArrayList();
                                i7 = (i5 == true ? 1 : 0) | 32;
                            }
                            list = this.f7914v;
                            i3 = i7;
                            obj = s.f8035n;
                            i5 = i3;
                            objH = dVar.h(obj, fVar);
                            list.add(objH);
                            break;
                        case 42:
                            if ((this.f7908p & 32) == 32) {
                                q qVar3 = this.f7915w;
                                Objects.requireNonNull(qVar3);
                                cVarY2 = q.y(qVar3);
                            }
                            q qVar4 = (q) dVar.h(q.f7966n, fVar);
                            this.f7915w = qVar4;
                            if (cVarY2 != null) {
                                cVarY2.l(qVar4);
                                this.f7915w = cVarY2.n();
                            }
                            this.f7908p |= 32;
                            break;
                        case 50:
                            i2 = 128;
                            if ((this.f7908p & 128) == 128) {
                                u uVar = this.B;
                                Objects.requireNonNull(uVar);
                                bVar = new u.b();
                                bVar.o(uVar);
                            }
                            u uVar2 = (u) dVar.h(u.f8071n, fVar);
                            this.B = uVar2;
                            if (bVar != null) {
                                bVar.o(uVar2);
                                this.B = bVar.n();
                            }
                            this.f7908p |= i2;
                            break;
                        case 56:
                            this.f7908p |= 256;
                            this.C = dVar.l();
                            break;
                        case 64:
                            this.f7908p |= 512;
                            this.D = dVar.l();
                            break;
                        case 72:
                            this.f7908p |= 16;
                            this.f7913u = dVar.l();
                            break;
                        case 80:
                            this.f7908p |= 64;
                            this.f7916x = dVar.l();
                            break;
                        case 88:
                            this.f7908p |= 1;
                            this.f7909q = dVar.l();
                            break;
                        case 98:
                            int i8 = (i5 == true ? 1 : 0) & 256;
                            int i9 = i5;
                            if (i8 != 256) {
                                this.f7917y = new ArrayList();
                                i9 = (i5 == true ? 1 : 0) | 256;
                            }
                            list = this.f7917y;
                            i3 = i9;
                            obj = q.f7966n;
                            i5 = i3;
                            objH = dVar.h(obj, fVar);
                            list.add(objH);
                            break;
                        case 104:
                            int i10 = (i5 == true ? 1 : 0) & 512;
                            int i11 = i5;
                            if (i10 != 512) {
                                this.f7918z = new ArrayList();
                                i11 = (i5 == true ? 1 : 0) | 512;
                            }
                            list = this.f7918z;
                            iL = dVar.l();
                            i4 = i11;
                            i5 = i4;
                            objH = Integer.valueOf(iL);
                            list.add(objH);
                            break;
                        case 106:
                            iD = dVar.d(dVar.l());
                            int i12 = (i5 == true ? 1 : 0) & 512;
                            i5 = i5;
                            if (i12 != 512) {
                                i5 = i5;
                                if (dVar.b() > 0) {
                                    this.f7918z = new ArrayList();
                                    i5 = (i5 == true ? 1 : 0) | 512;
                                }
                            }
                            while (dVar.b() > 0) {
                                this.f7918z.add(Integer.valueOf(dVar.l()));
                            }
                            dVar.f8248i = iD;
                            dVar.p();
                            break;
                        case 248:
                            int i13 = (i5 == true ? 1 : 0) & 8192;
                            int i14 = i5;
                            if (i13 != 8192) {
                                this.E = new ArrayList();
                                i14 = (i5 == true ? 1 : 0) | 8192;
                            }
                            list = this.E;
                            iL = dVar.l();
                            i4 = i14;
                            i5 = i4;
                            objH = Integer.valueOf(iL);
                            list.add(objH);
                            break;
                        case 250:
                            iD = dVar.d(dVar.l());
                            int i15 = (i5 == true ? 1 : 0) & 8192;
                            i5 = i5;
                            if (i15 != 8192) {
                                i5 = i5;
                                if (dVar.b() > 0) {
                                    this.E = new ArrayList();
                                    i5 = (i5 == true ? 1 : 0) | 8192;
                                }
                            }
                            while (dVar.b() > 0) {
                                this.E.add(Integer.valueOf(dVar.l()));
                            }
                            dVar.f8248i = iD;
                            dVar.p();
                            break;
                        default:
                            Q = q(dVar, eVarK, fVar, iO);
                            if (Q == 0) {
                                z2 = true;
                            }
                            break;
                    }
                } catch (j e2) {
                    e2.f8275f = this;
                    throw e2;
                } catch (IOException e3) {
                    j jVar = new j(e3.getMessage());
                    jVar.f8275f = this;
                    throw jVar;
                }
            } catch (Throwable th2) {
                if (((i5 == true ? 1 : 0) & 32) == Q) {
                    this.f7914v = Collections.unmodifiableList(this.f7914v);
                }
                if (((i5 == true ? 1 : 0) & 256) == 256) {
                    this.f7917y = Collections.unmodifiableList(this.f7917y);
                }
                if (((i5 == true ? 1 : 0) & 512) == 512) {
                    this.f7918z = Collections.unmodifiableList(this.f7918z);
                }
                if (((i5 == true ? 1 : 0) & 8192) == 8192) {
                    this.E = Collections.unmodifiableList(this.E);
                }
                try {
                    eVarK.j();
                } catch (IOException unused2) {
                } catch (Throwable th3) {
                    this.f7907o = bVarN.d();
                    throw th3;
                }
                this.f7907o = bVarN.d();
                this.f8262f.i();
                throw th2;
            }
        }
    }

    @Override // kotlin.reflect.w.internal.y0.i.q
    public p b() {
        return f7905m;
    }

    @Override // kotlin.reflect.w.internal.y0.i.p
    public p.a c() {
        b bVar = new b();
        bVar.o(this);
        return bVar;
    }

    @Override // kotlin.reflect.w.internal.y0.i.p
    public void d(e eVar) throws IOException {
        f();
        h.d<MessageType>.a aVarP = p();
        if ((this.f7908p & 2) == 2) {
            eVar.p(1, this.f7910r);
        }
        if ((this.f7908p & 4) == 4) {
            eVar.p(2, this.f7911s);
        }
        if ((this.f7908p & 8) == 8) {
            eVar.r(3, this.f7912t);
        }
        for (int i2 = 0; i2 < this.f7914v.size(); i2++) {
            eVar.r(4, this.f7914v.get(i2));
        }
        if ((this.f7908p & 32) == 32) {
            eVar.r(5, this.f7915w);
        }
        if ((this.f7908p & 128) == 128) {
            eVar.r(6, this.B);
        }
        if ((this.f7908p & 256) == 256) {
            eVar.p(7, this.C);
        }
        if ((this.f7908p & 512) == 512) {
            eVar.p(8, this.D);
        }
        if ((this.f7908p & 16) == 16) {
            eVar.p(9, this.f7913u);
        }
        if ((this.f7908p & 64) == 64) {
            eVar.p(10, this.f7916x);
        }
        if ((this.f7908p & 1) == 1) {
            eVar.p(11, this.f7909q);
        }
        for (int i3 = 0; i3 < this.f7917y.size(); i3++) {
            eVar.r(12, this.f7917y.get(i3));
        }
        if (this.f7918z.size() > 0) {
            eVar.y(106);
            eVar.y(this.A);
        }
        for (int i4 = 0; i4 < this.f7918z.size(); i4++) {
            eVar.q(this.f7918z.get(i4).intValue());
        }
        for (int i5 = 0; i5 < this.E.size(); i5++) {
            eVar.p(31, this.E.get(i5).intValue());
        }
        aVarP.a(19000, eVar);
        eVar.u(this.f7907o);
    }

    @Override // kotlin.reflect.w.internal.y0.i.p
    public int f() {
        int i2 = this.G;
        if (i2 != -1) {
            return i2;
        }
        int iC = (this.f7908p & 2) == 2 ? e.c(1, this.f7910r) + 0 : 0;
        if ((this.f7908p & 4) == 4) {
            iC += e.c(2, this.f7911s);
        }
        if ((this.f7908p & 8) == 8) {
            iC += e.e(3, this.f7912t);
        }
        for (int i3 = 0; i3 < this.f7914v.size(); i3++) {
            iC += e.e(4, this.f7914v.get(i3));
        }
        if ((this.f7908p & 32) == 32) {
            iC += e.e(5, this.f7915w);
        }
        if ((this.f7908p & 128) == 128) {
            iC += e.e(6, this.B);
        }
        if ((this.f7908p & 256) == 256) {
            iC += e.c(7, this.C);
        }
        if ((this.f7908p & 512) == 512) {
            iC += e.c(8, this.D);
        }
        if ((this.f7908p & 16) == 16) {
            iC += e.c(9, this.f7913u);
        }
        if ((this.f7908p & 64) == 64) {
            iC += e.c(10, this.f7916x);
        }
        if ((this.f7908p & 1) == 1) {
            iC += e.c(11, this.f7909q);
        }
        for (int i4 = 0; i4 < this.f7917y.size(); i4++) {
            iC += e.e(12, this.f7917y.get(i4));
        }
        int iD = 0;
        for (int i5 = 0; i5 < this.f7918z.size(); i5++) {
            iD += e.d(this.f7918z.get(i5).intValue());
        }
        int iD2 = iC + iD;
        if (!this.f7918z.isEmpty()) {
            iD2 = iD2 + 1 + e.d(iD);
        }
        this.A = iD;
        int iD3 = 0;
        for (int i6 = 0; i6 < this.E.size(); i6++) {
            iD3 += e.d(this.E.get(i6).intValue());
        }
        int size = this.f7907o.size() + l() + (this.E.size() * 2) + iD2 + iD3;
        this.G = size;
        return size;
    }

    @Override // kotlin.reflect.w.internal.y0.i.p
    public p.a g() {
        return new b();
    }

    @Override // kotlin.reflect.w.internal.y0.i.q
    public final boolean i() {
        byte b2 = this.F;
        if (b2 == 1) {
            return true;
        }
        if (b2 == 0) {
            return false;
        }
        if (!((this.f7908p & 4) == 4)) {
            this.F = (byte) 0;
            return false;
        }
        if (u() && !this.f7912t.i()) {
            this.F = (byte) 0;
            return false;
        }
        for (int i2 = 0; i2 < this.f7914v.size(); i2++) {
            if (!this.f7914v.get(i2).i()) {
                this.F = (byte) 0;
                return false;
            }
        }
        if (s() && !this.f7915w.i()) {
            this.F = (byte) 0;
            return false;
        }
        for (int i3 = 0; i3 < this.f7917y.size(); i3++) {
            if (!this.f7917y.get(i3).i()) {
                this.F = (byte) 0;
                return false;
            }
        }
        if (((this.f7908p & 128) == 128) && !this.B.i()) {
            this.F = (byte) 0;
            return false;
        }
        if (k()) {
            this.F = (byte) 1;
            return true;
        }
        this.F = (byte) 0;
        return false;
    }

    public boolean s() {
        return (this.f7908p & 32) == 32;
    }

    public boolean t() {
        return (this.f7908p & 64) == 64;
    }

    public boolean u() {
        return (this.f7908p & 8) == 8;
    }

    public final void v() {
        this.f7909q = InvokeCmd.CMD_XBUG_GET_VMAN_FUNTION_TIME_OUT_LIST;
        this.f7910r = InvokeCmd.CMD_PROPERTY_BOOL_GET;
        this.f7911s = 0;
        q qVar = q.f7965m;
        this.f7912t = qVar;
        this.f7913u = 0;
        this.f7914v = Collections.emptyList();
        this.f7915w = qVar;
        this.f7916x = 0;
        this.f7917y = Collections.emptyList();
        this.f7918z = Collections.emptyList();
        this.B = u.f8070m;
        this.C = 0;
        this.D = 0;
        this.E = Collections.emptyList();
    }

    public n(h.c cVar, kotlin.reflect.w.internal.y0.g.a aVar) {
        super(cVar);
        this.A = -1;
        this.F = (byte) -1;
        this.G = -1;
        this.f7907o = cVar.f8259f;
    }
}
