	.file	"159515693.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nVETOR = {"
.LC1:
	.string	"%d"
	.text
	.globl	imprime_vetor
	.type	imprime_vetor, @function
imprime_vetor:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	je	.L3
	mov	edi, 44
	call	putchar@PLT
.L3:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L4
	mov	edi, 125
	call	putchar@PLT
.L4:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	imprime_vetor, .-imprime_vetor
	.section	.rodata
.LC2:
	.string	"w+"
.LC3:
	.string	"../resultados/bubbleSort.json"
.LC4:
	.string	"  \"estados\": [\n"
.LC5:
	.string	"{\n\n"
.LC6:
	.string	"%s%s"
.LC7:
	.string	"    {"
.LC8:
	.string	"    \"estado\": ["
.LC9:
	.string	"],"
.LC10:
	.string	","
.LC11:
	.string	"\"comparacao\":["
.LC12:
	.string	"%s%d%s%d%s"
.LC13:
	.string	"]}"
.LC14:
	.string	"],\n"
.LC15:
	.string	",\n"
.LC16:
	.string	"\n[j] -> %d"
.LC17:
	.string	"\t[j - 1] -> %d\n"
.LC18:
	.string	"i -> %d \n"
.LC19:
	.string	"    {\"estado\": ["
.LC20:
	.string	"], \"troca\":["
.LC21:
	.string	"\t\"totalComparacoes\":"
.LC22:
	.string	"%s%d%s"
.LC23:
	.string	"\n"
.LC24:
	.string	"\t\"totalTrocas\":"
.LC25:
	.string	"\n}"
	.text
	.globl	bubble_sort
	.type	bubble_sort, @function
