	.file	"133664.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fork"
	.align 8
.LC1:
	.string	" CHILD: This is the child process!"
.LC2:
	.string	" CHILD: My PID is %d\n"
	.align 8
.LC3:
	.string	" CHILD: My parent's PID is %d\n"
	.align 8
.LC4:
	.string	" CHILD: Enter my exit status (make it small): "
.LC5:
	.string	" %d"
.LC6:
	.string	"cuchita\n"
.LC7:
	.string	"cosas"
.LC8:
	.string	"/bin/ls"
.LC9:
	.string	" CHILD: I'm outta here!"
	.align 8
.LC10:
	.string	"PARENT: This is the parent process!"
.LC11:
	.string	"PARENT: My PID is %d\n"
.LC12:
	.string	"PARENT: My child's PID is %d\n"
	.align 8
.LC13:
	.string	"PARENT: I'm now waiting for my child to exit()..."
	.align 8
.LC14:
	.string	"PARENT: My child's exit status is: %d\n"
.LC15:
	.string	"PARENT: I'm outta here!"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L2
	cmp	DWORD PTR -12[rbp], 0
	je	.L3
	jmp	.L7
.L2:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	getppid@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, 0
	lea	rdx, .LC6[rip]
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	execl@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	exit@PLT
.L7:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	"133664.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fork\000"
	.align	2
.LC1:
	.ascii	" CHILD: This is the child process!\000"
	.align	2
.LC2:
	.ascii	" CHILD: My PID is %d\012\000"
	.align	2
.LC3:
	.ascii	" CHILD: My parent's PID is %d\012\000"
	.align	2
.LC4:
	.ascii	" CHILD: Enter my exit status (make it small): \000"
	.align	2
.LC5:
	.ascii	" %d\000"
	.align	2
.LC6:
	.ascii	"cuchita\012\000"
	.align	2
.LC7:
	.ascii	"cosas\000"
	.align	2
.LC8:
	.ascii	"/bin/ls\000"
	.align	2
.LC9:
	.ascii	" CHILD: I'm outta here!\000"
	.align	2
.LC10:
	.ascii	"PARENT: This is the parent process!\000"
	.align	2
.LC11:
	.ascii	"PARENT: My PID is %d\012\000"
	.align	2
.LC12:
	.ascii	"PARENT: My child's PID is %d\012\000"
	.align	2
.LC13:
	.ascii	"PARENT: I'm now waiting for my child to exit()...\000"
	.align	2
.LC14:
	.ascii	"PARENT: My child's exit status is: %d\012\000"
	.align	2
.LC15:
	.ascii	"PARENT: I'm outta here!\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L3
	b	.L7
.L2:
	ldr	r0, .L8+4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L8+8
	bl	puts
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	bl	getppid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r0, .L8+20
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L8+24
	bl	__isoc99_scanf
	mov	r3, #0
	ldr	r2, .L8+28
	ldr	r1, .L8+32
	ldr	r0, .L8+36
	bl	execl
	ldr	r0, .L8+40
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	exit
.L7:
	ldr	r0, .L8+44
	bl	puts
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+48
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+52
	bl	printf
	ldr	r0, .L8+56
	bl	puts
	sub	r3, fp, #16
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-16]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L8+60
	bl	printf
	ldr	r0, .L8+64
	bl	puts
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC16
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
