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