package m0;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import dn.l;
import h2.d0;
import h2.f0;
import h2.g0;
import h2.p0;
import j2.b0;
import kotlin.jvm.internal.v;
import rm.n0;

/* loaded from: classes.dex */
public final class b extends m0.a implements b0 {

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

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ p0 f28558p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ int f28559q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ int f28560r;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(p0 p0Var, int i10, int i11) {
            super(1);
            this.f28558p = p0Var;
            this.f28559q = i10;
            this.f28560r = i11;
        }

        public final void a(p0.a aVar) {
            p0.a.h(aVar, this.f28558p, -this.f28559q, -this.f28560r, BitmapDescriptorFactory.HUE_RED, 4, null);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((p0.a) obj);
            return n0.f34904a;
        }
    }

    public b(dn.a aVar) {
        super(aVar);
    }

    @Override // j2.b0
    public f0 h(g0 g0Var, d0 d0Var, long j10) {
        int Z0 = g0Var.Z0(androidx.compose.foundation.text.handwriting.a.b());
        int Z02 = g0Var.Z0(androidx.compose.foundation.text.handwriting.a.a());
        int i10 = Z02 * 2;
        int i11 = Z0 * 2;
        p0 Y = d0Var.Y(c3.c.n(j10, i10, i11));
        return g0.j0(g0Var, Y.S0() - i10, Y.F0() - i11, null, new a(Y, Z02, Z0), 4, null);
    }

    @Override // j2.p1
    public boolean k1() {
        return true;
    }
}
