clarify the purpose of this project
[nyanglibc.git] / string / argz-next.shared.s
blob1d247833aa43471ae20b17ac4f5f9beb536b705b
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 __GI___argz_next
9 .hidden __GI___argz_next
10 .type __GI___argz_next, @function
11 __GI___argz_next:
12 testq %rdx, %rdx
13 je .L2
14 pushq %rbp
15 leaq (%rdi,%rsi), %rbp
16 pushq %rbx
17 xorl %eax, %eax
18 subq $8, %rsp
19 cmpq %rdx, %rbp
20 jbe .L1
21 movq %rdx, %rbx
22 movq %rdx, %rdi
23 call __GI_strlen@PLT
24 leaq 1(%rbx,%rax), %rax
25 cmpq %rax, %rbp
26 jbe .L11
27 .L1:
28 addq $8, %rsp
29 popq %rbx
30 popq %rbp
31 ret
32 .p2align 4,,10
33 .p2align 3
34 .L2:
35 testq %rsi, %rsi
36 movq %rdx, %rax
37 cmovne %rdi, %rax
38 ret
39 .L11:
40 xorl %eax, %eax
41 jmp .L1
42 .size __GI___argz_next, .-__GI___argz_next
43 .weak __GI_argz_next
44 .hidden __GI_argz_next
45 .set __GI_argz_next,__GI___argz_next
46 .weak argz_next
47 .set argz_next,__GI_argz_next
48 .globl __argz_next
49 .set __argz_next,__GI___argz_next