package o;

import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.jB, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1557jB extends Sb0 implements SC {
    public final /* synthetic */ int p;
    public final /* synthetic */ List q;
    public final /* synthetic */ PackageManager r;
    public final /* synthetic */ ConcurrentHashMap.KeySetView s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1557jB(List list, PackageManager packageManager, ConcurrentHashMap.KeySetView keySetView, InterfaceC0220Im interfaceC0220Im, int i) {
        super(2, interfaceC0220Im);
        this.p = i;
        this.q = list;
        this.r = packageManager;
        this.s = keySetView;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) obj;
        InterfaceC0220Im interfaceC0220Im = (InterfaceC0220Im) obj2;
        switch (this.p) {
            case 0:
                C1557jB c1557jB = (C1557jB) l(interfaceC0065Cn, interfaceC0220Im);
                Oh0 oh0 = Oh0.a;
                c1557jB.n(oh0);
                return oh0;
            default:
                C1557jB c1557jB2 = (C1557jB) l(interfaceC0065Cn, interfaceC0220Im);
                Oh0 oh02 = Oh0.a;
                c1557jB2.n(oh02);
                return oh02;
        }
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.p) {
            case 0:
                return new C1557jB(this.q, this.r, this.s, interfaceC0220Im, 0);
            default:
                return new C1557jB(this.q, this.r, this.s, interfaceC0220Im, 1);
        }
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        switch (this.p) {
            case 0:
                IJ.H(obj);
                for (ResolveInfo resolveInfo : this.q) {
                    if ((resolveInfo.activityInfo.applicationInfo.flags & 1) == 0) {
                        String string = Za0.o0(resolveInfo.loadLabel(this.r).toString()).toString();
                        if (string.length() <= 0) {
                            string = null;
                        }
                        if (string != null) {
                            this.s.add(string);
                        }
                    }
                }
                break;
            default:
                IJ.H(obj);
                for (ResolveInfo resolveInfo2 : this.q) {
                    if ((resolveInfo2.activityInfo.applicationInfo.flags & 1) == 0) {
                        String string2 = Za0.o0(resolveInfo2.loadLabel(this.r).toString()).toString();
                        if (string2.length() <= 0) {
                            string2 = null;
                        }
                        if (string2 != null) {
                            this.s.add(string2);
                        }
                    }
                }
                break;
        }
        return Oh0.a;
    }
}
