clarify the purpose of this project
[nyanglibc.git] / libio / putwchar_u.s
blob81024a96249a3986f91e6a8d821a7bfbecb09ae7
1 .text
2 .p2align 4,,15
3 .globl putwchar_unlocked
4 .type putwchar_unlocked, @function
5 putwchar_unlocked:
6 movl %edi, %eax
7 movq stdout(%rip), %rdi
8 movq 160(%rdi), %rdx
9 testq %rdx, %rdx
10 je .L2
11 movq 32(%rdx), %rcx
12 cmpq 40(%rdx), %rcx
13 jnb .L2
14 leaq 4(%rcx), %rsi
15 movq %rsi, 32(%rdx)
16 movl %eax, (%rcx)
17 ret
18 .p2align 4,,10
19 .p2align 3
20 .L2:
21 movl %eax, %esi
22 jmp __woverflow
23 .size putwchar_unlocked, .-putwchar_unlocked
24 .hidden __woverflow