clarify the purpose of this project
[nyanglibc.git] / nss / nss_files_fopen.s
blobee8dc379d25e2ba20add040162b8095982c3f2ca
1 .text
2 .section .rodata.str1.1,"aMS",@progbits,1
3 .LC0:
4 .string "rce"
5 .text
6 .p2align 4,,15
7 .globl __nss_files_fopen
8 .hidden __nss_files_fopen
9 .type __nss_files_fopen, @function
10 __nss_files_fopen:
11 pushq %rbx
12 leaq .LC0(%rip), %rsi
13 call _IO_new_fopen@PLT
14 testq %rax, %rax
15 movq %rax, %rbx
16 je .L1
17 orl $32768, (%rax)
18 xorl %edx, %edx
19 xorl %esi, %esi
20 movq %rax, %rdi
21 call __fseeko64
22 testl %eax, %eax
23 js .L8
24 .L1:
25 movq %rbx, %rax
26 popq %rbx
27 ret
28 .p2align 4,,10
29 .p2align 3
30 .L8:
31 movq %rbx, %rdi
32 xorl %ebx, %ebx
33 call _IO_new_fclose@PLT
34 movq __libc_errno@gottpoff(%rip), %rax
35 movl $29, %fs:(%rax)
36 jmp .L1
37 .size __nss_files_fopen, .-__nss_files_fopen
38 .hidden __fseeko64