clarify the purpose of this project
[nyanglibc.git] / debug / vsnprintf_chk.shared.s
blob5bb9ef8782c28375f6605f11925967a99d7fdd7b
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 ___vsnprintf_chk
9 .type ___vsnprintf_chk, @function
10 ___vsnprintf_chk:
11 cmpq %rsi, %rcx
12 jb .L9
13 movq %r8, %r10
14 xorl %r8d, %r8d
15 testl %edx, %edx
16 setg %r8b
17 movq %r9, %rcx
18 movq %r10, %rdx
19 addl %r8d, %r8d
20 jmp __vsnprintf_internal
21 .p2align 4,,10
22 .p2align 3
23 .L9:
24 subq $8, %rsp
25 call __GI___chk_fail
26 .size ___vsnprintf_chk, .-___vsnprintf_chk
27 .globl __vsnprintf_chk
28 .set __vsnprintf_chk,___vsnprintf_chk
29 .hidden __vsnprintf_internal