	.file	"151705363.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"prompt %d"
.LC1:
	.string	"Bye bye\n"
.LC2:
	.string	"I'm running"
.LC3:
	.string	"In the child"
.LC4:
	.string	"exec"
.LC5:
	.string	"fork"
.LC6:
	.string	"in the parent .. wait"
	.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -288[rbp], 0
.L6:
	mov	eax, DWORD PTR -288[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	cdqe
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	call	fork@PLT
	mov	DWORD PTR -284[rbp], eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -284[rbp], -1
	je	.L3
	cmp	DWORD PTR -284[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rcx, -272[rbp]
	lea	rax, -272[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	wait@PLT
	add	DWORD PTR -288[rbp], 1
.L5:
	jmp	.L6
	.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	"151705363.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"prompt %d\000"
	.align	2
.LC1:
	.ascii	"Bye bye\012\000"
	.align	2
.LC2:
	.ascii	"I'm running\000"
	.align	2
.LC3:
	.ascii	"In the child\000"
	.align	2
.LC4:
	.ascii	"exec\000"
	.align	2
.LC5:
	.ascii	"fork\000"
	.align	2
.LC6:
	.ascii	"in the parent .. wait\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
.L6:
	ldr	r1, [fp, #-276]
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #264
	mov	r0, r3
	bl	gets
	mov	r3, r0
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L8+16
	bl	fwrite
	mov	r0, #0
	bl	exit
.L2:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r0, .L8+20
	bl	printf
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	beq	.L3
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L8+24
	bl	puts
	sub	r1, fp, #264
	sub	r3, fp, #264
	mov	r2, #0
	mov	r0, r3
	bl	execlp
	ldr	r0, .L8+28
	bl	perror
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L8+32
	bl	perror
	b	.L5
.L4:
	ldr	r0, .L8+36
	bl	puts
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L5:
	b	.L6
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	stdout
	.word	stderr
	.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
