some work on amd64 codegen, not finished, but done working for the day, so commiting what I have