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