clarify the purpose of this project
[nyanglibc.git] / wctype / towctrans_l.shared.s
blobb112d16190f7fea8c3b1866f2d25b13ae1968f40
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 __towctrans_l
9 .type __towctrans_l, @function
10 __towctrans_l:
11 testq %rsi, %rsi
12 movl %edi, %eax
13 je .L2
14 movl (%rsi), %ecx
15 movl %edi, %edx
16 shrl %cl, %edx
17 cmpl 4(%rsi), %edx
18 jnb .L2
19 addl $5, %edx
20 movl (%rsi,%rdx,4), %edx
21 testl %edx, %edx
22 je .L2
23 movl 8(%rsi), %ecx
24 shrl %cl, %edi
25 movl %edi, %ecx
26 andl 12(%rsi), %ecx
27 leaq (%rsi,%rcx,4), %rcx
28 movl (%rcx,%rdx), %edx
29 testl %edx, %edx
30 je .L2
31 movl %eax, %ecx
32 andl 16(%rsi), %ecx
33 leaq (%rsi,%rcx,4), %rcx
34 addl (%rcx,%rdx), %eax
35 .L2:
36 rep ret
37 .size __towctrans_l, .-__towctrans_l
38 .weak towctrans_l
39 .set towctrans_l,__towctrans_l