clarify the purpose of this project
[nyanglibc.git] / posix / setresgid.shared.s
blob9c5024aa19f55b4d7d14227d7e915c0c549d41ad
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___setresgid
9 .hidden __GI___setresgid
10 .type __GI___setresgid, @function
11 __GI___setresgid:
12 movl __libc_pthread_functions_init(%rip), %eax
13 testl %eax, %eax
14 jne .L11
15 movl $119, %eax
16 #APP
17 # 29 "../sysdeps/unix/sysv/linux/setresgid.c" 1
18 syscall
20 # 0 "" 2
21 #NO_APP
22 cmpq $-4096, %rax
23 ja .L12
24 rep ret
25 .p2align 4,,10
26 .p2align 3
27 .L11:
28 subq $56, %rsp
29 movl %edi, %eax
30 movq %rax, 8(%rsp)
31 movl %esi, %eax
32 movl $119, (%rsp)
33 movq %rax, 16(%rsp)
34 movl %edx, %eax
35 movq %rsp, %rdi
36 movq %rax, 24(%rsp)
37 movq 224+__libc_pthread_functions(%rip), %rax
38 #APP
39 # 29 "../sysdeps/unix/sysv/linux/setresgid.c" 1
40 ror $2*8+1, %rax
41 xor %fs:48, %rax
42 # 0 "" 2
43 #NO_APP
44 call *%rax
45 addq $56, %rsp
46 ret
47 .p2align 4,,10
48 .p2align 3
49 .L12:
50 movq __libc_errno@gottpoff(%rip), %rdx
51 negl %eax
52 movl %eax, %fs:(%rdx)
53 movl $-1, %eax
54 ret
55 .size __GI___setresgid, .-__GI___setresgid
56 .globl __setresgid
57 .set __setresgid,__GI___setresgid
58 .weak setresgid
59 .set setresgid,__setresgid
60 .hidden __libc_pthread_functions
61 .hidden __libc_pthread_functions_init