	.file	"575384.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter today's day (1-7): "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Today is %s, tomorrow will be %s\n"
	.align 8
.LC3:
	.string	"Error in conversion - Invalid Day."
	.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
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	convertDay
	cmp	eax, 1
	jne	.L2
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, -1840700269
	shr	rax, 32
	add	eax, edx
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 3
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	convertDay
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L3:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	convertDay
	.type	convertDay, @function
convertDay:
.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	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 7
	ja	.L7
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L9[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L9[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L7-.L9
	.long	.L15-.L9
	.long	.L14-.L9
	.long	.L13-.L9
	.long	.L12-.L9
	.long	.L11-.L9
	.long	.L10-.L9
	.long	.L8-.L9
	.text
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1684959053
	mov	WORD PTR 4[rax], 31073
	mov	BYTE PTR 6[rax], 0
	jmp	.L16
.L14:
	mov	rax, QWORD PTR -16[rbp]
	movabs	rcx, 34165556242642260
	mov	QWORD PTR [rax], rcx
	jmp	.L16
.L13:
	mov	rax, QWORD PTR -16[rbp]
	movabs	rsi, 7017860998831039831
	mov	QWORD PTR [rax], rsi
	mov	WORD PTR 8[rax], 121
	jmp	.L16
.L12:
	mov	rax, QWORD PTR -16[rbp]
	movabs	rdi, 8746382398334527572
	mov	QWORD PTR [rax], rdi
	mov	BYTE PTR 8[rax], 0
	jmp	.L16
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1684632134
	mov	WORD PTR 4[rax], 31073
	mov	BYTE PTR 6[rax], 0
	jmp	.L16
.L10:
	mov	rax, QWORD PTR -16[rbp]
	movabs	rcx, 8746382394089824595
	mov	QWORD PTR [rax], rcx
	mov	BYTE PTR 8[rax], 0
	jmp	.L16
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1684960595
	mov	WORD PTR 4[rax], 31073
	mov	BYTE PTR 6[rax], 0
	jmp	.L16
.L7:
	mov	eax, 0
	jmp	.L17
.L16:
	mov	eax, 1
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	convertDay, .-convertDay
	.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	"575384.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter today's day (1-7): \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Today is %s, tomorrow will be %s\012\000"
	.align	2
.LC3:
	.ascii	"Error in conversion - Invalid Day.\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-52]
	sub	r2, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	convertDay
	mov	r3, r0
	cmp	r3, #1
	bne	.L2
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	ldr	r3, .L6+12
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r0, r1, r3
	mov	r3, r0
	lsl	r3, r3, #3
	sub	r3, r3, r0
	sub	r0, r2, r3
	sub	r3, fp, #28
	mov	r1, r3
	bl	convertDay
	sub	r2, fp, #28
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L6+16
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L6+20
	bl	puts
.L3:
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	-1840700269
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Monday\000"
	.align	2
.LC6:
	.ascii	"Tuesday\000"
	.align	2
.LC7:
	.ascii	"Wednesday\000"
	.align	2
.LC8:
	.ascii	"Thursday\000"
	.align	2
.LC9:
	.ascii	"Friday\000"
	.align	2
.LC10:
	.ascii	"Saturday\000"
	.align	2
.LC11:
	.ascii	"Sunday\000"
	.text
	.align	2
	.global	convertDay
	.syntax unified
	.arm
	.fpu softvfp
	.type	convertDay, %function
convertDay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L9
.L11:
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L10
.L17:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	b	.L18
.L16:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	b	.L18
.L15:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	b	.L18
.L14:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	b	.L18
.L13:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	b	.L18
.L12:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	b	.L18
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, .L20+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	b	.L18
.L9:
	mov	r3, #0
	b	.L19
.L18:
	mov	r3, #1
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	convertDay, .-convertDay
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
