package com.google.android.gms.internal.firebase_ml; import java.lang.reflect.Field; import java.util.Map; /* loaded from: classes2.dex */ public final class zzgy { private final Map zzye = new zzgx(); private final Map zzyf = new zzgx(); private final Object zzyg; public zzgy(Object obj) { this.zzyg = obj; } public final void zzha() { for (Map.Entry entry : this.zzye.entrySet()) { ((Map) this.zzyg).put(entry.getKey(), entry.getValue().zzhb()); } for (Map.Entry entry2 : this.zzyf.entrySet()) { zzhl.zza(entry2.getKey(), this.zzyg, entry2.getValue().zzhb()); } } public final void zza(Field field, Class cls, Object obj) { zzgz zzgzVar = this.zzyf.get(field); if (zzgzVar == null) { zzgzVar = new zzgz(cls); this.zzyf.put(field, zzgzVar); } zzks.checkArgument(cls == zzgzVar.zzyh); zzgzVar.zzyi.add(obj); } }