clarify the purpose of this project
[nyanglibc.git] / debug / mbstowcs_chk.s
blobe76fd9b41e6bc9040389ebdd05304e3073e85a17
1 .text
2 .p2align 4,,15
3 .globl __mbstowcs_chk
4 .type __mbstowcs_chk, @function
5 __mbstowcs_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 __mbsrtowcs
14 addq $40, %rsp
15 ret
16 .p2align 4,,10
17 .p2align 3
18 .L5:
19 call __chk_fail
20 .size __mbstowcs_chk, .-__mbstowcs_chk
21 .hidden __chk_fail
22 .hidden __mbsrtowcs