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 main()
{
	int check(int,int,int,int) ,c, n[4];
	scanf("%d %d %d %d",&n[0], &n[1], &n[2], &n[3]);
	
	if(n[0]!=1 && n[0]!=7 && n[0]!=9 && n[0]!= 4){
		c = 0;
	}else if((n[1]!=1 && n[1]!=7 && n[1]!=9 && n[1]!= 4)||(n[0]==n[1])){
		c = 0;
	}else if((n[2]!=1 && n[2]!=7 && n[2]!=9 && n[2]!= 4)||(n[2]==n[1])||(n[2]==n[0])){
		c = 0;
	}else if((n[3]!=1 && n[3]!=7 && n[3]!=9 && n[3]!= 4)||(n[3]==n[1])||(n[3]==n[0])||(n[3]==n[2])){
		c = 0;
	}else c = 1;
	
	if(c==1) printf("YES");
	else printf("NO");
}


		

	```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	cmpl	$9, %eax
	ja	.L2
	movq	$-659, %rsi
	movl	%eax, %ecx
	movq	%rsi, %rdx
	sarq	%cl, %rdx
	andb	$1, %dl
	jne	.L2
	movl	4(%rsp), %edx
	cmpl	$9, %edx
	ja	.L2
	movl	%edx, %ecx
	movq	%rsi, %rdi
	sarq	%cl, %rdi
	movq	%rdi, %rcx
	andb	$1, %cl
	jne	.L2
	cmpl	%edx, %eax
	je	.L2
	movl	8(%rsp), %edi
	cmpl	$9, %edi
	ja	.L2
	movl	%edi, %ecx
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%edi, %eax
	je	.L2
	cmpl	%edi, %edx
	je	.L2
	movl	12(%rsp), %ecx
	cmpl	$9, %ecx
	ja	.L2
	movq	$-659, %rsi
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%ecx, %eax
	sete	%al
	cmpl	%ecx, %edx
	sete	%dl
	orb	%dl, %al
	jne	.L2
	cmpl	%ecx, %edi
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L8:
	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	"%d %d %d %d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	cmpl	$9, %eax
	ja	.L2
	movq	$-659, %rsi
	movl	%eax, %ecx
	movq	%rsi, %rdx
	sarq	%cl, %rdx
	andb	$1, %dl
	jne	.L2
	movl	4(%rsp), %edx
	cmpl	$9, %edx
	ja	.L2
	movl	%edx, %ecx
	movq	%rsi, %rdi
	sarq	%cl, %rdi
	movq	%rdi, %rcx
	andb	$1, %cl
	jne	.L2
	cmpl	%edx, %eax
	je	.L2
	movl	8(%rsp), %edi
	cmpl	$9, %edi
	ja	.L2
	movl	%edi, %ecx
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%edi, %eax
	je	.L2
	cmpl	%edi, %edx
	je	.L2
	movl	12(%rsp), %ecx
	cmpl	$9, %ecx
	ja	.L2
	movq	$-659, %rsi
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%ecx, %eax
	sete	%al
	cmpl	%ecx, %edx
	sete	%dl
	orb	%dl, %al
	jne	.L2
	cmpl	%ecx, %edi
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L8:
	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	"%d %d %d %d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	cmpl	$9, %eax
	ja	.L2
	movq	$-659, %rsi
	movl	%eax, %ecx
	movq	%rsi, %rdx
	sarq	%cl, %rdx
	andb	$1, %dl
	jne	.L2
	movl	4(%rsp), %edx
	cmpl	$9, %edx
	ja	.L2
	movl	%edx, %ecx
	movq	%rsi, %rdi
	sarq	%cl, %rdi
	movq	%rdi, %rcx
	andb	$1, %cl
	jne	.L2
	cmpl	%edx, %eax
	je	.L2
	movl	8(%rsp), %edi
	cmpl	$9, %edi
	ja	.L2
	movl	%edi, %ecx
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%edi, %eax
	je	.L2
	cmpl	%edi, %edx
	je	.L2
	movl	12(%rsp), %ecx
	cmpl	$9, %ecx
	ja	.L2
	movq	$-659, %rsi
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%ecx, %eax
	sete	%al
	cmpl	%ecx, %edx
	sete	%dl
	orb	%dl, %al
	jne	.L2
	cmpl	%ecx, %edi
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L8:
	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>

int main()
{
	int check(int,int,int,int) ,c, n[4];
	scanf("%d %d %d %d",&n[0], &n[1], &n[2], &n[3]);
	
	if(n[0]!=1 && n[0]!=7 && n[0]!=9 && n[0]!= 4){
		c = 0;
	}else if((n[1]!=1 && n[1]!=7 && n[1]!=9 && n[1]!= 4)||(n[0]==n[1])){
		c = 0;
	}else if((n[2]!=1 && n[2]!=7 && n[2]!=9 && n[2]!= 4)||(n[2]==n[1])||(n[2]==n[0])){
		c = 0;
	}else if((n[3]!=1 && n[3]!=7 && n[3]!=9 && n[3]!= 4)||(n[3]==n[1])||(n[3]==n[0])||(n[3]==n[2])){
		c = 0;
	}else c = 1;
	
	if(c==1) printf("YES");
	else printf("NO");
}


		

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

```c
#include <stdio.h>

