clarify the purpose of this project
[nyanglibc.git] / posix / spawn_faction_addfchdir.shared.s
blobc4124308caf3694a58a5b7b4601cc7846488dd74
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 posix_spawn_file_actions_addfchdir_np
9 .type posix_spawn_file_actions_addfchdir_np, @function
10 posix_spawn_file_actions_addfchdir_np:
11 pushq %rbx
12 movq %rdi, %rbx
13 subq $16, %rsp
14 movl 4(%rdi), %edx
15 cmpl (%rdi), %edx
16 je .L7
17 .L2:
18 movslq %edx, %rax
19 addl $1, %edx
20 salq $5, %rax
21 addq 8(%rbx), %rax
22 movl $4, (%rax)
23 movl %esi, 8(%rax)
24 xorl %eax, %eax
25 movl %edx, 4(%rbx)
26 .L1:
27 addq $16, %rsp
28 popq %rbx
29 ret
30 .p2align 4,,10
31 .p2align 3
32 .L7:
33 movl %esi, 12(%rsp)
34 call __posix_spawn_file_actions_realloc
35 movl %eax, %edx
36 movl $12, %eax
37 testl %edx, %edx
38 jne .L1
39 movl 4(%rbx), %edx
40 movl 12(%rsp), %esi
41 jmp .L2
42 .size posix_spawn_file_actions_addfchdir_np, .-posix_spawn_file_actions_addfchdir_np
43 .hidden __posix_spawn_file_actions_realloc