	.file	"376977.c"
	.intel_syntax noprefix
	.text
	.globl	arrayCopy
	.type	arrayCopy, @function
arrayCopy:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	arrayCopy, .-arrayCopy
	.section	.rodata
.LC0:
	.string	"pt_br.UTF-8"
	.align 8
.LC1:
	.string	"==================================="
.LC2:
	.string	"1. Bubble"
.LC3:
	.string	"2. Selection Sort"
.LC4:
	.string	"3. Insertion Sort"
.LC5:
	.string	"4. Quick Sort"
.LC6:
	.string	"5. Timsort"
	.align 8
.LC7:
	.string	"Escolha qual o tipo de ordena\303\247\303\243o:"
.LC8:
	.string	"%d"
.LC9:
	.string	"clear"
.LC10:
	.string	"Error! Digite novamente"
	.text
	.globl	sortingprogram
	.type	sortingprogram, @function
sortingprogram:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	mov	edi, 6
	call	setlocale@PLT
	mov	DWORD PTR -92[rbp], 100
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -112[rbp], rdx
	mov	QWORD PTR -104[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -128[rbp], rdx
	mov	QWORD PTR -120[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	randomvalue@PLT
	mov	edi, 10
	call	putchar@PLT
.L19:
	mov	rax, rsp
	mov	rbx, rax
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L8:
	cmp	rsp, rdx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L10
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 5
	ja	.L11
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L11-.L13
	.long	.L17-.L13
	.long	.L16-.L13
	.long	.L15-.L13
	.long	.L14-.L13
	.long	.L12-.L13
	.text
.L17:
	mov	edx, DWORD PTR -92[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	arrayCopy
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printRandom@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bubble@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L16:
	mov	edx, DWORD PTR -92[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	arrayCopy
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printRandom@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	selectionsort@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L15:
	mov	edx, DWORD PTR -92[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	arrayCopy
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printRandom@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	insertionsort@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L14:
	mov	edx, DWORD PTR -92[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	arrayCopy
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printRandom@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	quicksort@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L12:
	mov	edx, DWORD PTR -92[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	arrayCopy
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printRandom@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	timsort@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L11:
	lea	rdi, .LC9[rip]
	call	system@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
.L18:
	mov	rsp, rbx
	jmp	.L19
	.cfi_endproc
.LFE7:
	.size	sortingprogram, .-sortingprogram
	.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	"376977.c"
	.text
	.align	2
	.global	arrayCopy
	.syntax unified
	.arm
	.fpu softvfp
	.type	arrayCopy, %function
arrayCopy:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	arrayCopy, .-arrayCopy
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pt_br.UTF-8\000"
	.align	2
.LC1:
	.ascii	"===================================\000"
	.align	2
.LC2:
	.ascii	"1. Bubble\000"
	.align	2
.LC3:
	.ascii	"2. Selection Sort\000"
	.align	2
.LC4:
	.ascii	"3. Insertion Sort\000"
	.align	2
.LC5:
	.ascii	"4. Quick Sort\000"
	.align	2
.LC6:
	.ascii	"5. Timsort\000"
	.align	2
.LC7:
	.ascii	"Escolha qual o tipo de ordena\303\247\303\243o:\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"clear\000"
	.align	2
.LC10:
	.ascii	"Error! Digite novamente\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sortingprogram
	.syntax unified
	.arm
	.fpu softvfp
	.type	sortingprogram, %function
sortingprogram:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L15+4
	mov	r0, #6
	bl	setlocale
	mov	r3, #100
	str	r3, [fp, #-32]
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	randomvalue
	mov	r0, #10
	bl	putchar
.L13:
	mov	r3, sp
	mov	r4, r3
	mov	r0, #10
	bl	putchar
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, .L15+12
	bl	puts
	ldr	r0, .L15+16
	bl	puts
	ldr	r0, .L15+20
	bl	puts
	ldr	r0, .L15+24
	bl	puts
	ldr	r0, .L15+28
	bl	puts
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, .L15+32
	bl	puts
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L15+36
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L11:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	arrayCopy
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	printRandom
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	bubble
	mov	r0, #10
	bl	putchar
	b	.L12
.L10:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	arrayCopy
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	printRandom
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	selectionsort
	mov	r0, #10
	bl	putchar
	b	.L12
.L9:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	arrayCopy
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	printRandom
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	insertionsort
	mov	r0, #10
	bl	putchar
	b	.L12
.L8:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	arrayCopy
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	printRandom
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	quicksort
	mov	r0, #10
	bl	putchar
	b	.L12
.L6:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	arrayCopy
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	printRandom
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	timsort
	mov	r0, #10
	bl	putchar
	b	.L12
.L5:
	ldr	r0, .L15+40
	bl	system
	ldr	r0, .L15+44
	bl	puts
	mov	r0, #10
	bl	putchar
	nop
.L12:
	mov	sp, r4
	b	.L13
.L16:
	.align	2
.L15:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	sortingprogram, .-sortingprogram
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
