package o;

import android.os.Build;
import android.view.View;

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

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

    @Override // o.InterfaceC2294qz
    public final Object c(Object obj, InterfaceC0220Im interfaceC0220Im) {
        switch (this.l) {
            case 0:
                DH dh = (DH) this.m;
                if (Build.VERSION.SDK_INT >= 34) {
                    dh.m().startStylusHandwriting((View) dh.l);
                }
                break;
            case 1:
                InterfaceC1849mI interfaceC1849mI = (InterfaceC1849mI) obj;
                H90 h90 = (H90) this.m;
                if (interfaceC1849mI instanceof C2131pF) {
                    h90.add(interfaceC1849mI);
                } else if (interfaceC1849mI instanceof C2226qF) {
                    h90.remove(((C2226qF) interfaceC1849mI).a);
                } else if (interfaceC1849mI instanceof C0544Uz) {
                    h90.add(interfaceC1849mI);
                } else if (interfaceC1849mI instanceof C0570Vz) {
                    h90.remove(((C0570Vz) interfaceC1849mI).a);
                } else if (interfaceC1849mI instanceof AY) {
                    h90.add(interfaceC1849mI);
                } else if (interfaceC1849mI instanceof BY) {
                    h90.remove(((BY) interfaceC1849mI).a);
                } else if (interfaceC1849mI instanceof C3099zY) {
                    h90.remove(((C3099zY) interfaceC1849mI).a);
                }
                break;
            case 2:
                C0041Bp c0041Bp = (C0041Bp) this.m;
                if ((c0041Bp.h.i() instanceof C2577ty) || (r3 = C0041Bp.f(c0041Bp, true, interfaceC0220Im)) != EnumC0091Dn.l) {
                    break;
                }
                break;
            case 3:
                Y60 y60 = (Y60) obj;
                C2692v80 c2692v80 = (C2692v80) this.m;
                c2692v80.h = y60;
                Object objA = C2692v80.a(c2692v80, y60.a.a, EnumC2407s80.l, interfaceC0220Im);
                if (objA != EnumC0091Dn.l) {
                    break;
                }
                break;
            default:
                ((WP) this.m).l.h(((Number) obj).floatValue());
                break;
        }
        return Oh0.a;
    }
}
