clarify the purpose of this project
[nyanglibc.git] / debug / swprintf_chk.s
blob31ebeffe10de6a8a4af37fb970012f707935230d
1 .text
2 .p2align 4,,15
3 .globl __swprintf_chk
4 .type __swprintf_chk, @function
5 __swprintf_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 __vswprintf_internal
35 addq $216, %rsp
36 ret
37 .p2align 4,,10
38 .p2align 3
39 .L9:
40 call __chk_fail
41 .size __swprintf_chk, .-__swprintf_chk
42 .hidden __chk_fail
43 .hidden __vswprintf_internal