package o; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.drawable.Drawable; import com.github.mikephil.charting.charts.RadarChart; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.util.Iterator; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class HfI extends CJh { private RadarChart c; private Path f; private Path g; private Paint i; private Paint j; public HfI(RadarChart radarChart, C3144arv c3144arv, DRH drh) { super(c3144arv, drh); this.f = new Path(); this.g = new Path(); this.c = radarChart; this.b = new Paint(1); this.b.setStyle(Paint.Style.STROKE); this.b.setStrokeWidth(2.0f); this.b.setColor(Color.rgb(255, CipherSuite.TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256, 115)); Paint paint = new Paint(1); this.j = paint; paint.setStyle(Paint.Style.STROKE); this.i = new Paint(1); } /* JADX WARN: Multi-variable type inference failed */ @Override // o.stp public final void GR_(Canvas canvas) { Canvas canvas2; Bsv bsv = (Bsv) this.c.g(); int r = bsv.b().r(); Iterator it = bsv.d().iterator(); while (it.hasNext()) { InterfaceC10172dxk next = it.next(); if (next.o()) { float f = this.d.d; float f2 = this.d.a; float v = this.c.v(); float x = this.c.x(); QFQ c = this.c.c(); QFQ e = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); Path path = this.f; path.reset(); int i = 0; boolean z = false; while (i < next.r()) { this.e.setColor(next.a(i)); Iterator it2 = it; AbstractC0810PWv.b(c, (((Lsg) next.d(i)).e - this.c.v.c) * x * f2, (i * v * f) + this.c.H, e); if (!Float.isNaN(e.a)) { if (!z) { path.moveTo(e.a, e.e); z = true; } else { path.lineTo(e.a, e.e); } } i++; it = it2; } Iterator it3 = it; if (next.r() > r) { path.lineTo(c.a, c.e); } path.close(); if (next.D()) { Drawable GC_ = next.GC_(); if (GC_ != null) { canvas2 = canvas; GL_(canvas2, path, GC_); } else { canvas2 = canvas; GK_(canvas2, path, next.v(), next.u()); } } else { canvas2 = canvas; } this.e.setStrokeWidth(next.A()); this.e.setStyle(Paint.Style.STROKE); if (!next.D() || next.u() < 255) { canvas2.drawPath(path, this.e); } QFQ.b(c); QFQ.b(e); it = it3; } } } /* JADX WARN: Multi-variable type inference failed */ @Override // o.stp public final void GU_(Canvas canvas) { float f; float f2; QFQ qfq; int i; float f3; float f4 = this.d.d; float f5 = this.d.a; float v = this.c.v(); float x = this.c.x(); QFQ c = this.c.c(); QFQ e = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); QFQ e2 = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); float d = AbstractC0810PWv.d(5.0f); int i2 = 0; while (i2 < ((Bsv) this.c.g()).e()) { InterfaceC10172dxk c2 = ((Bsv) this.c.g()).c(i2); if (c2.o() && (c2.n() || c2.k())) { e(c2); vTS f6 = c2.f(); QFQ d2 = QFQ.d(c2.j()); d2.a = AbstractC0810PWv.d(d2.a); d2.e = AbstractC0810PWv.d(d2.e); int i3 = 0; while (i3 < c2.r()) { Lsg lsg = (Lsg) c2.d(i3); QFQ qfq2 = e2; int i4 = i2; float f7 = f4; AbstractC0810PWv.b(c, (lsg.e - this.c.v.c) * x * f5, (i3 * v * f4) + this.c.H, e); if (c2.n()) { String c3 = f6.c(lsg.e); float f8 = e.a; float f9 = e.e - d; f3 = f5; this.a.setColor(c2.b(i3)); canvas.drawText(c3, f8, f9, this.a); } else { f3 = f5; } Drawable drawable = lsg.c; i3++; e2 = qfq2; i2 = i4; f4 = f7; f5 = f3; } f = f4; f2 = f5; qfq = e2; i = i2; QFQ.b(d2); } else { f = f4; f2 = f5; qfq = e2; i = i2; } i2 = i + 1; e2 = qfq; f4 = f; f5 = f2; } QFQ.b(c); QFQ.b(e); QFQ.b(e2); } /* JADX WARN: Multi-variable type inference failed */ @Override // o.stp public final void GS_(Canvas canvas) { float v = this.c.v(); float x = this.c.x(); float f = this.c.H; QFQ c = this.c.c(); this.j.setStrokeWidth(this.c.y); this.j.setColor(this.c.w); this.j.setAlpha(this.c.p); int i = this.c.s; int r = ((Bsv) this.c.g()).b().r(); QFQ e = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); for (int i2 = 0; i2 < r; i2 += i + 1) { AbstractC0810PWv.b(c, this.c.v.d * x, (i2 * v) + f, e); canvas.drawLine(c.a, c.e, e.a, e.e, this.j); } QFQ.b(e); this.j.setStrokeWidth(this.c.t); this.j.setColor(this.c.u); this.j.setAlpha(this.c.p); int i3 = this.c.v.l; QFQ e2 = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); QFQ e3 = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); for (int i4 = 0; i4 < i3; i4++) { int i5 = 0; while (i5 < ((Bsv) this.c.g()).c()) { float f2 = (this.c.v.m[i4] - this.c.v.c) * x; AbstractC0810PWv.b(c, f2, (i5 * v) + f, e2); i5++; AbstractC0810PWv.b(c, f2, (i5 * v) + f, e3); canvas.drawLine(e2.a, e2.e, e3.a, e3.e, this.j); } } QFQ.b(e2); QFQ.b(e3); } /* JADX WARN: Multi-variable type inference failed */ @Override // o.stp public final void GT_(Canvas canvas, UAQ[] uaqArr) { float f; Bsv bsv; int i; UAQ[] uaqArr2 = uaqArr; float v = this.c.v(); float x = this.c.x(); QFQ c = this.c.c(); QFQ e = QFQ.e(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); Bsv bsv2 = (Bsv) this.c.g(); int length = uaqArr2.length; int i2 = 0; while (i2 < length) { UAQ uaq = uaqArr2[i2]; InterfaceC10172dxk c2 = bsv2.c(uaq.b); if (c2 != null && c2.l()) { Lhm lhm = (Lsg) c2.d((int) uaq.j); if (e(lhm, c2)) { float f2 = lhm.e; float f3 = this.c.v.c; bsv = bsv2; AbstractC0810PWv.b(c, (f2 - f3) * x * this.d.a, (uaq.j * v * this.d.d) + this.c.H, e); float f4 = e.a; float f5 = e.e; uaq.c = f4; uaq.e = f5; GM_(canvas, e.a, e.e, c2); if (!c2.M() || Float.isNaN(e.a) || Float.isNaN(e.e)) { f = v; } else { int N = c2.N(); if (N == 1122867) { N = c2.a(0); } if (c2.J() < 255) { N = DQA.d(N, c2.J()); } float I = c2.I(); float K = c2.K(); int E = c2.E(); float L = c2.L(); canvas.save(); float d = AbstractC0810PWv.d(K); float d2 = AbstractC0810PWv.d(I); if (E != 1122867) { Path path = this.g; path.reset(); f = v; path.addCircle(e.a, e.e, d, Path.Direction.CW); if (d2 > BitmapDescriptorFactory.HUE_RED) { path.addCircle(e.a, e.e, d2, Path.Direction.CCW); } this.i.setColor(E); this.i.setStyle(Paint.Style.FILL); canvas.drawPath(path, this.i); i = 1122867; } else { f = v; i = 1122867; } if (N != i) { this.i.setColor(N); this.i.setStyle(Paint.Style.STROKE); this.i.setStrokeWidth(AbstractC0810PWv.d(L)); canvas.drawCircle(e.a, e.e, d, this.i); } canvas.restore(); } i2++; uaqArr2 = uaqArr; bsv2 = bsv; v = f; } } f = v; bsv = bsv2; i2++; uaqArr2 = uaqArr; bsv2 = bsv; v = f; } QFQ.b(c); QFQ.b(e); } }