clarify the purpose of this project
[nyanglibc.git] / stdio-common / funlockfile.shared.s
blob401f127bb270fd9312b0bf65544239b1b143fa3d
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __funlockfile
9 .hidden __funlockfile
10 .type __funlockfile, @function
11 __funlockfile:
12 movq 136(%rdi), %rdi
13 movl 4(%rdi), %eax
14 subl $1, %eax
15 testl %eax, %eax
16 movl %eax, 4(%rdi)
17 jne .L1
18 movq $0, 8(%rdi)
19 #APP
20 # 27 "../sysdeps/pthread/funlockfile.c" 1
21 movl %fs:24,%edx
22 # 0 "" 2
23 #NO_APP
24 testl %edx, %edx
25 jne .L4
26 subl $1, (%rdi)
27 ret
28 .p2align 4,,10
29 .p2align 3
30 .L4:
31 #APP
32 # 27 "../sysdeps/pthread/funlockfile.c" 1
33 xchgl %eax, (%rdi)
34 # 0 "" 2
35 #NO_APP
36 cmpl $1, %eax
37 jle .L1
38 xorl %r10d, %r10d
39 movl $1, %edx
40 movl $129, %esi
41 movl $202, %eax
42 #APP
43 # 27 "../sysdeps/pthread/funlockfile.c" 1
44 syscall
46 # 0 "" 2
47 #NO_APP
48 .L1:
49 rep ret
50 .size __funlockfile, .-__funlockfile
51 .weak funlockfile
52 .set funlockfile,__funlockfile
53 .globl _IO_funlockfile
54 .set _IO_funlockfile,__funlockfile