Borrowed from Dari مَگَم (magam), a variant of مَگَر (magar).
mágam (conjunction, Perso-Arabic spelling مگم)