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>
#include <string.h>

int main(void)
{
	int n, m;
	int num_line[100000];
	int sum, sum_max;
	int i, k;
	
	while (1){
		scanf("%d%d", &n, &m);
		
		if (n == 0 && m == 0)	break;
		
		sum_max = sum = 0;
		for (i = 0; i < n; i++){
			num_line[i] = 0;
			scanf("%d", &num_line[i]);
			if (i <= m - 1){
				sum += num_line[i];
				sum_max = sum;
			}
			else if (i > m - 1){
				sum = sum - num_line[i - m] + num_line[i];
				
				if (sum > sum_max){
					sum_max = sum;
				}
			}
		}
		
		printf("%d\n", sum_max);
	}
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L14
.L4:
	movl	%r15d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L2
	jle	.L15
	leaq	32(%rsp), %rbx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	addl	(%rbx), %r12d
	movl	%r12d, %r15d
.L7:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 24(%rsp)
	jle	.L4
.L8:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, (%rbx)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L16
	movl	%r13d, %esi
	movl	%r12d, %edx
	subl	%eax, %esi
	movslq	%esi, %rax
	subl	32(%rsp,%rax,4), %edx
	addl	(%rbx), %edx
	cmpl	%edx, %r15d
	movl	%edx, %r12d
	cmovl	%edx, %r15d
	jmp	.L7
.L14:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$400056, %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
.L15:
	.cfi_restore_state
	xorl	%r15d, %r15d
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L14
.L4:
	movl	%r15d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L2
	jle	.L15
	leaq	32(%rsp), %rbx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	addl	(%rbx), %r12d
	movl	%r12d, %r15d
.L7:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 24(%rsp)
	jle	.L4
.L8:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, (%rbx)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L16
	movl	%r13d, %esi
	movl	%r12d, %edx
	subl	%eax, %esi
	movslq	%esi, %rax
	subl	32(%rsp,%rax,4), %edx
	addl	(%rbx), %edx
	cmpl	%edx, %r15d
	movl	%edx, %r12d
	cmovl	%edx, %r15d
	jmp	.L7
.L14:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$400056, %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
.L15:
	.cfi_restore_state
	xorl	%r15d, %r15d
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L14
.L4:
	movl	%r15d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L2
	jle	.L15
	leaq	32(%rsp), %rbx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	addl	(%rbx), %r12d
	movl	%r12d, %r15d
.L7:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 24(%rsp)
	jle	.L4
.L8:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, (%rbx)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L16
	movl	%r13d, %esi
	movl	%r12d, %edx
	subl	%eax, %esi
	movslq	%esi, %rax
	subl	32(%rsp,%rax,4), %edx
	addl	(%rbx), %edx
	cmpl	%edx, %r15d
	movl	%edx, %r12d
	cmovl	%edx, %r15d
	jmp	.L7
.L14:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$400056, %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
.L15:
	.cfi_restore_state
	xorl	%r15d, %r15d
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>

int main(void)
{
	int n, m;
	int num_line[100000];
	int sum, sum_max;
	int i, k;
	
	while (1){
		scanf("%d%d", &n, &m);
		
		if (n == 0 && m == 0)	break;
		
		sum_max = sum = 0;
		for (i = 0; i < n; i++){
			num_line[i] = 0;
			scanf("%d", &num_line[i]);
			if (i <= m - 1){
				sum += num_line[i];
				sum_max = sum;
			}
			else if (i > m - 1){
				sum = sum - num_line[i - m] + num_line[i];
				
				if (sum > sum_max){
					sum_max = sum;
				}
			}
		}
		
		printf("%d\n", sum_max);
	}
	return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>

int main(void)
{
	int n, m;
	int num_line[100000];
	int sum, sum_max;
	int i, k;
	
	while (1){
		scanf("%d%d", &n, &m);
		
		if (n == 0 && m == 0)	break;
		
		sum_max = sum = 0;
		for (i = 0; i < n; i++){
			num_line[i] = 0;
			scanf("%d", &num_line[i]);
			if (i <= m - 1){
				sum += num_line[i];
				sum_max = sum;
			}
			else if (i > m - 1){
				sum = sum - num_line[i - m] + num_line[i];
				
				if (sum > sum_max){
					sum_max = sum;
				}
			}
		}
		
		printf("%d\n", sum_max);
	}
	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:

5 3
2
5
-4
8
3
0 0
 5 3
2
5
-4
12
3
0 0
 5 3
2
5
-4
14
3
0 0
 5 3
2
9
-4
14
1
0 0
 5 3
1
9
-4
2
1
0 0
 5 3
2
8
-4
12
3
0 0
 5 1
2
9
-4
14
1
0 0
 5 3
1
9
-4
13
1
0 0
 5 3
1
2
-4
13
1
0 0
 5 3
2
5
-4
5
3
0 0

9
 13
 15
 19
 7
 16
 14
 18
 11
 6

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>
#include <string.h>

int main(void)
{
	int n, m;
	int num_line[100000];
	int sum, sum_max;
	int i, k;
	
	while (1){
		scanf("%d%d", &n, &m);
		
		if (n == 0 && m == 0)	break;
		
		sum_max = sum = 0;
		for (i = 0; i < n; i++){
			num_line[i] = 0;
			scanf("%d", &num_line[i]);
			if (i <= m - 1){
				sum += num_line[i];
				sum_max = sum;
			}
			else if (i > m - 1){
				sum = sum - num_line[i - m] + num_line[i];
				
				if (sum > sum_max){
					sum_max = sum;
				}
			}
		}
		
		printf("%d\n", sum_max);
	}
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L14
.L4:
	movl	%r15d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L2
	jle	.L15
	leaq	32(%rsp), %rbx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	addl	(%rbx), %r12d
	movl	%r12d, %r15d
.L7:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 24(%rsp)
	jle	.L4
.L8:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, (%rbx)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L16
	movl	%r13d, %esi
	movl	%r12d, %edx
	subl	%eax, %esi
	movslq	%esi, %rax
	subl	32(%rsp,%rax,4), %edx
	addl	(%rbx), %edx
	cmpl	%edx, %r15d
	movl	%edx, %r12d
	cmovl	%edx, %r15d
	jmp	.L7
.L14:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$400056, %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
.L15:
	.cfi_restore_state
	xorl	%r15d, %r15d
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2744, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L14
.L4:
	movl	%r15d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	testl	%r15d, %r15d
	je	.L2
	jle	.L15
	leaq	32(%rsp), %rbx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	addl	(%rbx), %r12d
	movl	%r12d, %r15d
.L7:
	addl	$1, %r13d
	addq	$4, %rbx
	cmpl	%r13d, 24(%rsp)
	jle	.L4
.L8:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, (%rbx)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L16
	movl	%r13d, %esi
	movl	%r12d, %edx
	subl	%eax, %esi
	movslq	%esi, %rax
	subl	32(%rsp,%rax,4), %edx
	addl	(%rbx), %edx
	cmpl	%edx, %r15d
	movl	%edx, %r12d
	cmovl	%edx, %r15d
	jmp	.L7
.L14:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$400056, %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
.L15:
	.cfi_restore_state
	xorl	%r15d, %r15d
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```