	.file	"20449793.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"First process is executing, pid %d \n"
	.align 8
.LC1:
	.string	"\t\t\t\t********\n\t\t\t\t* CHILD *\t\n\t\t\t\t********"
	.align 8
.LC2:
	.string	"\t\t\t\tCHILD, PID: %d \n\t\t\t\tPARENT, PID: %d \n"
	.align 8
.LC3:
	.string	"\t\t\t\tGoing for a 30 secondes sleep..."
	.align 8
.LC4:
	.string	"\t\t\t\tJust wok up,\n\t\t\t\tI finish executing EXIT(7)"
.LC5:
	.string	"Fork just failed !!!"
.LC6:
	.string	"********\n* PARENT *\n********"
	.align 8
.LC7:
	.string	"Parent process, pid: %d \nChild process, pid: %d \n"
	.align 8
.LC8:
	.string	"Parent waiting for completion of the child process..."
	.align 8
.LC9:
	.string	"Child finished its exectuion, pid: %d,\nIts state was : %04x\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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	je	.L2
	cmp	DWORD PTR -36[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 5
	mov	ebx, 0
	cdq
	idiv	ebx
	mov	DWORD PTR -32[rbp], eax
	mov	edi, 30
	call	sleep@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 7
	call	exit@PLT
.L2:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L3:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	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	"20449793.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"First process is executing, pid %d \012\000"
	.align	2
.LC1:
	.ascii	"\011\011\011\011********\012\011\011\011\011* CHILD"
	.ascii	" *\011\012\011\011\011\011********\000"
	.align	2
.LC2:
	.ascii	"\011\011\011\011CHILD, PID: %d \012\011\011\011\011"
	.ascii	"PARENT, PID: %d \012\000"
	.align	2
.LC3:
	.ascii	"\011\011\011\011Going for a 30 secondes sleep...\000"
	.global	__aeabi_idiv
	.align	2
.LC4:
	.ascii	"\011\011\011\011Just wok up,\012\011\011\011\011I f"
	.ascii	"inish executing EXIT(7)\000"
	.align	2
.LC5:
	.ascii	"Fork just failed !!!\000"
	.align	2
.LC6:
	.ascii	"********\012* PARENT *\012********\000"
	.align	2
.LC7:
	.ascii	"Parent process, pid: %d \012Child process, pid: %d "
	.ascii	"\012\000"
	.align	2
.LC8:
	.ascii	"Parent waiting for completion of the child process."
	.ascii	"..\000"
	.align	2
.LC9:
	.ascii	"Child finished its exectuion, pid: %d,\012Its state"
	.ascii	" was : %04x\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L6+8
	bl	puts
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L6+12
	bl	printf
	ldr	r0, .L6+16
	bl	puts
	mov	r3, #5
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r0, #30
	bl	sleep
	ldr	r0, .L6+20
	bl	puts
	mov	r0, #7
	bl	exit
.L2:
	ldr	r0, .L6+24
	bl	printf
	mov	r0, #2
	bl	exit
.L3:
	ldr	r0, .L6+28
	bl	puts
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L6+32
	bl	printf
	ldr	r0, .L6+36
	bl	puts
	sub	r3, fp, #32
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L6+40
	bl	printf
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.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
