Drew's answer correctly identifies the source of the error message, but there are some additional problems with the code.
(defun yasm-calculate-indentation (oldfun)
"Add the formatting for a few other keywords I like."
((looking-at-p "section") 0) ; section
((looking-at-p "global") 0) ; global
((looking-at-p "extern") 0) ...
(advice-add :around #'asm-calculate-indentation #'yasm-calculate-indentation)
(advice-add #'asm-calculate-indentation :around #'yasm-calculate-indentation)
C-h f advice-add says:
advice-add is a compiled Lisp function in `nadvice.el'.
(advice-add SYMBOL WHERE FUNCTION &optional PROPS)
Like `add-function' but for the function named SYMBOL....