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