package d.f.a.j.l;

import d.f.a.j.l.f;

/* JADX INFO: loaded from: classes.dex */
public class k extends o {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static int[] f2394k = new int[2];

    public k(d.f.a.j.d dVar) {
        super(dVar);
        this.f2410h.f2374e = f.a.LEFT;
        this.f2411i.f2374e = f.a.RIGHT;
        this.f2408f = 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 // d.f.a.j.l.o, d.f.a.j.l.d
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void a(d.f.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: d.f.a.j.l.k.a(d.f.a.j.l.d):void");
    }

    /* JADX WARN: Removed duplicated region for block: B:68:0x01d3  */
    @Override // d.f.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: d.f.a.j.l.k.d():void");
    }

    @Override // d.f.a.j.l.o
    public void e() {
        f fVar = this.f2410h;
        if (fVar.f2379j) {
            this.f2404b.Z = fVar.f2376g;
        }
    }

    @Override // d.f.a.j.l.o
    public void f() {
        this.f2405c = null;
        this.f2410h.b();
        this.f2411i.b();
        this.f2407e.b();
        this.f2409g = false;
    }

    @Override // d.f.a.j.l.o
    public boolean k() {
        return this.f2406d != 3 || this.f2404b.f2341q == 0;
    }

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

    public void n() {
        this.f2409g = false;
        this.f2410h.b();
        this.f2410h.f2379j = false;
        this.f2411i.b();
        this.f2411i.f2379j = false;
        this.f2407e.f2379j = false;
    }

    public String toString() {
        StringBuilder sbF = g.a.a.a.a.F("HorizontalRun ");
        sbF.append(this.f2404b.i0);
        return sbF.toString();
    }
}
