package o;

import java.util.List;

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

    public /* synthetic */ C2083on(C2178pn c2178pn, int i) {
        this.l = i;
        this.m = c2178pn;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        int i = this.l;
        boolean z = false;
        C2178pn c2178pn = this.m;
        switch (i) {
            case 0:
                MV mv = c2178pn.D.t;
                Boolean bool = Boolean.TRUE;
                mv.setValue(bool);
                c2178pn.D.s.setValue(bool);
                C2178pn.K0(c2178pn.D, ((C0977d7) obj).m, c2178pn.E, c2178pn.F);
                return bool;
            case 1:
                List list = (List) obj;
                if (c2178pn.D.d() != null) {
                    list.add(c2178pn.D.d().a);
                    z = true;
                }
                return Boolean.valueOf(z);
            case 2:
                C2178pn.K0(c2178pn.D, ((C0977d7) obj).m, c2178pn.E, c2178pn.F);
                return Boolean.TRUE;
            default:
                C0977d7 c0977d7 = (C0977d7) obj;
                if (!c2178pn.E && c2178pn.F) {
                    Ie0 ie0 = c2178pn.D.e;
                    if (ie0 != null) {
                        List listS = AbstractC0008Ai.S(new C2957xy(), new C1314gj(c0977d7, 1));
                        MK mk = c2178pn.D;
                        C1390hY c1390hY = mk.d;
                        C0661Zm c0661Zm = mk.v;
                        C2730ve0 c2730ve0E = c1390hY.e(listS);
                        ie0.a(null, c2730ve0E);
                        c0661Zm.g(c2730ve0E);
                    } else {
                        C2730ve0 c2730ve0 = c2178pn.C;
                        String str = c2730ve0.a.m;
                        long j = c2730ve0.b;
                        int i2 = Ue0.c;
                        String string = Za0.g0(str, (int) (j >> 32), (int) (j & 4294967295L), c0977d7).toString();
                        int length = c0977d7.m.length() + ((int) (c2178pn.C.b >> 32));
                        c2178pn.D.v.g(new C2730ve0(string, 4, AbstractC2378rs0.u(length, length)));
                    }
                    z = true;
                }
                return Boolean.valueOf(z);
        }
    }

    public /* synthetic */ C2083on(C2178pn c2178pn, N50 n50) {
        this.l = 3;
        this.m = c2178pn;
    }
}
