[PATCH 6.6 155/331] bpf: extract __check_reg_arg() utility function