package com.google.android.gms.internal.gtm; import com.google.android.gms.internal.gtm.zzrc; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class zzrz implements zzta { private static final zzsj zzbcn = new zzsa(); private final zzsj zzbcm; public zzrz() { this(new zzsb(zzrb.zzpc(), zzqe())); } private zzrz(zzsj zzsjVar) { this.zzbcm = (zzsj) zzre.zza(zzsjVar, "messageInfoFactory"); } @Override // com.google.android.gms.internal.gtm.zzta public final zzsz zzh(Class cls) { zztb.zzj(cls); zzsi zzf = this.zzbcm.zzf(cls); if (zzf.zzqm()) { if (zzrc.class.isAssignableFrom(cls)) { return zzsp.zza(zztb.zzqx(), zzqs.zzot(), zzf.zzqn()); } return zzsp.zza(zztb.zzqv(), zzqs.zzou(), zzf.zzqn()); } if (zzrc.class.isAssignableFrom(cls)) { if (zza(zzf)) { return zzso.zza(cls, zzf, zzst.zzqq(), zzru.zzqd(), zztb.zzqx(), zzqs.zzot(), zzsh.zzqj()); } return zzso.zza(cls, zzf, zzst.zzqq(), zzru.zzqd(), zztb.zzqx(), null, zzsh.zzqj()); } if (zza(zzf)) { return zzso.zza(cls, zzf, zzst.zzqp(), zzru.zzqc(), zztb.zzqv(), zzqs.zzou(), zzsh.zzqi()); } return zzso.zza(cls, zzf, zzst.zzqp(), zzru.zzqc(), zztb.zzqw(), null, zzsh.zzqi()); } private static boolean zza(zzsi zzsiVar) { return zzsiVar.zzql() == zzrc.zze.zzbaz; } private static zzsj zzqe() { try { return (zzsj) Class.forName("com.google.protobuf.DescriptorMessageInfoFactory").getDeclaredMethod("getInstance", new Class[0]).invoke(null, new Object[0]); } catch (Exception unused) { return zzbcn; } } }