Salah...I am going to give you a great AhhhHah moment of your own self-discovery...and it won't be hard to grasp at all.
Look at the great sentence examples here in the dictionary.
For Actor Focused verbs such as Mag, Um, etc...look at the pronoun following the verb..."KA" or another ang pronoun or ang phrase. Ang always marks the subject...here the Actor...of an Actor Focused Verb. Wow. Try to find that in two simple sentences anywhere.
For Object Focused verbs such as In, An, etc.,... look at the pronoun following the verb..."MO" or another ng pronoun or ng phrase. NG always marks the non-subject which here is the Actor. Then look for the Ang pronoun or Phrase after the NG...AGAIN ang always marks the topic...here the Object...of an Object focused verb. Wow...right.
Yes...Topic follows the Focus and determines the pronoun case. Those Tagalogs are CRAFTY naman!
Now BEWARE of the nuance junkies...look at 10 Actor Focus verb examples here and 10 Object Focus verb examples here...and your intuition will have dived...to DhhEEEEEEP TAGALOG.
Good luck! Enjoy.