package androidx.compose.ui.platform;

import android.view.View;
import android.view.ViewParent;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;

/* loaded from: classes.dex */
public abstract class k0 {

    /* renamed from: a */
    private static dn.l f2480a = a.f2481p;

    /* loaded from: classes.dex */
    static final class a extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p */
        public static final a f2481p = new a();

        a() {
            super(1);
        }

        @Override // dn.l
        /* renamed from: a */
        public final w2.l0 invoke(w2.l0 l0Var) {
            return l0Var;
        }
    }

    public static final /* synthetic */ boolean a(View view, View view2) {
        return d(view, view2);
    }

    public static final /* synthetic */ androidx.compose.ui.platform.coreshims.b b(View view) {
        return f(view);
    }

    public static final /* synthetic */ void c(float[] fArr, float f10, float f11, float[] fArr2) {
        i(fArr, f10, f11, fArr2);
    }

    public static final boolean d(View view, View view2) {
        if (kotlin.jvm.internal.t.b(view2, view)) {
            return false;
        }
        for (ViewParent parent = view2.getParent(); parent != null; parent = parent.getParent()) {
            if (parent == view) {
                return true;
            }
        }
        return false;
    }

    private static final float e(float[] fArr, int i10, float[] fArr2, int i11) {
        int i12 = i10 * 4;
        return (fArr[i12 + 0] * fArr2[0 + i11]) + (fArr[i12 + 1] * fArr2[4 + i11]) + (fArr[i12 + 2] * fArr2[8 + i11]) + (fArr[i12 + 3] * fArr2[12 + i11]);
    }

    public static final androidx.compose.ui.platform.coreshims.b f(View view) {
        androidx.compose.ui.platform.coreshims.c.c(view, 1);
        return androidx.compose.ui.platform.coreshims.c.b(view);
    }

    public static final dn.l g() {
        return f2480a;
    }

    private static final void h(float[] fArr, float[] fArr2) {
        float e10 = e(fArr2, 0, fArr, 0);
        float e11 = e(fArr2, 0, fArr, 1);
        float e12 = e(fArr2, 0, fArr, 2);
        float e13 = e(fArr2, 0, fArr, 3);
        float e14 = e(fArr2, 1, fArr, 0);
        float e15 = e(fArr2, 1, fArr, 1);
        float e16 = e(fArr2, 1, fArr, 2);
        float e17 = e(fArr2, 1, fArr, 3);
        float e18 = e(fArr2, 2, fArr, 0);
        float e19 = e(fArr2, 2, fArr, 1);
        float e20 = e(fArr2, 2, fArr, 2);
        float e21 = e(fArr2, 2, fArr, 3);
        float e22 = e(fArr2, 3, fArr, 0);
        float e23 = e(fArr2, 3, fArr, 1);
        float e24 = e(fArr2, 3, fArr, 2);
        float e25 = e(fArr2, 3, fArr, 3);
        fArr[0] = e10;
        fArr[1] = e11;
        fArr[2] = e12;
        fArr[3] = e13;
        fArr[4] = e14;
        fArr[5] = e15;
        fArr[6] = e16;
        fArr[7] = e17;
        fArr[8] = e18;
        fArr[9] = e19;
        fArr[10] = e20;
        fArr[11] = e21;
        fArr[12] = e22;
        fArr[13] = e23;
        fArr[14] = e24;
        fArr[15] = e25;
    }

    public static final void i(float[] fArr, float f10, float f11, float[] fArr2) {
        s1.z0.h(fArr2);
        s1.z0.q(fArr2, f10, f11, BitmapDescriptorFactory.HUE_RED, 4, null);
        h(fArr, fArr2);
    }
}
