	.file	"585853.c"
	.intel_syntax noprefix
	.text
	.globl	gera_dic_thread
	.type	gera_dic_thread, @function
gera_dic_thread:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gera_dic_thread, .-gera_dic_thread
	.globl	gera_dic_proc
	.type	gera_dic_proc, @function
gera_dic_proc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gera_dic_proc, .-gera_dic_proc
	.section	.rodata
.LC0:
	.string	"Processo[p] ou Thread[t]: "
.LC1:
	.string	"%c"
.LC2:
	.string	"t"
.LC3:
	.string	"a"
.LC4:
	.string	"%c.txt"
.LC5:
	.string	"f"
.LC6:
	.string	"w"
.LC7:
	.string	"p"
.LC8:
	.string	"Op\303\247\303\243o inv\303\241lida!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 416
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	DWORD PTR -384[rbp], eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	eax, BYTE PTR -403[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsx	rax, BYTE PTR -403[rbp]
	mov	rdx, rax
	lea	rax, .LC2[rip]
	cmp	rdx, rax
	jne	.L6
	mov	QWORD PTR -376[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -376[rbp]
	lea	rcx, -240[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	sal	rdx, 3
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	lea	rdx, gera_dic_thread[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	QWORD PTR -376[rbp], 1
.L7:
	cmp	QWORD PTR -376[rbp], 25
	jle	.L8
	mov	DWORD PTR -400[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -400[rbp]
	cdqe
	mov	rax, QWORD PTR -240[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -400[rbp], 1
.L9:
	cmp	DWORD PTR -400[rbp], 25
	jle	.L10
	lea	rax, .LC3[rip]
	mov	BYTE PTR -401[rbp], al
	mov	DWORD PTR -396[rbp], 0
	jmp	.L11
.L12:
	movsx	eax, BYTE PTR -401[rbp]
	lea	edx, 1[rax]
	lea	rax, -18[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -18[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -368[rbp], rax
	lea	rsi, .LC6[rip]
	mov	edi, 10
	call	fopen@PLT
	mov	QWORD PTR -360[rbp], rax
	add	DWORD PTR -396[rbp], 1
.L11:
	cmp	DWORD PTR -396[rbp], 25
	jle	.L12
	jmp	.L13
.L6:
	movsx	rax, BYTE PTR -403[rbp]
	mov	rdx, rax
	lea	rax, .LC7[rip]
	cmp	rdx, rax
	jne	.L14
	mov	DWORD PTR -392[rbp], 0
	jmp	.L15
.L20:
	call	getpid@PLT
	cmp	DWORD PTR -384[rbp], eax
	jne	.L16
	call	fork@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], 0
	jne	.L17
	lea	rax, .LC3[rip]
	mov	BYTE PTR -402[rbp], al
	mov	eax, DWORD PTR -392[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR -402[rbp]
	add	eax, edx
	movsx	eax, al
	mov	edi, eax
	call	gera_dic_proc
	mov	edi, 0
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	mov	edx, DWORD PTR -380[rbp]
	mov	DWORD PTR -352[rbp+rax*4], edx
.L16:
	mov	DWORD PTR -388[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	mov	eax, DWORD PTR -352[rbp+rax*4]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	add	DWORD PTR -388[rbp], 1
.L18:
	cmp	DWORD PTR -388[rbp], 25
	jle	.L19
	add	DWORD PTR -392[rbp], 1
.L15:
	cmp	DWORD PTR -392[rbp], 25
	jle	.L20
	jmp	.L13
.L14:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"585853.c"
	.text
	.align	2
	.global	gera_dic_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	gera_dic_thread, %function
gera_dic_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	gera_dic_thread, .-gera_dic_thread
	.align	2
	.global	gera_dic_proc
	.syntax unified
	.arm
	.fpu softvfp
	.type	gera_dic_proc, %function
gera_dic_proc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	gera_dic_proc, .-gera_dic_proc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Processo[p] ou Thread[t]: \000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"t\000"
	.align	2
.LC3:
	.ascii	"a\000"
	.align	2
.LC4:
	.ascii	"%c.txt\000"
	.align	2
.LC5:
	.ascii	"f\000"
	.align	2
.LC6:
	.ascii	"w\000"
	.align	2
.LC7:
	.ascii	"p\000"
	.align	2
.LC8:
	.ascii	"Op\303\247\303\243o inv\303\241lida!\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	str	r0, [fp, #-244]
	ldr	r0, .L23+4
	bl	printf
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L23+12
	cmp	r2, r3
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-264]
	b	.L7
.L8:
	sub	r2, fp, #228
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-264]
	ldr	r2, .L23+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-264]
.L7:
	ldr	r3, [fp, #-264]
	cmp	r3, #25
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L9
.L10:
	ldr	r3, [fp, #-260]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-224]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L9:
	ldr	r3, [fp, #-260]
	cmp	r3, #25
	ble	.L10
	ldr	r3, .L23+20
	strb	r3, [fp, #-265]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L11
.L12:
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	add	r2, r3, #1
	sub	r3, fp, #20
	ldr	r1, .L23+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #20
	ldr	r1, .L23+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-236]
	ldr	r1, .L23+32
	mov	r0, #10
	bl	fopen
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L11:
	ldr	r3, [fp, #-256]
	cmp	r3, #25
	ble	.L12
	b	.L13
.L6:
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L23+36
	cmp	r2, r3
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-252]
	b	.L15
.L20:
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-244]
	cmp	r3, r2
	bne	.L16
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L23+20
	strb	r3, [fp, #-266]
	ldr	r3, [fp, #-252]
	and	r2, r3, #255
	ldrb	r3, [fp, #-266]
	add	r3, r2, r3
	and	r3, r3, #255
	mov	r0, r3
	bl	gera_dic_proc
	mov	r0, #0
	bl	exit
.L17:
	ldr	r3, [fp, #-252]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-240]
	str	r2, [r3, #-120]
.L16:
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L18
.L19:
	ldr	r3, [fp, #-248]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-120]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L18:
	ldr	r3, [fp, #-248]
	cmp	r3, #25
	ble	.L19
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L15:
	ldr	r3, [fp, #-252]
	cmp	r3, #25
	ble	.L20
	b	.L13
.L14:
	ldr	r0, .L23+40
	bl	puts
	mov	r0, #0
	bl	exit
.L13:
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	gera_dic_thread
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
