package o;

import java.util.ArrayList;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.lo0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1801lo0 extends Yn0 {
    public final ArrayList n;

    /* renamed from: o, reason: collision with root package name */
    public final ArrayList f626o;
    public final C2062oc0 p;

    public C1801lo0(C1801lo0 c1801lo0) {
        super(c1801lo0.l);
        ArrayList arrayList = new ArrayList(c1801lo0.n.size());
        this.n = arrayList;
        arrayList.addAll(c1801lo0.n);
        ArrayList arrayList2 = new ArrayList(c1801lo0.f626o.size());
        this.f626o = arrayList2;
        arrayList2.addAll(c1801lo0.f626o);
        this.p = c1801lo0.p;
    }

    @Override // o.Yn0
    public final InterfaceC1991no0 g(C2062oc0 c2062oc0, List list) {
        C2655uo0 c2655uo0;
        C2062oc0 c2062oc0J = this.p.j();
        C3031ym0 c3031ym0 = (C3031ym0) c2062oc0J.b;
        int i = 0;
        int i2 = 0;
        while (true) {
            ArrayList arrayList = this.n;
            int size = arrayList.size();
            c2655uo0 = InterfaceC1991no0.d;
            if (i2 >= size) {
                break;
            }
            if (i2 < list.size()) {
                c2062oc0J.m((String) arrayList.get(i2), ((C3031ym0) c2062oc0.b).h(c2062oc0, (InterfaceC1991no0) list.get(i2)));
            } else {
                c2062oc0J.m((String) arrayList.get(i2), c2655uo0);
            }
            i2++;
        }
        ArrayList arrayList2 = this.f626o;
        int size2 = arrayList2.size();
        while (i < size2) {
            Object obj = arrayList2.get(i);
            i++;
            InterfaceC1991no0 interfaceC1991no0 = (InterfaceC1991no0) obj;
            InterfaceC1991no0 interfaceC1991no0H = c3031ym0.h(c2062oc0J, interfaceC1991no0);
            if (interfaceC1991no0H instanceof C2181po0) {
                interfaceC1991no0H = c3031ym0.h(c2062oc0J, interfaceC1991no0);
            }
            if (interfaceC1991no0H instanceof Un0) {
                return ((Un0) interfaceC1991no0H).l;
            }
        }
        return c2655uo0;
    }

    @Override // o.Yn0, o.InterfaceC1991no0
    public final InterfaceC1991no0 h() {
        return new C1801lo0(this);
    }

    public C1801lo0(String str, ArrayList arrayList, List list, C2062oc0 c2062oc0) {
        super(str);
        this.n = new ArrayList();
        this.p = c2062oc0;
        if (!arrayList.isEmpty()) {
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                this.n.add(((InterfaceC1991no0) obj).zzc());
            }
        }
        this.f626o = new ArrayList(list);
    }
}
