package k1;

import F1.L;
import F1.V;
import F1.m0;
import G0.B;
import I0.C0310t;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;

/* JADX INFO: renamed from: k1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2371a extends L {

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ ViewGroup f19647d;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C2371a(ViewGroup viewGroup, int i6) {
        super(1);
        this.f19646c = i6;
        this.f19647d = viewGroup;
    }

    @Override // F1.L
    public final m0 m(m0 m0Var, List list) {
        switch (this.f19646c) {
            case 0:
                return ((y) this.f19647d).e(m0Var);
            default:
                l1.u uVar = (l1.u) this.f19647d;
                if (uVar.f20211d) {
                    return m0Var;
                }
                View childAt = uVar.getChildAt(0);
                int iMax = Math.max(0, childAt.getLeft());
                int iMax2 = Math.max(0, childAt.getTop());
                int iMax3 = Math.max(0, uVar.getWidth() - childAt.getRight());
                int iMax4 = Math.max(0, uVar.getHeight() - childAt.getBottom());
                return (iMax == 0 && iMax2 == 0 && iMax3 == 0 && iMax4 == 0) ? m0Var : m0Var.f1458a.n(iMax, iMax2, iMax3, iMax4);
        }
    }

    @Override // F1.L
    public final T.p n(V v3, T.p pVar) {
        switch (this.f19646c) {
            case 0:
                C0310t c0310t = (C0310t) ((y) this.f19647d).f19673C.f2162J.f2362d;
                if (!c0310t.w()) {
                    return pVar;
                }
                long jT = W.c.T(c0310t.e0(0L));
                int i6 = (int) (jT >> 32);
                if (i6 < 0) {
                    i6 = 0;
                }
                int i7 = (int) (jT & 4294967295L);
                if (i7 < 0) {
                    i7 = 0;
                }
                long jF = B.i(c0310t).F();
                int i8 = (int) (jF >> 32);
                int i9 = (int) (jF & 4294967295L);
                long j4 = c0310t.f2000c;
                long jT2 = W.c.T(c0310t.e0((((long) Float.floatToRawIntBits((int) (j4 >> 32))) << 32) | (((long) Float.floatToRawIntBits((int) (j4 & 4294967295L))) & 4294967295L)));
                int i10 = i8 - ((int) (jT2 >> 32));
                if (i10 < 0) {
                    i10 = 0;
                }
                int i11 = i9 - ((int) (4294967295L & jT2));
                int i12 = i11 >= 0 ? i11 : 0;
                return (i6 == 0 && i7 == 0 && i10 == 0 && i12 == 0) ? pVar : new T.p(6, i.d((z1.b) pVar.f6345b, i6, i7, i10, i12), i.d((z1.b) pVar.f6346c, i6, i7, i10, i12));
            default:
                l1.u uVar = (l1.u) this.f19647d;
                if (uVar.f20211d) {
                    return pVar;
                }
                View childAt = uVar.getChildAt(0);
                int iMax = Math.max(0, childAt.getLeft());
                int iMax2 = Math.max(0, childAt.getTop());
                int iMax3 = Math.max(0, uVar.getWidth() - childAt.getRight());
                int iMax4 = Math.max(0, uVar.getHeight() - childAt.getBottom());
                if (iMax == 0 && iMax2 == 0 && iMax3 == 0 && iMax4 == 0) {
                    return pVar;
                }
                z1.b bVarB = z1.b.b(iMax, iMax2, iMax3, iMax4);
                z1.b bVar = (z1.b) pVar.f6345b;
                int i13 = bVarB.f26269a;
                int i14 = bVarB.f26270b;
                int i15 = bVarB.f26271c;
                int i16 = bVarB.f26272d;
                return new T.p(6, m0.a(bVar, i13, i14, i15, i16), m0.a((z1.b) pVar.f6346c, i13, i14, i15, i16));
        }
    }
}
