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(void){
	int  a, b, c, d;
	int p = 0;
	scanf("%d %d %d %d",&a,&b,&c,&d);
    p = a*1000+b*100+c*10+d;
	if(p==1479||p==1497||p==1749||p==1794||p==1947||p==1974){
      printf("YES");
    }else if(p==4179||p==4197||p==4719||p==4791||p==4917||p==4971){
      printf("YES");
    }else if(p==7149||p==7194||p==7419||p==7491||p==7914||p==7941){
      printf("YES");
    }else if(p==9147||p==9174||p==9417||p==9471||p==9714||p==9741){
      printf("YES");
    }else{
      printf("NO");
    }
	return 0;
}```

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
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	imull	$100, 12(%rsp), %edx
	imull	$1000, 8(%rsp), %eax
	addl	%edx, %eax
	movl	16(%rsp), %edx
	leal	(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %eax
	addl	20(%rsp), %eax
	cmpl	$1479, %eax
	je	.L2
	cmpl	$1497, %eax
	je	.L2
	cmpl	$1749, %eax
	je	.L2
	cmpl	$1794, %eax
	je	.L2
	cmpl	$1947, %eax
	je	.L2
	cmpl	$1974, %eax
	je	.L2
	cmpl	$4179, %eax
	je	.L2
	cmpl	$4197, %eax
	je	.L2
	cmpl	$4719, %eax
	je	.L2
	cmpl	$4791, %eax
	je	.L2
	cmpl	$4917, %eax
	je	.L2
	cmpl	$4971, %eax
	je	.L2
	cmpl	$7149, %eax
	je	.L2
	cmpl	$7194, %eax
	je	.L2
	cmpl	$7419, %eax
	je	.L2
	cmpl	$7491, %eax
	je	.L2
	cmpl	$7914, %eax
	je	.L2
	cmpl	$7941, %eax
	je	.L2
	cmpl	$9147, %eax
	je	.L2
	cmpl	$9174, %eax
	je	.L2
	cmpl	$9417, %eax
	je	.L2
	cmpl	$9471, %eax
	je	.L2
	cmpl	$9714, %eax
	je	.L2
	cmpl	$9741, %eax
	je	.L2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	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
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	imull	$100, 12(%rsp), %edx
	imull	$1000, 8(%rsp), %eax
	addl	%edx, %eax
	movl	16(%rsp), %edx
	leal	(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %eax
	addl	20(%rsp), %eax
	cmpl	$1479, %eax
	je	.L2
	cmpl	$1497, %eax
	je	.L2
	cmpl	$1749, %eax
	je	.L2
	cmpl	$1794, %eax
	je	.L2
	cmpl	$1947, %eax
	je	.L2
	cmpl	$1974, %eax
	je	.L2
	cmpl	$4179, %eax
	je	.L2
	cmpl	$4197, %eax
	je	.L2
	cmpl	$4719, %eax
	je	.L2
	cmpl	$4791, %eax
	je	.L2
	cmpl	$4917, %eax
	je	.L2
	cmpl	$4971, %eax
	je	.L2
	cmpl	$7149, %eax
	je	.L2
	cmpl	$7194, %eax
	je	.L2
	cmpl	$7419, %eax
	je	.L2
	cmpl	$7491, %eax
	je	.L2
	cmpl	$7914, %eax
	je	.L2
	cmpl	$7941, %eax
	je	.L2
	cmpl	$9147, %eax
	je	.L2
	cmpl	$9174, %eax
	je	.L2
	cmpl	$9417, %eax
	je	.L2
	cmpl	$9471, %eax
	je	.L2
	cmpl	$9714, %eax
	je	.L2
	cmpl	$9741, %eax
	je	.L2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	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
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	imull	$100, 12(%rsp), %edx
	imull	$1000, 8(%rsp), %eax
	addl	%edx, %eax
	movl	16(%rsp), %edx
	leal	(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %eax
	addl	20(%rsp), %eax
	cmpl	$1479, %eax
	je	.L2
	cmpl	$1497, %eax
	je	.L2
	cmpl	$1749, %eax
	je	.L2
	cmpl	$1794, %eax
	je	.L2
	cmpl	$1947, %eax
	je	.L2
	cmpl	$1974, %eax
	je	.L2
	cmpl	$4179, %eax
	je	.L2
	cmpl	$4197, %eax
	je	.L2
	cmpl	$4719, %eax
	je	.L2
	cmpl	$4791, %eax
	je	.L2
	cmpl	$4917, %eax
	je	.L2
	cmpl	$4971, %eax
	je	.L2
	cmpl	$7149, %eax
	je	.L2
	cmpl	$7194, %eax
	je	.L2
	cmpl	$7419, %eax
	je	.L2
	cmpl	$7491, %eax
	je	.L2
	cmpl	$7914, %eax
	je	.L2
	cmpl	$7941, %eax
	je	.L2
	cmpl	$9147, %eax
	je	.L2
	cmpl	$9174, %eax
	je	.L2
	cmpl	$9417, %eax
	je	.L2
	cmpl	$9471, %eax
	je	.L2
	cmpl	$9714, %eax
	je	.L2
	cmpl	$9741, %eax
	je	.L2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	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(void){
	int  a, b, c, d;
	int p = 0;
	scanf("%d %d %d %d",&a,&b,&c,&d);
    p = a*1000+b*100+c*10+d;
	if(p==1479||p==1497||p==1749||p==1794||p==1947||p==1974){
      printf("YES");
    }else if(p==4179||p==4197||p==4719||p==4791||p==4917||p==4971){
      printf("YES");
    }else if(p==7149||p==7194||p==7419||p==7491||p==7914||p==7941){
      printf("YES");
    }else if(p==9147||p==9174||p==9417||p==9471||p==9714||p==9741){
      printf("YES");
    }else{
      printf("NO");
    }
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
 
int main(void){
	int  a, b, c, d;
	int p = 0;
	scanf("%d %d %d %d",&a,&b,&c,&d);
    p = a*1000+b*100+c*10+d;
	if(p==1479||p==1497||p==1749||p==1794||p==1947||p==1974){
      printf("YES");
    }else if(p==4179||p==4197||p==4719||p==4791||p==4917||p==4971){
      printf("YES");
    }else if(p==7149||p==7194||p==7419||p==7491||p==7914||p==7941){
      printf("YES");
    }else if(p==9147||p==9174||p==9417||p==9471||p==9714||p==9741){
      printf("YES");
    }else{
      printf("NO");
    }
	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:

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(void){
	int  a, b, c, d;
	int p = 0;
	scanf("%d %d %d %d",&a,&b,&c,&d);
    p = a*1000+b*100+c*10+d;
	if(p==1479||p==1497||p==1749||p==1794||p==1947||p==1974){
      printf("YES");
    }else if(p==4179||p==4197||p==4719||p==4791||p==4917||p==4971){
      printf("YES");
    }else if(p==7149||p==7194||p==7419||p==7491||p==7914||p==7941){
      printf("YES");
    }else if(p==9147||p==9174||p==9417||p==9471||p==9714||p==9741){
      printf("YES");
    }else{
      printf("NO");
    }
	return 0;
}```

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
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	imull	$100, 12(%rsp), %edx
	imull	$1000, 8(%rsp), %eax
	addl	%edx, %eax
	movl	16(%rsp), %edx
	leal	(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %eax
	addl	20(%rsp), %eax
	cmpl	$1479, %eax
	je	.L2
	cmpl	$1497, %eax
	je	.L2
	cmpl	$1749, %eax
	je	.L2
	cmpl	$1794, %eax
	je	.L2
	cmpl	$1947, %eax
	je	.L2
	cmpl	$1974, %eax
	je	.L2
	cmpl	$4179, %eax
	je	.L2
	cmpl	$4197, %eax
	je	.L2
	cmpl	$4719, %eax
	je	.L2
	cmpl	$4791, %eax
	je	.L2
	cmpl	$4917, %eax
	je	.L2
	cmpl	$4971, %eax
	je	.L2
	cmpl	$7149, %eax
	je	.L2
	cmpl	$7194, %eax
	je	.L2
	cmpl	$7419, %eax
	je	.L2
	cmpl	$7491, %eax
	je	.L2
	cmpl	$7914, %eax
	je	.L2
	cmpl	$7941, %eax
	je	.L2
	cmpl	$9147, %eax
	je	.L2
	cmpl	$9174, %eax
	je	.L2
	cmpl	$9417, %eax
	je	.L2
	cmpl	$9471, %eax
	je	.L2
	cmpl	$9714, %eax
	je	.L2
	cmpl	$9741, %eax
	je	.L2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	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
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	imull	$100, 12(%rsp), %edx
	imull	$1000, 8(%rsp), %eax
	addl	%edx, %eax
	movl	16(%rsp), %edx
	leal	(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %eax
	addl	20(%rsp), %eax
	cmpl	$1479, %eax
	je	.L2
	cmpl	$1497, %eax
	je	.L2
	cmpl	$1749, %eax
	je	.L2
	cmpl	$1794, %eax
	je	.L2
	cmpl	$1947, %eax
	je	.L2
	cmpl	$1974, %eax
	je	.L2
	cmpl	$4179, %eax
	je	.L2
	cmpl	$4197, %eax
	je	.L2
	cmpl	$4719, %eax
	je	.L2
	cmpl	$4791, %eax
	je	.L2
	cmpl	$4917, %eax
	je	.L2
	cmpl	$4971, %eax
	je	.L2
	cmpl	$7149, %eax
	je	.L2
	cmpl	$7194, %eax
	je	.L2
	cmpl	$7419, %eax
	je	.L2
	cmpl	$7491, %eax
	je	.L2
	cmpl	$7914, %eax
	je	.L2
	cmpl	$7941, %eax
	je	.L2
	cmpl	$9147, %eax
	je	.L2
	cmpl	$9174, %eax
	je	.L2
	cmpl	$9417, %eax
	je	.L2
	cmpl	$9471, %eax
	je	.L2
	cmpl	$9714, %eax
	je	.L2
	cmpl	$9741, %eax
	je	.L2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	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:
```