120 lines
4.6 KiB
Java
120 lines
4.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import android.util.Base64;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import o.C15715hv;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class CR extends C16157lj {
|
||
|
private static int a = 1;
|
||
|
private static int b = 0;
|
||
|
private static byte d = 6;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public CR(Resources resources, SharedPreferences sharedPreferences) {
|
||
|
super(resources, sharedPreferences);
|
||
|
C14957gcv.e(resources, "");
|
||
|
C14957gcv.e(sharedPreferences, "");
|
||
|
}
|
||
|
|
||
|
private void n(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] ^ d);
|
||
|
}
|
||
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
||
|
}
|
||
|
|
||
|
public final C0369Fc b(boolean z, boolean z2, boolean z3) {
|
||
|
String str;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 61;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
C14957gcv.c((Object) this.e.getString(C15715hv.tOB.empty), "");
|
||
|
C14957gcv.c((Object) this.e.getString(C15715hv.tOB.empty), "");
|
||
|
throw null;
|
||
|
}
|
||
|
String string = this.e.getString(C15715hv.tOB.empty);
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
String string2 = this.e.getString(C15715hv.tOB.empty);
|
||
|
C14957gcv.c((Object) string2, "");
|
||
|
boolean z4 = false;
|
||
|
if (z && z2) {
|
||
|
int i3 = a + 17;
|
||
|
b = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
str = this.e.getString(C15715hv.tOB.auto_single_form_terms_and_conditions_mf_check_box_title);
|
||
|
if (!(!str.startsWith(",*,)"))) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
n(str.substring(4), objArr);
|
||
|
str = ((String) objArr[0]).intern();
|
||
|
}
|
||
|
C14957gcv.c((Object) str, "");
|
||
|
String string3 = this.e.getString(C15715hv.tOB.auto_single_form_terms_and_conditions_scbs_check_box_title);
|
||
|
if (string3.startsWith(",*,)")) {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
n(string3.substring(4), objArr2);
|
||
|
string3 = ((String) objArr2[0]).intern();
|
||
|
}
|
||
|
string2 = string3;
|
||
|
C14957gcv.c((Object) string2, "");
|
||
|
z4 = true;
|
||
|
} else {
|
||
|
if (z) {
|
||
|
int i5 = b + 75;
|
||
|
a = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
if (!z2) {
|
||
|
String string4 = this.e.getString(C15715hv.tOB.auto_single_form_terms_and_conditions_mf_check_box_title);
|
||
|
if (string4.startsWith(",*,)")) {
|
||
|
int i6 = b + 121;
|
||
|
a = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
n(string4.substring(4), objArr3);
|
||
|
string4 = ((String) objArr3[0]).intern();
|
||
|
}
|
||
|
string = string4;
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
str = string;
|
||
|
}
|
||
|
}
|
||
|
if (!z && z2) {
|
||
|
String string5 = this.e.getString(C15715hv.tOB.auto_single_form_terms_and_conditions_innovestx_only_check_box_title);
|
||
|
if (string5.startsWith(",*,)")) {
|
||
|
int i8 = b + 123;
|
||
|
a = i8 % 128;
|
||
|
if (i8 % 2 == 0) {
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
n(string5.substring(4), objArr4);
|
||
|
((String) objArr4[0]).intern();
|
||
|
throw null;
|
||
|
}
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
n(string5.substring(4), objArr5);
|
||
|
string5 = ((String) objArr5[0]).intern();
|
||
|
}
|
||
|
string = string5;
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
} else if (!z) {
|
||
|
int i9 = b + 7;
|
||
|
a = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
if (z3) {
|
||
|
string = this.e.getString(C15715hv.tOB.auto_single_form_terms_and_conditions_omnibus_check_box_title);
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
}
|
||
|
}
|
||
|
str = string;
|
||
|
}
|
||
|
return new C0369Fc(z4, str, string2);
|
||
|
}
|
||
|
}
|