package oo;

import java.util.ArrayList;
import java.util.List;
import mo.q;
import mo.t;
import sm.u;
import sm.v;

/* loaded from: classes3.dex */
public final class g {

    /* renamed from: a, reason: collision with root package name */
    private final List f31637a;

    public g(t typeTable) {
        int v10;
        kotlin.jvm.internal.t.g(typeTable, "typeTable");
        List u10 = typeTable.u();
        if (typeTable.v()) {
            int r10 = typeTable.r();
            List u11 = typeTable.u();
            kotlin.jvm.internal.t.f(u11, "getTypeList(...)");
            List list = u11;
            v10 = v.v(list, 10);
            ArrayList arrayList = new ArrayList(v10);
            int i10 = 0;
            for (Object obj : list) {
                int i11 = i10 + 1;
                if (i10 < 0) {
                    u.u();
                }
                q qVar = (q) obj;
                if (i10 >= r10) {
                    qVar = qVar.toBuilder().E(true).build();
                }
                arrayList.add(qVar);
                i10 = i11;
            }
            u10 = arrayList;
        }
        kotlin.jvm.internal.t.f(u10, "run(...)");
        this.f31637a = u10;
    }

    public final q a(int i10) {
        return (q) this.f31637a.get(i10);
    }
}
