when amos woke up , he was lying on the floor of the ship 's brig inside the cell , and jack , in his underwear-for the sailors had jumped on him when he came back in the morning and given the jailer back his clothes-was trying to wake him up .