	.file	"208466.c"
	.intel_syntax noprefix
	.text
	.globl	ascii_to_index
	.type	ascii_to_index, @function
ascii_to_index:
.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 64
	jle	.L2
	cmp	DWORD PTR -4[rbp], 90
	jg	.L2
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 65
	add	eax, eax
	jmp	.L3
.L2:
	cmp	DWORD PTR -4[rbp], 96
	jle	.L4
	cmp	DWORD PTR -4[rbp], 122
	jg	.L4
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 97
	add	eax, eax
	add	eax, 1
	jmp	.L3
.L4:
	mov	eax, -1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ascii_to_index, .-ascii_to_index
	.globl	index_to_ascii
	.type	index_to_ascii, @function
index_to_ascii:
.LFB1:
	.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 97
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 65
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	index_to_ascii, .-index_to_ascii
	.section	.rodata
.LC0:
	.string	"String Ordenada: "
.LC1:
	.string	"\n"
	.text
	.globl	print_string
	.type	print_string, @function
print_string:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	index_to_ascii
	mov	BYTE PTR -9[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L11:
	movsx	eax, BYTE PTR -9[rbp]
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L11
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 51
	jle	.L12
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print_string, .-print_string
	.section	.rodata
	.align 8
.LC2:
	.string	"Entre com uma string (max %d): "
.LC3:
	.string	"%c"
	.text
	.globl	le_string
	.type	le_string, @function
le_string:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 250
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	movsx	eax, al
	mov	edi, eax
	call	ascii_to_index
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L15
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L15:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 10
	je	.L16
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L17
.L16:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	print_string
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	le_string, .-le_string
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -224[rbp]
	mov	eax, 0
	mov	ecx, 26
	mov	rdi, rdx
	rep stosq
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	le_string
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"208466.c"
	.text
	.align	2
	.global	ascii_to_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	ascii_to_index, %function
ascii_to_index:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #64
	ble	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	bgt	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #65
	lsl	r3, r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #96
	ble	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #122
	bgt	.L4
	ldr	r3, [fp, #-8]
	sub	r3, r3, #97
	lsl	r3, r3, #1
	add	r3, r3, #1
	b	.L3
.L4:
	mvn	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ascii_to_index, .-ascii_to_index
	.align	2
	.global	index_to_ascii
	.syntax unified
	.arm
	.fpu softvfp
	.type	index_to_ascii, %function
index_to_ascii:
	@ 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]
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #97
	b	.L7
.L6:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #65
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	index_to_ascii, .-index_to_ascii
	.section	.rodata
	.align	2
.LC0:
	.ascii	"String Ordenada: \000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.text
	.align	2
	.global	print_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_string, %function
print_string:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, .L14
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L12:
	ldr	r0, [fp, #-12]
	bl	index_to_ascii
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #51
	ble	.L12
	ldr	r0, .L14+4
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC1
	.size	print_string, .-print_string
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Entre com uma string (max %d): \000"
	.align	2
.LC3:
	.ascii	"%c\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	le_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	le_string, %function
le_string:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #250
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L22+4
	bl	printf
.L19:
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r0, r3
	bl	ascii_to_index
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L17
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L17:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L18
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L19
.L18:
	ldr	r0, [fp, #-32]
	bl	print_string
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.size	le_string, .-le_string
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #216
	mov	r2, #208
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #216
	mov	r0, r3
	bl	le_string
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
