as the Kingdom of Maynila , Namayan , Dynasty of Tondo , Madya-as Confederacy , the Rajahnates of Butuan , the Visayas, and sultanates of Maguindanao , and Sulu . [18] [19] [20] [21] Some of these indigenous tribes were part of the Malayan empires of Srivijaya , Majapahit , and