clarify the purpose of this project
[nyanglibc.git] / signal / signal.shared.s
blob64879db4f203b6755ec8b1adfad406a74f1f635f
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .type __bsd_signal.part.1, @function
9 __bsd_signal.part.1:
10 subq $328, %rsp
11 movl $1, %edx
12 movq %rsi, (%rsp)
13 leal -1(%rdi), %esi
14 movq $0, 8(%rsp)
15 movl %esi, %eax
16 sarl $31, %eax
17 shrl $26, %eax
18 leal (%rsi,%rax), %ecx
19 andl $63, %ecx
20 subl %eax, %ecx
21 leal 62(%rdi), %eax
22 salq %cl, %rdx
23 testl %esi, %esi
24 leaq _sigintr(%rip), %rcx
25 cmovns %esi, %eax
26 movq %rsp, %rsi
27 sarl $6, %eax
28 cltq
29 orq %rdx, 8(%rsp,%rax,8)
30 testq %rdx, (%rcx,%rax,8)
31 leaq 160(%rsp), %rdx
32 sete %al
33 movzbl %al, %eax
34 sall $28, %eax
35 movl %eax, 136(%rsp)
36 call __GI___sigaction
37 testl %eax, %eax
38 movq $-1, %rdx
39 js .L1
40 movq 160(%rsp), %rdx
41 .L1:
42 movq %rdx, %rax
43 addq $328, %rsp
44 ret
45 .size __bsd_signal.part.1, .-__bsd_signal.part.1
46 .p2align 4,,15
47 .globl __bsd_signal
48 .type __bsd_signal, @function
49 __bsd_signal:
50 leal -1(%rdi), %eax
51 cmpl $63, %eax
52 ja .L10
53 cmpq $-1, %rsi
54 jne .L14
55 .L10:
56 movq __libc_errno@gottpoff(%rip), %rax
57 movl $22, %fs:(%rax)
58 movq $-1, %rax
59 ret
60 .p2align 4,,10
61 .p2align 3
62 .L14:
63 leal -32(%rdi), %eax
64 cmpl $1, %eax
65 jbe .L10
66 jmp __bsd_signal.part.1
67 .size __bsd_signal, .-__bsd_signal
68 .weak ssignal
69 .set ssignal,__bsd_signal
70 .weak signal
71 .set signal,__bsd_signal
72 .weak bsd_signal
73 .set bsd_signal,__bsd_signal
74 .hidden _sigintr
75 .comm _sigintr,128,32