clarify the purpose of this project
[nyanglibc.git] / debug / vsnprintf_chk.s
blob7c936b67a3cd70972197333c47377b0fd345a28f
1 .text
2 .p2align 4,,15
3 .globl ___vsnprintf_chk
4 .type ___vsnprintf_chk, @function
5 ___vsnprintf_chk:
6 cmpq %rsi, %rcx
7 jb .L9
8 movq %r8, %r10
9 xorl %r8d, %r8d
10 testl %edx, %edx
11 setg %r8b
12 movq %r9, %rcx
13 movq %r10, %rdx
14 addl %r8d, %r8d
15 jmp __vsnprintf_internal
16 .p2align 4,,10
17 .p2align 3
18 .L9:
19 subq $8, %rsp
20 call __chk_fail
21 .size ___vsnprintf_chk, .-___vsnprintf_chk
22 .globl __vsnprintf_chk
23 .set __vsnprintf_chk,___vsnprintf_chk
24 .hidden __chk_fail
25 .hidden __vsnprintf_internal