There was a whole thing at Apple about doing a “clean room” reimplementation of the IBM BIOS. They would not hire anyone that had ever even potentially seen IBM’s proprietary code, since they knew a lawsuit was coming.
This is what the infamous “Are you a (code) virgin” question was about.