package defpackage;

import com.strmr.ps.data.model.ContentItem;
import defpackage.cf1;
import defpackage.dw7;
import java.io.Serializable;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class bf1 implements gr3 {
    public final /* synthetic */ int a;
    public final /* synthetic */ Serializable b;
    public final /* synthetic */ Object c;

    public /* synthetic */ bf1(Serializable serializable, Object obj, int i) {
        this.a = i;
        this.b = serializable;
        this.c = obj;
    }

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        switch (this.a) {
            case 0:
                dw7.h hVar = (dw7.h) this.b;
                cf1 cf1Var = (cf1) this.c;
                ContentItem contentItem = (ContentItem) obj;
                Integer num = (Integer) obj2;
                num.intValue();
                int i = cf1.a.d;
                cr4.g(contentItem, "item");
                Object obj3 = hVar.a;
                cr4.d(obj3);
                cf1Var.b.invoke(contentItem, Integer.valueOf(((kd7) obj3).m), num);
                return e6a.a;
            default:
                String str = (String) this.b;
                e17 e17Var = (e17) this.c;
                g17 g17Var = (g17) obj2;
                int i2 = e17.e;
                cr4.g((String) obj, "<unused var>");
                if (g17Var != null && !g17Var.q) {
                    return g17Var;
                }
                if (g17Var != null) {
                    g17Var.a();
                }
                return new g17(str, e17Var.a, e17Var.b);
        }
    }
}
