clarify the purpose of this project
[nyanglibc.git] / io / openat64_nocancel.shared.s
blob09b63be330e1a8e63ffe83fc991d158a2a8d2e38
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 __GI___openat64_nocancel
9 .hidden __GI___openat64_nocancel
10 .type __GI___openat64_nocancel, @function
11 __GI___openat64_nocancel:
12 testb $64, %dl
13 movq %rcx, -24(%rsp)
14 jne .L2
15 movl %edx, %eax
16 xorl %r10d, %r10d
17 andl $4259840, %eax
18 cmpl $4259840, %eax
19 je .L2
20 .L3:
21 movl $257, %eax
22 #APP
23 # 43 "../sysdeps/unix/sysv/linux/openat64_nocancel.c" 1
24 syscall
26 # 0 "" 2
27 #NO_APP
28 cmpq $-4096, %rax
29 ja .L10
30 rep ret
31 .p2align 4,,10
32 .p2align 3
33 .L2:
34 leaq 8(%rsp), %rax
35 movl $24, -72(%rsp)
36 movl -24(%rsp), %r10d
37 movq %rax, -64(%rsp)
38 leaq -48(%rsp), %rax
39 movq %rax, -56(%rsp)
40 jmp .L3
41 .p2align 4,,10
42 .p2align 3
43 .L10:
44 movq __libc_errno@gottpoff(%rip), %rdx
45 negl %eax
46 movl %eax, %fs:(%rdx)
47 movl $-1, %eax
48 ret
49 .size __GI___openat64_nocancel, .-__GI___openat64_nocancel
50 .globl __openat64_nocancel
51 .set __openat64_nocancel,__GI___openat64_nocancel
52 .globl __GI___openat_nocancel
53 .hidden __GI___openat_nocancel
54 .set __GI___openat_nocancel,__openat64_nocancel
55 .globl __openat_nocancel
56 .set __openat_nocancel,__GI___openat_nocancel