package o;

import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Go, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0170Go implements NC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;

    public /* synthetic */ C0170Go(int i, Object obj) {
        this.l = i;
        this.m = obj;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // o.NC
    public final Object a() {
        int i = this.l;
        Object obj = this.m;
        switch (i) {
            case 0:
                return ((C3114zg0) obj).d.getValue();
            case 1:
                return ((C3114zg0) obj).f();
            default:
                ArrayList arrayList = ((C2812wW) obj).a;
                ZQ zq = new ZQ(arrayList.size());
                int size = arrayList.size();
                for (int i2 = 0; i2 < size; i2++) {
                    JJ jj = (JJ) arrayList.get(i2);
                    Object obj2 = jj.b;
                    int i3 = jj.a;
                    Object c1471iJ = obj2 != null ? new C1471iJ(Integer.valueOf(i3), jj.b) : Integer.valueOf(i3);
                    int iF = zq.f(c1471iJ);
                    boolean z = iF < 0;
                    Object obj3 = z ? null : zq.c[iF];
                    if (obj3 != null) {
                        if (obj3 instanceof UQ) {
                            UQ uq = (UQ) obj3;
                            uq.a(jj);
                            jj = uq;
                        } else {
                            Object[] objArr = AbstractC1193fT.a;
                            UQ uq2 = new UQ(2);
                            uq2.a(obj3);
                            uq2.a(jj);
                            jj = uq2;
                        }
                    }
                    if (z) {
                        int i4 = ~iF;
                        zq.b[i4] = c1471iJ;
                        zq.c[i4] = jj;
                    } else {
                        zq.c[iF] = jj;
                    }
                }
                return new AQ(zq);
        }
    }
}
