what with one thing and another , it was some time of wandering through pig yards , shacks , and ill-smelling wharves before he found his way back to the proper district , there to find his cousin adam going up and down the street , banging on doors and hallooing loudly in search of him .