	.file	"166898.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Filho %d: %d\nppid: %d\n"
.LC1:
	.string	"SAIU:%d\npid: %d\n"
	.text
	.globl	ex5
	.type	ex5, @function
ex5:
.LFB0:
	.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L7
	call	fork@PLT
	test	eax, eax
	jne	.L4
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	ecx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	mov	edi, edx
	call	ex5
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	_exit@PLT
.L4:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR -32[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L7:
	nop
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ex5, .-ex5
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 10
	mov	edi, 10
	call	ex5
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"166898.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Filho %d: %d\012ppid: %d\012\000"
	.align	2
.LC1:
	.ascii	"SAIU:%d\012pid: %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ex5
	.syntax unified
	.arm
	.fpu softvfp
	.type	ex5, %function
ex5:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L7
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r4, r2, r3
	bl	getpid
	mov	r5, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	ex5
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r0, r3
	bl	_exit
.L4:
	sub	r3, fp, #24
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L1
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	b	.L1
.L7:
	nop
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	ex5, .-ex5
	.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
	mov	r1, #10
	mov	r0, #10
	bl	ex5
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
