package o;

import android.graphics.Canvas;
import android.text.TextUtils;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class J4 {
    public final N4 a;
    public final int b;
    public final long c;
    public final Le0 d;
    public final CharSequence e;
    public final Object f;

    /* JADX WARN: Removed duplicated region for block: B:103:0x015c  */
    /* JADX WARN: Removed duplicated region for block: B:105:0x0167  */
    /* JADX WARN: Removed duplicated region for block: B:117:0x01ad  */
    /* JADX WARN: Removed duplicated region for block: B:136:0x01e5  */
    /* JADX WARN: Removed duplicated region for block: B:139:0x0223  */
    /* JADX WARN: Removed duplicated region for block: B:140:0x0226  */
    /* JADX WARN: Removed duplicated region for block: B:144:0x0254  */
    /* JADX WARN: Removed duplicated region for block: B:155:0x028f  */
    /* JADX WARN: Removed duplicated region for block: B:156:0x0293  */
    /* JADX WARN: Removed duplicated region for block: B:167:0x02e5  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x00ee  */
    /* JADX WARN: Removed duplicated region for block: B:86:0x0113  */
    /* JADX WARN: Removed duplicated region for block: B:87:0x0115  */
    /* JADX WARN: Removed duplicated region for block: B:92:0x0120  */
    /* JADX WARN: Removed duplicated region for block: B:94:0x012e  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public J4(o.N4 r23, int r24, int r25, long r26) {
        /*
            Method dump skipped, instructions count: 868
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.J4.<init>(o.N4, int, int, long):void");
    }

    public final Le0 a(int i, int i2, TextUtils.TruncateAt truncateAt, int i3, int i4, int i5, int i6, int i7, CharSequence charSequence) {
        C1579jX c1579jX;
        float fD = d();
        N4 n4 = this.a;
        G5 g5 = n4.r;
        int i8 = n4.w;
        C1566jK c1566jK = n4.t;
        C0733af0 c0733af0 = n4.m;
        K4 k4 = L4.a;
        C2908xX c2908xX = c0733af0.c;
        return new Le0(charSequence, fD, g5, i, truncateAt, i8, (c2908xX == null || (c1579jX = c2908xX.b) == null) ? false : c1579jX.a, i3, i5, i6, i7, i4, i2, c1566jK);
    }

    public final float b() {
        return this.d.a();
    }

    /* JADX WARN: Removed duplicated region for block: B:44:0x00d2  */
    /* JADX WARN: Type inference failed for: r13v26, types: [o.v4] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final long c(o.T00 r12, int r13, o.C0387Oy r14) {
        /*
            Method dump skipped, instructions count: 240
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.J4.c(o.T00, int, o.Oy):long");
    }

    public final float d() {
        return C0634Yl.h(this.c);
    }

    public final void e(InterfaceC2923xg interfaceC2923xg) {
        Canvas canvas = U2.a;
        Canvas canvas2 = ((T2) interfaceC2923xg).a;
        Le0 le0 = this.d;
        if (le0.d) {
            canvas2.save();
            canvas2.clipRect(0.0f, 0.0f, d(), b());
        }
        int i = le0.h;
        if (canvas2.getClipBounds(le0.p)) {
            if (i != 0) {
                canvas2.translate(0.0f, i);
            }
            C0729ad0 c0729ad0 = Pe0.a;
            c0729ad0.a = canvas2;
            le0.f.draw(c0729ad0);
            if (i != 0) {
                canvas2.translate(0.0f, (-1) * i);
            }
        }
        if (le0.d) {
            canvas2.restore();
        }
    }

    public final void f(InterfaceC2923xg interfaceC2923xg, long j, I70 i70, C2823wd0 c2823wd0, AbstractC2190pt abstractC2190pt) {
        G5 g5 = this.a.r;
        int i = g5.c;
        g5.d(j);
        g5.f(i70);
        g5.g(c2823wd0);
        g5.e(abstractC2190pt);
        g5.b(3);
        e(interfaceC2923xg);
        g5.b(i);
    }

    public final void g(InterfaceC2923xg interfaceC2923xg, AbstractC0601Xe abstractC0601Xe, float f, I70 i70, C2823wd0 c2823wd0, AbstractC2190pt abstractC2190pt) {
        G5 g5 = this.a.r;
        int i = g5.c;
        float fD = d();
        float fB = b();
        g5.c(abstractC0601Xe, (Float.floatToRawIntBits(fB) & 4294967295L) | (Float.floatToRawIntBits(fD) << 32), f);
        g5.f(i70);
        g5.g(c2823wd0);
        g5.e(abstractC2190pt);
        g5.b(3);
        e(interfaceC2923xg);
        g5.b(i);
    }
}
