package o;

import android.graphics.Canvas;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class V5 extends AbstractC0706aK implements OC {
    public final /* synthetic */ int m;
    public final /* synthetic */ Object n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f369o;
    public final /* synthetic */ Object p;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ V5(Object obj, Object obj2, Object obj3, int i) {
        super(1);
        this.m = i;
        this.n = obj;
        this.f369o = obj2;
        this.p = obj3;
    }

    /* JADX WARN: Type inference failed for: r6v6, types: [o.OC, o.aK] */
    @Override // o.OC
    public final Object g(Object obj) {
        int i = this.m;
        Oh0 oh0 = Oh0.a;
        c1690kg0 = null;
        C1690kg0 c1690kg0 = null;
        boolean zBooleanValue = false;
        Object obj2 = this.f369o;
        Object obj3 = this.p;
        Object obj4 = this.n;
        switch (i) {
            case 0:
                Tj0 tj0 = (Tj0) obj4;
                C2420sK c2420sK = (C2420sK) obj3;
                Tj0 tj02 = (Tj0) obj2;
                InterfaceC2923xg interfaceC2923xgX = ((InterfaceC2095ot) obj).E().x();
                if (tj0.getView().getVisibility() != 8) {
                    tj0.I = true;
                    InterfaceC1577jV interfaceC1577jV = c2420sK.x;
                    C2207q3 c2207q3 = interfaceC1577jV instanceof C2207q3 ? (C2207q3) interfaceC1577jV : null;
                    if (c2207q3 != null) {
                        Canvas canvas = U2.a;
                        Canvas canvas2 = ((T2) interfaceC2923xgX).a;
                        c2207q3.getAndroidViewsHandler$ui_release().getClass();
                        tj02.draw(canvas2);
                    }
                    tj0.I = false;
                }
                return oh0;
            case 1:
                return new C2213q6((H90) obj4, obj2, (B6) obj3);
            case 2:
                Xg0 xg0 = (Xg0) obj;
                C0329Ms c0329Ms = (C0329Ms) xg0;
                if (!((ViewOnDragListenerC1450i4) ((C2207q3) AbstractC2539te.T((C0329Ms) obj2)).getDragAndDropManager()).b.contains(c0329Ms) || !C80.g(c0329Ms, AbstractC1692kh0.w((C0247Jn) obj3))) {
                    return Wg0.l;
                }
                ((B10) obj4).l = xg0;
                return Wg0.n;
            case 3:
                L20 l20 = (L20) obj;
                InterfaceC3007ya0 interfaceC3007ya0 = (InterfaceC3007ya0) obj2;
                InterfaceC3007ya0 interfaceC3007ya02 = (InterfaceC3007ya0) obj4;
                l20.a(interfaceC3007ya02 != null ? ((Number) interfaceC3007ya02.getValue()).floatValue() : 1.0f);
                l20.d(interfaceC3007ya0 != null ? ((Number) interfaceC3007ya0.getValue()).floatValue() : 1.0f);
                l20.g(interfaceC3007ya0 != null ? ((Number) interfaceC3007ya0.getValue()).floatValue() : 1.0f);
                InterfaceC3007ya0 interfaceC3007ya03 = (InterfaceC3007ya0) obj3;
                l20.k(interfaceC3007ya03 != null ? ((C1690kg0) interfaceC3007ya03.getValue()).a : C1690kg0.b);
                return oh0;
            case 4:
                C2197px c2197px = (C2197px) obj3;
                int iOrdinal = ((EnumC1911mw) obj).ordinal();
                if (iOrdinal == 0) {
                    Bg0 bg0 = c2197px.a;
                } else if (iOrdinal == 1) {
                    c1690kg0 = (C1690kg0) obj4;
                } else {
                    if (iOrdinal != 2) {
                        throw new C2170pj();
                    }
                    Bg0 bg02 = c2197px.a;
                }
                return new C1690kg0(c1690kg0 != null ? c1690kg0.a : C1690kg0.b);
            default:
                C1556jA c1556jA = (C1556jA) obj;
                if (!F3.c(c1556jA, (C1556jA) obj4)) {
                    if (F3.c(c1556jA, ((C0674Zz) obj2).c)) {
                        throw new IllegalStateException("Focus search landed at the root.");
                    }
                    zBooleanValue = ((Boolean) ((AbstractC0706aK) obj3).g(c1556jA)).booleanValue();
                }
                return Boolean.valueOf(zBooleanValue);
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public V5(C1556jA c1556jA, C0674Zz c0674Zz, OC oc) {
        super(1);
        this.m = 5;
        this.n = c1556jA;
        this.f369o = c0674Zz;
        this.p = (AbstractC0706aK) oc;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public V5(Tj0 tj0, C2420sK c2420sK, Tj0 tj02) {
        super(1);
        this.m = 0;
        this.n = tj0;
        this.p = c2420sK;
        this.f369o = tj02;
    }
}
