package com.google.android.gms.internal.p002firebaseauthapi; import java.security.GeneralSecurityException; import java.util.HashMap; import java.util.Map; /* loaded from: classes.dex */ public final class zzls { private final Map zza; private final Map zzb; /* synthetic */ zzls(zzlo zzloVar, zzlr zzlrVar) { this.zza = new HashMap(zzloVar.zza); this.zzb = new HashMap(zzloVar.zzb); } public final Class zza(Class cls) { if (this.zzb.containsKey(cls)) { return ((zzcn) this.zzb.get(cls)).zza(); } throw new GeneralSecurityException("No input primitive class for " + cls.toString() + " available"); } public final Object zzb(zzbn zzbnVar, Class cls) { zzlq zzlqVar = new zzlq(zzbnVar.getClass(), cls, null); if (this.zza.containsKey(zzlqVar)) { return ((zzll) this.zza.get(zzlqVar)).zza(zzbnVar); } throw new GeneralSecurityException("No PrimitiveConstructor for " + zzlqVar.toString() + " available"); } public final Object zzc(zzcm zzcmVar, Class cls) { if (!this.zzb.containsKey(cls)) { throw new GeneralSecurityException("No wrapper found for ".concat(cls.toString())); } zzcn zzcnVar = (zzcn) this.zzb.get(cls); if (zzcmVar.zzc().equals(zzcnVar.zza()) && zzcnVar.zza().equals(zzcmVar.zzc())) { return zzcnVar.zzc(zzcmVar); } throw new GeneralSecurityException("Input primitive type of the wrapper doesn't match the type of primitives in the provided PrimitiveSet"); } }