clean up a lot of duplicated comparisons in find_previous_arg_address