clarify the purpose of this project
[nyanglibc.git] / login / getutmp.shared.s
blob6c6a3fc1cf6e51dbf6161adf36c73924139131d6
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 getutmp
9 .type getutmp, @function
10 getutmp:
11 movq (%rdi), %rdx
12 movq %rdi, %rax
13 movq %rdx, (%rsi)
14 movq 376(%rdi), %rdx
15 leaq 8(%rsi), %rdi
16 andq $-8, %rdi
17 movq %rdx, 376(%rsi)
18 subq %rdi, %rsi
19 movq %rsi, %rcx
20 subq %rsi, %rax
21 addl $384, %ecx
22 movq %rax, %rsi
23 shrl $3, %ecx
24 rep movsq
25 ret
26 .size getutmp, .-getutmp
27 .globl getutmpx
28 .set getutmpx,getutmp