package o; import o.NPh; /* loaded from: classes3.dex */ public final class PLx { public XKS a; public float b; private NPh.RVV c; private SLJ d; public boolean e; private NPh j; public PLx(SLJ slj, NPh.RVV rvv) { this.j = new NPh(rvv); this.c = rvv; this.d = slj; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.PLx$5, reason: invalid class name */ /* loaded from: classes3.dex */ public static /* synthetic */ class AnonymousClass5 { static final int[] d; static { int[] iArr = new int[yPx.values().length]; d = iArr; try { iArr[yPx.NONE.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { d[yPx.COLOR.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { d[yPx.SCALE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { d[yPx.WORM.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { d[yPx.FILL.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { d[yPx.SLIDE.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { d[yPx.THIN_WORM.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { d[yPx.DROP.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { d[yPx.SWAP.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { d[yPx.SCALE_DOWN.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } } } public final void e() { SLJ slj = this.d; if (slj.e == null) { slj.e = yPx.NONE; } switch (AnonymousClass5.d[slj.e.ordinal()]) { case 1: this.c.b(null); return; case 2: b(); return; case 3: d(); return; case 4: g(); return; case 5: a(); return; case 6: i(); return; case 7: j(); return; case 8: c(); return; case 9: h(); return; case 10: f(); return; default: return; } } private void b() { int i = this.d.q; int i2 = this.d.x; long j = this.d.b; NPh nPh = this.j; if (nPh.a == null) { nPh.a = new C17642yaU(nPh.f); } XKS b = nPh.a.d(i2, i).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void c() { int i; int i2; int e; int i3; if (this.d.g) { i = this.d.y; } else { i = this.d.h; } if (this.d.g) { i2 = this.d.v; } else { i2 = this.d.y; } SLJ slj = this.d; int i4 = 0; if (slj == null) { i3 = 0; } else { if (slj.l == null) { slj.l = YXR.HORIZONTAL; } if (slj.l == YXR.HORIZONTAL) { e = TbS.a(slj, i); } else { e = TbS.e(slj, i); } i3 = e; } SLJ slj2 = this.d; if (slj2 != null) { if (slj2.l == null) { slj2.l = YXR.HORIZONTAL; } if (slj2.l == YXR.HORIZONTAL) { i4 = TbS.a(slj2, i2); } else { i4 = TbS.e(slj2, i2); } } int i5 = i4; int i6 = this.d.t; int i7 = this.d.n; SLJ slj3 = this.d; if (slj3.l == null) { slj3.l = YXR.HORIZONTAL; } if (slj3.l != YXR.HORIZONTAL) { i6 = i7; } int i8 = this.d.s; long j = this.d.b; NPh nPh = this.j; if (nPh.c == null) { nPh.c = new GmP(nPh.f); } GmP c = nPh.c.c(j).c(i3, i5, (i8 * 3) + i6, i8 + i6, i8); if (this.e) { c.a(this.b); } else { c.d(); } this.a = c; } private void a() { int i = this.d.q; int i2 = this.d.x; int i3 = this.d.s; int i4 = this.d.u; long j = this.d.b; NPh nPh = this.j; if (nPh.b == null) { nPh.b = new SuD(nPh.f); } XKS b = nPh.b.e(i2, i, i3, i4).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void d() { int i = this.d.q; int i2 = this.d.x; int i3 = this.d.s; float f = this.d.p; long j = this.d.b; NPh nPh = this.j; if (nPh.e == null) { nPh.e = new oNc(nPh.f); } XKS b = nPh.e.d(i2, i, i3, f).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void f() { int i = this.d.q; int i2 = this.d.x; int i3 = this.d.s; float f = this.d.p; long j = this.d.b; NPh nPh = this.j; if (nPh.d == null) { nPh.d = new GMt(nPh.f); } XKS b = nPh.d.d(i2, i, i3, f).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void i() { int i; int i2; int e; if (this.d.g) { i = this.d.y; } else { i = this.d.h; } if (this.d.g) { i2 = this.d.v; } else { i2 = this.d.y; } SLJ slj = this.d; int i3 = 0; if (slj == null) { e = 0; } else { if (slj.l == null) { slj.l = YXR.HORIZONTAL; } if (slj.l == YXR.HORIZONTAL) { e = TbS.a(slj, i); } else { e = TbS.e(slj, i); } } SLJ slj2 = this.d; if (slj2 != null) { if (slj2.l == null) { slj2.l = YXR.HORIZONTAL; } if (slj2.l == YXR.HORIZONTAL) { i3 = TbS.a(slj2, i2); } else { i3 = TbS.e(slj2, i2); } } long j = this.d.b; NPh nPh = this.j; if (nPh.i == null) { nPh.i = new AFA(nPh.f); } XKS b = nPh.i.c(e, i3).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void h() { int i; int i2; int e; if (this.d.g) { i = this.d.y; } else { i = this.d.h; } if (this.d.g) { i2 = this.d.v; } else { i2 = this.d.y; } SLJ slj = this.d; int i3 = 0; if (slj == null) { e = 0; } else { if (slj.l == null) { slj.l = YXR.HORIZONTAL; } if (slj.l == YXR.HORIZONTAL) { e = TbS.a(slj, i); } else { e = TbS.e(slj, i); } } SLJ slj2 = this.d; if (slj2 != null) { if (slj2.l == null) { slj2.l = YXR.HORIZONTAL; } if (slj2.l == YXR.HORIZONTAL) { i3 = TbS.a(slj2, i2); } else { i3 = TbS.e(slj2, i2); } } long j = this.d.b; NPh nPh = this.j; if (nPh.j == null) { nPh.j = new C15770iVU(nPh.f); } XKS b = nPh.j.e(e, i3).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void j() { int i; int i2; int e; int e2; if (this.d.g) { i = this.d.y; } else { i = this.d.h; } if (this.d.g) { i2 = this.d.v; } else { i2 = this.d.y; } SLJ slj = this.d; if (slj == null) { e = 0; } else { if (slj.l == null) { slj.l = YXR.HORIZONTAL; } if (slj.l == YXR.HORIZONTAL) { e = TbS.a(slj, i); } else { e = TbS.e(slj, i); } } SLJ slj2 = this.d; if (slj2 == null) { e2 = 0; } else { if (slj2.l == null) { slj2.l = YXR.HORIZONTAL; } if (slj2.l == YXR.HORIZONTAL) { e2 = TbS.a(slj2, i2); } else { e2 = TbS.e(slj2, i2); } } boolean z = i2 > i; int i3 = this.d.s; long j = this.d.b; NPh nPh = this.j; if (nPh.h == null) { nPh.h = new C16564pPL(nPh.f); } iyE b = nPh.h.a(e, e2, i3, z).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } private void g() { int i; int i2; int e; int e2; if (this.d.g) { i = this.d.y; } else { i = this.d.h; } if (this.d.g) { i2 = this.d.v; } else { i2 = this.d.y; } SLJ slj = this.d; if (slj == null) { e = 0; } else { if (slj.l == null) { slj.l = YXR.HORIZONTAL; } if (slj.l == YXR.HORIZONTAL) { e = TbS.a(slj, i); } else { e = TbS.e(slj, i); } } SLJ slj2 = this.d; if (slj2 == null) { e2 = 0; } else { if (slj2.l == null) { slj2.l = YXR.HORIZONTAL; } if (slj2.l == YXR.HORIZONTAL) { e2 = TbS.a(slj2, i2); } else { e2 = TbS.e(slj2, i2); } } boolean z = i2 > i; int i3 = this.d.s; long j = this.d.b; NPh nPh = this.j; if (nPh.g == null) { nPh.g = new iyE(nPh.f); } iyE b = nPh.g.a(e, e2, i3, z).b(j); if (this.e) { b.a(this.b); } else { b.d(); } this.a = b; } }