353 lines
14 KiB
Java
353 lines
14 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import android.util.Base64;
|
||
|
import com.prolificinteractive.materialcalendarview.CalendarDay;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.function.IntConsumer;
|
||
|
import java.util.stream.IntStream;
|
||
|
import o.C15715hv;
|
||
|
import org.threeten.bp.OffsetDateTime;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class BM extends C16157lj {
|
||
|
private static byte a = 6;
|
||
|
private static int b = 0;
|
||
|
private static int d = 1;
|
||
|
|
||
|
private void q(String str, Object[] objArr) {
|
||
|
byte[] decode = Base64.decode(str, 0);
|
||
|
byte[] bArr = new byte[decode.length];
|
||
|
for (int i = 0; i < decode.length; i++) {
|
||
|
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ a);
|
||
|
}
|
||
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
||
|
}
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public BM(Resources resources, SharedPreferences sharedPreferences) {
|
||
|
super(resources, sharedPreferences);
|
||
|
}
|
||
|
|
||
|
public final VS a(int i, OffsetDateTime offsetDateTime, OffsetDateTime offsetDateTime2, OffsetDateTime offsetDateTime3, OffsetDateTime offsetDateTime4, boolean z, OffsetDateTime offsetDateTime5, boolean z2) {
|
||
|
if (i == 0) {
|
||
|
return a(offsetDateTime, offsetDateTime3 != null ? offsetDateTime3 : e().plusDays(1L), offsetDateTime4 != null ? offsetDateTime4 : e().plusDays(1L), z, offsetDateTime5, z2, C15715hv.tOB.schedule_setup_once_001);
|
||
|
}
|
||
|
if (i == 1) {
|
||
|
return d(offsetDateTime == null ? e().plusDays(1L) : offsetDateTime, offsetDateTime3 != null ? offsetDateTime3 : e().plusDays(1L), offsetDateTime4 == null ? e().plusDays(1L) : offsetDateTime4, z, offsetDateTime5, z2);
|
||
|
}
|
||
|
if (i == 2) {
|
||
|
return d(offsetDateTime, offsetDateTime2 == null ? offsetDateTime.plusDays(1L) : offsetDateTime2, offsetDateTime3 == null ? e().plusDays(1L) : offsetDateTime3, offsetDateTime4 == null ? e().plusDays(1L) : offsetDateTime4, z, offsetDateTime5, z2);
|
||
|
}
|
||
|
if (i != 3) {
|
||
|
return null;
|
||
|
}
|
||
|
return a(offsetDateTime, offsetDateTime3 != null ? offsetDateTime3 : e().plusDays(1L), offsetDateTime4 == null ? e().plusDays(1L) : offsetDateTime4, z, offsetDateTime5, z2, C15715hv.tOB.schedule_setup_once_002);
|
||
|
}
|
||
|
|
||
|
private VS a(OffsetDateTime offsetDateTime, OffsetDateTime offsetDateTime2, OffsetDateTime offsetDateTime3, boolean z, OffsetDateTime offsetDateTime4, boolean z2, int i) {
|
||
|
int i2 = 2 % 2;
|
||
|
Object obj = null;
|
||
|
if (offsetDateTime4 == null) {
|
||
|
int i3 = b + 113;
|
||
|
d = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
e();
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
offsetDateTime4 = e();
|
||
|
}
|
||
|
VS c = VS.c();
|
||
|
c.i = xUo.e();
|
||
|
String string = this.e.getString(i);
|
||
|
if (string.startsWith(",*,)")) {
|
||
|
int i4 = d + 97;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
q(string.substring(4), objArr);
|
||
|
((String) objArr[0]).intern();
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
q(string.substring(4), objArr2);
|
||
|
string = ((String) objArr2[0]).intern();
|
||
|
}
|
||
|
c.p = string;
|
||
|
c.l = false;
|
||
|
c.r = C15715hv.LWm.light_gray;
|
||
|
c.j = CalendarDay.from(cXG.a(offsetDateTime2.minusDays(offsetDateTime2.getDayOfMonth()).plusDays(1L)));
|
||
|
c.h = CalendarDay.from(cXG.a(offsetDateTime3.with((gtJ) offsetDateTime3.getMonth()).with(gtO.lastDayOfMonth())));
|
||
|
c.c = CalendarDay.from(cXG.a(offsetDateTime2));
|
||
|
c.g = CalendarDay.from(cXG.a(offsetDateTime3));
|
||
|
c.b = CalendarDay.from(cXG.a(offsetDateTime4));
|
||
|
c.a = z;
|
||
|
c.d = z2;
|
||
|
final ArrayList arrayList = new ArrayList();
|
||
|
IntStream.range(offsetDateTime2.getYear(), offsetDateTime3.getYear() + 1).forEach(new IntConsumer(arrayList) { // from class: o.BJ
|
||
|
private ArrayList e;
|
||
|
|
||
|
@Override // java.util.function.IntConsumer
|
||
|
public final void accept(int i5) {
|
||
|
this.e.add(Integer.valueOf(i5));
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = arrayList;
|
||
|
}
|
||
|
});
|
||
|
c.n = arrayList;
|
||
|
if (offsetDateTime != null) {
|
||
|
c.f8415o = CalendarDay.from(cXG.a(offsetDateTime));
|
||
|
int i5 = b + 51;
|
||
|
d = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
}
|
||
|
int i7 = d + 79;
|
||
|
b = i7 % 128;
|
||
|
if (i7 % 2 == 0) {
|
||
|
return c;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0017, code lost:
|
||
|
|
||
|
r13 = e();
|
||
|
r1 = o.BM.b + 5;
|
||
|
o.BM.d = r1 % 128;
|
||
|
r1 = r1 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0015, code lost:
|
||
|
|
||
|
if (r13 == null) goto L8;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost:
|
||
|
|
||
|
if (r13 == null) goto L8;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private o.VS d(org.threeten.bp.OffsetDateTime r9, org.threeten.bp.OffsetDateTime r10, org.threeten.bp.OffsetDateTime r11, boolean r12, org.threeten.bp.OffsetDateTime r13, boolean r14) {
|
||
|
/*
|
||
|
r8 = this;
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = o.BM.d
|
||
|
int r1 = r1 + 27
|
||
|
int r2 = r1 % 128
|
||
|
o.BM.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 0
|
||
|
if (r1 == 0) goto L15
|
||
|
r1 = 42
|
||
|
int r1 = r1 / r2
|
||
|
if (r13 != 0) goto L24
|
||
|
goto L17
|
||
|
L15:
|
||
|
if (r13 != 0) goto L24
|
||
|
L17:
|
||
|
org.threeten.bp.OffsetDateTime r13 = e()
|
||
|
int r1 = o.BM.b
|
||
|
int r1 = r1 + 5
|
||
|
int r3 = r1 % 128
|
||
|
o.BM.d = r3
|
||
|
int r1 = r1 % r0
|
||
|
L24:
|
||
|
o.VS r1 = o.VS.c()
|
||
|
int r3 = o.xUo.e()
|
||
|
r1.i = r3
|
||
|
android.content.res.Resources r3 = r8.e
|
||
|
int r4 = o.C15715hv.tOB.schedule_setup_monthly_startdate_001
|
||
|
java.lang.String r3 = r3.getString(r4)
|
||
|
java.lang.String r4 = ",*,)"
|
||
|
boolean r5 = r3.startsWith(r4)
|
||
|
r6 = 4
|
||
|
r7 = 1
|
||
|
if (r5 == 0) goto L51
|
||
|
java.lang.String r3 = r3.substring(r6)
|
||
|
java.lang.Object[] r5 = new java.lang.Object[r7]
|
||
|
r8.q(r3, r5)
|
||
|
r3 = r5[r2]
|
||
|
java.lang.String r3 = (java.lang.String) r3
|
||
|
java.lang.String r3 = r3.intern()
|
||
|
L51:
|
||
|
r1.p = r3
|
||
|
r1.l = r7
|
||
|
java.lang.String r3 = r8.a(r9)
|
||
|
r1.m = r3
|
||
|
android.content.res.Resources r3 = r8.e
|
||
|
int r5 = o.C15715hv.tOB.schedule_setup_monthly_startdate_004
|
||
|
java.lang.String r3 = r3.getString(r5)
|
||
|
boolean r4 = r3.startsWith(r4)
|
||
|
if (r4 == 0) goto L83
|
||
|
int r4 = o.BM.d
|
||
|
int r4 = r4 + 23
|
||
|
int r5 = r4 % 128
|
||
|
o.BM.b = r5
|
||
|
int r4 = r4 % r0
|
||
|
java.lang.String r0 = r3.substring(r6)
|
||
|
java.lang.Object[] r3 = new java.lang.Object[r7]
|
||
|
r8.q(r0, r3)
|
||
|
r0 = r3[r2]
|
||
|
java.lang.String r0 = (java.lang.String) r0
|
||
|
java.lang.String r3 = r0.intern()
|
||
|
L83:
|
||
|
r1.f = r3
|
||
|
int r0 = o.C15715hv.LWm.light_gray
|
||
|
r1.r = r0
|
||
|
int r0 = r10.getDayOfMonth()
|
||
|
long r2 = (long) r0
|
||
|
org.threeten.bp.OffsetDateTime r0 = r10.minusDays(r2)
|
||
|
r2 = 1
|
||
|
org.threeten.bp.OffsetDateTime r0 = r0.plusDays(r2)
|
||
|
java.util.Date r0 = o.cXG.a(r0)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r0 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r0)
|
||
|
r1.j = r0
|
||
|
o.gsx r0 = r11.getMonth()
|
||
|
org.threeten.bp.OffsetDateTime r0 = r11.with(r0)
|
||
|
o.gtJ r4 = o.gtO.lastDayOfMonth()
|
||
|
org.threeten.bp.OffsetDateTime r0 = r0.with(r4)
|
||
|
java.util.Date r0 = o.cXG.a(r0)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r0 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r0)
|
||
|
r1.h = r0
|
||
|
java.util.Date r10 = o.cXG.a(r10)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r10 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r10)
|
||
|
r1.c = r10
|
||
|
org.threeten.bp.OffsetDateTime r10 = r11.minusDays(r2)
|
||
|
java.util.Date r10 = o.cXG.a(r10)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r10 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r10)
|
||
|
r1.g = r10
|
||
|
java.util.Date r9 = o.cXG.a(r9)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r9 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r9)
|
||
|
r1.f8415o = r9
|
||
|
java.util.Date r9 = o.cXG.a(r13)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r9 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r9)
|
||
|
r1.b = r9
|
||
|
r1.a = r12
|
||
|
r1.d = r14
|
||
|
return r1
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.BM.d(org.threeten.bp.OffsetDateTime, org.threeten.bp.OffsetDateTime, org.threeten.bp.OffsetDateTime, boolean, org.threeten.bp.OffsetDateTime, boolean):o.VS");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0017, code lost:
|
||
|
|
||
|
r12 = e();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x0015, code lost:
|
||
|
|
||
|
if (r12 == null) goto L8;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost:
|
||
|
|
||
|
if (r12 == null) goto L8;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private o.VS d(org.threeten.bp.OffsetDateTime r7, org.threeten.bp.OffsetDateTime r8, org.threeten.bp.OffsetDateTime r9, org.threeten.bp.OffsetDateTime r10, boolean r11, org.threeten.bp.OffsetDateTime r12, boolean r13) {
|
||
|
/*
|
||
|
r6 = this;
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = o.BM.d
|
||
|
int r1 = r1 + 101
|
||
|
int r2 = r1 % 128
|
||
|
o.BM.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 0
|
||
|
if (r1 == 0) goto L15
|
||
|
r1 = 45
|
||
|
int r1 = r1 / r2
|
||
|
if (r12 != 0) goto L1b
|
||
|
goto L17
|
||
|
L15:
|
||
|
if (r12 != 0) goto L1b
|
||
|
L17:
|
||
|
org.threeten.bp.OffsetDateTime r12 = e()
|
||
|
L1b:
|
||
|
o.VS r1 = o.VS.c()
|
||
|
int r3 = o.xUo.e()
|
||
|
r1.i = r3
|
||
|
android.content.res.Resources r3 = r6.e
|
||
|
int r4 = o.C15715hv.tOB.schedule_setup_monthly_enddate_001
|
||
|
java.lang.String r3 = r3.getString(r4)
|
||
|
java.lang.String r4 = ",*,)"
|
||
|
boolean r4 = r3.startsWith(r4)
|
||
|
r5 = 1
|
||
|
if (r4 == 0) goto L48
|
||
|
r4 = 4
|
||
|
java.lang.String r3 = r3.substring(r4)
|
||
|
java.lang.Object[] r4 = new java.lang.Object[r5]
|
||
|
r6.q(r3, r4)
|
||
|
r2 = r4[r2]
|
||
|
java.lang.String r2 = (java.lang.String) r2
|
||
|
java.lang.String r3 = r2.intern()
|
||
|
L48:
|
||
|
r1.p = r3
|
||
|
r1.l = r5
|
||
|
java.lang.String r2 = r6.a(r7)
|
||
|
r1.m = r2
|
||
|
java.lang.String r2 = r6.a(r8)
|
||
|
r1.f = r2
|
||
|
int r2 = o.C15715hv.LWm.fake_black
|
||
|
r1.r = r2
|
||
|
int r2 = r9.getDayOfMonth()
|
||
|
long r2 = (long) r2
|
||
|
org.threeten.bp.OffsetDateTime r9 = r9.minusDays(r2)
|
||
|
r2 = 1
|
||
|
org.threeten.bp.OffsetDateTime r9 = r9.plusDays(r2)
|
||
|
java.util.Date r9 = o.cXG.a(r9)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r9 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r9)
|
||
|
r1.j = r9
|
||
|
o.gsx r9 = r10.getMonth()
|
||
|
org.threeten.bp.OffsetDateTime r9 = r10.with(r9)
|
||
|
o.gtJ r2 = o.gtO.lastDayOfMonth()
|
||
|
org.threeten.bp.OffsetDateTime r9 = r9.with(r2)
|
||
|
java.util.Date r9 = o.cXG.a(r9)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r9 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r9)
|
||
|
r1.h = r9
|
||
|
java.util.Date r9 = o.cXG.a(r7)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r9 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r9)
|
||
|
r1.c = r9
|
||
|
java.util.Date r9 = o.cXG.a(r10)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r9 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r9)
|
||
|
r1.g = r9
|
||
|
java.util.Date r7 = o.cXG.a(r7)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r7 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r7)
|
||
|
r1.k = r7
|
||
|
java.util.Date r7 = o.cXG.a(r8)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r7 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r7)
|
||
|
r1.f8415o = r7
|
||
|
java.util.Date r7 = o.cXG.a(r12)
|
||
|
com.prolificinteractive.materialcalendarview.CalendarDay r7 = com.prolificinteractive.materialcalendarview.CalendarDay.from(r7)
|
||
|
r1.b = r7
|
||
|
r1.a = r11
|
||
|
r1.d = r13
|
||
|
int r7 = o.BM.d
|
||
|
int r7 = r7 + 117
|
||
|
int r8 = r7 % 128
|
||
|
o.BM.b = r8
|
||
|
int r7 = r7 % r0
|
||
|
return r1
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.BM.d(org.threeten.bp.OffsetDateTime, org.threeten.bp.OffsetDateTime, org.threeten.bp.OffsetDateTime, org.threeten.bp.OffsetDateTime, boolean, org.threeten.bp.OffsetDateTime, boolean):o.VS");
|
||
|
}
|
||
|
|
||
|
public static OffsetDateTime e(CalendarDay calendarDay) {
|
||
|
return a(calendarDay.getCalendar());
|
||
|
}
|
||
|
|
||
|
public final String b(CalendarDay calendarDay) {
|
||
|
return j(a(calendarDay.getCalendar()));
|
||
|
}
|
||
|
}
|