clarify the purpose of this project
[nyanglibc.git] / debug / snprintf_chk.s
blob4463308e3d37db23a9f3790cc3412e82a5f35b41
1 .text
2 .p2align 4,,15
3 .globl ___snprintf_chk
4 .type ___snprintf_chk, @function
5 ___snprintf_chk:
6 subq $216, %rsp
7 testb %al, %al
8 movq %r8, %r10
9 movq %r9, 72(%rsp)
10 je .L6
11 movaps %xmm0, 80(%rsp)
12 movaps %xmm1, 96(%rsp)
13 movaps %xmm2, 112(%rsp)
14 movaps %xmm3, 128(%rsp)
15 movaps %xmm4, 144(%rsp)
16 movaps %xmm5, 160(%rsp)
17 movaps %xmm6, 176(%rsp)
18 movaps %xmm7, 192(%rsp)
19 .L6:
20 cmpq %rsi, %rcx
21 jb .L9
22 leaq 224(%rsp), %rax
23 xorl %r8d, %r8d
24 testl %edx, %edx
25 setg %r8b
26 leaq 8(%rsp), %rcx
27 movq %r10, %rdx
28 movq %rax, 16(%rsp)
29 leaq 32(%rsp), %rax
30 addl %r8d, %r8d
31 movl $40, 8(%rsp)
32 movl $48, 12(%rsp)
33 movq %rax, 24(%rsp)
34 call __vsnprintf_internal
35 addq $216, %rsp
36 ret
37 .p2align 4,,10
38 .p2align 3
39 .L9:
40 call __chk_fail
41 .size ___snprintf_chk, .-___snprintf_chk
42 .globl __snprintf_chk
43 .set __snprintf_chk,___snprintf_chk
44 .hidden __chk_fail
45 .hidden __vsnprintf_internal