package com.google.android.gms.internal.gtm; import android.os.RemoteException; import com.google.android.gms.common.internal.Preconditions; /* loaded from: classes.dex */ public final class zzmh extends zzhb { private final zzfj zzapc; private final com.google.android.gms.tagmanager.zzcm zzasa; public zzmh(com.google.android.gms.tagmanager.zzcm zzcmVar, zzfj zzfjVar) { this.zzasa = zzcmVar; this.zzapc = zzfjVar; } @Override // com.google.android.gms.internal.gtm.zzhb protected final zzoa zza(zzfl zzflVar, zzoa... zzoaVarArr) { boolean z = true; Preconditions.checkArgument(true); Preconditions.checkArgument(zzoaVarArr.length == 1 || zzoaVarArr.length == 2); Preconditions.checkArgument(zzoaVarArr[0] instanceof zzom); zzoa zzoaVar = zzoaVarArr.length > 1 ? zzoaVarArr[1] : zzog.zzaum; if (zzoaVar != zzog.zzaum && !(zzoaVar instanceof zzok)) { z = false; } Preconditions.checkArgument(z); zzee zzkt = this.zzapc.zzkt(); try { this.zzasa.logEventInternalNoInterceptor(zzkt.zzkh(), ((zzom) zzoaVarArr[0]).value(), zzoaVar != zzog.zzaum ? zzoo.zzk(((zzok) zzoaVar).value()) : null, zzkt.currentTimeMillis()); } catch (RemoteException e) { String valueOf = String.valueOf(e.getMessage()); zzev.zzav(valueOf.length() != 0 ? "Error calling measurement proxy:".concat(valueOf) : new String("Error calling measurement proxy:")); } return zzog.zzaum; } }