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(void) {
    int num,kind,temp,i;
    while (1) {
        scanf("%d %d\n",&num,&kind);
        if (num==0&&kind==0) break;
        int bk[kind],flag=0;
        for (i=0; i<kind; i++) scanf("%d",&bk[i]);
        for (i=0; i<num*kind; i++) {
            scanf("%d",&temp);
            bk[i%kind]-=temp;
        }
        for (i=0; i<kind; i++) {
            if (bk[i%kind]<0) flag=1;
        }
        if (flag==0) {
            printf("Yes\n");
        } else {
            printf("No\n");
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.L16:
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-88(%rbp), %rdx
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	jmp	.L18
.L2:
	movl	-88(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L7
.L8:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -80(%rbp)
.L7:
	movl	-88(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L8
	movl	$0, -80(%rbp)
	jmp	.L9
.L10:
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %esi
	movq	-64(%rbp), %rax
	movslq	%esi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	-84(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -80(%rbp)
.L9:
	movl	-92(%rbp), %edx
	movl	-88(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L10
	movl	$0, -80(%rbp)
	jmp	.L11
.L13:
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %eax
	cltd
	idivl	%ecx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L12
	movl	$1, -76(%rbp)
.L12:
	addl	$1, -80(%rbp)
.L11:
	movl	-88(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	cmpl	$0, -76(%rbp)
	jne	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movq	%rbx, %rsp
	jmp	.L16
.L18:
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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\n"
.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	movl	$1, %r13d
	pushq	%r12
	pushq	%rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	leaq	-68(%rbp), %rax
	movq	%rax, -96(%rbp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	-104(%rbp), %rdx
	movq	-96(%rbp), %rsi
	xorl	%eax, %eax
	movq	%rsp, -88(%rbp)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-64(%rbp), %edx
	testl	%edx, %edx
	je	.L37
	movslq	%edx, %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L19
.L38:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L38
.L19:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L20
	orq	$0, -8(%rsp,%rcx)
.L20:
	movq	%rsp, %r15
	testl	%edx, %edx
	jle	.L12
.L21:
	movq	%r15, %r14
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %ecx
	addq	$4, %r14
	cmpl	%r12d, %ecx
	jg	.L9
	movl	-68(%rbp), %eax
.L8:
	imull	%ecx, %eax
	testl	%eax, %eax
	jle	.L10
	xorl	%r14d, %r14d
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r14d, %eax
	movl	-64(%rbp), %ecx
	addl	$1, %r14d
	cltd
	idivl	%ecx
	movslq	%edx, %rdx
	movl	(%r15,%rdx,4), %eax
	subl	-60(%rbp), %eax
	movl	%eax, (%r15,%rdx,4)
	movl	-68(%rbp), %eax
	imull	%ecx, %eax
	cmpl	%r14d, %eax
	jg	.L11
.L10:
	testl	%ecx, %ecx
	jle	.L12
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movslq	%edx, %rdx
	movl	(%r15,%rdx,4), %eax
	testl	%eax, %eax
	cmovs	%r13d, %edi
	addl	$1, %esi
	cmpl	%ecx, %esi
	jne	.L14
	testl	%edi, %edi
	je	.L12
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L16:
	movq	-88(%rbp), %rsp
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	-64(%rbp), %rdx
	movq	%rsp, %rdi
	movq	%rdx, %rcx
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rsi
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rsi
	cmpq	%rdi, %rsp
	je	.L6
.L39:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L39
.L6:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L7
	orq	$0, -8(%rsp,%rsi)
.L7:
	movq	%rsp, %r15
	testl	%ecx, %ecx
	jg	.L21
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L16
.L37:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L40
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L40:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d\n"
.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	movl	$1, %r13d
	pushq	%r12
	pushq	%rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$72, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	leaq	-68(%rbp), %rax
	movq	%rax, -96(%rbp)
	.p2align 4,,10
	.p2align 3
.L17:
	movq	-104(%rbp), %rdx
	movq	-96(%rbp), %rsi
	xorl	%eax, %eax
	movq	%rsp, -88(%rbp)
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-64(%rbp), %edx
	testl	%edx, %edx
	je	.L37
	movslq	%edx, %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L19
.L38:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L38
.L19:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L20
	orq	$0, -8(%rsp,%rcx)
.L20:
	movq	%rsp, %r15
	testl	%edx, %edx
	jle	.L12
.L21:
	movq	%r15, %r14
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %ecx
	addq	$4, %r14
	cmpl	%r12d, %ecx
	jg	.L9
	movl	-68(%rbp), %eax
.L8:
	imull	%ecx, %eax
	testl	%eax, %eax
	jle	.L10
	xorl	%r14d, %r14d
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%r14d, %eax
	movl	-64(%rbp), %ecx
	addl	$1, %r14d
	cltd
	idivl	%ecx
	movslq	%edx, %rdx
	movl	(%r15,%rdx,4), %eax
	subl	-60(%rbp), %eax
	movl	%eax, (%r15,%rdx,4)
	movl	-68(%rbp), %eax
	imull	%ecx, %eax
	cmpl	%r14d, %eax
	jg	.L11
.L10:
	testl	%ecx, %ecx
	jle	.L12
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movslq	%edx, %rdx
	movl	(%r15,%rdx,4), %eax
	testl	%eax, %eax
	cmovs	%r13d, %edi
	addl	$1, %esi
	cmpl	%ecx, %esi
	jne	.L14
	testl	%edi, %edi
	je	.L12
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L16:
	movq	-88(%rbp), %rsp
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	-64(%rbp), %rdx
	movq	%rsp, %rdi
	movq	%rdx, %rcx
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rsi
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rsi
	cmpq	%rdi, %rsp
	je	.L6
.L39:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L39
.L6:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L7
	orq	$0, -8(%rsp,%rsi)
.L7:
	movq	%rsp, %r15
	testl	%ecx, %ecx
	jg	.L21
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L16
.L37:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L40
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L40:
	.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:

#include <stdio.h>
int main(void) {
    int num,kind,temp,i;
    while (1) {
        scanf("%d %d\n",&num,&kind);
        if (num==0&&kind==0) break;
        int bk[kind],flag=0;
        for (i=0; i<kind; i++) scanf("%d",&bk[i]);
        for (i=0; i<num*kind; i++) {
            scanf("%d",&temp);
            bk[i%kind]-=temp;
        }
        for (i=0; i<kind; i++) {
            if (bk[i%kind]<0) flag=1;
        }
        if (flag==0) {
            printf("Yes\n");
        } else {
            printf("No\n");
        }
    }
    return 0;
}
2 3
5 4 5
1 2 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 5
1 2 3
3 2 1
3 5
1 2 3 4 5
0 1 -1 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
2 4 5
1 2 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 5
1 2 3
3 4 1
3 5
1 2 3 7 5
1 1 -1 1 2
-1 1 1 0 2
1 0 3 1 1
0 0
 2 3
5 4 5
1 1 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 6 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 6 5
-1 1 0 1 2
0 0 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 6 5
-1 1 0 1 2
0 0 1 2 2
1 0 3 0 1
0 0
 2 3
5 4 5
1 1 4
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0

Yes
No
 Yes
Yes
 No
No
 No
Yes
 Yes
No
 Yes
No
 Yes
No
 Yes
No
 Yes
No
 Yes
No

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(void) {
    int num,kind,temp,i;
    while (1) {
        scanf("%d %d\n",&num,&kind);
        if (num==0&&kind==0) break;
        int bk[kind],flag=0;
        for (i=0; i<kind; i++) scanf("%d",&bk[i]);
        for (i=0; i<num*kind; i++) {
            scanf("%d",&temp);
            bk[i%kind]-=temp;
        }
        for (i=0; i<kind; i++) {
            if (bk[i%kind]<0) flag=1;
        }
        if (flag==0) {
            printf("Yes\n");
        } else {
            printf("No\n");
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.L16:
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-88(%rbp), %rdx
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	jmp	.L18
.L2:
	movl	-88(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L7
.L8:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -80(%rbp)
.L7:
	movl	-88(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L8
	movl	$0, -80(%rbp)
	jmp	.L9
.L10:
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %esi
	movq	-64(%rbp), %rax
	movslq	%esi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	-84(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -80(%rbp)
.L9:
	movl	-92(%rbp), %edx
	movl	-88(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L10
	movl	$0, -80(%rbp)
	jmp	.L11
.L13:
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %eax
	cltd
	idivl	%ecx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L12
	movl	$1, -76(%rbp)
.L12:
	addl	$1, -80(%rbp)
.L11:
	movl	-88(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	cmpl	$0, -76(%rbp)
	jne	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movq	%rbx, %rsp
	jmp	.L16
.L18:
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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\n"
.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
.L16:
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-88(%rbp), %rdx
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	jmp	.L18
.L2:
	movl	-88(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L7
.L8:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -80(%rbp)
.L7:
	movl	-88(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L8
	movl	$0, -80(%rbp)
	jmp	.L9
.L10:
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %esi
	movq	-64(%rbp), %rax
	movslq	%esi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	-84(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -80(%rbp)
.L9:
	movl	-92(%rbp), %edx
	movl	-88(%rbp), %eax
	imull	%edx, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L10
	movl	$0, -80(%rbp)
	jmp	.L11
.L13:
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %eax
	cltd
	idivl	%ecx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jns	.L12
	movl	$1, -76(%rbp)
.L12:
	addl	$1, -80(%rbp)
.L11:
	movl	-88(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	cmpl	$0, -76(%rbp)
	jne	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movq	%rbx, %rsp
	jmp	.L16
.L18:
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
