added getdents in amd64(draft)