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