clarify the purpose of this project
[nyanglibc.git] / libio / putwchar_u.shared.s
blobaf646a737d0692d6a35aaf2db235f244f92345eb
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 putwchar_unlocked
9 .type putwchar_unlocked, @function
10 putwchar_unlocked:
11 movq stdout@GOTPCREL(%rip), %rdx
12 movl %edi, %eax
13 movq (%rdx), %rdi
14 movq 160(%rdi), %rdx
15 testq %rdx, %rdx
16 je .L2
17 movq 32(%rdx), %rcx
18 cmpq 40(%rdx), %rcx
19 jnb .L2
20 leaq 4(%rcx), %rsi
21 movq %rsi, 32(%rdx)
22 movl %eax, (%rcx)
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L2:
27 movl %eax, %esi
28 jmp __GI___woverflow
29 .size putwchar_unlocked, .-putwchar_unlocked