first attempt at splitting the monolithic x64_heapScript