@Mongo ...Re: "the court ruled that reverse engineering was protected"
If reverse engineering done properly, then it would be ok.
It means that you have a clean room where you transcribe your notes about the product you're reverse engineering and then hand them to engineers to build a net new product from your notes.
Its when you break this wall and the net new code wasn't developed cleanly, you run in to issues.