clarify the purpose of this project
[nyanglibc.git] / wctype / wctrans.s
blob5c3f186d5cf1be7cb4b1f2c9610468e49a546929
1 .text
2 .p2align 4,,15
3 .globl __wctrans
4 .type __wctrans, @function
5 __wctrans:
6 pushq %r13
7 pushq %r12
8 pushq %rbp
9 pushq %rbx
10 subq $8, %rsp
11 movq _nl_current_LC_CTYPE@gottpoff(%rip), %rax
12 movq %fs:(%rax), %rax
13 movq (%rax), %r13
14 movq 152(%r13), %rbx
15 cmpb $0, (%rbx)
16 je .L5
17 movq %rdi, %r12
18 xorl %ebp, %ebp
19 jmp .L4
20 .p2align 4,,10
21 .p2align 3
22 .L9:
23 movq %rbx, %rdi
24 addq $1, %rbp
25 call strlen@PLT
26 leaq 1(%rbx,%rax), %rbx
27 cmpb $0, (%rbx)
28 je .L5
29 .L4:
30 movq %rbx, %rsi
31 movq %r12, %rdi
32 call strcmp
33 testl %eax, %eax
34 jne .L9
35 movl 208(%r13), %eax
36 leaq 8(%rbp,%rax), %rax
37 movq 0(%r13,%rax,8), %rax
38 addq $8, %rsp
39 popq %rbx
40 popq %rbp
41 popq %r12
42 popq %r13
43 ret
44 .p2align 4,,10
45 .p2align 3
46 .L5:
47 addq $8, %rsp
48 xorl %eax, %eax
49 popq %rbx
50 popq %rbp
51 popq %r12
52 popq %r13
53 ret
54 .size __wctrans, .-__wctrans
55 .weak wctrans
56 .set wctrans,__wctrans
57 .hidden strcmp
58 .hidden _nl_current_LC_CTYPE