what-the-bank/sources/com/google/android/gms/internal/clearcut/zzcg.java

565 lines
21 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.clearcut;
import com.google.android.gms.internal.clearcut.zzcg;
import com.google.android.gms.internal.clearcut.zzcg.zza;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/* loaded from: classes2.dex */
public abstract class zzcg<MessageType extends zzcg<MessageType, BuilderType>, BuilderType extends zza<MessageType, BuilderType>> extends zzas<MessageType, BuilderType> {
private static Map<Object, zzcg<?, ?>> zzjr = new ConcurrentHashMap();
protected zzey zzjp = zzey.zzea();
private int zzjq = -1;
/* loaded from: classes2.dex */
public static abstract class zzd<MessageType extends zzd<MessageType, BuilderType>, BuilderType extends zzc<MessageType, BuilderType>> extends zzcg<MessageType, BuilderType> implements zzdq {
protected zzby<zze> zzjv = zzby.zzar();
}
/* JADX INFO: Access modifiers changed from: protected */
public abstract Object zza(int i, Object obj, Object obj2);
@Override // com.google.android.gms.internal.clearcut.zzas
final int zzs() {
return this.zzjq;
}
@Override // com.google.android.gms.internal.clearcut.zzas
final void zzf(int i) {
this.zzjq = i;
}
@Override // com.google.android.gms.internal.clearcut.zzdq
public final /* synthetic */ zzdo zzbe() {
return (zzcg) zza(zzg.zzki, (Object) null, (Object) null);
}
@Override // com.google.android.gms.internal.clearcut.zzdo
public final /* synthetic */ zzdp zzbd() {
return (zza) zza(zzg.zzkh, (Object) null, (Object) null);
}
@Override // com.google.android.gms.internal.clearcut.zzdo
public final /* synthetic */ zzdp zzbc() {
zza zzaVar = (zza) zza(zzg.zzkh, (Object) null, (Object) null);
zzaVar.zza((zza) this);
return zzaVar;
}
@Override // com.google.android.gms.internal.clearcut.zzdo
public final void zzb(zzbn zzbnVar) throws IOException {
zzea.zzcm().zze(getClass()).zza(this, zzbp.zza(zzbnVar));
}
@Override // com.google.android.gms.internal.clearcut.zzdo
public final int zzas() {
if (this.zzjq == -1) {
this.zzjq = zzea.zzcm().zzp(this).zzm(this);
}
return this.zzjq;
}
public String toString() {
return zzdr.zza(this, super.toString());
}
@Override // com.google.android.gms.internal.clearcut.zzdq
public final boolean isInitialized() {
boolean booleanValue = Boolean.TRUE.booleanValue();
byte byteValue = ((Byte) zza(zzg.zzkd, (Object) null, (Object) null)).byteValue();
if (byteValue == 1) {
return true;
}
if (byteValue == 0) {
return false;
}
boolean zzo = zzea.zzcm().zzp(this).zzo(this);
if (booleanValue) {
zza(zzg.zzke, zzo ? this : null, (Object) null);
}
return zzo;
}
public int hashCode() {
if (this.zzex != 0) {
return this.zzex;
}
this.zzex = zzea.zzcm().zzp(this).hashCode(this);
return this.zzex;
}
/* loaded from: classes2.dex */
public static class zza<MessageType extends zzcg<MessageType, BuilderType>, BuilderType extends zza<MessageType, BuilderType>> extends zzat<MessageType, BuilderType> {
private final MessageType zzjs;
protected MessageType zzjt;
protected boolean zzju = false;
@Override // com.google.android.gms.internal.clearcut.zzat
/* renamed from: zzt */
public final /* synthetic */ zzat clone() {
return (zza) clone();
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0037, code lost:
if (r2 != false) goto L14;
*/
@Override // com.google.android.gms.internal.clearcut.zzdp
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final /* synthetic */ com.google.android.gms.internal.clearcut.zzdo zzbj() {
/*
r5 = this;
com.google.android.gms.internal.clearcut.zzdo r0 = r5.zzbi()
com.google.android.gms.internal.clearcut.zzcg r0 = (com.google.android.gms.internal.clearcut.zzcg) r0
java.lang.Boolean r1 = java.lang.Boolean.TRUE
boolean r1 = r1.booleanValue()
int r2 = com.google.android.gms.internal.clearcut.zzcg.zzg.zzkd
r3 = 0
java.lang.Object r2 = r0.zza(r2, r3, r3)
java.lang.Byte r2 = (java.lang.Byte) r2
byte r2 = r2.byteValue()
r4 = 1
if (r2 != r4) goto L1d
goto L39
L1d:
if (r2 == 0) goto L3a
com.google.android.gms.internal.clearcut.zzea r2 = com.google.android.gms.internal.clearcut.zzea.zzcm()
com.google.android.gms.internal.clearcut.zzef r2 = r2.zzp(r0)
boolean r2 = r2.zzo(r0)
if (r1 == 0) goto L37
int r1 = com.google.android.gms.internal.clearcut.zzcg.zzg.zzke
if (r2 == 0) goto L33
r4 = r0
goto L34
L33:
r4 = r3
L34:
r0.zza(r1, r4, r3)
L37:
if (r2 == 0) goto L3a
L39:
return r0
L3a:
com.google.android.gms.internal.clearcut.zzew r1 = new com.google.android.gms.internal.clearcut.zzew
r1.<init>(r0)
throw r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.clearcut.zzcg.zza.zzbj():com.google.android.gms.internal.clearcut.zzdo");
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0037, code lost:
if (r2 != false) goto L14;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final MessageType zzbh() {
/*
r5 = this;
com.google.android.gms.internal.clearcut.zzdo r0 = r5.zzbi()
com.google.android.gms.internal.clearcut.zzcg r0 = (com.google.android.gms.internal.clearcut.zzcg) r0
java.lang.Boolean r1 = java.lang.Boolean.TRUE
boolean r1 = r1.booleanValue()
int r2 = com.google.android.gms.internal.clearcut.zzcg.zzg.zzkd
r3 = 0
java.lang.Object r2 = r0.zza(r2, r3, r3)
java.lang.Byte r2 = (java.lang.Byte) r2
byte r2 = r2.byteValue()
r4 = 1
if (r2 != r4) goto L1d
goto L39
L1d:
if (r2 == 0) goto L3a
com.google.android.gms.internal.clearcut.zzea r2 = com.google.android.gms.internal.clearcut.zzea.zzcm()
com.google.android.gms.internal.clearcut.zzef r2 = r2.zzp(r0)
boolean r2 = r2.zzo(r0)
if (r1 == 0) goto L37
int r1 = com.google.android.gms.internal.clearcut.zzcg.zzg.zzke
if (r2 == 0) goto L33
r4 = r0
goto L34
L33:
r4 = r3
L34:
r0.zza(r1, r4, r3)
L37:
if (r2 == 0) goto L3a
L39:
return r0
L3a:
com.google.android.gms.internal.clearcut.zzew r1 = new com.google.android.gms.internal.clearcut.zzew
r1.<init>(r0)
throw r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.clearcut.zzcg.zza.zzbh():com.google.android.gms.internal.clearcut.zzcg");
}
@Override // com.google.android.gms.internal.clearcut.zzdp
/* renamed from: zzbg, reason: merged with bridge method [inline-methods] */
public MessageType zzbi() {
if (this.zzju) {
return this.zzjt;
}
MessageType messagetype = this.zzjt;
zzea.zzcm().zzp(messagetype).zzc(messagetype);
this.zzju = true;
return this.zzjt;
}
/* JADX INFO: Access modifiers changed from: protected */
public void zzbf() {
if (this.zzju) {
MessageType messagetype = (MessageType) this.zzjt.zza(zzg.zzkg, null, null);
zza(messagetype, this.zzjt);
this.zzjt = messagetype;
this.zzju = false;
}
}
@Override // com.google.android.gms.internal.clearcut.zzdq
public final /* synthetic */ zzdo zzbe() {
return this.zzjs;
}
@Override // com.google.android.gms.internal.clearcut.zzat
public final BuilderType zza(MessageType messagetype) {
zzbf();
zza(this.zzjt, messagetype);
return this;
}
@Override // com.google.android.gms.internal.clearcut.zzdq
public final boolean isInitialized() {
return zzcg.zza(this.zzjt, false);
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.android.gms.internal.clearcut.zzat
public /* synthetic */ Object clone() throws CloneNotSupportedException {
zza zzaVar = (zza) this.zzjs.zza(zzg.zzkh, null, null);
zzaVar.zza((zza) zzbi());
return zzaVar;
}
private static void zza(MessageType messagetype, MessageType messagetype2) {
zzea.zzcm().zzp(messagetype).zzc(messagetype, messagetype2);
}
/* JADX INFO: Access modifiers changed from: protected */
public zza(MessageType messagetype) {
this.zzjs = messagetype;
this.zzjt = (MessageType) messagetype.zza(zzg.zzkg, null, null);
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (((zzcg) zza(zzg.zzki, (Object) null, (Object) null)).getClass().isInstance(obj)) {
return zzea.zzcm().zzp(this).equals(this, (zzcg) obj);
}
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static <T extends zzcg<?, ?>> T zzc(Class<T> cls) {
T t = (T) zzjr.get(cls);
if (t == null) {
try {
Class.forName(cls.getName(), true, cls.getClassLoader());
t = (T) zzjr.get(cls);
} catch (ClassNotFoundException e) {
throw new IllegalStateException("Class initialization cannot fail.", e);
}
}
if (t != null) {
return t;
}
String valueOf = String.valueOf(cls.getName());
throw new IllegalStateException(valueOf.length() != 0 ? "Unable to get default instance for: ".concat(valueOf) : new String("Unable to get default instance for: "));
}
/* JADX INFO: Access modifiers changed from: protected */
public static <E> zzcn<E> zzbb() {
return zzeb.zzcn();
}
/* JADX INFO: Access modifiers changed from: protected */
/* JADX WARN: Type inference failed for: r0v0, types: [com.google.android.gms.internal.clearcut.zzcm, com.google.android.gms.internal.clearcut.zzdc] */
public static zzcm zzba() {
return zzdc.zzbx();
}
/* loaded from: classes2.dex */
static final class zze implements zzca<zze> {
final zzfl zzjx;
private final zzck<?> zzjw = null;
final int number = 66321687;
final boolean zzjy = false;
final boolean zzjz = false;
@Override // com.google.android.gms.internal.clearcut.zzca
public final boolean zzaw() {
return false;
}
@Override // com.google.android.gms.internal.clearcut.zzca
public final boolean zzax() {
return false;
}
@Override // com.google.android.gms.internal.clearcut.zzca
public final int zzc() {
return this.number;
}
@Override // com.google.android.gms.internal.clearcut.zzca
public final zzfq zzav() {
return this.zzjx.zzek();
}
@Override // com.google.android.gms.internal.clearcut.zzca
public final zzfl zzau() {
return this.zzjx;
}
@Override // com.google.android.gms.internal.clearcut.zzca
public final zzdv zza(zzdv zzdvVar, zzdv zzdvVar2) {
throw new UnsupportedOperationException();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.android.gms.internal.clearcut.zzca
public final zzdp zza(zzdp zzdpVar, zzdo zzdoVar) {
return ((zza) zzdpVar).zza((zza) zzdoVar);
}
@Override // java.lang.Comparable
public final /* synthetic */ int compareTo(Object obj) {
return this.number - ((zze) obj).number;
}
zze(zzck<?> zzckVar, int i, zzfl zzflVar, boolean z, boolean z2) {
this.zzjx = zzflVar;
}
}
/* JADX INFO: Access modifiers changed from: protected */
/* JADX WARN: Code restructure failed: missing block: B:13:0x0037, code lost:
if (r0 != false) goto L19;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static <T extends com.google.android.gms.internal.clearcut.zzcg<T, ?>> T zzb(T r3, byte[] r4) throws com.google.android.gms.internal.clearcut.zzco {
/*
com.google.android.gms.internal.clearcut.zzcg r3 = zza(r3, r4)
if (r3 == 0) goto L4d
java.lang.Boolean r4 = java.lang.Boolean.TRUE
boolean r4 = r4.booleanValue()
int r0 = com.google.android.gms.internal.clearcut.zzcg.zzg.zzkd
r1 = 0
java.lang.Object r0 = r3.zza(r0, r1, r1)
java.lang.Byte r0 = (java.lang.Byte) r0
byte r0 = r0.byteValue()
r2 = 1
if (r0 != r2) goto L1d
goto L4d
L1d:
if (r0 == 0) goto L3a
com.google.android.gms.internal.clearcut.zzea r0 = com.google.android.gms.internal.clearcut.zzea.zzcm()
com.google.android.gms.internal.clearcut.zzef r0 = r0.zzp(r3)
boolean r0 = r0.zzo(r3)
if (r4 == 0) goto L37
int r4 = com.google.android.gms.internal.clearcut.zzcg.zzg.zzke
if (r0 == 0) goto L33
r2 = r3
goto L34
L33:
r2 = r1
L34:
r3.zza(r4, r2, r1)
L37:
if (r0 == 0) goto L3a
goto L4d
L3a:
com.google.android.gms.internal.clearcut.zzco r4 = new com.google.android.gms.internal.clearcut.zzco
com.google.android.gms.internal.clearcut.zzew r0 = new com.google.android.gms.internal.clearcut.zzew
r0.<init>(r3)
java.lang.String r0 = r0.getMessage()
r4.<init>(r0)
com.google.android.gms.internal.clearcut.zzco r3 = r4.zzg(r3)
throw r3
L4d:
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.clearcut.zzcg.zzb(com.google.android.gms.internal.clearcut.zzcg, byte[]):com.google.android.gms.internal.clearcut.zzcg");
}
/* JADX INFO: Access modifiers changed from: protected */
/* JADX WARN: Type inference failed for: r0v0, types: [com.google.android.gms.internal.clearcut.zzch, com.google.android.gms.internal.clearcut.zzcl] */
public static zzcl zzaz() {
return zzch.zzbk();
}
protected static final <T extends zzcg<T, ?>> boolean zza(T t, boolean z) {
byte byteValue = ((Byte) t.zza(zzg.zzkd, null, null)).byteValue();
if (byteValue == 1) {
return true;
}
if (byteValue == 0) {
return false;
}
return zzea.zzcm().zzp(t).zzo(t);
}
/* JADX INFO: Access modifiers changed from: protected */
public static <T extends zzcg<?, ?>> void zza(Class<T> cls, T t) {
zzjr.put(cls, t);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Object zza(Method method, Object obj, Object... objArr) {
try {
return method.invoke(obj, objArr);
} catch (IllegalAccessException e) {
throw new RuntimeException("Couldn't use Java reflection to implement protocol message reflection.", e);
} catch (InvocationTargetException e2) {
Throwable cause = e2.getCause();
if (cause instanceof RuntimeException) {
throw ((RuntimeException) cause);
}
if (cause instanceof Error) {
throw ((Error) cause);
}
throw new RuntimeException("Unexpected exception thrown by generated accessor method.", cause);
}
}
/* loaded from: classes2.dex */
public static class zzc<MessageType extends zzd<MessageType, BuilderType>, BuilderType extends zzc<MessageType, BuilderType>> extends zza<MessageType, BuilderType> implements zzdq {
@Override // com.google.android.gms.internal.clearcut.zzcg.zza, com.google.android.gms.internal.clearcut.zzdp
public final /* synthetic */ zzdo zzbi() {
MessageType messagetype;
if (this.zzju) {
messagetype = this.zzjt;
} else {
((zzd) this.zzjt).zzjv.zzv();
messagetype = (MessageType) super.zzbi();
}
return messagetype;
}
@Override // com.google.android.gms.internal.clearcut.zzcg.zza
/* renamed from: zzbg */
public final /* synthetic */ zzcg zzbi() {
return (zzd) zzbi();
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.google.android.gms.internal.clearcut.zzcg.zza
public final void zzbf() {
if (this.zzju) {
super.zzbf();
((zzd) this.zzjt).zzjv = (zzby) ((zzd) this.zzjt).zzjv.clone();
}
}
/* JADX INFO: Access modifiers changed from: protected */
public zzc(MessageType messagetype) {
super(messagetype);
}
}
/* JADX INFO: Access modifiers changed from: protected */
public static Object zza(zzdo zzdoVar, String str, Object[] objArr) {
return new zzec(zzdoVar, str, objArr);
}
private static <T extends zzcg<T, ?>> T zza(T t, byte[] bArr) throws zzco {
T t2 = (T) t.zza(zzg.zzkg, null, null);
try {
zzea.zzcm().zzp(t2).zza(t2, bArr, 0, bArr.length, new zzay());
zzea.zzcm().zzp(t2).zzc(t2);
if (t2.zzex == 0) {
return t2;
}
throw new RuntimeException();
} catch (IOException e) {
if (e.getCause() instanceof zzco) {
throw ((zzco) e.getCause());
}
throw new zzco(e.getMessage()).zzg(t2);
} catch (IndexOutOfBoundsException unused) {
throw zzco.zzbl().zzg(t2);
}
}
/* loaded from: classes2.dex */
public enum zzg {
public static final int zzkd = 1;
public static final int zzke = 2;
public static final int zzkf = 3;
public static final int zzkg = 4;
public static final int zzkh = 5;
public static final int zzki = 6;
public static final int zzkj = 7;
public static final int zzkl = 1;
public static final int zzkm = 2;
private static final int[] zzkk = {1, 2, 3, 4, 5, 6, 7};
private static final int[] zzkn = {1, 2};
public static final int zzko = 1;
public static final int zzkp = 2;
private static final int[] zzkq = {1, 2};
public static int[] values$50KLMJ33DTMIUPRFDTJMOP9FE1P6UT3FC9QMCBQ7CLN6ASJ1EHIM8JB5EDPM2PR59HKN8P949LIN8Q3FCHA6UIBEEPNMMP9R0() {
return (int[]) zzkk.clone();
}
}
public static <ContainingType extends zzdo, Type> zzf<ContainingType, Type> zza(ContainingType containingtype, Type type, zzdo zzdoVar, zzck<?> zzckVar, int i, zzfl zzflVar, Class cls) {
return new zzf<>(containingtype, type, zzdoVar, new zze(null, 66321687, zzflVar, false, false), cls);
}
/* loaded from: classes2.dex */
public static final class zzb<T extends zzcg<T, ?>> extends zzau<T> {
private T zzjs;
public zzb(T t) {
this.zzjs = t;
}
}
/* loaded from: classes2.dex */
public static final class zzf<ContainingType extends zzdo, Type> extends zzbr<ContainingType, Type> {
private final Type zzdu;
private final ContainingType zzka;
private final zzdo zzkb;
private final zze zzkc;
zzf(ContainingType containingtype, Type type, zzdo zzdoVar, zze zzeVar, Class cls) {
if (containingtype == null) {
throw new IllegalArgumentException("Null containingTypeDefaultInstance");
}
if (zzeVar.zzjx == zzfl.zzqm && zzdoVar == null) {
throw new IllegalArgumentException("Null messageDefaultInstance");
}
this.zzka = containingtype;
this.zzdu = type;
this.zzkb = zzdoVar;
this.zzkc = zzeVar;
}
}
}