package defpackage;

import com.strmr.ps.data.model.debrid.DebridFileItem;
import java.net.SocketTimeoutException;
import java.util.concurrent.CancellationException;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class kv1 implements ir3 {
    public final /* synthetic */ int a;

    public /* synthetic */ kv1(int i) {
        this.a = i;
    }

    @Override // defpackage.ir3
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        switch (this.a) {
            case 0:
                ((Integer) obj2).intValue();
                ((Integer) obj3).intValue();
                cr4.g((DebridFileItem) obj, "<unused var>");
                return e6a.a;
            case 1:
                Throwable th = (Throwable) obj3;
                cr4.g((ee4) obj, "$this$retryOnExceptionIf");
                cr4.g((fd4) obj2, "<unused var>");
                cr4.g(th, "cause");
                jh5 jh5Var = pd4.a;
                Throwable thA = vq2.a(th);
                return Boolean.valueOf(((thA instanceof qd4) || (thA instanceof cc1) || (thA instanceof SocketTimeoutException) || (th instanceof CancellationException)) ? false : true);
            default:
                rd4 rd4Var = (rd4) obj3;
                cr4.g((ee4) obj, "$this$retryIf");
                cr4.g((ed4) obj2, "<unused var>");
                cr4.g(rd4Var, "response");
                int i = rd4Var.getA().a;
                return Boolean.valueOf(500 <= i && i < 600);
        }
    }
}
