clarify the purpose of this project
[nyanglibc.git] / nptl / cnd_init.s
blob5b2684ad6048bd44d4631daff965830ff948a317
1 .text
2 .p2align 4,,15
3 .globl cnd_init
4 .type cnd_init, @function
5 cnd_init:
6 subq $8, %rsp
7 xorl %esi, %esi
8 call __pthread_cond_init@PLT
9 cmpl $12, %eax
10 je .L3
11 jle .L13
12 cmpl $16, %eax
13 je .L6
14 cmpl $110, %eax
15 jne .L2
16 movl $4, %eax
17 .L1:
18 addq $8, %rsp
19 ret
20 .p2align 4,,10
21 .p2align 3
22 .L6:
23 movl $1, %eax
24 addq $8, %rsp
25 ret
26 .p2align 4,,10
27 .p2align 3
28 .L13:
29 testl %eax, %eax
30 je .L1
31 .L2:
32 movl $2, %eax
33 addq $8, %rsp
34 ret
35 .p2align 4,,10
36 .p2align 3
37 .L3:
38 movl $3, %eax
39 addq $8, %rsp
40 ret
41 .size cnd_init, .-cnd_init