repo.or.cz
/
nyanglibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
clarify the purpose of this project
[nyanglibc.git]
/
string
/
argz-count.s
blob
5129281b7eaf2fd88bb1aefc7ef819f077231e3c
1
.text
2
.p2align 4,,15
3
.globl __argz_count
4
.hidden __argz_count
5
.type __argz_count, @function
6
__argz_count
:
7
testq
%
rsi
, %
rsi
8
pushq
%
r12
9
pushq
%
rbp
10
pushq
%
rbx
11
je
.L4
12
movq
%
rdi
, %
rbp
13
movq
%
rsi
, %
rbx
14
xorl
%
r12d
, %
r12d
15
.p2align 4,,10
16
.p2align 3
17
.L3:
18
movq
%
rbp
, %
rdi
19
addq $
1
, %
r12
20
call strlen
21
leaq
1
(%
rbp
,%
rax
), %
rbp
22
notq
%
rax
23
addq
%
rax
, %
rbx
24
jne
.L3
25
movq
%
r12
, %
rax
26
popq
%
rbx
27
popq
%
rbp
28
popq
%
r12
29
ret
30
.p2align 4,,10
31
.p2align 3
32
.L4:
33
xorl
%
r12d
, %
r12d
34
movq
%
r12
, %
rax
35
popq
%
rbx
36
popq
%
rbp
37
popq
%
r12
38
ret
39
.size __argz_count, .-__argz_count
40
.weak argz_count
41
.set argz_count,__argz_count
42
.hidden strlen