clarify the purpose of this project
[nyanglibc.git] / stdio-common / asprintf.s
blob1c03cd6bf13c0ab6bac7a3db1c1335926ca0cef8
1 .text
2 .p2align 4,,15
3 .globl ___asprintf
4 .type ___asprintf, @function
5 ___asprintf:
6 subq $216, %rsp
7 testb %al, %al
8 movq %rdx, 48(%rsp)
9 movq %rcx, 56(%rsp)
10 movq %r8, 64(%rsp)
11 movq %r9, 72(%rsp)
12 je .L3
13 movaps %xmm0, 80(%rsp)
14 movaps %xmm1, 96(%rsp)
15 movaps %xmm2, 112(%rsp)
16 movaps %xmm3, 128(%rsp)
17 movaps %xmm4, 144(%rsp)
18 movaps %xmm5, 160(%rsp)
19 movaps %xmm6, 176(%rsp)
20 movaps %xmm7, 192(%rsp)
21 .L3:
22 leaq 224(%rsp), %rax
23 leaq 8(%rsp), %rdx
24 xorl %ecx, %ecx
25 movq %rax, 16(%rsp)
26 leaq 32(%rsp), %rax
27 movl $16, 8(%rsp)
28 movl $48, 12(%rsp)
29 movq %rax, 24(%rsp)
30 call __vasprintf_internal
31 addq $216, %rsp
32 ret
33 .size ___asprintf, .-___asprintf
34 .weak asprintf
35 .set asprintf,___asprintf
36 .globl __asprintf
37 .hidden __asprintf
38 .set __asprintf,___asprintf
39 .hidden __vasprintf_internal