package p010d; /* renamed from: d.g0 */ /* loaded from: classes.dex */ public class C0570g0 { /* renamed from: d */ public static C0570g0 f2067d; /* renamed from: a */ public long f2068a; /* renamed from: b */ public long f2069b; /* renamed from: c */ public int f2070c; /* renamed from: b */ public static C0570g0 m3378b() { if (f2067d == null) { f2067d = new C0570g0(); } return f2067d; } /* renamed from: a */ public void m3379a(long j, double d, double d2) { float f; float f2 = ((float) (j - 946728000000L)) / 8.64E7f; double d3 = (0.01720197f * f2) + 6.24006f; Double.isNaN(d3); double sin = (Math.sin(d3) * 0.03341960161924362d) + d3 + (Math.sin(2.0f * f) * 3.4906598739326E-4d) + (Math.sin(f * 3.0f) * 5.236000106378924E-6d) + 1.796593063d + 3.141592653589793d; double d4 = (-d2) / 360.0d; double d5 = f2 - 9.0E-4f; Double.isNaN(d5); double round = ((float) Math.round(d5 - d4)) + 9.0E-4f; Double.isNaN(round); double sin2 = round + d4 + (Math.sin(d3) * 0.0053d) + (Math.sin(2.0d * sin) * (-0.0069d)); double asin = Math.asin(Math.sin(sin) * Math.sin(0.4092797040939331d)); double d6 = 0.01745329238474369d * d; double sin3 = (Math.sin(-0.10471975803375244d) - (Math.sin(d6) * Math.sin(asin))) / (Math.cos(d6) * Math.cos(asin)); if (sin3 >= 1.0d) { this.f2070c = 1; } else if (sin3 > -1.0d) { double acos = (float) (Math.acos(sin3) / 6.283185307179586d); Double.isNaN(acos); this.f2068a = Math.round((sin2 + acos) * 8.64E7d) + 946728000000L; Double.isNaN(acos); long round2 = Math.round((sin2 - acos) * 8.64E7d) + 946728000000L; this.f2069b = round2; if (round2 >= j || this.f2068a <= j) { this.f2070c = 1; return; } else { this.f2070c = 0; return; } } else { this.f2070c = 0; } this.f2068a = -1L; this.f2069b = -1L; } }