clarify the purpose of this project
[nyanglibc.git] / debug / wcstombs_chk.s
blobed4857c49fa06d424dc3250e557653b5d5e202b1
1 .text
2 .p2align 4,,15
3 .globl __wcstombs_chk
4 .type __wcstombs_chk, @function
5 __wcstombs_chk:
6 subq $40, %rsp
7 cmpq %rdx, %rcx
8 movq %rsi, 8(%rsp)
9 jb .L5
10 leaq 24(%rsp), %rcx
11 leaq 8(%rsp), %rsi
12 movq $0, 24(%rsp)
13 call __wcsrtombs
14 addq $40, %rsp
15 ret
16 .p2align 4,,10
17 .p2align 3
18 .L5:
19 call __chk_fail
20 .size __wcstombs_chk, .-__wcstombs_chk
21 .hidden __chk_fail
22 .hidden __wcsrtombs