r10100: move function so that deref-array macro is defined