The sentence at issue is
When I woke up with my legs dangling over the side of the bed, my feet touched something other than the floor.
Could you help me determine whether "with my legs dangling over the side of the bed" is an adverbial clause of manner or and adverbial clause of accompaniment, or does it have an entirely different function? I have searched on the Internet but found very few examples of adverb clauses starting with "with", so further explanations would be extremely appreciated!