Does "a wearied security guard argued with residents desperate to check on their apartments as a dog, perhaps separated from its owners" mean "a wearied security guard argued with residents who (the residents) were desperate to check on their apartments like a dog (to check on its doghouse) , (and the dog was perhaps separated from its owners )"?
Context:
At Qihang Jiayuan, a forest of 30-story apartment buildings,
a wearied security guard argued with residents desperate to check on their apartments as a dog, perhaps separated from its owners, ambled anxiously along the glass-strewn boulevard.
Many residents said they would stay with relatives in other parts of the city, but Wang Jinxue, 55, a laborer from nearby Hebei Province, said he was unsure where to go because the blasts had destroyed the company dormitory where he lived.
More:
http://www.nytimes.com/2015/08/14/world/asia/tianjin-china-explosions.html