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 a,b,c;
    int flag = 0;
    
    scanf("%lld %lld %lld",&a,&b,&c);
    for(int i = 1; i <= 1000000; i++){
        if((a*i)%b == c){
            flag = 1;
            break;
        }
    }
    if(flag == 1) printf("YES\n");
    else printf("NO\n");
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.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	16(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1000000, %esi
	movq	16(%rsp), %r9
	movq	%r8, %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addq	%r8, %rcx
	subl	$1, %esi
	je	.L12
.L3:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	cmpq	%r9, %rdx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.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	"%lld %lld %lld"
.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	16(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1000000, %esi
	movq	16(%rsp), %r9
	movq	%r8, %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addq	%r8, %rcx
	subl	$1, %esi
	je	.L12
.L3:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	cmpq	%r9, %rdx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.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	"%lld %lld %lld"
.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	16(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1000000, %esi
	movq	16(%rsp), %r9
	movq	%r8, %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addq	%r8, %rcx
	subl	$1, %esi
	je	.L12
.L3:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	cmpq	%r9, %rdx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.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>
typedef long long ll;
int main(){
    ll a,b,c;
    int flag = 0;
    
    scanf("%lld %lld %lld",&a,&b,&c);
    for(int i = 1; i <= 1000000; i++){
        if((a*i)%b == c){
            flag = 1;
            break;
        }
    }
    if(flag == 1) 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>
typedef long long ll;
int main(){
    ll a,b,c;
    int flag = 0;
    
    scanf("%lld %lld %lld",&a,&b,&c);
    for(int i = 1; i <= 1000000; i++){
        if((a*i)%b == c){
            flag = 1;
            break;
        }
    }
    if(flag == 1) 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:

7 5 0
 77 42 5
 2 2 0
 80 98 58
 1 110 97
 11 5 0
 2 4 0
 77 42 2
 103 98 58
 0 110 97

YES
 NO
 YES
 YES
 YES
 YES
 YES
 NO
 YES
 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>
typedef long long ll;
int main(){
    ll a,b,c;
    int flag = 0;
    
    scanf("%lld %lld %lld",&a,&b,&c);
    for(int i = 1; i <= 1000000; i++){
        if((a*i)%b == c){
            flag = 1;
            break;
        }
    }
    if(flag == 1) printf("YES\n");
    else printf("NO\n");
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.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	16(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1000000, %esi
	movq	16(%rsp), %r9
	movq	%r8, %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addq	%r8, %rcx
	subl	$1, %esi
	je	.L12
.L3:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	cmpq	%r9, %rdx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.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	"%lld %lld %lld"
.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	16(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1000000, %esi
	movq	16(%rsp), %r9
	movq	%r8, %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addq	%r8, %rcx
	subl	$1, %esi
	je	.L12
.L3:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	cmpq	%r9, %rdx
	jne	.L13
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.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:
```