clarify the purpose of this project
[nyanglibc.git] / io / rtld-fcntl_nocancel.shared.s
blobcb80368bfbce48de8460019a29cd059675f8f0df
1 .text
2 .p2align 4,,15
3 .globl __fcntl64_nocancel_adjusted
4 .hidden __fcntl64_nocancel_adjusted
5 .type __fcntl64_nocancel_adjusted, @function
6 __fcntl64_nocancel_adjusted:
7 cmpl $9, %esi
8 je .L10
9 movl $72, %eax
10 #APP
11 # 63 "../sysdeps/unix/sysv/linux/fcntl_nocancel.c" 1
12 syscall
14 # 0 "" 2
15 #NO_APP
16 cmpq $-4096, %rax
17 ja .L8
18 .L1:
19 rep ret
20 .p2align 4,,10
21 .p2align 3
22 .L10:
23 leaq -8(%rsp), %rdx
24 movl $16, %esi
25 movl $72, %eax
26 #APP
27 # 55 "../sysdeps/unix/sysv/linux/fcntl_nocancel.c" 1
28 syscall
30 # 0 "" 2
31 #NO_APP
32 cmpl $-4096, %eax
33 jbe .L11
34 .L8:
35 negl %eax
36 movl %eax, rtld_errno(%rip)
37 movl $-1, %eax
38 ret
39 .p2align 4,,10
40 .p2align 3
41 .L11:
42 cmpl $2, -8(%rsp)
43 movl -4(%rsp), %eax
44 jne .L1
45 negl %eax
46 ret
47 .size __fcntl64_nocancel_adjusted, .-__fcntl64_nocancel_adjusted
48 .p2align 4,,15
49 .globl __GI___fcntl64_nocancel
50 .hidden __GI___fcntl64_nocancel
51 .type __GI___fcntl64_nocancel, @function
52 __GI___fcntl64_nocancel:
53 subq $80, %rsp
54 leaq 88(%rsp), %rax
55 movq %rdx, 48(%rsp)
56 movl $16, 8(%rsp)
57 movq %rax, 16(%rsp)
58 leaq 32(%rsp), %rax
59 movq %rax, 24(%rsp)
60 call __fcntl64_nocancel_adjusted
61 addq $80, %rsp
62 ret
63 .size __GI___fcntl64_nocancel, .-__GI___fcntl64_nocancel
64 .globl __fcntl64_nocancel
65 .set __fcntl64_nocancel,__GI___fcntl64_nocancel
66 .hidden rtld_errno