package k1;

import F1.F;
import F1.m0;
import G0.InterfaceC0279y;
import I0.H;
import I0.t0;
import J0.A;
import J0.C0377p;
import android.view.WindowInsets;
import java.util.HashMap;
import w4.C3137A;

/* JADX INFO: renamed from: k1.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2373c extends kotlin.jvm.internal.p implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f19653a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ y f19654b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ H f19655c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C2373c(y yVar, H h5, int i6) {
        super(1);
        this.f19653a = i6;
        this.f19654b = yVar;
        this.f19655c = h5;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        WindowInsets windowInsetsB;
        switch (this.f19653a) {
            case 0:
                t0 t0Var = (t0) obj;
                A a6 = t0Var instanceof A ? (A) t0Var : null;
                y yVar = this.f19654b;
                if (a6 != null) {
                    HashMap<i, H> holderToLayoutNode = a6.getAndroidViewsHandler$ui().getHolderToLayoutNode();
                    H h5 = this.f19655c;
                    holderToLayoutNode.put(yVar, h5);
                    a6.getAndroidViewsHandler$ui().addView(yVar);
                    a6.getAndroidViewsHandler$ui().getLayoutNodeToHolder().put(h5, yVar);
                    yVar.setImportantForAccessibility(1);
                    F.d(yVar, new C0377p(a6, h5, a6));
                }
                if (yVar.getView().getParent() != yVar) {
                    yVar.addView(yVar.getView());
                }
                break;
            case 1:
                j.d(this.f19654b, this.f19655c);
                break;
            default:
                y yVar2 = this.f19654b;
                j.d(yVar2, this.f19655c);
                ((A) yVar2.f19676c).f2718J = true;
                int[] iArr = yVar2.f19686q;
                int i6 = iArr[0];
                int i7 = iArr[1];
                yVar2.getView().getLocationOnScreen(iArr);
                long j4 = yVar2.f19687r;
                long jF = ((InterfaceC0279y) obj).F();
                yVar2.f19687r = jF;
                m0 m0Var = yVar2.f19688s;
                if (m0Var != null && ((i6 != iArr[0] || i7 != iArr[1] || !h1.l.a(j4, jF)) && (windowInsetsB = yVar2.e(m0Var).b()) != null)) {
                    yVar2.getView().dispatchApplyWindowInsets(windowInsetsB);
                }
                break;
        }
        return C3137A.f25453a;
    }
}
