	.file	"777274.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"forkexec_child"
.LC1:
	.string	"Parent[%d]: Start\n"
.LC2:
	.string	"Fail: file_actions_init: %s\n"
.LC3:
	.string	"pspawn.log"
	.align 8
.LC4:
	.string	"Fail: file_actions_addopen: %s\n"
	.align 8
.LC5:
	.string	"Fail: file_actions_destroy: %s\n"
	.align 8
.LC6:
	.string	"Parent[%d]: Wait for child(%d)\n"
.LC7:
	.string	"Parent[%d]: Exit\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 200
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -196[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	posix_spawn_file_actions_init@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	je	.L2
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -96[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -176[rbp]
	mov	r8d, 436
	mov	ecx, 1089
	lea	rdx, .LC3[rip]
	mov	esi, 3
	mov	rdi, rax
	call	posix_spawn_file_actions_addopen@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	je	.L3
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -96[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rsi, QWORD PTR -192[rbp]
	lea	rcx, -192[rbp]
	lea	rdx, -176[rbp]
	lea	rax, -200[rbp]
	mov	r9d, 0
	mov	r8, rcx
	mov	ecx, 0
	mov	rdi, rax
	call	posix_spawn@PLT
	mov	DWORD PTR -196[rbp], eax
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	posix_spawn_file_actions_destroy@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	je	.L4
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -96[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	ebx, DWORD PTR -200[rbp]
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	wait@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"777274.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"forkexec_child\000"
	.align	2
.LC1:
	.ascii	"Parent[%d]: Start\012\000"
	.align	2
.LC2:
	.ascii	"Fail: file_actions_init: %s\012\000"
	.align	2
.LC3:
	.ascii	"pspawn.log\000"
	.align	2
.LC4:
	.ascii	"Fail: file_actions_addopen: %s\012\000"
	.align	2
.LC5:
	.ascii	"Fail: file_actions_destroy: %s\012\000"
	.align	2
.LC6:
	.ascii	"Parent[%d]: Wait for child(%d)\012\000"
	.align	2
.LC7:
	.ascii	"Parent[%d]: Exit\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-160]
	ldr	r3, .L7+4
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-152]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	sub	r3, fp, #148
	mov	r0, r3
	bl	posix_spawn_file_actions_init
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	__xpg_strerror_r
	ldr	r3, .L7+12
	ldr	r3, [r3]
	sub	r2, fp, #72
	ldr	r1, .L7+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	sub	r0, fp, #148
	mov	r3, #436
	str	r3, [sp]
	ldr	r3, .L7+20
	ldr	r2, .L7+24
	mov	r1, #3
	bl	posix_spawn_file_actions_addopen
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	__xpg_strerror_r
	ldr	r3, .L7+12
	ldr	r3, [r3]
	sub	r2, fp, #72
	ldr	r1, .L7+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r1, [fp, #-156]
	sub	r2, fp, #148
	sub	r0, fp, #164
	mov	r3, #0
	str	r3, [sp, #4]
	sub	r3, fp, #156
	str	r3, [sp]
	mov	r3, #0
	bl	posix_spawn
	str	r0, [fp, #-160]
	sub	r3, fp, #148
	mov	r0, r3
	bl	posix_spawn_file_actions_destroy
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	__xpg_strerror_r
	ldr	r3, .L7+12
	ldr	r3, [r3]
	sub	r2, fp, #72
	ldr	r1, .L7+32
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	bl	getpid
	mov	r1, r0
	ldr	r3, [fp, #-164]
	mov	r2, r3
	ldr	r0, .L7+36
	bl	printf
	mov	r0, #0
	bl	wait
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+40
	bl	printf
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	1089
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
