[PATCH 6.6.y 10/17] bpf: extract __check_reg_arg() utility function