clarify the purpose of this project
[nyanglibc.git] / nptl / libc-lowlevellock.shared.s
blob5e662eb8dfd0113583c9f306bc58f33178f0becc
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section .rodata.str1.8,"aMS",@progbits,1
7 .align 8
8 .LC0:
9 .string "The futex facility returned an unexpected error code.\n"
10 #NO_APP
11 .text
12 .p2align 4,,15
13 .globl __lll_lock_wait_private
14 .hidden __lll_lock_wait_private
15 .type __lll_lock_wait_private, @function
16 __lll_lock_wait_private:
17 movl (%rdi), %eax
18 movq %rdi, %r8
19 cmpl $2, %eax
20 jne .L2
21 .L3:
22 xorl %r10d, %r10d
23 movl $2, %edx
24 movl $128, %esi
25 movq %r8, %rdi
26 movl $202, %eax
27 #APP
28 # 146 "../sysdeps/nptl/futex-internal.h" 1
29 syscall
31 # 0 "" 2
32 #NO_APP
33 cmpq $-4096, %rax
34 ja .L8
35 .L2:
36 movl $2, %eax
37 xchgl (%r8), %eax
38 testl %eax, %eax
39 jne .L3
40 ret
41 .p2align 4,,10
42 .p2align 3
43 .L8:
44 leal 11(%rax), %ecx
45 cmpl $11, %ecx
46 ja .L4
47 movl $1, %eax
48 salq %cl, %rax
49 testl $2177, %eax
50 jne .L2
51 .L4:
52 leaq .LC0(%rip), %rdi
53 subq $8, %rsp
54 call __GI___libc_fatal
55 .size __lll_lock_wait_private, .-__lll_lock_wait_private