Generic filling functions in assembly (x64 only).
Refactoring.