clarify the purpose of this project
[nyanglibc.git] / signal / sigwait.shared.s
blobfcf8e5732c9c3a8fb0ff4051e24d2544c023b082
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 __GI___sigwait
9 .hidden __GI___sigwait
10 .type __GI___sigwait, @function
11 __GI___sigwait:
12 pushq %r12
13 pushq %rbp
14 movq %rsi, %r12
15 pushq %rbx
16 movq %rdi, %rbp
17 addq $-128, %rsp
18 movq %rsp, %rbx
19 jmp .L3
20 .p2align 4,,10
21 .p2align 3
22 .L9:
23 movq __libc_errno@gottpoff(%rip), %rax
24 movl %fs:(%rax), %eax
25 cmpl $4, %eax
26 jne .L1
27 .L3:
28 xorl %edx, %edx
29 movq %rbx, %rsi
30 movq %rbp, %rdi
31 call __GI___sigtimedwait
32 testl %eax, %eax
33 js .L9
34 movl (%rsp), %eax
35 movl %eax, (%r12)
36 xorl %eax, %eax
37 .L1:
38 subq $-128, %rsp
39 popq %rbx
40 popq %rbp
41 popq %r12
42 ret
43 .size __GI___sigwait, .-__GI___sigwait
44 .globl __sigwait
45 .set __sigwait,__GI___sigwait
46 .globl __libc_sigwait
47 .set __libc_sigwait,__sigwait
48 .weak sigwait
49 .set sigwait,__sigwait