Trim and write ASSR to file