package o; import java.math.BigDecimal; import o.C14930gcM; import o.InterfaceC9040dcH; import o.ZI; /* renamed from: o.asf, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C3181asf extends ZI { public C0463Hc b; public String c; public C0491Hv d; public C0489Ht e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C3181asf(C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c16903sI, ""); } /* renamed from: o.asf$LWm */ /* loaded from: classes4.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } public final void e(double d) { C0491Hv c0491Hv = this.d; if (c0491Hv == null) { C14957gcv.a(""); c0491Hv = null; } c0491Hv.d = d; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.asl private C3181asf d; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.b(this.d, (InterfaceC9040dcH.HBt) obj); } { this.d = this; } }; if (this.f != 0) { ieS.e(this.f); } } private final int c() { C0463Hc c0463Hc = this.b; C0491Hv c0491Hv = null; if (c0463Hc == null) { C14957gcv.a(""); c0463Hc = null; } int intValue = c0463Hc.q.intValue(); C0491Hv c0491Hv2 = this.d; if (c0491Hv2 == null) { C14957gcv.a(""); } else { c0491Hv = c0491Hv2; } return intValue * ((int) c0491Hv.d); } public static /* synthetic */ void a(double d, boolean z, int i, int i2, C3181asf c3181asf, InterfaceC9040dcH.HBt hBt) { C14957gcv.e(c3181asf, ""); hBt.d(d > 0.0d); C0489Ht c0489Ht = null; if (z) { if (i < i2) { hBt.c(i); } else { hBt.c(i2); } String str = c3181asf.c; if (str == null) { C14957gcv.a(""); str = null; } Double c = C6583cXR.c(str); C0491Hv c0491Hv = c3181asf.d; if (c0491Hv == null) { C14957gcv.a(""); c0491Hv = null; } final double d2 = c0491Hv.d; C0489Ht c0489Ht2 = c3181asf.e; if (c0489Ht2 == null) { C14957gcv.a(""); c0489Ht2 = null; } int i3 = c0489Ht2.d; C0489Ht c0489Ht3 = c3181asf.e; if (c0489Ht3 == null) { C14957gcv.a(""); } else { c0489Ht = c0489Ht3; } int i4 = c0489Ht.e; C14957gcv.c(c, ""); if (c.doubleValue() < c3181asf.c()) { ZI.IeS ieS = new ZI.IeS(d2) { // from class: o.ash private double a; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.d(this.a, (InterfaceC9040dcH.HBt) obj); } { this.a = d2; } }; if (c3181asf.f != 0) { ieS.e(c3181asf.f); return; } return; } if (d2 > i4) { ZI.IeS ieS2 = new ZI.IeS(d2) { // from class: o.asp private double e; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.b(this.e, (InterfaceC9040dcH.HBt) obj); } { this.e = d2; } }; if (c3181asf.f != 0) { ieS2.e(c3181asf.f); return; } return; } if (d2 > i3) { ZI.IeS ieS3 = new ZI.IeS(d2) { // from class: o.asb private double e; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.c(this.e, (InterfaceC9040dcH.HBt) obj); } { this.e = d2; } }; if (c3181asf.f != 0) { ieS3.e(c3181asf.f); return; } return; } return; } hBt.c(i2); String str2 = c3181asf.c; if (str2 == null) { C14957gcv.a(""); str2 = null; } Double c2 = C6583cXR.c(str2); C0491Hv c0491Hv2 = c3181asf.d; if (c0491Hv2 == null) { C14957gcv.a(""); c0491Hv2 = null; } final double d3 = c0491Hv2.d; C0489Ht c0489Ht4 = c3181asf.e; if (c0489Ht4 == null) { C14957gcv.a(""); } else { c0489Ht = c0489Ht4; } int i5 = c0489Ht.e; C14957gcv.c(c2, ""); if (c2.doubleValue() < c3181asf.c()) { ZI.IeS ieS4 = new ZI.IeS(d3) { // from class: o.ash private double a; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.d(this.a, (InterfaceC9040dcH.HBt) obj); } { this.a = d3; } }; if (c3181asf.f != 0) { ieS4.e(c3181asf.f); return; } return; } if (d3 > i5) { ZI.IeS ieS5 = new ZI.IeS(d3) { // from class: o.asp private double e; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.b(this.e, (InterfaceC9040dcH.HBt) obj); } { this.e = d3; } }; if (c3181asf.f != 0) { ieS5.e(c3181asf.f); } } } public static /* synthetic */ void c(double d, InterfaceC9040dcH.HBt hBt) { hBt.c(d); hBt.aS_(); hBt.d(false); } public static /* synthetic */ void b(final C3181asf c3181asf, InterfaceC9040dcH.HBt hBt) { C14957gcv.e(c3181asf, ""); hBt.d(); C0489Ht c0489Ht = c3181asf.e; C0491Hv c0491Hv = null; if (c0489Ht == null) { C14957gcv.a(""); c0489Ht = null; } final int i = c0489Ht.d; C0489Ht c0489Ht2 = c3181asf.e; if (c0489Ht2 == null) { C14957gcv.a(""); c0489Ht2 = null; } final int i2 = c0489Ht2.e; C0489Ht c0489Ht3 = c3181asf.e; if (c0489Ht3 == null) { C14957gcv.a(""); c0489Ht3 = null; } final boolean z = c0489Ht3.c; C0491Hv c0491Hv2 = c3181asf.d; if (c0491Hv2 == null) { C14957gcv.a(""); } else { c0491Hv = c0491Hv2; } final double d = c0491Hv.d; ZI.IeS ieS = new ZI.IeS(d, z, i, i2, c3181asf) { // from class: o.asj private double a; private int b; private int c; private boolean d; private C3181asf e; @Override // o.ZI.IeS public final void e(Object obj) { C3181asf.a(this.a, this.d, this.c, this.b, this.e, (InterfaceC9040dcH.HBt) obj); } { this.a = d; this.d = z; this.c = i; this.b = i2; this.e = c3181asf; } }; if (c3181asf.f != 0) { ieS.e(c3181asf.f); } hBt.i(); hBt.d(c3181asf.c()); } public static /* synthetic */ void d(C14930gcM.HBt hBt, InterfaceC9040dcH.HBt hBt2) { C14957gcv.e(hBt, ""); hBt2.e(hBt.d); } public static /* synthetic */ void a(C3181asf c3181asf, InterfaceC9040dcH.HBt hBt) { String a; C14957gcv.e(c3181asf, ""); hBt.a(); C0489Ht c0489Ht = c3181asf.e; C0489Ht c0489Ht2 = null; if (c0489Ht == null) { C14957gcv.a(""); c0489Ht = null; } int i = c0489Ht.d; C0489Ht c0489Ht3 = c3181asf.e; if (c0489Ht3 == null) { C14957gcv.a(""); c0489Ht3 = null; } if (i < c0489Ht3.e) { C0489Ht c0489Ht4 = c3181asf.e; if (c0489Ht4 == null) { C14957gcv.a(""); } else { c0489Ht2 = c0489Ht4; } BigDecimal valueOf = BigDecimal.valueOf(c0489Ht2.d); C14957gcv.c(valueOf, ""); a = C6583cXR.a(valueOf); C14957gcv.c((Object) a, ""); } else { C0489Ht c0489Ht5 = c3181asf.e; if (c0489Ht5 == null) { C14957gcv.a(""); } else { c0489Ht2 = c0489Ht5; } BigDecimal valueOf2 = BigDecimal.valueOf(c0489Ht2.e); C14957gcv.c(valueOf2, ""); a = C6583cXR.a(valueOf2); C14957gcv.c((Object) a, ""); } hBt.d(a); hBt.aQ_(); hBt.i(); hBt.d(c3181asf.c()); } public static /* synthetic */ void d(double d, InterfaceC9040dcH.HBt hBt) { hBt.c(d); hBt.aR_(); hBt.d(false); } public static /* synthetic */ void b(double d, InterfaceC9040dcH.HBt hBt) { hBt.c(d); hBt.g(); hBt.d(false); } static { new LWm((byte) 0); } }