clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_getattr_default_np.s
blobd461b825466aa3fc9104ead3c9547429ad433773
1 .text
2 .p2align 4,,15
3 .globl __pthread_getattr_default_np
4 .type __pthread_getattr_default_np, @function
5 __pthread_getattr_default_np:
6 pushq %rbx
7 xorl %eax, %eax
8 movq %rdi, %rbx
9 movl $1, %edx
10 lock cmpxchgl %edx, __default_pthread_attr_lock(%rip)
11 jne .L6
12 .L2:
13 leaq __default_pthread_attr(%rip), %rsi
14 movq %rbx, %rdi
15 call __pthread_attr_copy@PLT
16 movl %eax, %r8d
17 xorl %eax, %eax
18 #APP
19 # 26 "pthread_getattr_default_np.c" 1
20 xchgl %eax, __default_pthread_attr_lock(%rip)
21 # 0 "" 2
22 #NO_APP
23 cmpl $1, %eax
24 jg .L7
25 movl %r8d, %eax
26 popq %rbx
27 ret
28 .p2align 4,,10
29 .p2align 3
30 .L6:
31 leaq __default_pthread_attr_lock(%rip), %rdi
32 call __lll_lock_wait_private@PLT
33 jmp .L2
34 .p2align 4,,10
35 .p2align 3
36 .L7:
37 xorl %r10d, %r10d
38 movl $1, %edx
39 movl $129, %esi
40 leaq __default_pthread_attr_lock(%rip), %rdi
41 movl $202, %eax
42 #APP
43 # 26 "pthread_getattr_default_np.c" 1
44 syscall
46 # 0 "" 2
47 #NO_APP
48 movl %r8d, %eax
49 popq %rbx
50 ret
51 .size __pthread_getattr_default_np, .-__pthread_getattr_default_np
52 .weak pthread_getattr_default_np
53 .set pthread_getattr_default_np,__pthread_getattr_default_np