	.file	"905804.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Memory map failed"
.LC1:
	.string	"Parent PID is %d\n"
.LC2:
	.string	"Original message: %s\n"
.LC3:
	.string	"Can't fork process"
.LC4:
	.string	"Child executed with PID %d\n"
.LC5:
	.string	"Message from child: %s\n"
.LC6:
	.string	"Parent message: %s\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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8315179969733552212
	movabs	rdx, 7959393400148009076
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -80[rbp], 1735289198
	mov	BYTE PTR -76[rbp], 0
	movabs	rax, 8315172273169589588
	movabs	rdx, 8030593374881276275
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 28266697649758317
	mov	QWORD PTR -48[rbp], rax
	movabs	rax, 8319104456053974350
	movabs	rdx, 7885647255504775009
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	movabs	rax, 32772479288176672
	mov	QWORD PTR -16[rbp], rax
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 33
	mov	edx, 3
	mov	esi, 128
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	cmp	DWORD PTR -108[rbp], 0
	jne	.L5
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L6
.L5:
	cmp	DWORD PTR -108[rbp], 0
	jle	.L6
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"905804.c"
	.text
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Memory map failed\000"
	.align	2
.LC4:
	.ascii	"Parent PID is %d\012\000"
	.align	2
.LC5:
	.ascii	"Original message: %s\012\000"
	.align	2
.LC6:
	.ascii	"Can't fork process\000"
	.align	2
.LC7:
	.ascii	"Child executed with PID %d\012\000"
	.align	2
.LC8:
	.ascii	"Message from child: %s\012\000"
	.align	2
.LC9:
	.ascii	"Parent message: %s\012\000"
	.align	2
.LC0:
	.ascii	"This test is running\000"
	.align	2
.LC1:
	.ascii	"Test message from child\000"
	.align	2
.LC2:
	.ascii	"New message from parent\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strb	r1, [ip]
	ldr	r3, .L9+8
	sub	ip, fp, #56
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L9+12
	sub	ip, fp, #32
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #33
	mov	r2, #3
	mov	r1, #128
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L9+16
	bl	perror
	mov	r3, #1
	b	.L7
.L2:
	sub	r3, fp, #80
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	memcpy
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9+20
	bl	printf
	ldr	r1, [fp, #-88]
	ldr	r0, .L9+24
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L9+28
	bl	perror
	mov	r3, #1
	b	.L7
.L4:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #56
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	memcpy
	b	.L6
.L5:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	ble	.L6
	sub	r3, fp, #92
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	waitpid
	ldr	r1, [fp, #-84]
	ldr	r0, .L9+32
	bl	printf
	ldr	r1, [fp, #-88]
	ldr	r0, .L9+36
	bl	printf
	sub	r3, fp, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	memcpy
	ldr	r1, [fp, #-88]
	ldr	r0, .L9+40
	bl	printf
.L6:
	mov	r1, #128
	ldr	r0, [fp, #-88]
	bl	munmap
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
