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>
#include<string.h>
int main()
{
    long long int N,t,S[100];
    scanf("%lld",&N);
    int l=0;
    int P=0;
    t=N;
    while(N!=0)
    {
        S[l]=N%10;
        N=N/10;
        P=P+S[l];
        l++;
    }
if(t%P==0)
    printf("Yes\n");
else
    printf("No\n");

}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r10
	testq	%r10, %r10
	je	.L7
	movabsq	$7378697629483820647, %r9
	movq	%r10, %rcx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	imulq	%r9
	sarq	$63, %rsi
	sarq	$2, %rdx
	subq	%rsi, %rdx
	leaq	(%rdx,%rdx,4), %rdi
	movq	%rdx, %rsi
	addq	%rdi, %rdi
	subq	%rdi, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rcx
	addl	%edx, %r8d
	testq	%rsi, %rsi
	jne	.L3
	movq	$0, (%rsp)
.L2:
	movq	%r10, %rax
	movslq	%r8d, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L4
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L7:
	xorl	%r8d, %r8d
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r10
	testq	%r10, %r10
	je	.L7
	movabsq	$7378697629483820647, %r9
	movq	%r10, %rcx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	imulq	%r9
	sarq	$63, %rsi
	sarq	$2, %rdx
	subq	%rsi, %rdx
	leaq	(%rdx,%rdx,4), %rdi
	movq	%rdx, %rsi
	addq	%rdi, %rdi
	subq	%rdi, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rcx
	addl	%edx, %r8d
	testq	%rsi, %rsi
	jne	.L3
	movq	$0, (%rsp)
.L2:
	movq	%r10, %rax
	movslq	%r8d, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L4
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L7:
	xorl	%r8d, %r8d
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r10
	testq	%r10, %r10
	je	.L7
	movabsq	$7378697629483820647, %r9
	movq	%r10, %rcx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	imulq	%r9
	sarq	$63, %rsi
	sarq	$2, %rdx
	subq	%rsi, %rdx
	leaq	(%rdx,%rdx,4), %rdi
	movq	%rdx, %rsi
	addq	%rdi, %rdi
	subq	%rdi, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rcx
	addl	%edx, %r8d
	testq	%rsi, %rsi
	jne	.L3
	movq	$0, (%rsp)
.L2:
	movq	%r10, %rax
	movslq	%r8d, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L4
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L7:
	xorl	%r8d, %r8d
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include<string.h>
int main()
{
    long long int N,t,S[100];
    scanf("%lld",&N);
    int l=0;
    int P=0;
    t=N;
    while(N!=0)
    {
        S[l]=N%10;
        N=N/10;
        P=P+S[l];
        l++;
    }
if(t%P==0)
    printf("Yes\n");
else
    printf("No\n");

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

```c
#include<stdio.h>
#include<string.h>
int main()
{
    long long int N,t,S[100];
    scanf("%lld",&N);
    int l=0;
    int P=0;
    t=N;
    while(N!=0)
    {
        S[l]=N%10;
        N=N/10;
        P=P+S[l];
        l++;
    }
if(t%P==0)
    printf("Yes\n");
else
    printf("No\n");

}
```

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:

12

Yes

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>
#include<string.h>
int main()
{
    long long int N,t,S[100];
    scanf("%lld",&N);
    int l=0;
    int P=0;
    t=N;
    while(N!=0)
    {
        S[l]=N%10;
        N=N/10;
        P=P+S[l];
        l++;
    }
if(t%P==0)
    printf("Yes\n");
else
    printf("No\n");

}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r10
	testq	%r10, %r10
	je	.L7
	movabsq	$7378697629483820647, %r9
	movq	%r10, %rcx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	imulq	%r9
	sarq	$63, %rsi
	sarq	$2, %rdx
	subq	%rsi, %rdx
	leaq	(%rdx,%rdx,4), %rdi
	movq	%rdx, %rsi
	addq	%rdi, %rdi
	subq	%rdi, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rcx
	addl	%edx, %r8d
	testq	%rsi, %rsi
	jne	.L3
	movq	$0, (%rsp)
.L2:
	movq	%r10, %rax
	movslq	%r8d, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L4
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L7:
	xorl	%r8d, %r8d
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r10
	testq	%r10, %r10
	je	.L7
	movabsq	$7378697629483820647, %r9
	movq	%r10, %rcx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	imulq	%r9
	sarq	$63, %rsi
	sarq	$2, %rdx
	subq	%rsi, %rdx
	leaq	(%rdx,%rdx,4), %rdi
	movq	%rdx, %rsi
	addq	%rdi, %rdi
	subq	%rdi, %rcx
	movq	%rcx, %rdx
	movq	%rsi, %rcx
	addl	%edx, %r8d
	testq	%rsi, %rsi
	jne	.L3
	movq	$0, (%rsp)
.L2:
	movq	%r10, %rax
	movslq	%r8d, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L4
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L7:
	xorl	%r8d, %r8d
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```