	.file	"813186.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mmap failed! line = %d %s \n"
.LC1:
	.string	"fork failed! \n"
.LC2:
	.string	"Child start. Value = %d\n"
.LC3:
	.string	"Child: munmap failed! \n"
	.align 8
.LC4:
	.string	"Parent: wait child process failed! %s \n"
.LC5:
	.string	"In parent. Value = %d\n"
.LC6:
	.string	"Parent: munmap failed! \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
	sub	rsp, 32
	mov	eax, edi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -20[rbp], al
	mov	QWORD PTR -8[rbp], 0
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 33
	mov	edx, 3
	mov	esi, 4
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	mov	edx, 22
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	call	fork@PLT
	cmp	eax, -1
	je	.L3
	test	eax, eax
	je	.L4
	nop
	mov	edi, 0
	call	wait@PLT
	cmp	eax, -1
	jne	.L7
	jmp	.L10
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	munmap@PLT
	cmp	eax, -1
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edi, 0
	call	exit@PLT
.L10:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	munmap@PLT
	cmp	eax, -1
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	edi, 0
	call	exit@PLT
	.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	"813186.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mmap failed! line = %d %s \012\000"
	.align	2
.LC1:
	.ascii	"fork failed! \012\000"
	.align	2
.LC2:
	.ascii	"Child start. Value = %d\012\000"
	.align	2
.LC3:
	.ascii	"Child: munmap failed! \012\000"
	.align	2
.LC4:
	.ascii	"Parent: wait child process failed! %s \012\000"
	.align	2
.LC5:
	.ascii	"In parent. Value = %d\012\000"
	.align	2
.LC6:
	.ascii	"Parent: munmap failed! \012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r3, r0
	str	r1, [fp, #-28]
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #33
	mov	r2, #3
	mov	r1, #4
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L11
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, #22
	ldr	r1, .L11+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3]
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L3
	cmp	r3, #0
	beq	.L4
	nop
	mov	r0, #0
	bl	wait
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	b	.L10
.L3:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L11+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	munmap
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L11+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	mov	r0, #0
	bl	exit
.L10:
	ldr	r3, .L11
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	munmap
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L11+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
