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