Patent fight prompts Avistar to slash staff, China plans