"He gave me food."
Translation:Dia memberi saya makanan.
A pronoun following a noun indicates possession, so "dia memberi mananan saya" is indeed "he gave my food", whereas "dia memberi saya makanan" = he gave me food, and so on...
"Makanan saya diberi olehnya kepada sang pemulung" "My food was given by him to the scavenger"
Sang pemulung memberi saya makanannya (dia) = The scavenger gave me his food"