clarify the purpose of this project
[nyanglibc.git] / debug / fprintf_chk.shared.s
blob0f94c3a18a0c00e0c2f394810be2f53f252d836c
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 ___fprintf_chk
9 .type ___fprintf_chk, @function
10 ___fprintf_chk:
11 subq $216, %rsp
12 testb %al, %al
13 movq %rdx, %r10
14 movq %rcx, 56(%rsp)
15 movq %r8, 64(%rsp)
16 movq %r9, 72(%rsp)
17 je .L5
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 .L5:
27 leaq 224(%rsp), %rax
28 xorl %ecx, %ecx
29 testl %esi, %esi
30 setg %cl
31 leaq 8(%rsp), %rdx
32 movq %r10, %rsi
33 addl %ecx, %ecx
34 movq %rax, 16(%rsp)
35 leaq 32(%rsp), %rax
36 movl $24, 8(%rsp)
37 movl $48, 12(%rsp)
38 movq %rax, 24(%rsp)
39 call __vfprintf_internal
40 addq $216, %rsp
41 ret
42 .size ___fprintf_chk, .-___fprintf_chk
43 .globl __fprintf_chk
44 .set __fprintf_chk,___fprintf_chk
45 .hidden __vfprintf_internal