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>

int main(void)
{
	int n, k, flag;
	int b[1000], sr;
	int i, j;
	
	while (scanf("%d %d", &n, &k), n != 0 || k != 0){
		
		for (i = 0; i < k; i++){
			scanf("%d", &b[i]);
		}
		for (i = 0; i < n; i++){
			for (j = 0; j < k; j++){
				scanf("%d", &sr);
				b[j] -= sr;
			}
		}
		
		for (i = 0; i < k; i++){
			if (b[i] < 0){
				break;
			}
		}
		if (i == k){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L14
	leaq	32(%rsp), %r12
	xorl	%ebp, %ebp
	movq	%r12, %r13
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %r13
	cmpl	%ebp, %eax
	jg	.L3
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L5
.L4:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	jle	.L9
	leaq	32(%rsp), %r12
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	movl	24(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L6
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L7
.L5:
	testl	%eax, %eax
	jle	.L9
	leal	1(%rax), %ecx
	movl	$1, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %esi
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L12
.L11:
	movl	-4(%r12,%rdx,4), %esi
	testl	%esi, %esi
	jns	.L27
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	testl	%edx, %edx
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%esi, %esi
.L12:
	cmpl	%eax, %esi
	jne	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L14:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$4056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.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	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L14
	leaq	32(%rsp), %r12
	xorl	%ebp, %ebp
	movq	%r12, %r13
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %r13
	cmpl	%ebp, %eax
	jg	.L3
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L5
.L4:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	jle	.L9
	leaq	32(%rsp), %r12
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	movl	24(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L6
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L7
.L5:
	testl	%eax, %eax
	jle	.L9
	leal	1(%rax), %ecx
	movl	$1, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %esi
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L12
.L11:
	movl	-4(%r12,%rdx,4), %esi
	testl	%esi, %esi
	jns	.L27
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	testl	%edx, %edx
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%esi, %esi
.L12:
	cmpl	%eax, %esi
	jne	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L14:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$4056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.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	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L14
	leaq	32(%rsp), %r12
	xorl	%ebp, %ebp
	movq	%r12, %r13
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %r13
	cmpl	%ebp, %eax
	jg	.L3
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L5
.L4:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	jle	.L9
	leaq	32(%rsp), %r12
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	movl	24(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L6
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L7
.L5:
	testl	%eax, %eax
	jle	.L9
	leal	1(%rax), %ecx
	movl	$1, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %esi
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L12
.L11:
	movl	-4(%r12,%rdx,4), %esi
	testl	%esi, %esi
	jns	.L27
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	testl	%edx, %edx
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%esi, %esi
.L12:
	cmpl	%eax, %esi
	jne	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L14:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$4056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.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>

int main(void)
{
	int n, k, flag;
	int b[1000], sr;
	int i, j;
	
	while (scanf("%d %d", &n, &k), n != 0 || k != 0){
		
		for (i = 0; i < k; i++){
			scanf("%d", &b[i]);
		}
		for (i = 0; i < n; i++){
			for (j = 0; j < k; j++){
				scanf("%d", &sr);
				b[j] -= sr;
			}
		}
		
		for (i = 0; i < k; i++){
			if (b[i] < 0){
				break;
			}
		}
		if (i == k){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void)
{
	int n, k, flag;
	int b[1000], sr;
	int i, j;
	
	while (scanf("%d %d", &n, &k), n != 0 || k != 0){
		
		for (i = 0; i < k; i++){
			scanf("%d", &b[i]);
		}
		for (i = 0; i < n; i++){
			for (j = 0; j < k; j++){
				scanf("%d", &sr);
				b[j] -= sr;
			}
		}
		
		for (i = 0; i < k; i++){
			if (b[i] < 0){
				break;
			}
		}
		if (i == k){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void)
{
	int n, k, flag;
	int b[1000], sr;
	int i, j;
	
	while (scanf("%d %d", &n, &k), n != 0 || k != 0){
		
		for (i = 0; i < k; i++){
			scanf("%d", &b[i]);
		}
		for (i = 0; i < n; i++){
			for (j = 0; j < k; j++){
				scanf("%d", &sr);
				b[j] -= sr;
			}
		}
		
		for (i = 0; i < k; i++){
			if (b[i] < 0){
				break;
			}
		}
		if (i == k){
			printf("Yes\n");
		}
		else {
			printf("No\n");
		}
	}
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L14
	leaq	32(%rsp), %r12
	xorl	%ebp, %ebp
	movq	%r12, %r13
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %r13
	cmpl	%ebp, %eax
	jg	.L3
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L5
.L4:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	jle	.L9
	leaq	32(%rsp), %r12
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	movl	24(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L6
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L7
.L5:
	testl	%eax, %eax
	jle	.L9
	leal	1(%rax), %ecx
	movl	$1, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %esi
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L12
.L11:
	movl	-4(%r12,%rdx,4), %esi
	testl	%esi, %esi
	jns	.L27
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	testl	%edx, %edx
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%esi, %esi
.L12:
	cmpl	%eax, %esi
	jne	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L14:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$4056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.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	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	je	.L14
	leaq	32(%rsp), %r12
	xorl	%ebp, %ebp
	movq	%r12, %r13
	testl	%eax, %eax
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %r13
	cmpl	%ebp, %eax
	jg	.L3
	movl	20(%rsp), %edi
	testl	%edi, %edi
	jle	.L5
.L4:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	jle	.L9
	leaq	32(%rsp), %r12
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	movl	24(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L6
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L7
.L5:
	testl	%eax, %eax
	jle	.L9
	leal	1(%rax), %ecx
	movl	$1, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %esi
	addq	$1, %rdx
	cmpq	%rcx, %rdx
	je	.L12
.L11:
	movl	-4(%r12,%rdx,4), %esi
	testl	%esi, %esi
	jns	.L27
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	testl	%edx, %edx
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%esi, %esi
.L12:
	cmpl	%eax, %esi
	jne	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L14:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$4056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.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:
```