clarify the purpose of this project
[nyanglibc.git] / io / statvfs.s
blob5c21aab25e8e3a17df684e31f4675eced22d9f6a
1 .text
2 .p2align 4,,15
3 .globl __statvfs
4 .type __statvfs, @function
5 __statvfs:
6 pushq %r12
7 pushq %rbp
8 movq %rsi, %r12
9 pushq %rbx
10 movq %rdi, %rbx
11 addq $-128, %rsp
12 movq %rsp, %rbp
13 movq %rbp, %rsi
14 call __statfs
15 testl %eax, %eax
16 js .L3
17 movl $-1, %ecx
18 movq %rbp, %rdx
19 movq %r12, %rsi
20 movq %rbx, %rdi
21 call __internal_statvfs
22 xorl %eax, %eax
23 .L1:
24 subq $-128, %rsp
25 popq %rbx
26 popq %rbp
27 popq %r12
28 ret
29 .p2align 4,,10
30 .p2align 3
31 .L3:
32 movl $-1, %eax
33 jmp .L1
34 .size __statvfs, .-__statvfs
35 .weak statvfs64
36 .set statvfs64,__statvfs
37 .globl __statvfs64
38 .set __statvfs64,__statvfs
39 .weak statvfs
40 .hidden statvfs
41 .set statvfs,__statvfs
42 .hidden __internal_statvfs
43 .hidden __statfs