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