what-the-bank/sources/o/C15011gef.java

170 lines
5.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* renamed from: o.gef, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C15011gef extends C14968gdX {
/* JADX WARN: Code restructure failed: missing block: B:29:0x00b2, code lost:
if (r11 != null) goto L14;
*/
/* JADX WARN: Removed duplicated region for block: B:32:0x00b6 */
/* JADX WARN: Removed duplicated region for block: B:35:0x00b9 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ java.lang.String e(java.lang.String r18) {
/*
Method dump skipped, instructions count: 237
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C15011gef.e(java.lang.String):java.lang.String");
}
public static final String c(String str) {
C14957gcv.e(str, "");
return gdZ.d(str, "");
}
public static final String d(String str, String str2) {
int i;
Comparable comparable;
String invoke;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
String str3 = str;
C14957gcv.e(str3, "");
List e = C14964gdG.e(gdZ.a((CharSequence) str3));
List list = e;
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (true ^ gdZ.d((CharSequence) obj)) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = arrayList;
C14957gcv.e(arrayList2, "");
ArrayList arrayList3 = new ArrayList(arrayList2.size());
Iterator it = arrayList2.iterator();
while (true) {
i = 0;
if (!it.hasNext()) {
break;
}
String str4 = (String) it.next();
String str5 = str4;
int length = str5.length();
int i2 = 0;
while (true) {
if (i2 >= length) {
i2 = -1;
break;
}
char charAt = str5.charAt(i2);
if (!(Character.isWhitespace(charAt) || Character.isSpaceChar(charAt))) {
break;
}
i2++;
}
if (i2 == -1) {
i2 = str4.length();
}
arrayList3.add(Integer.valueOf(i2));
}
ArrayList arrayList4 = arrayList3;
C14957gcv.e(arrayList4, "");
Iterator it2 = arrayList4.iterator();
if (it2.hasNext()) {
comparable = (Comparable) it2.next();
while (it2.hasNext()) {
Comparable comparable2 = (Comparable) it2.next();
if (comparable.compareTo(comparable2) > 0) {
comparable = comparable2;
}
}
} else {
comparable = null;
}
Integer num = (Integer) comparable;
int intValue = num != null ? num.intValue() : 0;
int length2 = str.length();
int length3 = str2.length();
int size = e.size();
InterfaceC14894gbR<String, String> a = a(str2);
C14957gcv.e(e, "");
int size2 = e.size() - 1;
ArrayList arrayList5 = new ArrayList();
for (Object obj2 : list) {
if (i >= 0) {
String str6 = (String) obj2;
if ((i == 0 || i == size2) && gdZ.d((CharSequence) str6)) {
str6 = null;
} else {
String e2 = gdZ.e(str6, intValue);
if (e2 != null && (invoke = a.invoke(e2)) != null) {
str6 = invoke;
}
}
if (str6 != null) {
arrayList5.add(str6);
}
i++;
} else {
throw new ArithmeticException("Index overflow has happened.");
}
}
String obj3 = ((StringBuilder) C14881gav.c(arrayList5, new StringBuilder(length2 + (length3 * size)), "\n")).toString();
C14957gcv.c((Object) obj3, "");
return obj3;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.gef$LWm */
/* loaded from: classes.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<String, String> {
public static final LWm e = new LWm();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ String invoke(String str) {
String str2 = str;
C14957gcv.e(str2, "");
return str2;
}
LWm() {
super(1);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.gef$Sts */
/* loaded from: classes.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<String, String> {
private String e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ String invoke(String str) {
String str2 = str;
C14957gcv.e(str2, "");
StringBuilder sb = new StringBuilder();
sb.append(this.e);
sb.append(str2);
return sb.toString();
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(String str) {
super(1);
this.e = str;
}
}
private static final InterfaceC14894gbR<String, String> a(String str) {
return str.length() == 0 ? LWm.e : new Sts(str);
}
}