Rather well, actually, all told. It was the reverse engineering and other loss of control that allowed other manufacturers to make PC clones and undercut IBM. OS/2's another story, but that's not what caused IBM to exit the market. IBM PC-compatible computers running a Microsoft operating system still rule the business and home computer markets. Lenovo bought IBM's laptop computer business and it's still a respected business laptop brand.
Another attempt by SGI in the late 1990s to introduce its own family of Intel-based workstations running Windows NT (see also SGI Visual Workstation) proved to be a financial disaster, and shook customer confidence in SGI’s commitment to its own MIPS-based line.