package com.google.android.gms.measurement.internal; import androidx.annotation.VisibleForTesting; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.internal.measurement.zzff; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.regex.PatternSyntaxException; /* loaded from: classes3.dex */ abstract class zzab { String zza; int zzb; Boolean zzc; Boolean zzd; Long zze; Long zzf; /* JADX WARN: Code restructure failed: missing block: B:68:0x0080, code lost: if (r3 != null) goto L36; */ @androidx.annotation.VisibleForTesting /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static java.lang.Boolean zza(java.math.BigDecimal r8, com.google.android.gms.internal.measurement.zzff.zzd r9, double r10) { /* Method dump skipped, instructions count: 277 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzab.zza(java.math.BigDecimal, com.google.android.gms.internal.measurement.zzff$zzd, double):java.lang.Boolean"); } public abstract int zza(); public abstract boolean zzb(); public abstract boolean zzc(); @VisibleForTesting public static Boolean zza(String str, zzff.zzf zzfVar, zzfw zzfwVar) { String zze; List list; Preconditions.checkNotNull(zzfVar); if (str == null || !zzfVar.zzj() || zzfVar.zzb() == zzff.zzf.zzb.UNKNOWN_MATCH_TYPE) { return null; } zzff.zzf.zzb zzb = zzfVar.zzb(); zzff.zzf.zzb zzbVar = zzff.zzf.zzb.IN_LIST; if (zzb == zzbVar) { if (zzfVar.zza() == 0) { return null; } } else if (!zzfVar.zzi()) { return null; } zzff.zzf.zzb zzb2 = zzfVar.zzb(); boolean zzg = zzfVar.zzg(); if (zzg || zzb2 == zzff.zzf.zzb.REGEXP || zzb2 == zzbVar) { zze = zzfVar.zze(); } else { zze = zzfVar.zze().toUpperCase(Locale.ENGLISH); } String str2 = zze; if (zzfVar.zza() == 0) { list = null; } else { List zzf = zzfVar.zzf(); if (!zzg) { ArrayList arrayList = new ArrayList(zzf.size()); Iterator it = zzf.iterator(); while (it.hasNext()) { arrayList.add(it.next().toUpperCase(Locale.ENGLISH)); } zzf = Collections.unmodifiableList(arrayList); } list = zzf; } return zza(str, zzb2, zzg, str2, list, zzb2 == zzff.zzf.zzb.REGEXP ? str2 : null, zzfwVar); } private static Boolean zza(String str, zzff.zzf.zzb zzbVar, boolean z, String str2, List list, String str3, zzfw zzfwVar) { if (str == null) { return null; } if (zzbVar == zzff.zzf.zzb.IN_LIST) { if (list == null || list.isEmpty()) { return null; } } else if (str2 == null) { return null; } if (!z && zzbVar != zzff.zzf.zzb.REGEXP) { str = str.toUpperCase(Locale.ENGLISH); } switch (zzv.zza[zzbVar.ordinal()]) { case 1: if (str3 != null) { try { break; } catch (PatternSyntaxException unused) { if (zzfwVar != null) { zzfwVar.zzu().zza("Invalid regular expression in REGEXP audience filter. expression", str3); } return null; } } break; case 6: if (list != null) { break; } break; } return null; } public static Boolean zza(double d, zzff.zzd zzdVar) { try { return zza(new BigDecimal(d), zzdVar, Math.ulp(d)); } catch (NumberFormatException unused) { return null; } } public static Boolean zza(long j, zzff.zzd zzdVar) { try { return zza(new BigDecimal(j), zzdVar, 0.0d); } catch (NumberFormatException unused) { return null; } } public static Boolean zza(String str, zzff.zzd zzdVar) { if (!zznp.zzb(str)) { return null; } try { return zza(new BigDecimal(str), zzdVar, 0.0d); } catch (NumberFormatException unused) { return null; } } @VisibleForTesting public static Boolean zza(Boolean bool, boolean z) { if (bool == null) { return null; } return Boolean.valueOf(bool.booleanValue() != z); } public zzab(String str, int i) { this.zza = str; this.zzb = i; } }