int main()
{
	int check(int,int,int,int) ,c, n[4];
	scanf("%d %d %d %d",&n[0], &n[1], &n[2], &n[3]);
	
	if(n[0]!=1 && n[0]!=7 && n[0]!=9 && n[0]!= 4){
		c = 0;
	}else if((n[1]!=1 && n[1]!=7 && n[1]!=9 && n[1]!= 4)||(n[0]==n[1])){
		c = 0;
	}else if((n[2]!=1 && n[2]!=7 && n[2]!=9 && n[2]!= 4)||(n[2]==n[1])||(n[2]==n[0])){
		c = 0;
	}else if((n[3]!=1 && n[3]!=7 && n[3]!=9 && n[3]!= 4)||(n[3]==n[1])||(n[3]==n[0])||(n[3]==n[2])){
		c = 0;
	}else c = 1;
	
	if(c==1) printf("YES");
	else printf("NO");
}


		

	```

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 9 13 4
 1 2 3 1
 4 9 0 13
 0 7 9 4
 1 9 13 3
 1 3 3 1
 3 9 0 13
 1 12 9 4
 1 9 13 0
 1 2 3 2

NO NO NO NO NO NO NO NO NO NO
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 main()
{
	int check(int,int,int,int) ,c, n[4];
	scanf("%d %d %d %d",&n[0], &n[1], &n[2], &n[3]);
	
	if(n[0]!=1 && n[0]!=7 && n[0]!=9 && n[0]!= 4){
		c = 0;
	}else if((n[1]!=1 && n[1]!=7 && n[1]!=9 && n[1]!= 4)||(n[0]==n[1])){
		c = 0;
	}else if((n[2]!=1 && n[2]!=7 && n[2]!=9 && n[2]!= 4)||(n[2]==n[1])||(n[2]==n[0])){
		c = 0;
	}else if((n[3]!=1 && n[3]!=7 && n[3]!=9 && n[3]!= 4)||(n[3]==n[1])||(n[3]==n[0])||(n[3]==n[2])){
		c = 0;
	}else c = 1;
	
	if(c==1) printf("YES");
	else printf("NO");
}


		

	```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	cmpl	$9, %eax
	ja	.L2
	movq	$-659, %rsi
	movl	%eax, %ecx
	movq	%rsi, %rdx
	sarq	%cl, %rdx
	andb	$1, %dl
	jne	.L2
	movl	4(%rsp), %edx
	cmpl	$9, %edx
	ja	.L2
	movl	%edx, %ecx
	movq	%rsi, %rdi
	sarq	%cl, %rdi
	movq	%rdi, %rcx
	andb	$1, %cl
	jne	.L2
	cmpl	%edx, %eax
	je	.L2
	movl	8(%rsp), %edi
	cmpl	$9, %edi
	ja	.L2
	movl	%edi, %ecx
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%edi, %eax
	je	.L2
	cmpl	%edi, %edx
	je	.L2
	movl	12(%rsp), %ecx
	cmpl	$9, %ecx
	ja	.L2
	movq	$-659, %rsi
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%ecx, %eax
	sete	%al
	cmpl	%ecx, %edx
	sete	%dl
	orb	%dl, %al
	jne	.L2
	cmpl	%ecx, %edi
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L8:
	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	"%d %d %d %d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	cmpl	$9, %eax
	ja	.L2
	movq	$-659, %rsi
	movl	%eax, %ecx
	movq	%rsi, %rdx
	sarq	%cl, %rdx
	andb	$1, %dl
	jne	.L2
	movl	4(%rsp), %edx
	cmpl	$9, %edx
	ja	.L2
	movl	%edx, %ecx
	movq	%rsi, %rdi
	sarq	%cl, %rdi
	movq	%rdi, %rcx
	andb	$1, %cl
	jne	.L2
	cmpl	%edx, %eax
	je	.L2
	movl	8(%rsp), %edi
	cmpl	$9, %edi
	ja	.L2
	movl	%edi, %ecx
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%edi, %eax
	je	.L2
	cmpl	%edi, %edx
	je	.L2
	movl	12(%rsp), %ecx
	cmpl	$9, %ecx
	ja	.L2
	movq	$-659, %rsi
	sarq	%cl, %rsi
	andb	$1, %sil
	jne	.L2
	cmpl	%ecx, %eax
	sete	%al
	cmpl	%ecx, %edx
	sete	%dl
	orb	%dl, %al
	jne	.L2
	cmpl	%ecx, %edi
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L8:
	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:
```