package n0;

import android.content.Context;
import android.os.Bundle;
import com.google.android.gms.ads.nonagon.signalgeneration.p;
import com.google.android.gms.internal.ads.l20;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Callable;

/* JADX INFO: loaded from: classes.dex */
public final class f implements Callable {

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

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

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

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

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

    public /* synthetic */ f(p pVar, l20 l20Var, int i10, Bundle bundle) {
        this.f30733a = 2;
        this.f30734b = pVar;
        this.f30735c = l20Var;
        this.f30736d = i10;
        this.f30737e = bundle;
    }

    public final h a() {
        int i10 = this.f30733a;
        int i11 = this.f30736d;
        Object obj = this.f30737e;
        Object obj2 = this.f30735c;
        Object obj3 = this.f30734b;
        switch (i10) {
            case 0:
                Object[] objArr = {(e) obj};
                ArrayList arrayList = new ArrayList(1);
                Object obj4 = objArr[0];
                Objects.requireNonNull(obj4);
                arrayList.add(obj4);
                return i.b((String) obj3, (Context) obj2, Collections.unmodifiableList(arrayList), i11);
            default:
                try {
                    return i.b((String) obj3, (Context) obj2, (List) obj, i11);
                } catch (Throwable unused) {
                    return new h(-3);
                }
        }
    }

    @Override // java.util.concurrent.Callable
    public final /* synthetic */ Object call() {
        switch (this.f30733a) {
            case 0:
                return a();
            case 1:
                return a();
            default:
                return ((p) this.f30734b).a3((l20) this.f30735c, this.f30736d, (Bundle) this.f30737e);
        }
    }

    public /* synthetic */ f(String str, Context context, Object obj, int i10, int i11) {
        this.f30733a = i11;
        this.f30734b = str;
        this.f30735c = context;
        this.f30737e = obj;
        this.f30736d = i10;
    }
}
