Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int zeller(int Y,int M,int D){if(++M<4)Y-=1,M+=12;int y=Y/100,z=Y%100;return (5*y+z+y/4+z/4+13*M/5+D-1)%7;}
char *W="sunmontuewedthufrisat";
int main(){
	int n;
	scanf("%d",&n);
	printf("%.*s\n",3,W+zeller(2017,9,n)*3);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	zeller
	.type	zeller, @function
zeller:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rsi), %r9d
	movl	%edx, %r8d
	cmpl	$3, %r9d
	jg	.L2
	subl	$1, %edi
	leal	13(%rsi), %r9d
.L2:
	movslq	%edi, %rdx
	movl	%edi, %esi
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	movq	%rdx, %rax
	sarq	$39, %rdx
	sarq	$37, %rax
	subl	%esi, %edx
	movl	%eax, %ecx
	subl	%esi, %eax
	subl	%esi, %ecx
	leal	(%rax,%rax,4), %eax
	imull	$100, %ecx, %r10d
	subl	%r10d, %edi
	addl	%edi, %eax
	addl	%edx, %eax
	testl	%edi, %edi
	leal	3(%rdi), %edx
	cmovns	%edi, %edx
	sarl	$2, %edx
	addl	%edx, %eax
	leal	(%r9,%r9,2), %edx
	leal	(%r9,%rdx,4), %ecx
	movslq	%ecx, %rdx
	sarl	$31, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarq	$33, %rdx
	subl	%ecx, %edx
	addl	%edx, %eax
	leal	-1(%r8,%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	zeller, .-zeller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%.*s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leal	151(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	subl	%ecx, %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	$3, %edx
	movslq	%ecx, %rcx
	addq	W(%rip), %rcx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.section	.rodata.str1.1
.LC2:
	.string	"sunmontuewedthufrisat"
	.section	.data.rel.local,"aw"
	.align 8
	.type	W, @object
	.size	W, 8
W:
	.quad	.LC2
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	zeller
	.type	zeller, @function
zeller:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rsi), %r9d
	movl	%edx, %r8d
	cmpl	$3, %r9d
	jg	.L2
	subl	$1, %edi
	leal	13(%rsi), %r9d
.L2:
	movslq	%edi, %rdx
	movl	%edi, %esi
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	movq	%rdx, %rax
	sarq	$39, %rdx
	sarq	$37, %rax
	subl	%esi, %edx
	movl	%eax, %ecx
	subl	%esi, %eax
	subl	%esi, %ecx
	leal	(%rax,%rax,4), %eax
	imull	$100, %ecx, %r10d
	subl	%r10d, %edi
	addl	%edi, %eax
	addl	%edx, %eax
	testl	%edi, %edi
	leal	3(%rdi), %edx
	cmovns	%edi, %edx
	sarl	$2, %edx
	addl	%edx, %eax
	leal	(%r9,%r9,2), %edx
	leal	(%r9,%rdx,4), %ecx
	movslq	%ecx, %rdx
	sarl	$31, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarq	$33, %rdx
	subl	%ecx, %edx
	addl	%edx, %eax
	leal	-1(%r8,%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	zeller, .-zeller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%.*s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leal	151(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	subl	%ecx, %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	$3, %edx
	movslq	%ecx, %rcx
	addq	W(%rip), %rcx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.section	.rodata.str1.1
.LC2:
	.string	"sunmontuewedthufrisat"
	.section	.data.rel.local,"aw"
	.align 8
	.type	W, @object
	.size	W, 8
W:
	.quad	.LC2
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	zeller
	.type	zeller, @function
zeller:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rsi), %r9d
	movl	%edx, %r8d
	cmpl	$3, %r9d
	jg	.L2
	subl	$1, %edi
	leal	13(%rsi), %r9d
.L2:
	movslq	%edi, %rdx
	movl	%edi, %esi
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	movq	%rdx, %rax
	sarq	$39, %rdx
	sarq	$37, %rax
	subl	%esi, %edx
	movl	%eax, %ecx
	subl	%esi, %eax
	subl	%esi, %ecx
	leal	(%rax,%rax,4), %eax
	imull	$100, %ecx, %r10d
	subl	%r10d, %edi
	addl	%edi, %eax
	addl	%edx, %eax
	testl	%edi, %edi
	leal	3(%rdi), %edx
	cmovns	%edi, %edx
	sarl	$2, %edx
	addl	%edx, %eax
	leal	(%r9,%r9,2), %edx
	leal	(%r9,%rdx,4), %ecx
	movslq	%ecx, %rdx
	sarl	$31, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarq	$33, %rdx
	subl	%ecx, %edx
	addl	%edx, %eax
	leal	-1(%r8,%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	zeller, .-zeller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%.*s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leal	151(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	subl	%ecx, %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	$3, %edx
	movslq	%ecx, %rcx
	addq	W(%rip), %rcx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.section	.rodata.str1.1
.LC2:
	.string	"sunmontuewedthufrisat"
	.section	.data.rel.local,"aw"
	.align 8
	.type	W, @object
	.size	W, 8
W:
	.quad	.LC2
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
```c
#include <stdio.h>
int zeller(int Y,int M,int D){if(++M<4)Y-=1,M+=12;int y=Y/100,z=Y%100;return (5*y+z+y/4+z/4+13*M/5+D-1)%7;}
char *W="sunmontuewedthufrisat";
int main(){
	int n;
	scanf("%d",&n);
	printf("%.*s\n",3,W+zeller(2017,9,n)*3);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int zeller(int Y,int M,int D){if(++M<4)Y-=1,M+=12;int y=Y/100,z=Y%100;return (5*y+z+y/4+z/4+13*M/5+D-1)%7;}
char *W="sunmontuewedthufrisat";
int main(){
	int n;
	scanf("%d",&n);
	printf("%.*s\n",3,W+zeller(2017,9,n)*3);
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

1

fri

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int zeller(int Y,int M,int D){if(++M<4)Y-=1,M+=12;int y=Y/100,z=Y%100;return (5*y+z+y/4+z/4+13*M/5+D-1)%7;}
char *W="sunmontuewedthufrisat";
int main(){
	int n;
	scanf("%d",&n);
	printf("%.*s\n",3,W+zeller(2017,9,n)*3);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	zeller
	.type	zeller, @function
zeller:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rsi), %r9d
	movl	%edx, %r8d
	cmpl	$3, %r9d
	jg	.L2
	subl	$1, %edi
	leal	13(%rsi), %r9d
.L2:
	movslq	%edi, %rdx
	movl	%edi, %esi
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	movq	%rdx, %rax
	sarq	$39, %rdx
	sarq	$37, %rax
	subl	%esi, %edx
	movl	%eax, %ecx
	subl	%esi, %eax
	subl	%esi, %ecx
	leal	(%rax,%rax,4), %eax
	imull	$100, %ecx, %r10d
	subl	%r10d, %edi
	addl	%edi, %eax
	addl	%edx, %eax
	testl	%edi, %edi
	leal	3(%rdi), %edx
	cmovns	%edi, %edx
	sarl	$2, %edx
	addl	%edx, %eax
	leal	(%r9,%r9,2), %edx
	leal	(%r9,%rdx,4), %ecx
	movslq	%ecx, %rdx
	sarl	$31, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarq	$33, %rdx
	subl	%ecx, %edx
	addl	%edx, %eax
	leal	-1(%r8,%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	zeller, .-zeller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%.*s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leal	151(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	subl	%ecx, %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	$3, %edx
	movslq	%ecx, %rcx
	addq	W(%rip), %rcx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.section	.rodata.str1.1
.LC2:
	.string	"sunmontuewedthufrisat"
	.section	.data.rel.local,"aw"
	.align 8
	.type	W, @object
	.size	W, 8
W:
	.quad	.LC2
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	zeller
	.type	zeller, @function
zeller:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rsi), %r9d
	movl	%edx, %r8d
	cmpl	$3, %r9d
	jg	.L2
	subl	$1, %edi
	leal	13(%rsi), %r9d
.L2:
	movslq	%edi, %rdx
	movl	%edi, %esi
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	movq	%rdx, %rax
	sarq	$39, %rdx
	sarq	$37, %rax
	subl	%esi, %edx
	movl	%eax, %ecx
	subl	%esi, %eax
	subl	%esi, %ecx
	leal	(%rax,%rax,4), %eax
	imull	$100, %ecx, %r10d
	subl	%r10d, %edi
	addl	%edi, %eax
	addl	%edx, %eax
	testl	%edi, %edi
	leal	3(%rdi), %edx
	cmovns	%edi, %edx
	sarl	$2, %edx
	addl	%edx, %eax
	leal	(%r9,%r9,2), %edx
	leal	(%r9,%rdx,4), %ecx
	movslq	%ecx, %rdx
	sarl	$31, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarq	$33, %rdx
	subl	%ecx, %edx
	addl	%edx, %eax
	leal	-1(%r8,%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	zeller, .-zeller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%.*s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	leal	151(%rax), %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$-1840700269, %rax, %rax
	sarl	$31, %ecx
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	subl	%ecx, %eax
	leal	0(,%rax,8), %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	subl	%ecx, %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	$3, %edx
	movslq	%ecx, %rcx
	addq	W(%rip), %rcx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.section	.rodata.str1.1
.LC2:
	.string	"sunmontuewedthufrisat"
	.section	.data.rel.local,"aw"
	.align 8
	.type	W, @object
	.size	W, 8
W:
	.quad	.LC2
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```