	.file	"148770.c"
	.intel_syntax noprefix
	.text
	.globl	espera
	.type	espera, @function
espera:
.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
	lea	rax, -12[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	espera, .-espera
	.section	.rodata
.LC0:
	.string	"%d -- %d\n"
	.text
	.globl	report
	.type	report, @function
report:
.LFB7:
	.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, 8
	.cfi_offset 3, -24
	call	getpid@PLT
	mov	ebx, eax
	call	getppid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	report, .-report
	.globl	ultimo_filho
	.type	ultimo_filho, @function
ultimo_filho:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	report
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ultimo_filho, .-ultimo_filho
	.globl	cria_filho
	.type	cria_filho, @function
cria_filho:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
	call	fork@PLT
	test	eax, eax
	jne	.L6
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	jmp	.L9
.L6:
	call	fork@PLT
	test	eax, eax
	jne	.L8
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
	jmp	.L9
.L8:
	call	fork@PLT
	test	eax, eax
	jne	.L9
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	cria_filho_simples
	mov	eax, 0
	call	espera
.L9:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cria_filho, .-cria_filho
	.section	.rodata
.LC1:
	.string	"}"
	.text
	.globl	cria_filho_simples
	.type	cria_filho_simples, @function
cria_filho_simples:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	espera
	call	fork@PLT
	test	eax, eax
	jne	.L12
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cria_filho_simples, .-cria_filho_simples
	.section	.rodata
.LC2:
	.string	"graph {"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	call	report
	mov	eax, 0
	call	espera
	call	fork@PLT
	test	eax, eax
	jne	.L14
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
	jmp	.L15
.L14:
	call	fork@PLT
	test	eax, eax
	jne	.L16
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
	jmp	.L15
.L16:
	call	fork@PLT
	test	eax, eax
	jne	.L17
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	cria_filho
	mov	eax, 0
	call	espera
	jmp	.L15
.L17:
	call	fork@PLT
	test	eax, eax
	jne	.L15
	mov	eax, 0
	call	espera
	mov	eax, 0
	call	ultimo_filho
	mov	eax, 0
	call	espera
.L15:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"148770.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	espera
	.syntax unified
	.arm
	.fpu softvfp
	.type	espera, %function
espera:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	wait
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	espera, .-espera
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d -- %d\012\000"
	.text
	.align	2
	.global	report
	.syntax unified
	.arm
	.fpu softvfp
	.type	report, %function
report:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	bl	getppid
	mov	r4, r0
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L6
	bl	printf
	nop
	pop	{r4, r5, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.size	report, .-report
	.align	2
	.global	ultimo_filho
	.syntax unified
	.arm
	.fpu softvfp
	.type	ultimo_filho, %function
ultimo_filho:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	report
	nop
	pop	{fp, pc}
	.size	ultimo_filho, .-ultimo_filho
	.align	2
	.global	cria_filho
	.syntax unified
	.arm
	.fpu softvfp
	.type	cria_filho, %function
cria_filho:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	ultimo_filho
	bl	espera
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	bl	espera
	bl	ultimo_filho
	b	.L13
.L10:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	bl	espera
	bl	ultimo_filho
	bl	espera
	b	.L13
.L12:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	bl	espera
	bl	ultimo_filho
	bl	espera
	bl	cria_filho_simples
	bl	espera
.L13:
	nop
	pop	{fp, pc}
	.size	cria_filho, .-cria_filho
	.section	.rodata
	.align	2
.LC2:
	.ascii	"}\000"
	.text
	.align	2
	.global	cria_filho_simples
	.syntax unified
	.arm
	.fpu softvfp
	.type	cria_filho_simples, %function
cria_filho_simples:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	espera
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	bl	espera
	bl	ultimo_filho
	bl	espera
	ldr	r0, .L17
	bl	puts
.L16:
	nop
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC2
	.size	cria_filho_simples, .-cria_filho_simples
	.section	.rodata
	.align	2
.LC3:
	.ascii	"graph {\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L25
	bl	puts
	bl	report
	bl	espera
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	bl	espera
	bl	ultimo_filho
	bl	espera
	b	.L21
.L20:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	bl	espera
	bl	ultimo_filho
	bl	espera
	b	.L21
.L22:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	bl	espera
	bl	cria_filho
	bl	espera
	b	.L21
.L23:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	bl	espera
	bl	ultimo_filho
	bl	espera
.L21:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
