summaryrefslogtreecommitdiff
path: root/macho64
diff options
context:
space:
mode:
Diffstat (limited to 'macho64')
-rw-r--r--macho64/afileIO3.s16
1 files changed, 9 insertions, 7 deletions
diff --git a/macho64/afileIO3.s b/macho64/afileIO3.s
index 64a270e..5d40dc2 100644
--- a/macho64/afileIO3.s
+++ b/macho64/afileIO3.s
@@ -824,16 +824,18 @@ st_copy_string2:
sub rcx,1
att_jnc copy_st_lp2
- mov r9,rsp
- mov r8,rdi
- lea rdx,[r15*8]
- mov rcx,rbx
-
+ mov rcx,rsp
+ mov rdx,rdi
mov rbp,rsp
- or rsp,8
- sub rsp,40
+ and rsp,-16
+ mov r13,rsi
+ lea rsi,[r15*8]
+ mov r14,rdi
+ mov rdi,rbx
att_call _file_read_s_line
mov rsp,rbp
+ mov rsi,r13
+ mov rdi,r14
test rax,rax
js readLineSF_again