	.file	"548782.c"
	.intel_syntax noprefix
	.text
	.globl	mat
	.bss
	.align 32
	.type	mat, @object
	.size	mat, 8000
mat:
	.zero	8000
	.text
	.globl	fib_iterativo
	.type	fib_iterativo, @function
fib_iterativo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	cmp	DWORD PTR -36[rbp], 0
	jne	.L2
	pxor	xmm0, xmm0
	jmp	.L3
.L2:
	mov	DWORD PTR -28[rbp], 1
	jmp	.L4
.L5:
	movsd	xmm0, QWORD PTR -24[rbp]
	addsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	add	DWORD PTR -28[rbp], 1
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L5
	movsd	xmm0, QWORD PTR -8[rbp]
.L3:
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib_iterativo, .-fib_iterativo
	.globl	fib_recursivo
	.type	fib_recursivo, @function
fib_recursivo:
.LFB1:
	.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	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L7
	pxor	xmm0, xmm0
	jmp	.L8
.L7:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L9
	movsd	xmm0, QWORD PTR .LC1[rip]
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edi, eax
	call	fib_recursivo
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 2
	mov	edi, eax
	call	fib_recursivo
	addsd	xmm0, QWORD PTR -16[rbp]
.L8:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fib_recursivo, .-fib_recursivo
	.globl	fib_progdinamica
	.type	fib_progdinamica, @function
fib_progdinamica:
.LFB2:
	.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	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L11
	pxor	xmm0, xmm0
	jmp	.L12
.L11:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L13
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR mat[rip+8], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mat[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jbe	.L17
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mat[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	jmp	.L12
.L17:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edi, eax
	call	fib_progdinamica
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 2
	mov	edi, eax
	call	fib_progdinamica
	addsd	xmm0, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mat[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mat[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
.L12:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	fib_progdinamica, .-fib_progdinamica
	.section	.rodata
.LC2:
	.string	"\n\nIterativo\n"
.LC3:
	.string	"fib(%d) = %.0lf, "
.LC5:
	.string	"calculado em %fs\n"
.LC6:
	.string	"\n\nRecursivo\n"
.LC7:
	.string	"\n\nDin\303\242mico\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -64[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mat[rip]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -64[rbp], 1
.L19:
	cmp	DWORD PTR -64[rbp], 999
	jle	.L20
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L21
.L22:
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	fib_iterativo
	movq	rax, xmm0
	mov	edx, DWORD PTR -60[rbp]
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	call	clock@PLT
	sub	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -16[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L21:
	cmp	DWORD PTR -60[rbp], 100
	jle	.L22
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L23
.L24:
	call	clock@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	fib_recursivo
	movq	rax, xmm0
	mov	edx, DWORD PTR -56[rbp]
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	call	clock@PLT
	sub	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -32[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -56[rbp], 1
.L23:
	cmp	DWORD PTR -56[rbp], 45
	jle	.L24
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L25
.L26:
	call	clock@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	fib_progdinamica
	movq	rax, xmm0
	mov	edx, DWORD PTR -52[rbp]
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	call	clock@PLT
	sub	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -48[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L25:
	cmp	DWORD PTR -52[rbp], 100
	jle	.L26
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.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	"548782.c"
	.text
	.comm	mat,8000,8
	.global	__aeabi_dadd
	.align	2
	.global	fib_iterativo
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib_iterativo, %function
fib_iterativo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r3, .L6
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L2
	mov	r2, #0
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L4
.L5:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L4:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L5
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	1072693248
	.size	fib_iterativo, .-fib_iterativo
	.align	2
	.global	fib_recursivo
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib_recursivo, %function
fib_recursivo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	mov	r2, #0
	mov	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L11
	mov	r2, #0
	ldr	r3, .L12
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	fib_recursivo
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	fib_recursivo
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
.L10:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	1072693248
	.size	fib_recursivo, .-fib_recursivo
	.global	__aeabi_dcmpgt
	.align	2
	.global	fib_progdinamica
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib_progdinamica, %function
fib_progdinamica:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
	mov	r2, #0
	mov	r3, #0
	b	.L16
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L17
	ldr	r1, .L22
	mov	r2, #0
	ldr	r3, .L22+4
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	mov	r2, #0
	ldr	r3, .L22+4
	b	.L16
.L17:
	ldr	r2, .L22
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r2, .L22
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	b	.L16
.L21:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	fib_progdinamica
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	fib_progdinamica
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L22
	ldr	r1, [fp, #-16]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r2, .L22
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
.L16:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	mat
	.word	1072693248
	.size	fib_progdinamica, .-fib_progdinamica
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012Iterativo\012\000"
	.align	2
.LC1:
	.ascii	"fib(%d) = %.0lf, \000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC2:
	.ascii	"calculado em %fs\012\000"
	.align	2
.LC3:
	.ascii	"\012\012Recursivo\012\000"
	.align	2
.LC4:
	.ascii	"\012\012Din\303\242mico\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L25
.L26:
	ldr	r2, .L34
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L25:
	ldr	r3, [fp, #-56]
	cmp	r3, #1000
	blt	.L26
	ldr	r0, .L34+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L27
.L28:
	bl	clock
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-52]
	bl	fib_iterativo
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-52]
	ldr	r0, .L34+8
	bl	printf
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L34+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L27:
	ldr	r3, [fp, #-52]
	cmp	r3, #100
	ble	.L28
	ldr	r0, .L34+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L29
.L30:
	bl	clock
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	fib_recursivo
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	ldr	r0, .L34+8
	bl	printf
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L34+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L29:
	ldr	r3, [fp, #-48]
	cmp	r3, #45
	ble	.L30
	ldr	r0, .L34+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L31
.L32:
	bl	clock
	str	r0, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	fib_progdinamica
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-44]
	ldr	r0, .L34+8
	bl	printf
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L34+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #100
	ble	.L32
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	mat
	.word	.LC0
	.word	.LC1
	.word	1093567616
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
