The two lāms have the same grammatical function.

The Imperfect Verb: Recognition, Time, Prefixes and Mood