clarify the purpose of this project
[nyanglibc.git] / debug / wcrtomb_chk.s
blob3ae5d67ea408934bcb1e497ab2d40224408a2ddb
1 .text
2 .p2align 4,,15
3 .globl __wcrtomb_chk
4 .type __wcrtomb_chk, @function
5 __wcrtomb_chk:
6 movq _nl_current_LC_CTYPE@gottpoff(%rip), %rax
7 movq %fs:(%rax), %rax
8 movq (%rax), %rax
9 movl 168(%rax), %eax
10 cmpq %rcx, %rax
11 ja .L7
12 jmp __wcrtomb
13 .L7:
14 subq $8, %rsp
15 call __chk_fail
16 .size __wcrtomb_chk, .-__wcrtomb_chk
17 .hidden __chk_fail
18 .hidden __wcrtomb
19 .hidden _nl_current_LC_CTYPE