clarify the purpose of this project
[nyanglibc.git] / stdio-common / sprintf.s
blob3650bfdadc608b66bb361fce5f7d97edc41c8335
1 .text
2 .p2align 4,,15
3 .globl __sprintf
4 .type __sprintf, @function
5 __sprintf:
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), %rcx
24 movq %rsi, %rdx
25 xorl %r8d, %r8d
26 movq $-1, %rsi
27 movq %rax, 16(%rsp)
28 leaq 32(%rsp), %rax
29 movl $16, 8(%rsp)
30 movl $48, 12(%rsp)
31 movq %rax, 24(%rsp)
32 call __vsprintf_internal
33 addq $216, %rsp
34 ret
35 .size __sprintf, .-__sprintf
36 .globl _IO_sprintf
37 .set _IO_sprintf,__sprintf
38 .globl sprintf
39 .hidden sprintf
40 .set sprintf,__sprintf
41 .hidden __vsprintf_internal