Even if China doesn't reach out, Russia likely would. The Russians already have their boots in Mali and other African countries and proved willing to support the Malian government against terrorists.They donated 24 million dollars in 2024 to Somalia. China doesn't care that much about African countries. Their focus is South East Asia and Asia in general.
If the West stopped funding Somalia, Somalia would go back to 1994-2002 when there was barely anyone on Earth who gave a shit about the country.
The idea that African countries can just switch from depending on the U.S. to relying on China isn't realistic. China doesn't care that much about Africa. Look at the Congo, their number 3 biggest trading partner, and China isn't doing shit to stop Rwanda. That's why the president of Congo is begging Trump for help.