rewrote os x in assembly