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