We should assume reverse-engineering is legal. Some recent laws try to harm our right to reverse-engineer, but we shouldn't over-fear it, in practice making those laws more powerful than they actually are.