package com.google.android.gms.internal.ads;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class ho0 implements qu1 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f12206a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ com.google.common.util.concurrent.w f12207b;

    public /* synthetic */ ho0(int i10, com.google.common.util.concurrent.w wVar) {
        this.f12206a = i10;
        this.f12207b = wVar;
    }

    @Override // com.google.android.gms.internal.ads.qu1
    public final com.google.common.util.concurrent.w zza(Object obj) throws zzenv {
        int i10 = this.f12206a;
        com.google.common.util.concurrent.w wVar = this.f12207b;
        switch (i10) {
            case 0:
                if (((x50) obj) != null) {
                    return wVar;
                }
                throw new zzenv(1, "Retrieve Web View from image ad response failed.");
            case 1:
                x50 x50Var = (x50) obj;
                if (x50Var == null || x50Var.zzh() == null) {
                    throw new zzenv(1, "Retrieve video view in html5 ad response failed.");
                }
                return wVar;
            case 2:
                return obj != null ? wVar : ih1.q0(new zzenv(1, "Retrieve required value in native ad response failed."));
            default:
                return wVar;
        }
    }
}
