clarify the purpose of this project
[nyanglibc.git] / string / argz-next.s
blob1d116269848fe526129049dc56f59dffeaed03f7
1 .text
2 .p2align 4,,15
3 .globl __argz_next
4 .hidden __argz_next
5 .type __argz_next, @function
6 __argz_next:
7 testq %rdx, %rdx
8 je .L2
9 pushq %rbp
10 leaq (%rdi,%rsi), %rbp
11 pushq %rbx
12 xorl %eax, %eax
13 subq $8, %rsp
14 cmpq %rdx, %rbp
15 jbe .L1
16 movq %rdx, %rbx
17 movq %rdx, %rdi
18 call strlen@PLT
19 leaq 1(%rbx,%rax), %rax
20 cmpq %rax, %rbp
21 jbe .L11
22 .L1:
23 addq $8, %rsp
24 popq %rbx
25 popq %rbp
26 ret
27 .p2align 4,,10
28 .p2align 3
29 .L2:
30 testq %rsi, %rsi
31 movq %rdx, %rax
32 cmovne %rdi, %rax
33 ret
34 .L11:
35 xorl %eax, %eax
36 jmp .L1
37 .size __argz_next, .-__argz_next
38 .weak argz_next
39 .hidden argz_next
40 .set argz_next,__argz_next