No longer segfaults when writing assembly to file