The checks are performed in the following order:
Check the install name of the dynamic library file against the specified -install_name argument and if it does not match it exit with a value of 2.
Check the segment address table specified by -seg_addr_table for an entry with the dynamic library file's install name and if one is not found in the table exit with a value of 3.
Check the dynamic library file's address against the address in the matching entry in the segment address table specified by -seg_addr_table and it it does not match exit with a value of 4.
Check the address of the dynamic library and if it is zero exit with a value of 5.
If there is any other errors check_dylib(l) exits with a value of 1. If no checks fail then check_dylib(l) exits with a value of 0.