The logic of this line is:

- *If either `m1` or `m2`, but not both...*
  - If `m1`, then the second one takes precedence; else, the first one does.
- *Otherwise (if neither or both are minimized)...*
  - Use the preexisting algorithm.