package o;

import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.e4, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1066e4 extends AbstractC0706aK implements OC {
    public final /* synthetic */ int m;
    public final /* synthetic */ ArrayList n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1066e4(int i, ArrayList arrayList) {
        super(1);
        this.m = i;
        this.n = arrayList;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        switch (this.m) {
            case 0:
                UW uw = (UW) obj;
                ArrayList arrayList = this.n;
                int size = arrayList.size();
                for (int i = 0; i < size; i++) {
                    UW.i(uw, (VW) arrayList.get(i), 0, 0);
                }
                break;
            case 1:
                UW uw2 = (UW) obj;
                ArrayList arrayList2 = this.n;
                int iR = AbstractC0008Ai.R(arrayList2);
                if (iR >= 0) {
                    int i2 = 0;
                    while (true) {
                        UW.i(uw2, (VW) arrayList2.get(i2), 0, 0);
                        if (i2 != iR) {
                            i2++;
                        }
                    }
                }
                break;
            case 2:
                UW uw3 = (UW) obj;
                ArrayList arrayList3 = this.n;
                int size2 = arrayList3.size();
                for (int i3 = 0; i3 < size2; i3++) {
                    UW.g(uw3, (VW) arrayList3.get(i3), 0, 0);
                }
                break;
            default:
                UW uw4 = (UW) obj;
                ArrayList arrayList4 = this.n;
                int size3 = arrayList4.size();
                for (int i4 = 0; i4 < size3; i4++) {
                    UW.j(uw4, (VW) arrayList4.get(i4), 0, 0);
                }
                break;
        }
        return Oh0.a;
    }
}
