	.file	"928650.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"sending SIGTERM to all processes"
.LC1:
	.string	"waiting for all processes"
	.align 8
.LC2:
	.string	"*** error: waiting for processes"
.LC3:
	.string	"pid %d exited with signal %u\n"
.LC4:
	.string	"pid %d exited with status %u\n"
	.text
	.globl	cleanup
	.type	cleanup, @function
cleanup:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	esi, 15
	mov	edi, -1
	call	kill@PLT
	test	eax, eax
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L9:
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 10
	je	.L12
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L12
.L3:
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L7
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 127
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L7:
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L11:
	nop
	jmp	.L9
.L12:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cleanup, .-cleanup
	.section	.rodata
.LC5:
	.string	"reaped 1 zombie"
.LC6:
	.string	"reaped %zu zombies\n"
	.text
	.globl	reaper
	.type	reaper, @function
reaper:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	mov	BYTE PTR -25[rbp], 0
.L23:
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -24[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	call	waitpid@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L27
	cmp	DWORD PTR -20[rbp], 0
	jg	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L17
	cmp	BYTE PTR -25[rbp], 0
	jne	.L28
	mov	BYTE PTR -25[rbp], 1
	jmp	.L23
.L17:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 10
	je	.L29
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L29
.L16:
	add	QWORD PTR -16[rbp], 1
	jmp	.L23
.L27:
	nop
	jmp	.L15
.L28:
	nop
	jmp	.L15
.L29:
	nop
.L15:
	cmp	QWORD PTR -16[rbp], 1
	je	.L21
	jmp	.L26
.L21:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L30
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reaper, .-reaper
	.globl	child_pid
	.bss
	.align 4
	.type	child_pid, @object
	.size	child_pid, 4
child_pid:
	.zero	4
	.section	.rodata
	.align 8
.LC7:
	.string	"*** error: forwardnng signal %d to pid %d: %s\n"
	.text
	.globl	forward_signal
	.type	forward_signal, @function
forward_signal:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR child_pid[rip]
	test	eax, eax
	je	.L33
	mov	eax, DWORD PTR child_pid[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	ecx, DWORD PTR child_pid[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	forward_signal, .-forward_signal
	.section	.rodata
	.align 8
.LC8:
	.string	"pid1 needs to be run with process ID 1\n"
	.align 8
.LC9:
	.string	"no child command to run specified\n"
	.align 8
.LC10:
	.string	"*** error: installing zombie reaper"
	.align 8
.LC11:
	.string	"*** error: installing SIGTERM handler"
	.align 8
.LC12:
	.string	"*** error: installing SIGINT handler"
.LC13:
	.string	"registering atexit handler"
.LC14:
	.string	"*** error: spawning %s: %s\n"
.LC15:
	.string	"*** error: waiting for %s: %s"
.LC16:
	.string	"%s exited with signal %u\n"
	.align 8
.LC17:
	.string	"%s exited abnormally with status: %d\n"
.LC18:
	.string	"%s exited normally\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	cmp	eax, 1
	je	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L36
.L35:
	cmp	DWORD PTR -36[rbp], 1
	jg	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L36
.L37:
	lea	rsi, reaper[rip]
	mov	edi, 17
	call	signal@PLT
	cmp	rax, -1
	jne	.L38
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L38:
	lea	rsi, forward_signal[rip]
	mov	edi, 15
	call	signal@PLT
	cmp	rax, -1
	jne	.L39
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L39:
	lea	rsi, forward_signal[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L40
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L40:
	lea	rdi, cleanup[rip]
	call	atexit@PLT
	test	eax, eax
	je	.L41
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L41:
	mov	rdx, QWORD PTR environ[rip]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	r9, rdx
	mov	r8, rcx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, child_pid[rip]
	call	posix_spawnp@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L42
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L36
.L42:
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR child_pid[rip]
	lea	rcx, -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L43
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L42
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L36
.L43:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L46
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	mov	ecx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L36
.L46:
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -12[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L48:
	mov	eax, DWORD PTR -12[rbp]
.L36:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"928650.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sending SIGTERM to all processes\000"
	.align	2
.LC1:
	.ascii	"waiting for all processes\000"
	.align	2
.LC2:
	.ascii	"*** error: waiting for processes\000"
	.align	2
.LC3:
	.ascii	"pid %d exited with signal %u\012\000"
	.align	2
.LC4:
	.ascii	"pid %d exited with status %u\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup, %function
cleanup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	puts
	mov	r1, #15
	mvn	r0, #0
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L13+4
	bl	perror
.L2:
	ldr	r0, .L13+8
	bl	puts
.L9:
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #10
	beq	.L12
	ldr	r0, .L13+12
	bl	perror
	b	.L12
.L3:
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-16]
	and	r3, r3, #127
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+16
	bl	printf
	b	.L9
.L7:
	ldr	r3, [fp, #-16]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+20
	bl	printf
	b	.L9
.L11:
	nop
	b	.L9
.L12:
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	cleanup, .-cleanup
	.section	.rodata
	.align	2
.LC6:
	.ascii	"reaped 1 zombie\000"
	.align	2
.LC7:
	.ascii	"reaped %zu zombies\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reaper
	.syntax unified
	.arm
	.fpu softvfp
	.type	reaper, %function
reaper:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-21]
.L25:
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L19
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L30
	mov	r3, #1
	strb	r3, [fp, #-21]
	b	.L25
.L19:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #10
	beq	.L31
	ldr	r0, .L33+4
	bl	perror
	b	.L31
.L18:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L25
.L29:
	nop
	b	.L17
.L30:
	nop
	b	.L17
.L31:
	nop
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L23
	b	.L28
.L23:
	ldr	r0, .L33+8
	bl	puts
	b	.L32
.L28:
	ldr	r1, [fp, #-16]
	ldr	r0, .L33+12
	bl	printf
.L32:
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC8
	.word	.LC2
	.word	.LC6
	.word	.LC7
	.size	reaper, .-reaper
	.global	child_pid
	.bss
	.align	2
	.type	child_pid, %object
	.size	child_pid, 4
child_pid:
	.space	4
	.section	.rodata
	.align	2
.LC9:
	.ascii	"*** error: forwardnng signal %d to pid %d: %s\012\000"
	.text
	.align	2
	.global	forward_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	forward_signal, %function
forward_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L38
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L38+4
	ldr	r4, [r3]
	ldr	r3, .L38
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-16]
	ldr	r1, .L38+8
	mov	r0, r4
	bl	fprintf
.L37:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L39:
	.align	2
.L38:
	.word	child_pid
	.word	stderr
	.word	.LC9
	.size	forward_signal, .-forward_signal
	.section	.rodata
	.align	2
.LC10:
	.ascii	"pid1 needs to be run with process ID 1\012\000"
	.align	2
.LC11:
	.ascii	"no child command to run specified\012\000"
	.align	2
.LC12:
	.ascii	"*** error: installing zombie reaper\000"
	.align	2
.LC13:
	.ascii	"*** error: installing SIGTERM handler\000"
	.align	2
.LC14:
	.ascii	"*** error: installing SIGINT handler\000"
	.align	2
.LC15:
	.ascii	"registering atexit handler\000"
	.align	2
.LC16:
	.ascii	"*** error: spawning %s: %s\012\000"
	.align	2
.LC17:
	.ascii	"*** error: waiting for %s: %s\000"
	.align	2
.LC18:
	.ascii	"%s exited with signal %u\012\000"
	.align	2
.LC19:
	.ascii	"%s exited abnormally with status: %d\012\000"
	.align	2
.LC20:
	.ascii	"%s exited normally\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	getpid
	mov	r3, r0
	cmp	r3, #1
	beq	.L41
	ldr	r3, .L56+4
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L56+8
	bl	fwrite
	mov	r3, #1
	b	.L42
.L41:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L43
	ldr	r3, .L56+4
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L56+12
	bl	fwrite
	mov	r3, #1
	b	.L42
.L43:
	ldr	r1, .L56+16
	mov	r0, #17
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L44
	ldr	r0, .L56+20
	bl	perror
	mov	r3, #1
	b	.L42
.L44:
	ldr	r1, .L56+24
	mov	r0, #15
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L45
	ldr	r0, .L56+28
	bl	perror
	mov	r3, #1
	b	.L42
.L45:
	ldr	r1, .L56+24
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L56+32
	bl	perror
	mov	r3, #1
	b	.L42
.L46:
	ldr	r0, .L56+36
	bl	atexit
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L56+40
	bl	perror
	mov	r3, #1
	b	.L42
.L47:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r2, .L56+44
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, .L56+48
	bl	posix_spawnp
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L56+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r5, [r3]
	ldr	r0, [fp, #-28]
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L56+52
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L42
.L48:
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L56+48
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L49
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L48
	ldr	r3, .L56+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L56+56
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L42
.L49:
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L52
	ldr	r3, .L56+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	and	r3, r3, #127
	ldr	r1, .L56+60
	bl	fprintf
	mov	r3, #1
	b	.L42
.L52:
	ldr	r3, [fp, #-32]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L56+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, .L56+64
	bl	fprintf
	b	.L54
.L53:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L56+68
	bl	printf
.L54:
	ldr	r3, [fp, #-20]
.L42:
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC21
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	reaper
	.word	.LC12
	.word	forward_signal
	.word	.LC13
	.word	.LC14
	.word	cleanup
	.word	.LC15
	.word	environ
	.word	child_pid
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
