clarify the purpose of this project
[nyanglibc.git] / dirent / getdirentries64.s
blobb2cada6ac47e7bbb662a4bddc429a1be0faf1cbc
1 .text
2 .p2align 4,,15
3 .globl getdirentries64
4 .type getdirentries64, @function
5 getdirentries64:
6 pushq %r14
7 pushq %r13
8 movq %rcx, %r13
9 pushq %r12
10 pushq %rbp
11 movq %rdx, %r12
12 pushq %rbx
13 movq %rsi, %rbp
14 movl %edi, %ebx
15 xorl %esi, %esi
16 movl $1, %edx
17 call __lseek64
18 movq %r12, %rdx
19 movq %rbp, %rsi
20 movl %ebx, %edi
21 movq %rax, %r14
22 call __getdents64
23 cmpq $-1, %rax
24 je .L1
25 movq %r14, 0(%r13)
26 .L1:
27 popq %rbx
28 popq %rbp
29 popq %r12
30 popq %r13
31 popq %r14
32 ret
33 .size getdirentries64, .-getdirentries64
34 .weak getdirentries
35 .set getdirentries,getdirentries64
36 .hidden __getdents64
37 .hidden __lseek64