That would have depended on the period.
https://en.wikipedia.org/wiki/Mogadishu
"Tradition and old records assert that southern Somalia, including the Mogadishu area, was inhabited very early by
hunter-gatherers of
Khoisan descent. Although most of these early inhabitants are believed to have been either overwhelmed, driven away or, in some cases, assimilated by later migrants to the area, physical traces of their occupation survive in certain ethnic minority groups inhabiting modern-day
Jubaland and other parts of the south. The latter descendants include
relict populations such as the Eile, Aweer, the Wa-Ribi, and especially the Wa-Boni.
[8][9] By the time of the arrival of peoples from the
Cushitic Rahanweyn (Digil and Mirifle) clan confederacy, who would go on to establish a local aristocracy, other Cushitic groups affiliated with the
Oromo (Wardai) and
Ajuuraan (Ma'adanle) had already formed settlements of their own in the sub-region.
[8][9]"
The Eyle have an archaeological record that goes back 11,000 years. The Aweer, Wa-Ribi and Wa-Boni may go back as far. The Tunni would have been part of the Rahanweyn migrations and come at a later date, but were likely in the area when the Shirazi arrived.