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

import android.content.Context;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f16105b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f16106c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f16107d;

    public /* synthetic */ rd0(Context context, q7.a aVar, ib1 ib1Var) {
        this.f16104a = 0;
        this.f16105b = context;
        this.f16106c = aVar;
        this.f16107d = ib1Var;
    }

    @Override // com.google.android.gms.internal.ads.mq1
    public final Object apply(Object obj) {
        int i10 = this.f16104a;
        Object obj2 = this.f16107d;
        Object obj3 = this.f16106c;
        Object obj4 = this.f16105b;
        switch (i10) {
            case 0:
                wa1 wa1Var = (wa1) obj;
                p7.i iVar = new p7.i((Context) obj4);
                iVar.f31685c = wa1Var.f18019y;
                iVar.c(wa1Var.f18021z.toString());
                iVar.f31687e = ((q7.a) obj3).f32212a;
                iVar.f31686d = ((ib1) obj2).f12455d;
                return iVar;
            case 1:
                x50 x50Var = (x50) obj4;
                if (((wa1) obj3).J) {
                    x50Var.V();
                }
                x50Var.q0();
                x50Var.onPause();
                return ((b80) obj2).z();
            case 2:
                x50 x50Var2 = (x50) obj4;
                if (((wa1) obj3).J) {
                    x50Var2.V();
                }
                x50Var2.q0();
                x50Var2.onPause();
                return ((m80) obj2).z();
            default:
                x50 x50Var3 = (x50) obj4;
                if (((wa1) obj3).J) {
                    x50Var3.V();
                }
                x50Var3.q0();
                x50Var3.onPause();
                return ((r80) obj2).z();
        }
    }

    public /* synthetic */ rd0(x50 x50Var, wa1 wa1Var, rb rbVar, int i10) {
        this.f16104a = i10;
        this.f16105b = x50Var;
        this.f16106c = wa1Var;
        this.f16107d = rbVar;
    }
}
