clarify the purpose of this project
[nyanglibc.git] / debug / mbstowcs_chk.shared.s
blob3a419ba1e1a1218602baecc8d67a319f54125112
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 __mbstowcs_chk
9 .type __mbstowcs_chk, @function
10 __mbstowcs_chk:
11 subq $40, %rsp
12 cmpq %rdx, %rcx
13 movq %rsi, 8(%rsp)
14 jb .L5
15 leaq 24(%rsp), %rcx
16 leaq 8(%rsp), %rsi
17 movq $0, 24(%rsp)
18 call __mbsrtowcs
19 addq $40, %rsp
20 ret
21 .p2align 4,,10
22 .p2align 3
23 .L5:
24 call __GI___chk_fail
25 .size __mbstowcs_chk, .-__mbstowcs_chk
26 .hidden __mbsrtowcs