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>
#define SIZE 100

int main(void)
{
	int n, k, b, err;
	int i, j;
	int s[SIZE];

	while (1) {
		scanf("%d%d", &n, &k);
		if (n == 0 && k == 0) break;
		err = 0;
		for (i  = 0; i < SIZE; i++)
			s[i] = 0;
		for (i = 0; i < k; i++)
			scanf("%d", &s[i]);
		for (i = 0; i < n; i++) 
			for (j = 0; j < k; j++) {
				scanf("%d", &b);
				s[j] -= b;
			}
		for (i = 0; i < k; i++)
			if (s[i] < 0) {
				err = 1;
				break;
			}
		if (err) 
			puts("No");
		else
			puts("Yes");
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	.LC1(%rip), %rbx
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L3
	leaq	32(%rsp), %r12
	movl	$50, %ecx
	xorl	%eax, %eax
	movq	%r12, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L4
	movq	%r12, %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L5
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
.L6:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%esi, %esi
	jle	.L11
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	cmpl	%r14d, %esi
	jg	.L8
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L9
.L7:
	testl	%esi, %esi
	jle	.L11
	leal	-1(%rsi), %eax
	leaq	36(%rsp,%rax,4), %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %r12
	cmpq	%rax, %r12
	je	.L11
.L13:
	movl	(%r12), %edx
	testl	%edx, %edx
	jns	.L23
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L4:
	testl	%edx, %edx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$456, %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
.L24:
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	.LC1(%rip), %rbx
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L3
	leaq	32(%rsp), %r12
	movl	$50, %ecx
	xorl	%eax, %eax
	movq	%r12, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L4
	movq	%r12, %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L5
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
.L6:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%esi, %esi
	jle	.L11
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	cmpl	%r14d, %esi
	jg	.L8
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L9
.L7:
	testl	%esi, %esi
	jle	.L11
	leal	-1(%rsi), %eax
	leaq	36(%rsp,%rax,4), %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %r12
	cmpq	%rax, %r12
	je	.L11
.L13:
	movl	(%r12), %edx
	testl	%edx, %edx
	jns	.L23
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L4:
	testl	%edx, %edx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$456, %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
.L24:
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	.LC1(%rip), %rbx
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L3
	leaq	32(%rsp), %r12
	movl	$50, %ecx
	xorl	%eax, %eax
	movq	%r12, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L4
	movq	%r12, %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L5
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
.L6:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%esi, %esi
	jle	.L11
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	cmpl	%r14d, %esi
	jg	.L8
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L9
.L7:
	testl	%esi, %esi
	jle	.L11
	leal	-1(%rsi), %eax
	leaq	36(%rsp,%rax,4), %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %r12
	cmpq	%rax, %r12
	je	.L11
.L13:
	movl	(%r12), %edx
	testl	%edx, %edx
	jns	.L23
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L4:
	testl	%edx, %edx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$456, %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
.L24:
	.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>
#define SIZE 100

int main(void)
{
	int n, k, b, err;
	int i, j;
	int s[SIZE];

	while (1) {
		scanf("%d%d", &n, &k);
		if (n == 0 && k == 0) break;
		err = 0;
		for (i  = 0; i < SIZE; i++)
			s[i] = 0;
		for (i = 0; i < k; i++)
			scanf("%d", &s[i]);
		for (i = 0; i < n; i++) 
			for (j = 0; j < k; j++) {
				scanf("%d", &b);
				s[j] -= b;
			}
		for (i = 0; i < k; i++)
			if (s[i] < 0) {
				err = 1;
				break;
			}
		if (err) 
			puts("No");
		else
			puts("Yes");
	}

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

```c
#include <stdio.h>
#define SIZE 100

int main(void)
{
	int n, k, b, err;
	int i, j;
	int s[SIZE];

	while (1) {
		scanf("%d%d", &n, &k);
		if (n == 0 && k == 0) break;
		err = 0;
		for (i  = 0; i < SIZE; i++)
			s[i] = 0;
		for (i = 0; i < k; i++)
			scanf("%d", &s[i]);
		for (i = 0; i < n; i++) 
			for (j = 0; j < k; j++) {
				scanf("%d", &b);
				s[j] -= b;
			}
		for (i = 0; i < k; i++)
			if (s[i] < 0) {
				err = 1;
				break;
			}
		if (err) 
			puts("No");
		else
			puts("Yes");
	}

	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>
#define SIZE 100

int main(void)
{
	int n, k, b, err;
	int i, j;
	int s[SIZE];

	while (1) {
		scanf("%d%d", &n, &k);
		if (n == 0 && k == 0) break;
		err = 0;
		for (i  = 0; i < SIZE; i++)
			s[i] = 0;
		for (i = 0; i < k; i++)
			scanf("%d", &s[i]);
		for (i = 0; i < n; i++) 
			for (j = 0; j < k; j++) {
				scanf("%d", &b);
				s[j] -= b;
			}
		for (i = 0; i < k; i++)
			if (s[i] < 0) {
				err = 1;
				break;
			}
		if (err) 
			puts("No");
		else
			puts("Yes");
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	.LC1(%rip), %rbx
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L3
	leaq	32(%rsp), %r12
	movl	$50, %ecx
	xorl	%eax, %eax
	movq	%r12, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L4
	movq	%r12, %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L5
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
.L6:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%esi, %esi
	jle	.L11
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	cmpl	%r14d, %esi
	jg	.L8
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L9
.L7:
	testl	%esi, %esi
	jle	.L11
	leal	-1(%rsi), %eax
	leaq	36(%rsp,%rax,4), %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %r12
	cmpq	%rax, %r12
	je	.L11
.L13:
	movl	(%r12), %edx
	testl	%edx, %edx
	jns	.L23
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L4:
	testl	%edx, %edx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$456, %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
.L24:
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	.LC1(%rip), %rbx
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L3
	leaq	32(%rsp), %r12
	movl	$50, %ecx
	xorl	%eax, %eax
	movq	%r12, %rdi
	rep stosq
	testl	%esi, %esi
	jle	.L4
	movq	%r12, %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L5
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L7
.L6:
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%esi, %esi
	jle	.L11
	movq	%r12, %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %esi
	movl	28(%rsp), %eax
	subl	%eax, (%r15)
	addq	$4, %r15
	cmpl	%r14d, %esi
	jg	.L8
	addl	$1, %r13d
	cmpl	%r13d, 20(%rsp)
	jg	.L9
.L7:
	testl	%esi, %esi
	jle	.L11
	leal	-1(%rsi), %eax
	leaq	36(%rsp,%rax,4), %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$4, %r12
	cmpq	%rax, %r12
	je	.L11
.L13:
	movl	(%r12), %edx
	testl	%edx, %edx
	jns	.L23
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L4:
	testl	%edx, %edx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$456, %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
.L24:
	.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:
```