clarify the purpose of this project
[nyanglibc.git] / login / updwtmp.shared.s
blob4af9fede3c156170f236bae5dbb398701bd5cc5b
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section .rodata.str1.1,"aMS",@progbits,1
7 .LC0:
8 .string "/var/log/wtmpx"
9 .LC1:
10 .string "/var/run/utmpx"
11 .LC2:
12 .string "/var/run/utmp"
13 .LC3:
14 .string "/var/log/wtmp"
15 #NO_APP
16 .text
17 .p2align 4,,15
18 .globl __GI___updwtmp
19 .hidden __GI___updwtmp
20 .type __GI___updwtmp, @function
21 __GI___updwtmp:
22 pushq %rbp
23 pushq %rbx
24 movq %rdi, %rbx
25 leaq .LC2(%rip), %rdi
26 movq %rsi, %rbp
27 movl $14, %ecx
28 subq $8, %rsp
29 movq %rbx, %rsi
30 repz cmpsb
31 je .L2
32 .L5:
33 leaq .LC3(%rip), %rdi
34 movl $14, %ecx
35 movq %rbx, %rsi
36 repz cmpsb
37 je .L20
38 .L3:
39 leaq .LC1(%rip), %rax
40 movl $15, %ecx
41 movq %rbx, %rsi
42 movq %rax, %rdi
43 repz cmpsb
44 je .L21
45 .L7:
46 leaq .LC0(%rip), %rax
47 movl $15, %ecx
48 movq %rbx, %rsi
49 movq %rax, %rdi
50 repz cmpsb
51 je .L22
52 .L6:
53 addq $8, %rsp
54 movq %rbp, %rsi
55 movq %rbx, %rdi
56 popq %rbx
57 popq %rbp
58 jmp __libc_updwtmp
59 .p2align 4,,10
60 .p2align 3
61 .L21:
62 xorl %esi, %esi
63 movq %rax, %rdi
64 call __GI___access
65 testl %eax, %eax
66 je .L7
67 leaq .LC2(%rip), %rbx
68 jmp .L6
69 .p2align 4,,10
70 .p2align 3
71 .L22:
72 xorl %esi, %esi
73 movq %rax, %rdi
74 call __GI___access
75 testl %eax, %eax
76 leaq .LC3(%rip), %rax
77 cmovne %rax, %rbx
78 jmp .L6
79 .p2align 4,,10
80 .p2align 3
81 .L2:
82 leaq .LC1(%rip), %rdi
83 xorl %esi, %esi
84 call __GI___access
85 testl %eax, %eax
86 jne .L5
87 leaq .LC1(%rip), %rbx
88 jmp .L6
89 .p2align 4,,10
90 .p2align 3
91 .L20:
92 leaq .LC0(%rip), %rdi
93 xorl %esi, %esi
94 call __GI___access
95 testl %eax, %eax
96 jne .L3
97 leaq .LC0(%rip), %rbx
98 jmp .L6
99 .size __GI___updwtmp, .-__GI___updwtmp
100 .globl __updwtmp
101 .set __updwtmp,__GI___updwtmp
102 .weak updwtmp
103 .set updwtmp,__updwtmp
104 .hidden __libc_updwtmp