clarify the purpose of this project
[nyanglibc.git] / posix / spawn_faction_init.s
blobe382382d15c1885b4bd8b153ee2511e993c3bb02
1 .text
2 .p2align 4,,15
3 .globl __posix_spawn_file_actions_realloc
4 .hidden __posix_spawn_file_actions_realloc
5 .type __posix_spawn_file_actions_realloc, @function
6 __posix_spawn_file_actions_realloc:
7 pushq %rbp
8 pushq %rbx
9 movq %rdi, %rbp
10 subq $8, %rsp
11 movl (%rdi), %eax
12 movq 8(%rdi), %rdi
13 leal 8(%rax), %ebx
14 movslq %ebx, %rsi
15 salq $5, %rsi
16 call realloc@PLT
17 testq %rax, %rax
18 je .L3
19 movq %rax, 8(%rbp)
20 movl %ebx, 0(%rbp)
21 addq $8, %rsp
22 xorl %eax, %eax
23 popq %rbx
24 popq %rbp
25 ret
26 .p2align 4,,10
27 .p2align 3
28 .L3:
29 addq $8, %rsp
30 movl $12, %eax
31 popq %rbx
32 popq %rbp
33 ret
34 .size __posix_spawn_file_actions_realloc, .-__posix_spawn_file_actions_realloc
35 .p2align 4,,15
36 .globl __posix_spawn_file_actions_init
37 .hidden __posix_spawn_file_actions_init
38 .type __posix_spawn_file_actions_init, @function
39 __posix_spawn_file_actions_init:
40 pxor %xmm0, %xmm0
41 xorl %eax, %eax
42 movups %xmm0, (%rdi)
43 movups %xmm0, 16(%rdi)
44 movups %xmm0, 32(%rdi)
45 movups %xmm0, 48(%rdi)
46 movups %xmm0, 64(%rdi)
47 ret
48 .size __posix_spawn_file_actions_init, .-__posix_spawn_file_actions_init
49 .weak posix_spawn_file_actions_init
50 .set posix_spawn_file_actions_init,__posix_spawn_file_actions_init