clarify the purpose of this project
[nyanglibc.git] / login / getutent.s
blobe62b4bb71a960e0f75362dc02b34f402d35aa320
1 .text
2 #APP
3 .section __libc_freeres_ptrs, "aw", %nobits
4 .previous
5 #NO_APP
6 .p2align 4,,15
7 .globl __getutent
8 .hidden __getutent
9 .type __getutent, @function
10 __getutent:
11 subq $24, %rsp
12 movq buffer(%rip), %rdi
13 testq %rdi, %rdi
14 je .L7
15 .L2:
16 leaq 8(%rsp), %rsi
17 call __getutent_r
18 testl %eax, %eax
19 js .L4
20 movq 8(%rsp), %rax
21 .L1:
22 addq $24, %rsp
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L7:
27 movl $384, %edi
28 call malloc@PLT
29 testq %rax, %rax
30 movq %rax, %rdi
31 movq %rax, buffer(%rip)
32 jne .L2
33 .p2align 4,,10
34 .p2align 3
35 .L4:
36 xorl %eax, %eax
37 jmp .L1
38 .size __getutent, .-__getutent
39 .weak getutent
40 .set getutent,__getutent
41 .section __libc_freeres_ptrs
42 #,"aw",@progbits
43 .align 8
44 .type buffer, @object
45 .size buffer, 8
46 buffer:
47 .zero 8
48 .hidden __getutent_r