6 .section __libc_freeres_ptrs, "aw", %nobits
8 .section __libc_freeres_ptrs, "aw", %nobits
10 .section .rodata.str1.1,"aMS",@progbits,1
18 .section .text.compat,"ax",@progbits
20 .type getttyname, @function
41 cmpq
%r15, namelen.8896
(%rip
)
79 movq getttyname_name
(%rip
), %r8
82 leaq
(%r15,%rcx
), %rax
83 cmpq namelen.8896
(%rip
), %rax
90 leaq
(%rax
,%rax
), %rdi
91 movq
%rdi
, namelen.8896
(%rip
)
94 movq
%rax
, getttyname_name
(%rip
)
102 call __GI_mempcpy@PLT
107 leaq
(%r8,%r15), %rdi
133 movq __libc_errno@gottpoff
(%rip
), %rax
135 movq getttyname_name
(%rip
), %r14
136 movl
%ebx
, %fs:(%rax
)
144 movq __libc_errno@gottpoff
(%rip
), %rax
146 movl
%ebx
, %fs:(%rax
)
162 movq getttyname_name
(%rip
), %rdi
163 call __GI_mempcpy@PLT
176 .size getttyname, .-getttyname
177 .section .rodata.str1.1
179 .string "(unreachable)"
187 .type ttyname, @function
196 movq __libc_errno@gottpoff
(%rip
), %rbp
199 movl
%fs:0(%rbp
), %r14d
200 call __GI___tcgetattr
210 movabsq $
7310238724270485551, %rax
217 movl $
1714382444, 24(%rsp
)
221 movq buflen.8909
(%rip
), %rdx
225 movq ttyname_buf
(%rip
), %rax
232 cmpq buflen.8909
(%rip
), %rax
236 movq ttyname_buf
(%rip
), %rcx
238 movabsq $
7521962890978293032, %rax
249 leaq
.LC4(%rip), %rdi
260 movl
%r14d
, %fs:0(%rbp
)
264 leaq
.LC5(%rip), %rdi
273 leaq
.LC5(%rip), %rdi
286 leaq
.LC4(%rip), %rdi
315 movl $
19, %fs:0(%rbp
)
332 movq $
4095, buflen.8909
(%rip
)
335 movq
%rax
, ttyname_buf
(%rip
)
338 movq $
0, buflen.8909
(%rip
)
361 movq ttyname_buf
(%rip
), %rax
366 cmpl $
1701601889, 8(%rcx
)
383 .size ttyname, .-ttyname
385 .comm namelen.8896,8,8
387 .comm buflen.8909,8,8
388 .section __libc_freeres_ptrs
391 .type ttyname_buf, @object
396 .type getttyname_name, @object
397 .size getttyname_name, 8