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>
#define true 1
#define false 0

int main(void)
{
    int n=0;
    int flag=false;
    scanf("%d",&n);

    for(int i=0;i<3;i++){
        if((n%10)%7==0 && (n%10)!=0){
            flag=true;
            break;
        }
        n=n/10;
    }

    if(flag==true){
        printf("Yes");
    } else {
        printf("No");
    }

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	imulq	$1717986919, %rax, %rdx
	movl	%eax, %esi
	movq	%rax, %rcx
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%eax, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	imull	$-1227133513, %edx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L9
	testl	%edx, %edx
	jne	.L2
.L9:
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rcx
	sarl	$31, %esi
	sarq	$34, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	addl	%esi, %esi
	subl	%esi, %ecx
	imull	$-1227133513, %ecx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L10
	testl	%ecx, %ecx
	jne	.L4
.L10:
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	movslq	%edx, %rsi
	imulq	$1717986919, %rsi, %rcx
	movl	%esi, %edi
	movq	%rsi, %rax
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	leal	(%rcx,%rcx,4), %edi
	movl	%esi, %ecx
	addl	%edi, %edi
	subl	%edi, %ecx
	imull	$-1227133513, %ecx, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	ja	.L11
	testl	%ecx, %ecx
	jne	.L4
.L11:
	imulq	$1717986919, %rsi, %rsi
	sarl	$31, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	sarq	$34, %rsi
	subl	%edx, %esi
	movl	%esi, 4(%rsp)
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	%eax, 4(%rsp)
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L24:
	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"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	imulq	$1717986919, %rax, %rdx
	movl	%eax, %esi
	movq	%rax, %rcx
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%eax, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	imull	$-1227133513, %edx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L9
	testl	%edx, %edx
	jne	.L2
.L9:
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rcx
	sarl	$31, %esi
	sarq	$34, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	addl	%esi, %esi
	subl	%esi, %ecx
	imull	$-1227133513, %ecx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L10
	testl	%ecx, %ecx
	jne	.L4
.L10:
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	movslq	%edx, %rsi
	imulq	$1717986919, %rsi, %rcx
	movl	%esi, %edi
	movq	%rsi, %rax
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	leal	(%rcx,%rcx,4), %edi
	movl	%esi, %ecx
	addl	%edi, %edi
	subl	%edi, %ecx
	imull	$-1227133513, %ecx, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	ja	.L11
	testl	%ecx, %ecx
	jne	.L4
.L11:
	imulq	$1717986919, %rsi, %rsi
	sarl	$31, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	sarq	$34, %rsi
	subl	%edx, %esi
	movl	%esi, 4(%rsp)
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	%eax, 4(%rsp)
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L24:
	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"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	imulq	$1717986919, %rax, %rdx
	movl	%eax, %esi
	movq	%rax, %rcx
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%eax, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	imull	$-1227133513, %edx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L9
	testl	%edx, %edx
	jne	.L2
.L9:
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rcx
	sarl	$31, %esi
	sarq	$34, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	addl	%esi, %esi
	subl	%esi, %ecx
	imull	$-1227133513, %ecx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L10
	testl	%ecx, %ecx
	jne	.L4
.L10:
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	movslq	%edx, %rsi
	imulq	$1717986919, %rsi, %rcx
	movl	%esi, %edi
	movq	%rsi, %rax
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	leal	(%rcx,%rcx,4), %edi
	movl	%esi, %ecx
	addl	%edi, %edi
	subl	%edi, %ecx
	imull	$-1227133513, %ecx, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	ja	.L11
	testl	%ecx, %ecx
	jne	.L4
.L11:
	imulq	$1717986919, %rsi, %rsi
	sarl	$31, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	sarq	$34, %rsi
	subl	%edx, %esi
	movl	%esi, 4(%rsp)
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	%eax, 4(%rsp)
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L24:
	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>
#define true 1
#define false 0

int main(void)
{
    int n=0;
    int flag=false;
    scanf("%d",&n);

    for(int i=0;i<3;i++){
        if((n%10)%7==0 && (n%10)!=0){
            flag=true;
            break;
        }
        n=n/10;
    }

    if(flag==true){
        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>
#define true 1
#define false 0

int main(void)
{
    int n=0;
    int flag=false;
    scanf("%d",&n);

    for(int i=0;i<3;i++){
        if((n%10)%7==0 && (n%10)!=0){
            flag=true;
            break;
        }
        n=n/10;
    }

    if(flag==true){
        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:

1413
 187
 68
 1760
 89
 144
 2610
 151
 91
 3439

No Yes No Yes 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>
#define true 1
#define false 0

int main(void)
{
    int n=0;
    int flag=false;
    scanf("%d",&n);

    for(int i=0;i<3;i++){
        if((n%10)%7==0 && (n%10)!=0){
            flag=true;
            break;
        }
        n=n/10;
    }

    if(flag==true){
        printf("Yes");
    } else {
        printf("No");
    }

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	imulq	$1717986919, %rax, %rdx
	movl	%eax, %esi
	movq	%rax, %rcx
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%eax, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	imull	$-1227133513, %edx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L9
	testl	%edx, %edx
	jne	.L2
.L9:
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rcx
	sarl	$31, %esi
	sarq	$34, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	addl	%esi, %esi
	subl	%esi, %ecx
	imull	$-1227133513, %ecx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L10
	testl	%ecx, %ecx
	jne	.L4
.L10:
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	movslq	%edx, %rsi
	imulq	$1717986919, %rsi, %rcx
	movl	%esi, %edi
	movq	%rsi, %rax
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	leal	(%rcx,%rcx,4), %edi
	movl	%esi, %ecx
	addl	%edi, %edi
	subl	%edi, %ecx
	imull	$-1227133513, %ecx, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	ja	.L11
	testl	%ecx, %ecx
	jne	.L4
.L11:
	imulq	$1717986919, %rsi, %rsi
	sarl	$31, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	sarq	$34, %rsi
	subl	%edx, %esi
	movl	%esi, 4(%rsp)
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	%eax, 4(%rsp)
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L24:
	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"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	movl	$0, 4(%rsp)
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	imulq	$1717986919, %rax, %rdx
	movl	%eax, %esi
	movq	%rax, %rcx
	sarl	$31, %esi
	sarq	$34, %rdx
	subl	%esi, %edx
	leal	(%rdx,%rdx,4), %esi
	movl	%eax, %edx
	addl	%esi, %esi
	subl	%esi, %edx
	imull	$-1227133513, %edx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L9
	testl	%edx, %edx
	jne	.L2
.L9:
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rcx
	sarl	$31, %esi
	sarq	$34, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	addl	%esi, %esi
	subl	%esi, %ecx
	imull	$-1227133513, %ecx, %esi
	addl	$306783378, %esi
	cmpl	$613566756, %esi
	ja	.L10
	testl	%ecx, %ecx
	jne	.L4
.L10:
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %eax
	sarq	$34, %rdx
	subl	%eax, %edx
	movslq	%edx, %rsi
	imulq	$1717986919, %rsi, %rcx
	movl	%esi, %edi
	movq	%rsi, %rax
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	leal	(%rcx,%rcx,4), %edi
	movl	%esi, %ecx
	addl	%edi, %edi
	subl	%edi, %ecx
	imull	$-1227133513, %ecx, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	ja	.L11
	testl	%ecx, %ecx
	jne	.L4
.L11:
	imulq	$1717986919, %rsi, %rsi
	sarl	$31, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	sarq	$34, %rsi
	subl	%edx, %esi
	movl	%esi, 4(%rsp)
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	%eax, 4(%rsp)
.L2:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L24:
	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:
```