clarify the purpose of this project
[nyanglibc.git] / stdio-common / snprintf.shared.s
blob213843128bb16a96108069c05345c58a4e440a6a
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___snprintf
9 .hidden __GI___snprintf
10 .type __GI___snprintf, @function
11 __GI___snprintf:
12 subq $216, %rsp
13 testb %al, %al
14 movq %rcx, 56(%rsp)
15 movq %r8, 64(%rsp)
16 movq %r9, 72(%rsp)
17 je .L3
18 movaps %xmm0, 80(%rsp)
19 movaps %xmm1, 96(%rsp)
20 movaps %xmm2, 112(%rsp)
21 movaps %xmm3, 128(%rsp)
22 movaps %xmm4, 144(%rsp)
23 movaps %xmm5, 160(%rsp)
24 movaps %xmm6, 176(%rsp)
25 movaps %xmm7, 192(%rsp)
26 .L3:
27 leaq 224(%rsp), %rax
28 leaq 8(%rsp), %rcx
29 xorl %r8d, %r8d
30 movq %rax, 16(%rsp)
31 leaq 32(%rsp), %rax
32 movl $24, 8(%rsp)
33 movl $48, 12(%rsp)
34 movq %rax, 24(%rsp)
35 call __vsnprintf_internal
36 addq $216, %rsp
37 ret
38 .size __GI___snprintf, .-__GI___snprintf
39 .globl __snprintf
40 .set __snprintf,__GI___snprintf
41 .weak snprintf
42 .set snprintf,__snprintf
43 .hidden __vsnprintf_internal