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

import android.os.RemoteException;

/* JADX INFO: loaded from: classes2.dex */
public final class hs extends qr {

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

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

    @Override // com.google.android.gms.internal.ads.rr
    public final void I2(gr grVar) {
        int i10 = this.f12252a;
        Object obj = this.f12253b;
        switch (i10) {
            case 0:
                is isVar = (is) obj;
                j7.g gVar = isVar.f12624a;
                hr hrVarB = isVar.b(grVar);
                vu0 vu0Var = (vu0) ((com.google.ads.mediation.e) gVar).f7713b;
                vu0Var.getClass();
                com.google.android.gms.common.internal.w.d("#008 Must be called on the main UI thread.");
                q7.j.a("Adapter called onAdLoaded with template id ".concat(String.valueOf(hrVarB.zzb())));
                vu0Var.f17780d = hrVarB;
                try {
                    ((cw) vu0Var.f17778b).zzj();
                    return;
                } catch (RemoteException e10) {
                    q7.j.zzl("#007 Could not call remote method.", e10);
                    return;
                }
            default:
                ey eyVar = (ey) obj;
                eyVar.getClass();
                eyVar.a(grVar);
                throw null;
        }
    }
}
