what-the-bank/sources/com/google/android/libraries/places/internal/zzagi.java

141 lines
4.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/* loaded from: classes2.dex */
final class zzagi {
private static final char[] zza;
static {
char[] cArr = new char[80];
zza = cArr;
Arrays.fill(cArr, ' ');
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String zza(zzagg zzaggVar, String str) {
StringBuilder sb = new StringBuilder();
sb.append("# ");
sb.append(str);
zzd(zzaggVar, sb, 0);
return sb.toString();
}
static void zzb(StringBuilder sb, int i, String str, Object obj) {
if (obj instanceof List) {
Iterator it = ((List) obj).iterator();
while (it.hasNext()) {
zzb(sb, i, str, it.next());
}
return;
}
if (obj instanceof Map) {
Iterator it2 = ((Map) obj).entrySet().iterator();
while (it2.hasNext()) {
zzb(sb, i, str, (Map.Entry) it2.next());
}
return;
}
sb.append('\n');
zzc(i, sb);
if (!str.isEmpty()) {
StringBuilder sb2 = new StringBuilder();
sb2.append(Character.toLowerCase(str.charAt(0)));
for (int i2 = 1; i2 < str.length(); i2++) {
char charAt = str.charAt(i2);
if (Character.isUpperCase(charAt)) {
sb2.append("_");
}
sb2.append(Character.toLowerCase(charAt));
}
str = sb2.toString();
}
sb.append(str);
if (obj instanceof String) {
sb.append(": \"");
sb.append(zzahg.zza(zzaed.zzl((String) obj)));
sb.append('\"');
return;
}
if (obj instanceof zzaed) {
sb.append(": \"");
sb.append(zzahg.zza((zzaed) obj));
sb.append('\"');
return;
}
if (obj instanceof zzaey) {
sb.append(" {");
zzd((zzaey) obj, sb, i + 2);
sb.append("\n");
zzc(i, sb);
sb.append(UrlTreeKt.componentParamSuffix);
return;
}
if (obj instanceof Map.Entry) {
sb.append(" {");
Map.Entry entry = (Map.Entry) obj;
int i3 = i + 2;
zzb(sb, i3, "key", entry.getKey());
zzb(sb, i3, AppMeasurementSdk.ConditionalUserProperty.VALUE, entry.getValue());
sb.append("\n");
zzc(i, sb);
sb.append(UrlTreeKt.componentParamSuffix);
return;
}
sb.append(": ");
sb.append(obj);
}
private static void zzc(int i, StringBuilder sb) {
while (i > 0) {
int i2 = 80;
if (i <= 80) {
i2 = i;
}
sb.append(zza, 0, i2);
i -= i2;
}
}
/* JADX WARN: Code restructure failed: missing block: B:104:0x0201, code lost:
if (((java.lang.Boolean) com.google.android.libraries.places.internal.zzaey.zzE(r13, r19, new java.lang.Object[0])).booleanValue() != false) goto L100;
*/
/* JADX WARN: Code restructure failed: missing block: B:74:0x0186, code lost:
if (((java.lang.Boolean) r7).booleanValue() != false) goto L100;
*/
/* JADX WARN: Code restructure failed: missing block: B:79:0x0195, code lost:
if (((java.lang.Integer) r7).intValue() != 0) goto L100;
*/
/* JADX WARN: Code restructure failed: missing block: B:83:0x01a8, code lost:
if (java.lang.Float.floatToRawIntBits(((java.lang.Float) r7).floatValue()) != 0) goto L100;
*/
/* JADX WARN: Code restructure failed: missing block: B:87:0x01be, code lost:
if (java.lang.Double.doubleToRawLongBits(((java.lang.Double) r7).doubleValue()) != 0) goto L100;
*/
/* JADX WARN: Code restructure failed: missing block: B:91:0x01d6, code lost:
if (r13 == false) goto L100;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void zzd(com.google.android.libraries.places.internal.zzagg r19, java.lang.StringBuilder r20, int r21) {
/*
Method dump skipped, instructions count: 541
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzagi.zzd(com.google.android.libraries.places.internal.zzagg, java.lang.StringBuilder, int):void");
}
}