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