	.file	"117287.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Ingrese el dia de la semana:"
.LC1:
	.string	"%d"
	.text
	.globl	askForDay
	.type	askForDay, @function
askForDay:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	askForDay, .-askForDay
	.section	.rodata
.LC2:
	.string	"lunes"
.LC3:
	.string	"martes"
.LC4:
	.string	"miercoles"
.LC5:
	.string	"jueves"
.LC6:
	.string	"viernes"
.LC7:
	.string	"sabado"
.LC8:
	.string	"domingo"
	.text
	.globl	getDayOfTheWeek
	.type	getDayOfTheWeek, @function
getDayOfTheWeek:
.LFB7:
	.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 -68[rbp], edi
	lea	rax, .LC2[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -68[rbp], 7
	ja	.L5
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L7[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L7[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L12-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
.L12:
	mov	rax, QWORD PTR -48[rbp]
	jmp	.L13
.L11:
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L13
.L10:
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L13
.L9:
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L13
.L8:
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L13
.L6:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L13
.L5:
	mov	rax, QWORD PTR -56[rbp]
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getDayOfTheWeek, .-getDayOfTheWeek
	.section	.rodata
.LC9:
	.string	"%d\n"
.LC10:
	.string	"%p\n"
.LC11:
	.string	"Dia de la semana:"
.LC12:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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], 0
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L16:
	mov	eax, 0
	call	askForDay
	mov	DWORD PTR -12[rbp], eax
.L15:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L16
	cmp	DWORD PTR -12[rbp], 7
	jg	.L16
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	getDayOfTheWeek
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"117287.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Ingrese el dia de la semana:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	askForDay
	.syntax unified
	.arm
	.fpu softvfp
	.type	askForDay, %function
askForDay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	askForDay, .-askForDay
	.section	.rodata
	.align	2
.LC3:
	.ascii	"lunes\000"
	.align	2
.LC4:
	.ascii	"martes\000"
	.align	2
.LC5:
	.ascii	"miercoles\000"
	.align	2
.LC6:
	.ascii	"jueves\000"
	.align	2
.LC7:
	.ascii	"viernes\000"
	.align	2
.LC8:
	.ascii	"sabado\000"
	.align	2
.LC9:
	.ascii	"domingo\000"
	.text
	.align	2
	.global	getDayOfTheWeek
	.syntax unified
	.arm
	.fpu softvfp
	.type	getDayOfTheWeek, %function
getDayOfTheWeek:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	ldr	r3, .L16
	str	r3, [fp, #-32]
	ldr	r3, .L16+4
	str	r3, [fp, #-28]
	ldr	r3, .L16+8
	str	r3, [fp, #-24]
	ldr	r3, .L16+12
	str	r3, [fp, #-20]
	ldr	r3, .L16+16
	str	r3, [fp, #-16]
	ldr	r3, .L16+20
	str	r3, [fp, #-12]
	ldr	r3, .L16+24
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L14:
	ldr	r3, [fp, #-28]
	b	.L15
.L13:
	ldr	r3, [fp, #-24]
	b	.L15
.L12:
	ldr	r3, [fp, #-20]
	b	.L15
.L11:
	ldr	r3, [fp, #-16]
	b	.L15
.L10:
	ldr	r3, [fp, #-12]
	b	.L15
.L8:
	ldr	r3, [fp, #-8]
	b	.L15
.L7:
	ldr	r3, [fp, #-32]
.L15:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	getDayOfTheWeek, .-getDayOfTheWeek
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%d\012\000"
	.align	2
.LC11:
	.ascii	"%p\012\000"
	.align	2
.LC12:
	.ascii	"Dia de la semana:\000"
	.align	2
.LC13:
	.ascii	"%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L22
	bl	printf
	b	.L19
.L20:
	bl	askForDay
	str	r0, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L20
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	bgt	.L20
	ldr	r0, [fp, #-12]
	bl	getDayOfTheWeek
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L22+4
	bl	printf
	ldr	r0, .L22+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L22+12
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
