package com.google.android.gms.internal.p002firebaseauthapi; import android.text.TextUtils; import android.util.Log; import com.google.android.gms.common.internal.LibraryVersion; import com.huawei.hms.framework.network.grs.GrsBaseInfo; import java.util.List; /* loaded from: classes2.dex */ public final class zzxo { private final int zza; /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r0v2, types: [boolean] */ /* JADX WARN: Type inference failed for: r0v3, types: [java.lang.String] */ /* JADX WARN: Type inference failed for: r6v0, types: [java.lang.CharSequence, java.lang.String] */ /* JADX WARN: Type inference failed for: r6v1, types: [java.lang.Object] */ /* JADX WARN: Type inference failed for: r6v10 */ /* JADX WARN: Type inference failed for: r6v4 */ /* JADX WARN: Type inference failed for: r6v5, types: [int] */ /* JADX WARN: Type inference failed for: r6v9 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:14:0x005f -> B:6:0x0060). Please report as a decompilation issue!!! */ public zzxo(String str) { List zzd; int i = 3; i = 3; int i2 = 3; try { zzd = zzaf.zzc("[.-]").zzd(str); } catch (IllegalArgumentException e) { ?? isLoggable = Log.isLoggable("LibraryVersionContainer", i); i2 = isLoggable; if (isLoggable != 0) { Log.d("LibraryVersionContainer", String.format("Version code parsing failed for: %s with exception %s.", str, e)); i2 = "Version code parsing failed for: %s with exception %s."; } } if (zzd.size() == 1) { str = Integer.parseInt(str); } else { if (zzd.size() >= 3) { i = 1000000; str = Integer.parseInt((String) zzd.get(2)) + (Integer.parseInt((String) zzd.get(0)) * 1000000) + (Integer.parseInt((String) zzd.get(1)) * 1000); } str = -1; i = i2; } this.zza = str; } public static zzxo zza() { String version = LibraryVersion.getInstance().getVersion("firebase-auth"); if (TextUtils.isEmpty(version) || version.equals(GrsBaseInfo.CountryCodeSource.UNKNOWN)) { version = "-1"; } return new zzxo(version); } public final String zzb() { return String.format("X%s", Integer.toString(this.zza)); } }