bubble_sort:
.LFB7:
	.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	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, .LC4[rip]
	lea	rdx, .LC5[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L7
.L22:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	mov	DWORD PTR -24[rbp], eax
	jmp	.L8
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -28[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
.L11:
	add	DWORD PTR -20[rbp], 1
.L10:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
.L9:
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, -1[rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	lea	rcx, .LC13[rip]
	push	rcx
	mov	r9d, esi
	lea	r8, .LC10[rip]
	mov	ecx, edx
	lea	rdx, .LC11[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, -4[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jl	.L13
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 2
	cmp	DWORD PTR -28[rbp], eax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
.L14:
	add	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, -4[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L15
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -16[rbp], eax
	je	.L17
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
.L17:
	add	DWORD PTR -16[rbp], 1
.L16:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L18
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, -1[rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	lea	rcx, .LC13[rip]
	push	rcx
	mov	r9d, esi
	lea	r8, .LC10[rip]
	mov	ecx, edx
	lea	rdx, .LC20[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 2
	cmp	DWORD PTR -28[rbp], eax
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
.L20:
	add	DWORD PTR -32[rbp], 1
.L15:
	sub	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jg	.L21
	add	DWORD PTR -28[rbp], 1
.L7:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L22
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	r8, .LC15[rip]
	mov	ecx, edx
	lea	rdx, .LC21[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	r8, .LC23[rip]
	mov	ecx, edx
	lea	rdx, .LC24[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bubble_sort, .-bubble_sort
	.section	.rodata
.LC26:
	.string	"r"
.LC27:
	.string	"dados.dat"
	.align 8
.LC28:
	.string	"Houve um erro ao abrir o arquivo"
	.text
	.globl	readFile
	.type	readFile, @function
readFile:
.LFB8:
	.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, .LC26[rip]
	lea	rdi, .LC27[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L24
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L24:
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	jmp	.L26
.L28:
	cmp	BYTE PTR -81[rbp], 44
	je	.L27
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -76[rbp], edx
	cdqe
	movzx	edx, BYTE PTR -81[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -76[rbp], 0
	lea	rax, -64[rbp]
	movabs	rcx, 2314885530818453536
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 538976288
	mov	BYTE PTR 12[rax], 0
.L26:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -81[rbp], al
	cmp	BYTE PTR -81[rbp], -1
	jne	.L28
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR [rbx], eax
	lea	rax, -64[rbp]
	movabs	rsi, 2314885530818453536
	mov	QWORD PTR [rax], rsi
	mov	DWORD PTR 8[rax], 538976288
	mov	BYTE PTR 12[rax], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	pclose@PLT
.L30:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readFile, .-readFile
	.section	.rodata
	.align 8
.LC29:
	.string	"Houve um erro ao abrir o arquivo."
	.text
	.globl	counter_elements
	.type	counter_elements, @function
counter_elements:
.LFB9:
	.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 -12[rbp], 1
	lea	rsi, .LC26[rip]
	lea	rdi, .LC27[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L34
	lea	rdi, .LC29[rip]
	call	puts@PLT
	jmp	.L33
.L35:
	cmp	BYTE PTR -13[rbp], 44
	jne	.L34
	add	DWORD PTR -12[rbp], 1
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -13[rbp], al
	cmp	BYTE PTR -13[rbp], -1
	jne	.L35
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	counter_elements, .-counter_elements
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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	eax, 0
	call	counter_elements
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	readFile
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	imprime_vetor
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bubble_sort
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	imprime_vetor
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"159515693.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012VETOR = {\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.text
	.align	2
	.global	imprime_vetor
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprime_vetor, %function
imprime_vetor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L6
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L3
	mov	r0, #44
	bl	putchar
.L3:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L4
	mov	r0, #125
	bl	putchar
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L5
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.size	imprime_vetor, .-imprime_vetor
	.section	.rodata
	.align	2
.LC2:
	.ascii	"w+\000"
	.align	2
.LC3:
	.ascii	"../resultados/bubbleSort.json\000"
	.align	2
.LC4:
	.ascii	"  \"estados\": [\012\000"
	.align	2
.LC5:
	.ascii	"{\012\012\000"
	.align	2
.LC6:
	.ascii	"%s%s\000"
	.align	2
.LC7:
	.ascii	"    {\000"
	.align	2
.LC8:
	.ascii	"    \"estado\": [\000"
	.align	2
.LC9:
	.ascii	"],\000"
	.align	2
.LC10:
	.ascii	"\"comparacao\":[\000"
	.align	2
.LC11:
	.ascii	"%s%d%s%d%s\000"
	.align	2
.LC12:
	.ascii	"]}\000"
	.align	2
.LC13:
	.ascii	",\000"
	.align	2
.LC14:
	.ascii	"],\012\000"
	.align	2
.LC15:
	.ascii	",\012\000"
	.align	2
.LC16:
	.ascii	"\012[j] -> %d\000"
	.align	2
.LC17:
	.ascii	"\011[j - 1] -> %d\012\000"
	.align	2
.LC18:
	.ascii	"i -> %d \012\000"
	.align	2
.LC19:
	.ascii	"    {\"estado\": [\000"
	.align	2
.LC20:
	.ascii	"], \"troca\":[\000"
	.align	2
.LC21:
	.ascii	"\011\"totalComparacoes\":\000"
	.align	2
.LC22:
	.ascii	"%s%d%s\000"
	.align	2
.LC23:
	.ascii	"\011\"totalTrocas\":\000"
	.align	2
.LC24:
	.ascii	"\012\000"
	.align	2
.LC25:
	.ascii	"\012}\000"
	.text
	.align	2
	.global	bubble_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubble_sort, %function
bubble_sort:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r1, .L25
	ldr	r0, .L25+4
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, .L25+8
	ldr	r2, .L25+12
	ldr	r1, .L25+16
	ldr	r0, [fp, #-12]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L9
.L24:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L10
.L23:
	ldr	r3, [fp, #-12]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L25+20
	bl	fwrite
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-12]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L25+24
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L12
.L14:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L25+28
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L13
	ldr	r1, [fp, #-12]
	mov	r0, #44
	bl	fputc
.L13:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L12:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L25+32
	bl	fwrite
.L11:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L25+36
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, .L25+40
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, .L25+44
	ldr	r1, .L25+48
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-44]
	sub	r3, r3, #2
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-12]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L25+52
	bl	fwrite
	b	.L16
.L15:
	ldr	r3, [fp, #-12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L25+56
	bl	fwrite
.L16:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-24]
	ldr	r0, .L25+60
	bl	printf
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L25+64
	bl	printf
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L17
	ldr	r1, [fp, #-28]
	ldr	r0, .L25+68
	bl	printf
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L25+72
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L18
.L20:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L25+28
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L19
	ldr	r1, [fp, #-12]
	mov	r0, #44
	bl	fputc
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L25+36
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, .L25+40
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, .L25+76
	ldr	r1, .L25+48
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-44]
	sub	r3, r3, #2
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L21
	ldr	r3, [fp, #-12]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L25+52
	bl	fwrite
	b	.L22
.L21:
	ldr	r3, [fp, #-12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L25+56
	bl	fwrite
.L22:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L17:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bgt	.L23
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L24
	ldr	r3, .L25+56
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, .L25+80
	ldr	r1, .L25+84
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, .L25+88
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L25+92
	ldr	r1, .L25+84
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L25+96
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC1
	.word	.LC9
	.word	.LC12
	.word	.LC13
	.word	.LC10
	.word	.LC11
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC24
	.word	.LC23
	.word	.LC25
	.size	bubble_sort, .-bubble_sort
	.section	.rodata
	.align	2
.LC26:
	.ascii	"r\000"
	.align	2
.LC27:
	.ascii	"dados.dat\000"
	.align	2
.LC28:
	.ascii	"Houve um erro ao abrir o arquivo\000"
	.align	2
.LC29:
	.ascii	"            \000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readFile, %function
readFile:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L36+4
	ldr	r0, .L36+8
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L36+12
	bl	printf
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	b	.L34
.L28:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L30
.L35:
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	str	r2, [fp, #-56]
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r2, [fp, #-61]
	strb	r2, [r3, #-36]
	b	.L30
.L31:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r4, r2, r3
	sub	r3, fp, #48
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #48
	ldr	r2, .L36+16
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
.L30:
	ldr	r0, [fp, #-52]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #44
	beq	.L31
	b	.L35
.L34:
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC30
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	readFile, .-readFile
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Houve um erro ao abrir o arquivo.\000"
	.text
	.align	2
	.global	counter_elements
	.syntax unified
	.arm
	.fpu softvfp
	.type	counter_elements, %function
counter_elements:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r1, .L46
	ldr	r0, .L46+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L41
	ldr	r0, .L46+8
	bl	puts
	b	.L44
.L45:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L41:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L41
	b	.L45
.L44:
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC26
	.word	.LC27
	.word	.LC31
	.size	counter_elements, .-counter_elements
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	counter_elements
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	readFile
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	imprime_vetor
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	bubble_sort
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	imprime_vetor
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
