package com.android.billingclient.api; import android.content.Context; import com.google.android.gms.internal.play_billing.zzb; import com.google.android.gms.internal.play_billing.zzga; import com.google.android.gms.internal.play_billing.zzge; import com.google.android.gms.internal.play_billing.zzgt; import com.google.android.gms.internal.play_billing.zzgu; import com.google.android.gms.internal.play_billing.zzhd; import com.google.android.gms.internal.play_billing.zzhe; import com.google.android.gms.internal.play_billing.zzhl; /* loaded from: classes.dex */ final class v implements t { /* renamed from: b, reason: collision with root package name */ private zzgu f4100b; /* renamed from: c, reason: collision with root package name */ private final w f4101c; v(Context context, zzgu zzguVar) { this.f4101c = new w(context); this.f4100b = zzguVar; } @Override // com.android.billingclient.api.t public final void a(zzhl zzhlVar) { if (zzhlVar == null) { return; } try { zzhd zzy = zzhe.zzy(); zzy.zzn(this.f4100b); zzy.zzo(zzhlVar); this.f4101c.a((zzhe) zzy.zzf()); } catch (Throwable th) { zzb.zzl("BillingLogger", "Unable to log.", th); } } @Override // com.android.billingclient.api.t public final void b(zzge zzgeVar, int i10) { try { zzgt zzgtVar = (zzgt) this.f4100b.zzi(); zzgtVar.zzl(i10); this.f4100b = (zzgu) zzgtVar.zzf(); c(zzgeVar); } catch (Throwable th) { zzb.zzl("BillingLogger", "Unable to log.", th); } } @Override // com.android.billingclient.api.t public final void c(zzge zzgeVar) { if (zzgeVar == null) { return; } try { zzhd zzy = zzhe.zzy(); zzy.zzn(this.f4100b); zzy.zzm(zzgeVar); this.f4101c.a((zzhe) zzy.zzf()); } catch (Throwable th) { zzb.zzl("BillingLogger", "Unable to log.", th); } } @Override // com.android.billingclient.api.t public final void d(zzga zzgaVar, int i10) { try { zzgt zzgtVar = (zzgt) this.f4100b.zzi(); zzgtVar.zzl(i10); this.f4100b = (zzgu) zzgtVar.zzf(); e(zzgaVar); } catch (Throwable th) { zzb.zzl("BillingLogger", "Unable to log.", th); } } @Override // com.android.billingclient.api.t public final void e(zzga zzgaVar) { if (zzgaVar == null) { return; } try { zzhd zzy = zzhe.zzy(); zzy.zzn(this.f4100b); zzy.zzl(zzgaVar); this.f4101c.a((zzhe) zzy.zzf()); } catch (Throwable th) { zzb.zzl("BillingLogger", "Unable to log.", th); } } }