package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.Arrays; import java.util.Locale; import org.threeten.bp.OffsetDateTime; /* renamed from: o.ns, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16389ns extends C16157lj { @InterfaceC13391fZD public C16389ns(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } private static String o(OffsetDateTime offsetDateTime) { String format = offsetDateTime != null ? offsetDateTime.format(C15554gto.ofPattern("yyyy-MM-dd").withLocale(Locale.ENGLISH).withChronology(gsV.INSTANCE)) : null; return format == null ? "" : format; } private static String b(C0367Fb c0367Fb) { if (c0367Fb == null) { return ""; } gcH gch = gcH.d; String format = String.format("%s %s%s %s %s", Arrays.copyOf(new Object[]{c0367Fb.s, c0367Fb.t, "xx", "xxxx", c0367Fb.r}, 5)); C14957gcv.c((Object) format, ""); return format; } /* renamed from: o.ns$RVV */ /* loaded from: classes3.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } /* JADX WARN: Removed duplicated region for block: B:11:0x0045 */ /* JADX WARN: Removed duplicated region for block: B:13:0x004b */ /* JADX WARN: Removed duplicated region for block: B:15:0x0050 */ /* JADX WARN: Removed duplicated region for block: B:17:0x0054 */ /* JADX WARN: Removed duplicated region for block: B:20:0x0067 */ /* JADX WARN: Removed duplicated region for block: B:22:0x006e */ /* JADX WARN: Removed duplicated region for block: B:26:0x0071 */ /* JADX WARN: Removed duplicated region for block: B:27:0x006a */ /* JADX WARN: Removed duplicated region for block: B:28:0x0057 */ /* JADX WARN: Removed duplicated region for block: B:29:0x004d */ /* JADX WARN: Removed duplicated region for block: B:30:0x0048 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static o.GF d(o.C0367Fb r23, java.lang.String r24, org.threeten.bp.OffsetDateTime r25, org.threeten.bp.OffsetDateTime r26, java.lang.String r27, boolean r28, java.lang.String r29) { /* r1 = r23 r2 = 0 java.lang.String r3 = "" r4 = 0 if (r24 == 0) goto L3f if (r1 == 0) goto L10 java.lang.String r0 = r1.v // Catch: java.lang.NumberFormatException -> Le goto L11 Le: r0 = move-exception goto L34 L10: r0 = r2 L11: if (r0 == 0) goto L3f java.lang.String r0 = o.C6583cXR.y(r24) // Catch: java.lang.NumberFormatException -> Le o.C14957gcv.c(r0, r3) // Catch: java.lang.NumberFormatException -> Le double r6 = java.lang.Double.parseDouble(r0) // Catch: java.lang.NumberFormatException -> Le java.lang.String r0 = r1.v // Catch: java.lang.NumberFormatException -> L32 java.lang.String r0 = o.C6583cXR.y(r0) // Catch: java.lang.NumberFormatException -> L32 o.C14957gcv.c(r0, r3) // Catch: java.lang.NumberFormatException -> L32 double r4 = java.lang.Double.parseDouble(r0) // Catch: java.lang.NumberFormatException -> L32 double r8 = r4 + r6 r14 = r4 r12 = r6 r16 = r8 goto L43 L32: r0 = move-exception goto L35 L34: r6 = r4 L35: java.lang.Throwable r0 = (java.lang.Throwable) r0 o.guQ.e(r0) r14 = r4 r16 = r14 r12 = r6 goto L43 L3f: r12 = r4 r14 = r12 r16 = r14 L43: if (r1 == 0) goto L48 java.lang.String r0 = r1.S goto L49 L48: r0 = r2 L49: if (r0 != 0) goto L4d r10 = r3 goto L4e L4d: r10 = r0 L4e: if (r1 == 0) goto L52 java.lang.String r2 = r1.g L52: if (r2 != 0) goto L57 r21 = r3 goto L59 L57: r21 = r2 L59: java.lang.String r11 = b(r23) java.lang.String r18 = o(r26) java.lang.String r19 = o(r25) if (r27 != 0) goto L6a r20 = r3 goto L6c L6a: r20 = r27 L6c: if (r29 != 0) goto L71 r22 = r3 goto L73 L71: r22 = r29 L73: o.GF r0 = new o.GF r8 = r0 r9 = r28 r8.(r9, r10, r11, r12, r14, r16, r18, r19, r20, r21, r22) return r0 */ throw new UnsupportedOperationException("Method not decompiled: o.C16389ns.d(o.Fb, java.lang.String, org.threeten.bp.OffsetDateTime, org.threeten.bp.OffsetDateTime, java.lang.String, boolean, java.lang.String):o.GF"); } /* JADX WARN: Removed duplicated region for block: B:22:0x006e */ /* JADX WARN: Removed duplicated region for block: B:25:0x0079 */ /* JADX WARN: Removed duplicated region for block: B:27:0x0080 */ /* JADX WARN: Removed duplicated region for block: B:30:0x0086 */ /* JADX WARN: Removed duplicated region for block: B:32:0x008c */ /* JADX WARN: Removed duplicated region for block: B:36:0x0089 */ /* JADX WARN: Removed duplicated region for block: B:37:0x007d */ /* JADX WARN: Removed duplicated region for block: B:38:0x0072 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static o.C0455Gy a(o.C0367Fb r21, o.C0435Gm r22, java.lang.String r23, java.lang.String r24, java.lang.String r25, java.lang.String r26, java.lang.String r27) { /* r1 = r21 r2 = r22 r3 = 0 if (r2 == 0) goto Lb java.lang.String r0 = r2.f8186o r10 = r0 goto Lc Lb: r10 = r3 Lc: r4 = 0 if (r2 == 0) goto L16 o.Gx r0 = r2.h if (r0 == 0) goto L16 boolean r0 = r0.e goto L17 L16: r0 = r4 L17: if (r2 == 0) goto L1c java.lang.String r5 = r2.e goto L1d L1c: r5 = r3 L1d: r6 = 0 if (r23 == 0) goto L6a java.lang.String r8 = "" if (r0 == 0) goto L33 if (r5 == 0) goto L33 java.lang.String r0 = o.C6583cXR.y(r5) // Catch: java.lang.NumberFormatException -> L38 o.C14957gcv.c(r0, r8) // Catch: java.lang.NumberFormatException -> L38 double r11 = java.lang.Double.parseDouble(r0) // Catch: java.lang.NumberFormatException -> L38 goto L4e L33: if (r1 == 0) goto L3a java.lang.String r0 = r1.v // Catch: java.lang.NumberFormatException -> L38 goto L3b L38: r0 = move-exception goto L4b L3a: r0 = r3 L3b: if (r0 == 0) goto L4d java.lang.String r0 = r1.v // Catch: java.lang.NumberFormatException -> L38 java.lang.String r0 = o.C6583cXR.y(r0) // Catch: java.lang.NumberFormatException -> L38 o.C14957gcv.c(r0, r8) // Catch: java.lang.NumberFormatException -> L38 double r11 = java.lang.Double.parseDouble(r0) // Catch: java.lang.NumberFormatException -> L38 goto L4e L4b: r11 = r6 goto L62 L4d: r11 = r6 L4e: java.lang.String r0 = o.C6583cXR.y(r23) // Catch: java.lang.NumberFormatException -> L61 o.C14957gcv.c(r0, r8) // Catch: java.lang.NumberFormatException -> L61 double r6 = java.lang.Double.parseDouble(r0) // Catch: java.lang.NumberFormatException -> L61 double r8 = r11 + r6 r19 = r6 r6 = r11 r11 = r19 goto L6c L61: r0 = move-exception L62: java.lang.Throwable r0 = (java.lang.Throwable) r0 o.guQ.e(r0) r8 = r6 r6 = r11 goto L6b L6a: r8 = r6 L6b: r11 = r8 L6c: if (r1 == 0) goto L72 java.lang.String r0 = r1.S r5 = r0 goto L73 L72: r5 = r3 L73: java.lang.String r0 = b(r21) if (r1 == 0) goto L7d java.lang.String r1 = r1.g r15 = r1 goto L7e L7d: r15 = r3 L7e: if (r2 == 0) goto L82 java.lang.String r3 = r2.l L82: r16 = r3 if (r2 == 0) goto L89 boolean r1 = r2.i goto L8a L89: r1 = r4 L8a: if (r2 == 0) goto L8e boolean r4 = r2.j L8e: o.Gy r2 = new o.Gy java.lang.Double r3 = java.lang.Double.valueOf(r11) java.lang.Double r11 = java.lang.Double.valueOf(r6) java.lang.Double r9 = java.lang.Double.valueOf(r8) java.lang.Boolean r17 = java.lang.Boolean.valueOf(r1) java.lang.Boolean r18 = java.lang.Boolean.valueOf(r4) r4 = r2 r6 = r0 r7 = r3 r8 = r11 r11 = r24 r12 = r25 r13 = r26 r14 = r27 r4.(r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18) return r2 */ throw new UnsupportedOperationException("Method not decompiled: o.C16389ns.a(o.Fb, o.Gm, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String):o.Gy"); } static { new RVV((byte) 0); } }