clarify the purpose of this project
[nyanglibc.git] / libio / getwchar_u.s
blobf1034ae80bfad37e12489d3092779b1e05b2ba69
1 .text
2 .p2align 4,,15
3 .globl getwchar_unlocked
4 .type getwchar_unlocked, @function
5 getwchar_unlocked:
6 movq stdin(%rip), %rdi
7 movq 160(%rdi), %rax
8 testq %rax, %rax
9 je .L2
10 movq (%rax), %rdx
11 cmpq 8(%rax), %rdx
12 jnb .L2
13 leaq 4(%rdx), %rcx
14 movq %rcx, (%rax)
15 movl (%rdx), %eax
16 ret
17 .p2align 4,,10
18 .p2align 3
19 .L2:
20 jmp __wuflow
21 .size getwchar_unlocked, .-getwchar_unlocked
22 .hidden __wuflow