clarify the purpose of this project
[nyanglibc.git] / debug / printf_chk.s
blob95ac6e2bc5fd9e1c3564ff0f5e1953f3f415e7b1
1 .text
2 .p2align 4,,15
3 .globl ___printf_chk
4 .type ___printf_chk, @function
5 ___printf_chk:
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 .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 %edi, %edi
25 setg %cl
26 leaq 8(%rsp), %rdx
27 addl %ecx, %ecx
28 movq stdout(%rip), %rdi
29 movq %rax, 16(%rsp)
30 leaq 32(%rsp), %rax
31 movl $16, 8(%rsp)
32 movl $48, 12(%rsp)
33 movq %rax, 24(%rsp)
34 call __vfprintf_internal
35 addq $216, %rsp
36 ret
37 .size ___printf_chk, .-___printf_chk
38 .globl __printf_chk
39 .set __printf_chk,___printf_chk
40 .hidden __vfprintf_internal