package b.e.a.j.l;

import b.e.a.j.l.f;

/* JADX INFO: loaded from: classes.dex */
public class k extends o {
    public static int[] k = new int[2];

    public k(b.e.a.j.d dVar) {
        super(dVar);
        this.h.f777e = f.a.LEFT;
        this.i.f777e = f.a.RIGHT;
        this.f802f = 0;
    }

    /* JADX WARN: Code restructure failed: missing block: B:114:0x0268, code lost:
    
        if (r15 != 1) goto L133;
     */
    /* JADX WARN: Removed duplicated region for block: B:71:0x0155  */
    @Override // b.e.a.j.l.o, b.e.a.j.l.d
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void a(b.e.a.j.l.d r18) {
        /*
            Method dump skipped, instruction units count: 973
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: b.e.a.j.l.k.a(b.e.a.j.l.d):void");
    }

    /* JADX WARN: Removed duplicated region for block: B:68:0x01d3  */
    @Override // b.e.a.j.l.o
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void d() {
        /*
            Method dump skipped, instruction units count: 974
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: b.e.a.j.l.k.d():void");
    }

    @Override // b.e.a.j.l.o
    public void e() {
        f fVar = this.h;
        if (fVar.j) {
            this.f798b.a0 = fVar.g;
        }
    }

    @Override // b.e.a.j.l.o
    public void f() {
        this.f799c = null;
        this.h.b();
        this.i.b();
        this.f801e.b();
        this.g = false;
    }

    @Override // b.e.a.j.l.o
    public boolean k() {
        return this.f800d != 3 || this.f798b.r == 0;
    }

    public final void m(int[] iArr, int i, int i2, int i3, int i4, float f2, int i5) {
        int i6 = i2 - i;
        int i7 = i4 - i3;
        if (i5 != -1) {
            if (i5 == 0) {
                iArr[0] = (int) ((i7 * f2) + 0.5f);
                iArr[1] = i7;
                return;
            } else {
                if (i5 != 1) {
                    return;
                }
                iArr[0] = i6;
                iArr[1] = (int) ((i6 * f2) + 0.5f);
                return;
            }
        }
        int i8 = (int) ((i7 * f2) + 0.5f);
        int i9 = (int) ((i6 / f2) + 0.5f);
        if (i8 <= i6 && i7 <= i7) {
            iArr[0] = i8;
            iArr[1] = i7;
        } else {
            if (i6 > i6 || i9 > i7) {
                return;
            }
            iArr[0] = i6;
            iArr[1] = i9;
        }
    }

    public void n() {
        this.g = false;
        this.h.b();
        this.h.j = false;
        this.i.b();
        this.i.j = false;
        this.f801e.j = false;
    }

    public String toString() {
        StringBuilder sbD = c.a.a.a.a.d("HorizontalRun ");
        sbD.append(this.f798b.j0);
        return sbD.toString();
    }
}
