	.file	"808351.c"
	.intel_syntax noprefix
	.text
	.local	p
	.comm	p,8,8
	.section	.rodata
.LC0:
	.string	"malloc failed, aborting!"
.LC1:
	.string	"fork failed"
.LC2:
	.string	"\nChild: before var update: "
.LC3:
	.string	"   i=%d j=%d\n   &i=%p &j=%p\n"
.LC4:
	.string	"Child: after var update: "
.LC5:
	.string	"\nChild: malloc ret: %p\n"
.LC6:
	.string	"%c "
.LC7:
	.string	"\nParent: before var update: "
.LC8:
	.string	"\nParent: after var update: "
.LC9:
	.string	"\nParent: malloc ret: %p\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, 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
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], 5
	mov	DWORD PTR -28[rbp], 6
	call	getpagesize@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR p[rip], rax
	mov	rax, QWORD PTR p[rip]
	test	rax, rax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	fork@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	je	.L3
	cmp	DWORD PTR -16[rbp], 0
	je	.L4
	jmp	.L11
.L3:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, -28[rbp]
	lea	rcx, -32[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, -28[rbp]
	lea	rcx, -32[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR p[rip]
	mov	esi, 99
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR p[rip]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR p[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L6:
	cmp	DWORD PTR -24[rbp], 15
	jle	.L7
	mov	edi, 10
	call	putchar@PLT
	call	pause@PLT
	mov	rax, QWORD PTR p[rip]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, -28[rbp]
	lea	rcx, -32[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, -28[rbp]
	lea	rcx, -32[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR p[rip]
	mov	esi, 112
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR p[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR p[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L8:
	cmp	DWORD PTR -20[rbp], 15
	jle	.L9
	mov	edi, 10
	call	putchar@PLT
	call	pause@PLT
	mov	rax, QWORD PTR p[rip]
	mov	rdi, rax
	call	free@PLT
	nop
	call	pause@PLT
	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	"808351.c"
	.text
	.local	p
	.comm	p,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc failed, aborting!\000"
	.align	2
.LC1:
	.ascii	"fork failed\000"
	.align	2
.LC2:
	.ascii	"\012Child: before var update: \000"
	.align	2
.LC3:
	.ascii	"   i=%d j=%d\012   &i=%p &j=%p\012\000"
	.align	2
.LC4:
	.ascii	"Child: after var update: \000"
	.align	2
.LC5:
	.ascii	"\012Child: malloc ret: %p\012\000"
	.align	2
.LC6:
	.ascii	"%c \000"
	.align	2
.LC7:
	.ascii	"\012Parent: before var update: \000"
	.align	2
.LC8:
	.ascii	"\012Parent: after var update: \000"
	.align	2
.LC9:
	.ascii	"\012Parent: malloc ret: %p\012\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #5
	str	r3, [fp, #-32]
	mov	r3, #6
	str	r3, [fp, #-28]
	bl	getpagesize
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+4
	str	r2, [r3]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L12+8
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L3
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L4
	b	.L11
.L3:
	ldr	r0, .L12+12
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L12+16
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	sub	r0, fp, #32
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r0, .L12+24
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	sub	r0, fp, #32
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, .L12+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, #99
	mov	r0, r3
	bl	memset
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #15
	ble	.L7
	mov	r0, #10
	bl	putchar
	bl	pause
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r0, #0
	bl	exit
.L11:
	ldr	r0, .L12+36
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	sub	r0, fp, #32
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L12+20
	bl	printf
	ldr	r0, .L12+40
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	sub	r0, fp, #32
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, .L12+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, #112
	mov	r0, r3
	bl	memset
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+44
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L8
.L9:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #15
	ble	.L9
	mov	r0, #10
	bl	putchar
	bl	pause
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	bl	pause
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	.LC10
	.word	p
	.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
