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

import android.content.Context;
import android.view.ViewGroup;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class t30 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Context f16696a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final x50 f16697b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final ViewGroup f16698c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public zzcfs f16699d;

    @Nullable
    private final cr0 zzd;

    public t30(Context context, ViewGroup viewGroup, x50 x50Var, @Nullable cr0 cr0Var) {
        this.f16696a = context.getApplicationContext() != null ? context.getApplicationContext() : context;
        this.f16698c = viewGroup;
        this.f16697b = x50Var;
        this.f16699d = null;
        this.zzd = cr0Var;
    }

    public final void a(int i10, int i11, int i12, int i13, int i14, boolean z10, b40 b40Var) {
        if (this.f16699d != null) {
            return;
        }
        x50 x50Var = this.f16697b;
        eo.zza(x50Var.zzq().f13331b, x50Var.zzi(), "vpr2");
        zzcfs zzcfsVar = new zzcfs(this.f16696a, x50Var, i14, z10, x50Var.zzq().f13331b, b40Var, this.zzd);
        this.f16699d = zzcfsVar;
        this.f16698c.addView(zzcfsVar, 0, new ViewGroup.LayoutParams(-1, -1));
        this.f16699d.q(i10, i11, i12, i13);
        x50Var.M();
    }

    @Nullable
    public final Integer zza() {
        zzcfs zzcfsVar = this.f16699d;
        if (zzcfsVar != null) {
            return zzcfsVar.zzl();
        }
        return null;
    }
}
