clarify the purpose of this project
[nyanglibc.git] / rt / aio_sigqueue.shared.s
blob6a35a048c7b945f3b285196e500ed6aa20119afa
1 .text
2 .p2align 4,,15
3 .globl __aio_sigqueue
4 .hidden __aio_sigqueue
5 .type __aio_sigqueue, @function
6 __aio_sigqueue:
7 pushq %r12
8 pushq %rbp
9 xorl %eax, %eax
10 pushq %rbx
11 movl %edi, %ebx
12 movl $15, %ecx
13 movq %rsi, %r12
14 addq $-128, %rsp
15 movq %rsp, %rbp
16 movq $0, 4(%rsp)
17 movq $0, 120(%rsp)
18 leaq 8(%rbp), %rdi
19 rep stosq
20 movl %edx, 16(%rsp)
21 movl %ebx, (%rsp)
22 movl $-4, 8(%rsp)
23 call getuid@PLT
24 movq %r12, 24(%rsp)
25 movl %eax, 20(%rsp)
26 movq %rbp, %rdx
27 movl %ebx, %esi
28 movl 16(%rsp), %edi
29 movl $129, %eax
30 #APP
31 # 45 "../sysdeps/unix/sysv/linux/aio_sigqueue.c" 1
32 syscall
34 # 0 "" 2
35 #NO_APP
36 cmpq $-4096, %rax
37 ja .L6
38 subq $-128, %rsp
39 popq %rbx
40 popq %rbp
41 popq %r12
42 ret
43 .p2align 4,,10
44 .p2align 3
45 .L6:
46 movq errno@gottpoff(%rip), %rdx
47 negl %eax
48 movl %eax, %fs:(%rdx)
49 subq $-128, %rsp
50 movl $-1, %eax
51 popq %rbx
52 popq %rbp
53 popq %r12
54 ret
55 .size __aio_sigqueue, .-__aio_sigqueue