clarify the purpose of this project
[nyanglibc.git] / nptl / funlockfile.shared.s
blobaa6e3899bd8d6cfbb1d5ad727f220f0984994351
1 .text
2 .p2align 4,,15
3 .globl __funlockfile
4 .hidden __funlockfile
5 .type __funlockfile, @function
6 __funlockfile:
7 movq 136(%rdi), %rdi
8 movl 4(%rdi), %eax
9 subl $1, %eax
10 testl %eax, %eax
11 movl %eax, 4(%rdi)
12 jne .L1
13 movq $0, 8(%rdi)
14 #APP
15 # 27 "../sysdeps/pthread/funlockfile.c" 1
16 xchgl %eax, (%rdi)
17 # 0 "" 2
18 #NO_APP
19 cmpl $1, %eax
20 jg .L6
21 .L1:
22 rep ret
23 .p2align 4,,10
24 .p2align 3
25 .L6:
26 xorl %r10d, %r10d
27 movl $1, %edx
28 movl $129, %esi
29 movl $202, %eax
30 #APP
31 # 27 "../sysdeps/pthread/funlockfile.c" 1
32 syscall
34 # 0 "" 2
35 #NO_APP
36 ret
37 .size __funlockfile, .-__funlockfile
38 .weak funlockfile
39 .set funlockfile,__funlockfile
40 .globl _IO_funlockfile
41 .set _IO_funlockfile,__funlockfile