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