clarify the purpose of this project
[nyanglibc.git] / wctype / towctrans.s
blobffd06e983947b826e7c11525000b8a774f417497
1 .text
2 .p2align 4,,15
3 .globl __towctrans
4 .hidden __towctrans
5 .type __towctrans, @function
6 __towctrans:
7 testq %rsi, %rsi
8 movl %edi, %eax
9 je .L2
10 movl (%rsi), %ecx
11 movl %edi, %edx
12 shrl %cl, %edx
13 cmpl 4(%rsi), %edx
14 jnb .L2
15 addl $5, %edx
16 movl (%rsi,%rdx,4), %edx
17 testl %edx, %edx
18 je .L2
19 movl 8(%rsi), %ecx
20 shrl %cl, %edi
21 movl %edi, %ecx
22 andl 12(%rsi), %ecx
23 leaq (%rsi,%rcx,4), %rcx
24 movl (%rcx,%rdx), %edx
25 testl %edx, %edx
26 je .L2
27 movl %eax, %ecx
28 andl 16(%rsi), %ecx
29 leaq (%rsi,%rcx,4), %rcx
30 addl (%rcx,%rdx), %eax
31 .L2:
32 rep ret
33 .size __towctrans, .-__towctrans
34 .weak towctrans
35 .set towctrans,__towctrans