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>

typedef long long ll;
int main() {
	ll i, o, j, l;
	scanf("%lld %lld %*lld %lld %lld", &i, &o, &j, &l);
	
	ll r = i % 2 + j % 2 + l % 2; // reminder sum
	ll k = i + o + j + l - r;
	
	ll even;
	switch (r)
	{
	case 3:
		k += 3;
		break;
	
	case 2: // odd * 2, even * 1
		if (i % 2 == 0)
		{
			even = i;
		}
		else if (j % 2 == 0)
		{
			even = j;
		}
		else
		{
			even = l;
		}
		if (even > 0)
		{
			k += 1;
		}
		
		break;
	
	default:
		break;
	}
	printf("%lld", k);
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %*lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	movq	%rcx, %rdx
	movq	%rsi, %r8
	shrq	$63, %rdx
	shrq	$63, %r8
	leaq	(%rcx,%rdx), %rax
	andl	$1, %eax
	subq	%rdx, %rax
	leaq	(%rsi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	movq	%rdi, %r8
	shrq	$63, %r8
	addq	%rdx, %rax
	leaq	(%rdi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	addq	%rdx, %rax
	movq	16(%rsp), %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	addq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	$2, %rax
	je	.L2
	leaq	3(%rdx), %rcx
	cmpq	$3, %rax
	cmove	%rcx, %rdx
.L3:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testb	$1, %cl
	jne	.L13
.L4:
	testq	%rcx, %rcx
	jle	.L3
	addq	$1, %rdx
	jmp	.L3
.L13:
	testb	$1, %sil
	cmove	%rsi, %rdi
	movq	%rdi, %rcx
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %*lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	movq	%rcx, %rdx
	movq	%rsi, %r8
	shrq	$63, %rdx
	shrq	$63, %r8
	leaq	(%rcx,%rdx), %rax
	andl	$1, %eax
	subq	%rdx, %rax
	leaq	(%rsi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	movq	%rdi, %r8
	shrq	$63, %r8
	addq	%rdx, %rax
	leaq	(%rdi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	addq	%rdx, %rax
	movq	16(%rsp), %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	addq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	$2, %rax
	je	.L2
	leaq	3(%rdx), %rcx
	cmpq	$3, %rax
	cmove	%rcx, %rdx
.L3:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testb	$1, %cl
	jne	.L13
.L4:
	testq	%rcx, %rcx
	jle	.L3
	addq	$1, %rdx
	jmp	.L3
.L13:
	testb	$1, %sil
	cmove	%rsi, %rdi
	movq	%rdi, %rcx
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %*lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	movq	%rcx, %rdx
	movq	%rsi, %r8
	shrq	$63, %rdx
	shrq	$63, %r8
	leaq	(%rcx,%rdx), %rax
	andl	$1, %eax
	subq	%rdx, %rax
	leaq	(%rsi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	movq	%rdi, %r8
	shrq	$63, %r8
	addq	%rdx, %rax
	leaq	(%rdi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	addq	%rdx, %rax
	movq	16(%rsp), %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	addq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	$2, %rax
	je	.L2
	leaq	3(%rdx), %rcx
	cmpq	$3, %rax
	cmove	%rcx, %rdx
.L3:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testb	$1, %cl
	jne	.L13
.L4:
	testq	%rcx, %rcx
	jle	.L3
	addq	$1, %rdx
	jmp	.L3
.L13:
	testb	$1, %sil
	cmove	%rsi, %rdi
	movq	%rdi, %rcx
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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>

typedef long long ll;
int main() {
	ll i, o, j, l;
	scanf("%lld %lld %*lld %lld %lld", &i, &o, &j, &l);
	
	ll r = i % 2 + j % 2 + l % 2; // reminder sum
	ll k = i + o + j + l - r;
	
	ll even;
	switch (r)
	{
	case 3:
		k += 3;
		break;
	
	case 2: // odd * 2, even * 1
		if (i % 2 == 0)
		{
			even = i;
		}
		else if (j % 2 == 0)
		{
			even = j;
		}
		else
		{
			even = l;
		}
		if (even > 0)
		{
			k += 1;
		}
		
		break;
	
	default:
		break;
	}
	printf("%lld", k);
	
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

typedef long long ll;
int main() {
	ll i, o, j, l;
	scanf("%lld %lld %*lld %lld %lld", &i, &o, &j, &l);
	
	ll r = i % 2 + j % 2 + l % 2; // reminder sum
	ll k = i + o + j + l - r;
	
	ll even;
	switch (r)
	{
	case 3:
		k += 3;
		break;
	
	case 2: // odd * 2, even * 1
		if (i % 2 == 0)
		{
			even = i;
		}
		else if (j % 2 == 0)
		{
			even = j;
		}
		else
		{
			even = l;
		}
		if (even > 0)
		{
			k += 1;
		}
		
		break;
	
	default:
		break;
	}
	printf("%lld", k);
	
	return 0;
}```

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:

0 0 10 0 1 0 0
 1 1 1 0 0 0 0
 0 0 -1 0 2 0 2
 4 0 1 0 0 0 0
 0 3 0 0 1 0 0
 0 3 0 0 2 0 0
 6 0 2 0 0 0 0
 11 0 2 0 0 0 0
 14 0 2 0 0 0 0
 2 5 1 0 1 2 2

0 1 2 4 3 5 6 10 14 7
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>

typedef long long ll;
int main() {
	ll i, o, j, l;
	scanf("%lld %lld %*lld %lld %lld", &i, &o, &j, &l);
	
	ll r = i % 2 + j % 2 + l % 2; // reminder sum
	ll k = i + o + j + l - r;
	
	ll even;
	switch (r)
	{
	case 3:
		k += 3;
		break;
	
	case 2: // odd * 2, even * 1
		if (i % 2 == 0)
		{
			even = i;
		}
		else if (j % 2 == 0)
		{
			even = j;
		}
		else
		{
			even = l;
		}
		if (even > 0)
		{
			k += 1;
		}
		
		break;
	
	default:
		break;
	}
	printf("%lld", k);
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %*lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	movq	%rcx, %rdx
	movq	%rsi, %r8
	shrq	$63, %rdx
	shrq	$63, %r8
	leaq	(%rcx,%rdx), %rax
	andl	$1, %eax
	subq	%rdx, %rax
	leaq	(%rsi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	movq	%rdi, %r8
	shrq	$63, %r8
	addq	%rdx, %rax
	leaq	(%rdi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	addq	%rdx, %rax
	movq	16(%rsp), %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	addq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	$2, %rax
	je	.L2
	leaq	3(%rdx), %rcx
	cmpq	$3, %rax
	cmove	%rcx, %rdx
.L3:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testb	$1, %cl
	jne	.L13
.L4:
	testq	%rcx, %rcx
	jle	.L3
	addq	$1, %rdx
	jmp	.L3
.L13:
	testb	$1, %sil
	cmove	%rsi, %rdi
	movq	%rdi, %rcx
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %*lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	movq	%rcx, %rdx
	movq	%rsi, %r8
	shrq	$63, %rdx
	shrq	$63, %r8
	leaq	(%rcx,%rdx), %rax
	andl	$1, %eax
	subq	%rdx, %rax
	leaq	(%rsi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	movq	%rdi, %r8
	shrq	$63, %r8
	addq	%rdx, %rax
	leaq	(%rdi,%r8), %rdx
	andl	$1, %edx
	subq	%r8, %rdx
	addq	%rdx, %rax
	movq	16(%rsp), %rdx
	addq	%rcx, %rdx
	addq	%rsi, %rdx
	addq	%rdi, %rdx
	subq	%rax, %rdx
	cmpq	$2, %rax
	je	.L2
	leaq	3(%rdx), %rcx
	cmpq	$3, %rax
	cmove	%rcx, %rdx
.L3:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testb	$1, %cl
	jne	.L13
.L4:
	testq	%rcx, %rcx
	jle	.L3
	addq	$1, %rdx
	jmp	.L3
.L13:
	testb	$1, %sil
	cmove	%rsi, %rdi
	movq	%rdi, %rcx
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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:
```