          (. f apply f (to-array arglist)))))
   ([f x y z args]
      (let [arglist (list* x y z args)
-           fixed-arity (. f cljs$lang$maxFixedArity)]
+           fixed-arity (. f -cljs$lang$maxFixedArity)]
        (if (. f cljs$lang$applyTo)
          (if (<= (bounded-count arglist fixed-arity)
                  fixed-arity)

         (. f apply f (to-array arglist)))))
  ([f a b c d & args]
     (let [arglist (cons a (cons b (cons c (cons d (spread args)))))
           fixed-arity (. f cljs$lang$maxFixedArity)]
       (if (. f cljs$lang$applyTo)
         (if (<= (bounded-count arglist fixed-arity)
                 fixed-arity)

         (. f apply f (to-array arglist)))))
  ([f x y args]
     (let [arglist (list* x y args)
           fixed-arity (. f -cljs$lang$maxFixedArity)]
       (if (. f cljs$lang$applyTo)
         (if (<= (bounded-count arglist fixed-arity)
                 fixed-arity)
