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

```c
#include <stdio.h>

int main()
{
	int i, N, M, A[101], sum = 0, count = 0;
	scanf("%d %d", &N, &M);
	for (i = 1; i <= N; i++) scanf("%d", &(A[i]));
	for (i = 1; i <= N; i++) sum += A[i];
	for (i = 1; i <= N; i++) if (A[i] * M * 4 >= sum) count++;
	if (count >= M) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	leaq	-432(%rbp), %rdx
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -428(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-428(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -428(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L3
	movl	$1, -428(%rbp)
	jmp	.L4
.L5:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -424(%rbp)
	addl	$1, -428(%rbp)
.L4:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L5
	movl	$1, -428(%rbp)
	jmp	.L6
.L8:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-432(%rbp), %eax
	imull	%edx, %eax
	sall	$2, %eax
	cmpl	%eax, -424(%rbp)
	jg	.L7
	addl	$1, -420(%rbp)
.L7:
	addl	$1, -428(%rbp)
.L6:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L8
	movl	-432(%rbp), %eax
	cmpl	%eax, -420(%rbp)
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	20(%rsp), %r12
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L19
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rcx
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	(%rdx), %xmm7
	addq	$16, %rdx
	paddd	%xmm7, %xmm0
	cmpq	%rdx, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	leal	1(%rsi), %edx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpl	%esi, %eax
	je	.L6
.L4:
	movslq	%edx, %rsi
	addl	16(%rsp,%rsi,4), %ecx
	leal	1(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L6
	movslq	%esi, %rsi
	addl	$2, %edx
	addl	16(%rsp,%rsi,4), %ecx
	cmpl	%edx, %eax
	jl	.L6
	movslq	%edx, %rdx
	addl	16(%rsp,%rdx,4), %ecx
.L6:
	movl	12(%rsp), %edi
	cmpl	$3, %r8d
	jbe	.L20
	movd	%edi, %xmm4
	movd	%ecx, %xmm6
	pxor	%xmm2, %xmm2
	movl	%eax, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm3
	pshufd	$0, %xmm6, %xmm6
	subl	$1, %edx
	movdqa	%xmm3, %xmm5
	movdqa	%xmm2, %xmm4
	salq	$4, %rdx
	psrlq	$32, %xmm5
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%r12), %xmm0
	movdqu	(%r12), %xmm1
	addq	$16, %r12
	psrlq	$32, %xmm0
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm5, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	pslld	$2, %xmm1
	movdqa	%xmm1, %xmm0
	movdqa	%xmm6, %xmm1
	pcmpgtd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm4, %xmm0
	psubd	%xmm0, %xmm2
	cmpq	%r12, %rdx
	jne	.L8
	movdqa	%xmm2, %xmm0
	movl	%eax, %r8d
	psrldq	$8, %xmm0
	andl	$-4, %r8d
	paddd	%xmm0, %xmm2
	leal	1(%r8), %esi
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	cmpl	%eax, %r8d
	je	.L17
.L7:
	movslq	%esi, %r8
	movl	16(%rsp,%r8,4), %ebx
	imull	%edi, %ebx
	movl	%ebx, %r8d
	sall	$2, %r8d
	cmpl	%ecx, %r8d
	setge	%r8b
	movzbl	%r8b, %r8d
	addl	%r8d, %edx
	leal	1(%rsi), %r8d
	cmpl	%r8d, %eax
	jl	.L17
	movslq	%r8d, %r8
	movl	16(%rsp,%r8,4), %ebx
	imull	%edi, %ebx
	movl	%ebx, %r8d
	sall	$2, %r8d
	cmpl	%ecx, %r8d
	jge	.L27
.L11:
	leal	2(%rsi), %r8d
	cmpl	%r8d, %eax
	jl	.L17
	movslq	%r8d, %r8
	movl	16(%rsp,%r8,4), %ebx
	imull	%edi, %ebx
	movl	%ebx, %r8d
	sall	$2, %r8d
	cmpl	%ecx, %r8d
	jl	.L12
	addl	$1, %edx
.L12:
	addl	$3, %esi
	cmpl	%esi, %eax
	jl	.L17
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %eax
	imull	%edi, %eax
	sall	$2, %eax
	cmpl	%ecx, %eax
	jl	.L17
	addl	$1, %edx
.L17:
	cmpl	%edi, %edx
	jl	.L15
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L16:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L16
.L27:
	addl	$1, %edx
	jmp	.L11
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L17
.L19:
	xorl	%ecx, %ecx
	movl	$1, %edx
	jmp	.L4
.L20:
	xorl	%edx, %edx
	movl	$1, %esi
	jmp	.L7
.L28:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	20(%rsp), %r12
	movl	$1, %ebx
	leaq	.LC1(%rip), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L19
	movl	%eax, %edx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rcx
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	(%rdx), %xmm7
	addq	$16, %rdx
	paddd	%xmm7, %xmm0
	cmpq	%rdx, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	leal	1(%rsi), %edx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpl	%esi, %eax
	je	.L6
.L4:
	movslq	%edx, %rsi
	addl	16(%rsp,%rsi,4), %ecx
	leal	1(%rdx), %esi
	cmpl	%esi, %eax
	jl	.L6
	movslq	%esi, %rsi
	addl	$2, %edx
	addl	16(%rsp,%rsi,4), %ecx
	cmpl	%edx, %eax
	jl	.L6
	movslq	%edx, %rdx
	addl	16(%rsp,%rdx,4), %ecx
.L6:
	movl	12(%rsp), %edi
	cmpl	$3, %r8d
	jbe	.L20
	movd	%edi, %xmm4
	movd	%ecx, %xmm6
	pxor	%xmm2, %xmm2
	movl	%eax, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm3
	pshufd	$0, %xmm6, %xmm6
	subl	$1, %edx
	movdqa	%xmm3, %xmm5
	movdqa	%xmm2, %xmm4
	salq	$4, %rdx
	psrlq	$32, %xmm5
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%r12), %xmm0
	movdqu	(%r12), %xmm1
	addq	$16, %r12
	psrlq	$32, %xmm0
	pmuludq	%xmm3, %xmm1
	pmuludq	%xmm5, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	pslld	$2, %xmm1
	movdqa	%xmm1, %xmm0
	movdqa	%xmm6, %xmm1
	pcmpgtd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm4, %xmm0
	psubd	%xmm0, %xmm2
	cmpq	%r12, %rdx
	jne	.L8
	movdqa	%xmm2, %xmm0
	movl	%eax, %r8d
	psrldq	$8, %xmm0
	andl	$-4, %r8d
	paddd	%xmm0, %xmm2
	leal	1(%r8), %esi
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	cmpl	%eax, %r8d
	je	.L17
.L7:
	movslq	%esi, %r8
	movl	16(%rsp,%r8,4), %ebx
	imull	%edi, %ebx
	movl	%ebx, %r8d
	sall	$2, %r8d
	cmpl	%ecx, %r8d
	setge	%r8b
	movzbl	%r8b, %r8d
	addl	%r8d, %edx
	leal	1(%rsi), %r8d
	cmpl	%r8d, %eax
	jl	.L17
	movslq	%r8d, %r8
	movl	16(%rsp,%r8,4), %ebx
	imull	%edi, %ebx
	movl	%ebx, %r8d
	sall	$2, %r8d
	cmpl	%ecx, %r8d
	jge	.L27
.L11:
	leal	2(%rsi), %r8d
	cmpl	%r8d, %eax
	jl	.L17
	movslq	%r8d, %r8
	movl	16(%rsp,%r8,4), %ebx
	imull	%edi, %ebx
	movl	%ebx, %r8d
	sall	$2, %r8d
	cmpl	%ecx, %r8d
	jl	.L12
	addl	$1, %edx
.L12:
	addl	$3, %esi
	cmpl	%esi, %eax
	jl	.L17
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %eax
	imull	%edi, %eax
	sall	$2, %eax
	cmpl	%ecx, %eax
	jl	.L17
	addl	$1, %edx
.L17:
	cmpl	%edi, %edx
	jl	.L15
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L16:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L16
.L27:
	addl	$1, %edx
	jmp	.L11
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L17
.L19:
	xorl	%ecx, %ecx
	movl	$1, %edx
	jmp	.L4
.L20:
	xorl	%edx, %edx
	movl	$1, %esi
	jmp	.L7
.L28:
	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:

#include <stdio.h>

int main()
{
	int i, N, M, A[101], sum = 0, count = 0;
	scanf("%d %d", &N, &M);
	for (i = 1; i <= N; i++) scanf("%d", &(A[i]));
	for (i = 1; i <= N; i++) sum += A[i];
	for (i = 1; i <= N; i++) if (A[i] * M * 4 >= sum) count++;
	if (count >= M) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	return 0;
}
4 1
5 4 0 1
 3 2
519 19 1
 12 3
4 56 78 901 2 345 67 890 123 45 3 789
 3 1
5 4 0 1
 3 2
39 19 1
 3 2
39 14 1
 3 2
39 18 1
 3 1
39 18 1
 3 1
39 16 1
 3 1
53 16 1

Yes
 No
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes

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

```c
#include <stdio.h>

