Refactor fifo drain loop
Another minor loop refactoring
Refactor weird mask op to show what we mean