clarify the purpose of this project
[nyanglibc.git] / nss / grp-lookup.s
blob35e972d443b657fef7fbb35db52d6013fa9c9f9d
1 .text
2 .section .rodata.str1.1,"aMS",@progbits,1
3 .LC0:
4 .string "files"
5 .LC1:
6 .string "group"
7 .text
8 .p2align 4,,15
9 .globl __nss_group_lookup2
10 .hidden __nss_group_lookup2
11 .type __nss_group_lookup2, @function
12 __nss_group_lookup2:
13 pushq %r13
14 pushq %r12
15 movq %rcx, %r13
16 pushq %rbp
17 pushq %rbx
18 movq %rdx, %r12
19 movq %rdi, %rbx
20 leaq __nss_group_database(%rip), %rcx
21 leaq .LC0(%rip), %rdx
22 leaq .LC1(%rip), %rdi
23 subq $8, %rsp
24 movq %rsi, %rbp
25 xorl %esi, %esi
26 call __nss_database_lookup2
27 testl %eax, %eax
28 js .L2
29 movq __nss_group_database(%rip), %rax
30 movq %r13, %rcx
31 movq %r12, %rdx
32 movq %rbp, %rsi
33 movq %rbx, %rdi
34 movq %rax, (%rbx)
35 addq $8, %rsp
36 popq %rbx
37 popq %rbp
38 popq %r12
39 popq %r13
40 jmp __nss_lookup
41 .p2align 4,,10
42 .p2align 3
43 .L2:
44 addq $8, %rsp
45 movl $-1, %eax
46 popq %rbx
47 popq %rbp
48 popq %r12
49 popq %r13
50 ret
51 .size __nss_group_lookup2, .-__nss_group_lookup2
52 .hidden __nss_lookup
53 .hidden __nss_database_lookup2
54 .hidden __nss_group_database