The Atlantic has a disturbing and important article about Pakistan and its relationship with the US. I urge you to read it.
There is of course a China angle:
Pakistan’s military chiefs are aware that America’s military has developed plans for an emergency nuclear-disablement operation in their country, and they have periodically threatened to ally themselves with China, as a way to undercut U.S. power in South Asia. In a recent statement quite obviously meant for American ears, Pakistan’s prime minister, Yousuf Raza Gilani, described the Pakistani-Chinese relationship as “higher than the mountains, deeper than the oceans, stronger than steel, and sweeter than honey.” But China, too, is worried about Pakistan’s stability, and has recently alleged that Pakistan has harbored Uighur separatists operating in western China. According to American sources, China has, in secret talks with the U.S., reached an understanding that, should America decide to send forces into Pakistan to secure its nuclear weapons, China would raise no objections. (An Obama-administration spokesperson had no comment.)…
According to U.S. military planners, preparations for the emergency denuclearization of Pakistan are on par with only two other priority-one global-crisis plans: one involves the possible U.S. invasion of Iran and the other involves a possible conflict with China. All three of these potential crises are considered low-probability but high-risk, to be prepared for accordingly.