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

148 lines
6.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import android.content.Context;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
public final class zzcn {
public static final int zza = 0;
private static final long zzb = TimeUnit.MINUTES.toMicros(1);
private final zzbx zzc;
private final Context zzd;
/* JADX WARN: Code restructure failed: missing block: B:22:0x0078, code lost:
if (r14.contains("_optout") == false) goto L26;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.google.android.libraries.places.internal.zziy zza(java.lang.String r18) {
/*
r17 = this;
r0 = r17
android.content.Context r1 = r0.zzd
java.lang.String r2 = "wifi"
java.lang.Object r1 = r1.getSystemService(r2)
android.net.wifi.WifiManager r1 = (android.net.wifi.WifiManager) r1
if (r1 == 0) goto La5
boolean r2 = r1.isWifiEnabled()
if (r2 == 0) goto La5
java.util.List r2 = r1.getScanResults()
if (r2 == 0) goto La0
boolean r3 = r2.isEmpty()
if (r3 != 0) goto La0
com.google.android.libraries.places.internal.zzcm r3 = new java.util.Comparator() { // from class: com.google.android.libraries.places.internal.zzcm
@Override // java.util.Comparator
public final int compare(java.lang.Object r1, java.lang.Object r2) {
/*
r0 = this;
android.net.wifi.ScanResult r1 = (android.net.wifi.ScanResult) r1
android.net.wifi.ScanResult r2 = (android.net.wifi.ScanResult) r2
int r2 = r2.level
int r1 = r1.level
int r2 = r2 - r1
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzcm.compare(java.lang.Object, java.lang.Object):int");
}
{
/*
r0 = this;
r0.<init>()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzcm.<init>():void");
}
static {
/*
com.google.android.libraries.places.internal.zzcm r0 = new com.google.android.libraries.places.internal.zzcm
r0.<init>()
// error: 0x0005: SPUT (r0 I:com.google.android.libraries.places.internal.zzcm) com.google.android.libraries.places.internal.zzcm.zza com.google.android.libraries.places.internal.zzcm
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzcm.<clinit>():void");
}
}
com.google.android.libraries.places.internal.zzjj r3 = com.google.android.libraries.places.internal.zzjj.zza(r3)
com.google.android.libraries.places.internal.zziy r2 = com.google.android.libraries.places.internal.zziy.zzp(r3, r2)
java.util.ArrayList r3 = new java.util.ArrayList
r3.<init>()
android.net.wifi.WifiInfo r1 = r1.getConnectionInfo()
int r4 = r2.size()
r5 = 0
r6 = r5
L39:
if (r6 >= r4) goto L9b
java.lang.Object r7 = r2.get(r6)
android.net.wifi.ScanResult r7 = (android.net.wifi.ScanResult) r7
if (r7 == 0) goto L98
java.lang.String r8 = r7.SSID
boolean r8 = android.text.TextUtils.isEmpty(r8)
if (r8 != 0) goto L98
com.google.android.libraries.places.internal.zzbx r8 = r0.zzc
long r8 = r8.zza()
long r10 = r7.timestamp
long r12 = com.google.android.libraries.places.internal.zzcn.zzb
java.lang.String r14 = r7.SSID
if (r14 == 0) goto L90
r15 = 95
int r15 = r14.indexOf(r15)
if (r15 >= 0) goto L62
goto L7b
L62:
java.util.Locale r15 = java.util.Locale.ENGLISH
java.lang.String r14 = r14.toLowerCase(r15)
java.lang.String r15 = "_nomap"
boolean r15 = r14.contains(r15)
r16 = 1
if (r15 != 0) goto L7d
java.lang.String r15 = "_optout"
boolean r14 = r14.contains(r15)
if (r14 == 0) goto L7b
goto L7d
L7b:
r16 = r5
L7d:
r14 = 1000(0x3e8, double:4.94E-321)
long r8 = r8 * r14
long r8 = r8 - r10
int r8 = (r8 > r12 ? 1 : (r8 == r12 ? 0 : -1))
if (r8 > 0) goto L98
if (r16 != 0) goto L98
com.google.android.libraries.places.internal.zzcl r8 = new com.google.android.libraries.places.internal.zzcl
r8.<init>(r1, r7)
r3.add(r8)
goto L98
L90:
java.lang.IllegalArgumentException r1 = new java.lang.IllegalArgumentException
java.lang.String r2 = "Null SSID."
r1.<init>(r2)
throw r1
L98:
int r6 = r6 + 1
goto L39
L9b:
com.google.android.libraries.places.internal.zziy r1 = com.google.android.libraries.places.internal.zziy.zzk(r3)
return r1
La0:
com.google.android.libraries.places.internal.zziy r1 = com.google.android.libraries.places.internal.zziy.zzm()
return r1
La5:
com.google.android.libraries.places.internal.zziy r1 = com.google.android.libraries.places.internal.zziy.zzm()
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzcn.zza(java.lang.String):com.google.android.libraries.places.internal.zziy");
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzcn(Context context, zzbx zzbxVar) {
this.zzd = context;
this.zzc = zzbxVar;
}
}