clarify the purpose of this project
[nyanglibc.git] / iconv / iconv_close.s
blob11f233601ac5a94e77c35dcb01bc888c1ff249b2
1 .text
2 .p2align 4,,15
3 .globl iconv_close
4 .type iconv_close, @function
5 iconv_close:
6 cmpq $-1, %rdi
7 je .L8
8 subq $8, %rsp
9 call __gconv_close
10 xorl %edi, %edi
11 testl %eax, %eax
12 setne %dil
13 addq $8, %rsp
14 movl %edi, %eax
15 negl %eax
16 ret
17 .p2align 4,,10
18 .p2align 3
19 .L8:
20 movq __libc_errno@gottpoff(%rip), %rax
21 movl $9, %fs:(%rax)
22 movl %edi, %eax
23 ret
24 .size iconv_close, .-iconv_close
25 .hidden __gconv_close