clarify the purpose of this project
[nyanglibc.git] / posix / globfree.shared.s
blob214c4a9e17b4d906fcc44cc835e5399105316364
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_globfree
9 .hidden __GI_globfree
10 .type __GI_globfree, @function
11 __GI_globfree:
12 pushq %rbp
13 pushq %rbx
14 movq %rdi, %rbx
15 subq $8, %rsp
16 movq 8(%rdi), %rdi
17 testq %rdi, %rdi
18 je .L1
19 cmpq $0, (%rbx)
20 je .L3
21 xorl %ebp, %ebp
22 .p2align 4,,10
23 .p2align 3
24 .L5:
25 movq 16(%rbx), %rax
26 addq %rbp, %rax
27 addq $1, %rbp
28 movq (%rdi,%rax,8), %rdi
29 call free@PLT
30 cmpq (%rbx), %rbp
31 movq 8(%rbx), %rdi
32 jb .L5
33 .L3:
34 call free@PLT
35 movq $0, 8(%rbx)
36 .L1:
37 addq $8, %rsp
38 popq %rbx
39 popq %rbp
40 ret
41 .size __GI_globfree, .-__GI_globfree
42 .globl globfree
43 .set globfree,__GI_globfree
44 .globl __GI_globfree64
45 .set __GI_globfree64,globfree
46 .weak globfree64
47 .set globfree64,globfree