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