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