with russia defeated and china facing annihilation , warlord sheng shicai switched allegiances and withdrew xinjiang from nationalist china , declaring it an independent republic requesting japanese protection , while mongolia was invaded and annexed by the japanese puppet state of mengjiang .