	.file	"580587.c"
	.intel_syntax noprefix
	.text
	.globl	CHILD
	.section	.rodata
	.type	CHILD, @object
	.size	CHILD, 6
CHILD:
	.string	"Child"
	.globl	PARENT
	.type	PARENT, @object
	.size	PARENT, 7
PARENT:
	.string	"Parent"
	.globl	N_FORKS
	.align 4
	.type	N_FORKS, @object
	.size	N_FORKS, 4
N_FORKS:
	.long	10
.LC0:
	.string	"error on fork()"
	.align 8
.LC1:
	.string	"I'm the Parent and I'm waiting my children..."
	.align 8
.LC2:
	.string	"I'm the parent and acknowledged that the Child %d has finished!\n"
	.align 8
.LC3:
	.string	"My children finished their work!"
.LC4:
	.string	"%s %d: My work here is done!\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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L6:
	call	fork@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L14
	cmp	DWORD PTR -8[rbp], 0
	jns	.L5
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L4
.L5:
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L6
	jmp	.L4
.L14:
	nop
.L4:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L7
	mov	edi, 1
	call	sleep@PLT
	jmp	.L8
.L7:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L9:
	mov	edi, 0
	call	wait@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jg	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L8:
	call	getpid@PLT
	mov	edx, eax
	cmp	DWORD PTR -8[rbp], 0
	jne	.L11
	lea	rax, CHILD[rip]
	jmp	.L12
.L11:
	lea	rax, PARENT[rip]
.L12:
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	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	"580587.c"
	.text
	.global	CHILD
	.section	.rodata
	.align	2
	.type	CHILD, %object
	.size	CHILD, 6
CHILD:
	.ascii	"Child\000"
	.global	PARENT
	.align	2
	.type	PARENT, %object
	.size	PARENT, 7
PARENT:
	.ascii	"Parent\000"
	.global	N_FORKS
	.align	2
	.type	N_FORKS, %object
	.size	N_FORKS, 4
N_FORKS:
	.word	10
	.align	2
.LC0:
	.ascii	"error on fork()\000"
	.align	2
.LC1:
	.ascii	"I'm the Parent and I'm waiting my children...\000"
	.align	2
.LC2:
	.ascii	"I'm the parent and acknowledged that the Child %d h"
	.ascii	"as finished!\012\000"
	.align	2
.LC3:
	.ascii	"My children finished their work!\000"
	.align	2
.LC4:
	.ascii	"%s %d: My work here is done!\012\000"
	.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
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L6:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L15
	bl	puts
	b	.L4
.L5:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	ble	.L6
	b	.L4
.L14:
	nop
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	mov	r0, #1
	bl	sleep
	b	.L8
.L7:
	ldr	r0, .L15+4
	bl	puts
	b	.L9
.L10:
	ldr	r1, [fp, #-16]
	ldr	r0, .L15+8
	bl	printf
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L9:
	mov	r0, #0
	bl	wait
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L10
	ldr	r0, .L15+16
	bl	puts
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L11
	ldr	r4, .L15+20
	b	.L12
.L11:
	ldr	r4, .L15+24
.L12:
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L15+28
	bl	printf
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	.LC3
	.word	CHILD
	.word	PARENT
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
