It's said that the regulation is ambiguious, and the most secure way is apply for your h1B visa in China. But it may take some time.