clarify the purpose of this project
[nyanglibc.git] / debug / asprintf_chk.shared.s
blobfa0e8e55439e179654d4c0107f8bc5c55d597b88
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 __asprintf_chk
9 .type __asprintf_chk, @function
10 __asprintf_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 __vasprintf_internal
40 addq $216, %rsp
41 ret
42 .size __asprintf_chk, .-__asprintf_chk
43 .hidden __vasprintf_internal