	.file	"997888.c"
	.intel_syntax noprefix
	.text
	.globl	v
	.bss
	.align 32
	.type	v, @object
	.size	v, 40
v:
	.zero	40
	.globl	c
	.type	c, @object
	.size	c, 1
c:
	.zero	1
	.section	.rodata
	.align 8
.LC0:
	.string	"Deseo ver los elementos en orden:\n'a'=ascendente\n'd'=descendente"
.LC1:
	.string	"%s"
.LC2:
	.string	"(Opcion invalida)"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	fillVector
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rsi, c[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rsi, c[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	movzx	eax, BYTE PTR c[rip]
	cmp	al, 100
	je	.L3
	movzx	eax, BYTE PTR c[rip]
	cmp	al, 97
	jne	.L4
.L3:
	movzx	eax, BYTE PTR c[rip]
	movsx	eax, al
	mov	edi, eax
	call	printVector
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	fillVector
	.type	fillVector, @function
fillVector:
.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], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L8
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	fillVector, .-fillVector
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	printVector
	.type	printVector, @function
printVector:
.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	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	cmp	BYTE PTR -20[rbp], 100
	jne	.L10
	mov	DWORD PTR -16[rbp], -1
	mov	DWORD PTR -12[rbp], 9
.L10:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -8[rbp], eax
.L11:
	mov	eax, 9
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jne	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	printVector, .-printVector
	.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	"997888.c"
	.text
	.comm	v,40,4
	.comm	c,1,1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Deseo ver los elementos en orden:\012'a'=ascendente"
	.ascii	"\012'd'=descendente\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"(Opcion invalida)\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	fillVector
	ldr	r0, .L6
	bl	puts
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	b	.L2
.L4:
	ldr	r0, .L6+12
	bl	puts
	ldr	r0, .L6
	bl	puts
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__isoc99_scanf
.L2:
	ldr	r3, .L6+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #100
	beq	.L3
	ldr	r3, .L6+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L4
.L3:
	ldr	r3, .L6+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	printVector
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	c
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	fillVector
	.syntax unified
	.arm
	.fpu softvfp
	.type	fillVector, %function
fillVector:
	@ 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, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r2, r3, #1
	ldr	r1, .L11
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L10
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	v
	.size	fillVector, .-fillVector
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	printVector
	.syntax unified
	.arm
	.fpu softvfp
	.type	printVector, %function
printVector:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	strb	r3, [fp, #-21]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L14
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #9
	str	r3, [fp, #-16]
.L14:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r2, .L17
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-16]
	rsb	r2, r3, #9
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	v
	.word	.LC3
	.size	printVector, .-printVector
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