int main()
{
	int i, N, M, A[101], sum = 0, count = 0;
	scanf("%d %d", &N, &M);
	for (i = 1; i <= N; i++) scanf("%d", &(A[i]));
	for (i = 1; i <= N; i++) sum += A[i];
	for (i = 1; i <= N; i++) if (A[i] * M * 4 >= sum) count++;
	if (count >= M) printf("Yes\n");
	else printf("No\n");
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	leaq	-432(%rbp), %rdx
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -428(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-428(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -428(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L3
	movl	$1, -428(%rbp)
	jmp	.L4
.L5:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -424(%rbp)
	addl	$1, -428(%rbp)
.L4:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L5
	movl	$1, -428(%rbp)
	jmp	.L6
.L8:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-432(%rbp), %eax
	imull	%edx, %eax
	sall	$2, %eax
	cmpl	%eax, -424(%rbp)
	jg	.L7
	addl	$1, -420(%rbp)
.L7:
	addl	$1, -428(%rbp)
.L6:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L8
	movl	-432(%rbp), %eax
	cmpl	%eax, -420(%rbp)
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	leaq	-432(%rbp), %rdx
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -428(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-428(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -428(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L3
	movl	$1, -428(%rbp)
	jmp	.L4
.L5:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -424(%rbp)
	addl	$1, -428(%rbp)
.L4:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L5
	movl	$1, -428(%rbp)
	jmp	.L6
.L8:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-432(%rbp), %eax
	imull	%edx, %eax
	sall	$2, %eax
	cmpl	%eax, -424(%rbp)
	jg	.L7
	addl	$1, -420(%rbp)
.L7:
	addl	$1, -428(%rbp)
.L6:
	movl	-436(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L8
	movl	-432(%rbp), %eax
	cmpl	%eax, -420(%rbp)
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
