clarify the purpose of this project
[nyanglibc.git] / nptl / sigwait.shared.s
blob1ff46440647054ebb96dd6ee25f9c7c650ef741d
1 .text
2 .p2align 4,,15
3 .globl __sigwait
4 .type __sigwait, @function
5 __sigwait:
6 pushq %r12
7 pushq %rbp
8 movq %rsi, %r12
9 pushq %rbx
10 movq %rdi, %rbp
11 addq $-128, %rsp
12 movq %rsp, %rbx
13 jmp .L3
14 .p2align 4,,10
15 .p2align 3
16 .L9:
17 movq errno@gottpoff(%rip), %rax
18 movl %fs:(%rax), %eax
19 cmpl $4, %eax
20 jne .L1
21 .L3:
22 xorl %edx, %edx
23 movq %rbx, %rsi
24 movq %rbp, %rdi
25 call __sigtimedwait@PLT
26 testl %eax, %eax
27 js .L9
28 movl (%rsp), %eax
29 movl %eax, (%r12)
30 xorl %eax, %eax
31 .L1:
32 subq $-128, %rsp
33 popq %rbx
34 popq %rbp
35 popq %r12
36 ret
37 .size __sigwait, .-__sigwait
38 .globl __libc_sigwait
39 .set __libc_sigwait,__sigwait
40 .weak sigwait
41 .set sigwait,__sigwait