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 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);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.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	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L17:
	movl	$0, -4024(%rbp)
	jmp	.L3
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-4024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4024(%rbp)
.L3:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L4
	movl	$0, -4024(%rbp)
	jmp	.L5
.L8:
	movl	$0, -4020(%rbp)
	jmp	.L6
.L7:
	leaq	-4028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	-4028(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4020(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	addl	$1, -4020(%rbp)
.L6:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4020(%rbp)
	jl	.L7
	addl	$1, -4024(%rbp)
.L5:
	movl	-4036(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L8
	movl	$0, -4024(%rbp)
	jmp	.L9
.L12:
	movl	-4024(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L20
	addl	$1, -4024(%rbp)
.L9:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L12
	jmp	.L11
.L20:
	nop
.L11:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jne	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-4032(%rbp), %rdx
	leaq	-4036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4036(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-4032(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L14:
	movl	$1, %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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"
.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
	.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:

#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);
}
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 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);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.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	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L17:
	movl	$0, -4024(%rbp)
	jmp	.L3
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-4024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4024(%rbp)
.L3:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L4
	movl	$0, -4024(%rbp)
	jmp	.L5
.L8:
	movl	$0, -4020(%rbp)
	jmp	.L6
.L7:
	leaq	-4028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	-4028(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4020(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	addl	$1, -4020(%rbp)
.L6:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4020(%rbp)
	jl	.L7
	addl	$1, -4024(%rbp)
.L5:
	movl	-4036(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L8
	movl	$0, -4024(%rbp)
	jmp	.L9
.L12:
	movl	-4024(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L20
	addl	$1, -4024(%rbp)
.L9:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L12
	jmp	.L11
.L20:
	nop
.L11:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jne	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-4032(%rbp), %rdx
	leaq	-4036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4036(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-4032(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L14:
	movl	$1, %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
.LC3:
	.string	"%d %d"
	.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	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L17:
	movl	$0, -4024(%rbp)
	jmp	.L3
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-4024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4024(%rbp)
.L3:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L4
	movl	$0, -4024(%rbp)
	jmp	.L5
.L8:
	movl	$0, -4020(%rbp)
	jmp	.L6
.L7:
	leaq	-4028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	-4028(%rbp), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4020(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	addl	$1, -4020(%rbp)
.L6:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4020(%rbp)
	jl	.L7
	addl	$1, -4024(%rbp)
.L5:
	movl	-4036(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L8
	movl	$0, -4024(%rbp)
	jmp	.L9
.L12:
	movl	-4024(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	js	.L20
	addl	$1, -4024(%rbp)
.L9:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L12
	jmp	.L11
.L20:
	nop
.L11:
	movl	-4032(%rbp), %eax
	cmpl	%eax, -4024(%rbp)
	jne	.L13
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-4032(%rbp), %rdx
	leaq	-4036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4036(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-4032(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L14:
	movl	$1, %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
