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

#define L 1000000

#define MIN(a,b) ((a) < (b) ? (a) : (b)) 

int main()
{
    int N, K;

    scanf("%d%d",&N,&K);

    int h[N], dp[L];
    
    for (int i = 0; i < N; i++) {
        scanf("%d", &h[i]);
        dp[i] = INT_MAX;
    }

    dp[0] = 0;
    

    for (int i = 0; i < N; i++) {
        for (int j = 1; j <= K; j++) {
            if (i + j < N) {
                dp[i+j] = MIN(dp[i+j], dp[i] + abs(h[i] - h[i+j]));
            }
        }
    }

    printf("%d", dp[N-1]);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2376, %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
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-4000096(%rbp), %rdx
	leaq	-4000100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000100(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -4000080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -4000072(%rbp)
	movl	$0, -4000092(%rbp)
	jmp	.L5
.L6:
	movl	-4000092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4000072(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000092(%rbp), %eax
	cltq
	movl	$2147483647, -4000064(%rbp,%rax,4)
	addl	$1, -4000092(%rbp)
.L5:
	movl	-4000100(%rbp), %eax
	cmpl	%eax, -4000092(%rbp)
	jl	.L6
	movl	$0, -4000064(%rbp)
	movl	$0, -4000088(%rbp)
	jmp	.L7
.L11:
	movl	$1, -4000084(%rbp)
	jmp	.L8
.L10:
	movl	-4000088(%rbp), %edx
	movl	-4000084(%rbp), %eax
	addl	%eax, %edx
	movl	-4000100(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L9
	movl	-4000088(%rbp), %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %esi
	movq	-4000072(%rbp), %rax
	movl	-4000088(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-4000088(%rbp), %edx
	movl	-4000084(%rbp), %eax
	addl	%eax, %edx
	movq	-4000072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-4000088(%rbp), %ecx
	movl	-4000084(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %eax
	movl	-4000088(%rbp), %esi
	movl	-4000084(%rbp), %ecx
	addl	%esi, %ecx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -4000064(%rbp,%rax,4)
.L9:
	addl	$1, -4000084(%rbp)
.L8:
	movl	-4000096(%rbp), %eax
	cmpl	%eax, -4000084(%rbp)
	jle	.L10
	addl	$1, -4000088(%rbp)
.L7:
	movl	-4000100(%rbp), %eax
	cmpl	%eax, -4000088(%rbp)
	jl	.L11
	movl	-4000100(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-4000068(%rbp), %rdx
	leaq	-4000072(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-4000072(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rdi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	leaq	-4000064(%rbp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	-4000072(%rbp), %r8d
	movl	$2147483647, (%r14,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %r8d
	jg	.L6
	movl	$0, -4000064(%rbp)
	testl	%r8d, %r8d
	jle	.L13
	movl	-4000068(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movq	%r14, %rsi
	xorl	%edi, %edi
	leal	1(%rax), %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	leal	(%rdi,%rax), %edx
	cmpl	%edx, %r8d
	jle	.L9
	movl	(%rbx), %ecx
	subl	(%rbx,%rax,4), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	(%rsi,%rax,4), %ecx
	addl	(%rsi), %edx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
.L9:
	addq	$1, %rax
	cmpq	%rax, %r9
	jne	.L10
	addl	$1, %edi
	addq	$4, %rsi
	addq	$4, %rbx
	cmpl	%edi, %r8d
	jne	.L8
.L7:
	leal	-1(%rdi), %eax
	movq	%r12, %rsi
	movl	$1, %edi
	cltq
	movl	-4000064(%rbp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	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
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	$0, -4000064(%rbp)
	leaq	.LC1(%rip), %r12
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-4000068(%rbp), %rdx
	leaq	-4000072(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-4000072(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rdi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L22:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L22
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L23
.L4:
	movq	%rsp, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	leaq	-4000064(%rbp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	-4000072(%rbp), %r8d
	movl	$2147483647, (%r14,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %r8d
	jg	.L6
	movl	$0, -4000064(%rbp)
	testl	%r8d, %r8d
	jle	.L13
	movl	-4000068(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movq	%r14, %rsi
	xorl	%edi, %edi
	leal	1(%rax), %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	leal	(%rdi,%rax), %edx
	cmpl	%edx, %r8d
	jle	.L9
	movl	(%rbx), %ecx
	subl	(%rbx,%rax,4), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	(%rsi,%rax,4), %ecx
	addl	(%rsi), %edx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
.L9:
	addq	$1, %rax
	cmpq	%rax, %r9
	jne	.L10
	addl	$1, %edi
	addq	$4, %rsi
	addq	$4, %rbx
	cmpl	%edi, %r8d
	jne	.L8
.L7:
	leal	-1(%rdi), %eax
	movq	%r12, %rsi
	movl	$1, %edi
	cltq
	movl	-4000064(%rbp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	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
.L23:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	$0, -4000064(%rbp)
	leaq	.LC1(%rip), %r12
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include <stdlib.h>
#include <limits.h>

#define L 1000000

#define MIN(a,b) ((a) < (b) ? (a) : (b)) 

int main()
{
    int N, K;

    scanf("%d%d",&N,&K);

    int h[N], dp[L];
    
    for (int i = 0; i < N; i++) {
        scanf("%d", &h[i]);
        dp[i] = INT_MAX;
    }

    dp[0] = 0;
    

    for (int i = 0; i < N; i++) {
        for (int j = 1; j <= K; j++) {
            if (i + j < N) {
                dp[i+j] = MIN(dp[i+j], dp[i] + abs(h[i] - h[i+j]));
            }
        }
    }

    printf("%d", dp[N-1]);

    return 0;
}
2 100
10 9
 5 3
10 30 40 50 24
 3 4
40 10 20 70 80 10 20 70 80 60
 3 1
0 20 10
 3 4
40 10 17 70 80 10 20 70 80 60
 2 100
7 10
 10 4
40 9 20 70 80 10 20 70 80 60
 3 1
9 20 10
 2 100
17 9
 3 4
40 10 34 70 80 10 20 70 80 60

1 26 20 30 23 3 40 21 8 6
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>
#include <stdlib.h>
#include <limits.h>

#define L 1000000

#define MIN(a,b) ((a) < (b) ? (a) : (b)) 

int main()
{
    int N, K;

    scanf("%d%d",&N,&K);

    int h[N], dp[L];
    
    for (int i = 0; i < N; i++) {
        scanf("%d", &h[i]);
        dp[i] = INT_MAX;
    }

    dp[0] = 0;
    

    for (int i = 0; i < N; i++) {
        for (int j = 1; j <= K; j++) {
            if (i + j < N) {
                dp[i+j] = MIN(dp[i+j], dp[i] + abs(h[i] - h[i+j]));
            }
        }
    }

    printf("%d", dp[N-1]);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2376, %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
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-4000096(%rbp), %rdx
	leaq	-4000100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000100(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -4000080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -4000072(%rbp)
	movl	$0, -4000092(%rbp)
	jmp	.L5
.L6:
	movl	-4000092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4000072(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000092(%rbp), %eax
	cltq
	movl	$2147483647, -4000064(%rbp,%rax,4)
	addl	$1, -4000092(%rbp)
.L5:
	movl	-4000100(%rbp), %eax
	cmpl	%eax, -4000092(%rbp)
	jl	.L6
	movl	$0, -4000064(%rbp)
	movl	$0, -4000088(%rbp)
	jmp	.L7
.L11:
	movl	$1, -4000084(%rbp)
	jmp	.L8
.L10:
	movl	-4000088(%rbp), %edx
	movl	-4000084(%rbp), %eax
	addl	%eax, %edx
	movl	-4000100(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L9
	movl	-4000088(%rbp), %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %esi
	movq	-4000072(%rbp), %rax
	movl	-4000088(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-4000088(%rbp), %edx
	movl	-4000084(%rbp), %eax
	addl	%eax, %edx
	movq	-4000072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-4000088(%rbp), %ecx
	movl	-4000084(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %eax
	movl	-4000088(%rbp), %esi
	movl	-4000084(%rbp), %ecx
	addl	%esi, %ecx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -4000064(%rbp,%rax,4)
.L9:
	addl	$1, -4000084(%rbp)
.L8:
	movl	-4000096(%rbp), %eax
	cmpl	%eax, -4000084(%rbp)
	jle	.L10
	addl	$1, -4000088(%rbp)
.L7:
	movl	-4000100(%rbp), %eax
	cmpl	%eax, -4000088(%rbp)
	jl	.L11
	movl	-4000100(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2376, %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
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-4000096(%rbp), %rdx
	leaq	-4000100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000100(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -4000080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -4000072(%rbp)
	movl	$0, -4000092(%rbp)
	jmp	.L5
.L6:
	movl	-4000092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4000072(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4000092(%rbp), %eax
	cltq
	movl	$2147483647, -4000064(%rbp,%rax,4)
	addl	$1, -4000092(%rbp)
.L5:
	movl	-4000100(%rbp), %eax
	cmpl	%eax, -4000092(%rbp)
	jl	.L6
	movl	$0, -4000064(%rbp)
	movl	$0, -4000088(%rbp)
	jmp	.L7
.L11:
	movl	$1, -4000084(%rbp)
	jmp	.L8
.L10:
	movl	-4000088(%rbp), %edx
	movl	-4000084(%rbp), %eax
	addl	%eax, %edx
	movl	-4000100(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L9
	movl	-4000088(%rbp), %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %esi
	movq	-4000072(%rbp), %rax
	movl	-4000088(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-4000088(%rbp), %edx
	movl	-4000084(%rbp), %eax
	addl	%eax, %edx
	movq	-4000072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-4000088(%rbp), %ecx
	movl	-4000084(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %eax
	movl	-4000088(%rbp), %esi
	movl	-4000084(%rbp), %ecx
	addl	%esi, %ecx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -4000064(%rbp,%rax,4)
.L9:
	addl	$1, -4000084(%rbp)
.L8:
	movl	-4000096(%rbp), %eax
	cmpl	%eax, -4000084(%rbp)
	jle	.L10
	addl	$1, -4000088(%rbp)
.L7:
	movl	-4000100(%rbp), %eax
	cmpl	%eax, -4000088(%rbp)
	jl	.L11
	movl	-4000100(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-4000064(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
