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>
#define N_MAX 200
#define D_MAX 200

typedef struct {
	short a;
	short b;
	short c;
} clothers;
/**/

short n,d,t[D_MAX];
clothers abc[N_MAX];
short dp[D_MAX][N_MAX];

short i_abs(short x){return(x<0)?-x:x;}

void solve(void)
{
	short i,j;
	for(i=0;i<d;i++){
		for(j=0;j<n;j++){
			if(!(abc[j].a <= t[i] && t[i] <= abc[j].b)){
				dp[i][j] = -1;
			}else if(!i){
				dp[i][j] = 0;
			}else{
				short k,l;
				dp[i][j] = 0;
				for(k=0;k<n;k++){
					if(!(abc[k].a <= t[i-1] && t[i-1] <= abc[k].b) || dp[i-1][k] < 0){
						continue;
					}
					l = dp[i-1][k] + i_abs(abc[j].c - abc[k].c);
					if(l > dp[i][j])dp[i][j] = l;//
				}
			}
		}
	}
	j = 0;
	for(i=0;i<n;i++)if(dp[d-1][i] > j)j = dp[d-1][i];
	printf("%hd\n",j);
	return;
}
int main(void){
	short i;
	scanf("%hd%hd",&d,&n);
	for(i=0;i<d;i++)scanf("%hd",&t[i]);
	for(i=0;i<n;i++)scanf("%hd%hd%hd",&abc[i].a,&abc[i].b,&abc[i].c);
	solve();
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.globl	d
	.align 2
	.type	d, @object
	.size	d, 2
d:
	.zero	2
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400
t:
	.zero	400
	.globl	abc
	.align 32
	.type	abc, @object
	.size	abc, 1200
abc:
	.zero	1200
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 80000
dp:
	.zero	80000
	.text
	.globl	i_abs
	.type	i_abs, @function
i_abs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %eax
	movw	%ax, -4(%rbp)
	movzwl	-4(%rbp), %eax
	movl	%eax, %edx
	negw	%dx
	cmovns	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	i_abs, .-i_abs
	.section	.rodata
.LC0:
	.string	"%hd\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movw	$0, -24(%rbp)
	jmp	.L4
.L16:
	movw	$0, -22(%rbp)
	jmp	.L5
.L15:
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	abc(%rip), %rax
	movzwl	(%rdx,%rax), %edx
	movswl	-24(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rcx
	leaq	t(%rip), %rax
	movzwl	(%rcx,%rax), %eax
	cmpw	%ax, %dx
	jg	.L6
	movswl	-24(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	movzwl	(%rdx,%rax), %ecx
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	2+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, %cx
	jle	.L7
.L6:
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$-1, (%rdx,%rax)
	jmp	.L8
.L7:
	cmpw	$0, -24(%rbp)
	jne	.L9
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$0, (%rdx,%rax)
	jmp	.L8
.L9:
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$0, (%rdx,%rax)
	movw	$0, -20(%rbp)
	jmp	.L10
.L14:
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	abc(%rip), %rax
	movzwl	(%rdx,%rax), %edx
	movswl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax), %rcx
	leaq	t(%rip), %rax
	movzwl	(%rcx,%rax), %eax
	cmpw	%ax, %dx
	jg	.L21
	movswl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	movzwl	(%rdx,%rax), %ecx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	2+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, %cx
	jg	.L21
	movswl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	testw	%ax, %ax
	js	.L21
	movswl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %ebx
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	4+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %ecx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	4+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cwtl
	movl	%eax, %edi
	call	i_abs
	addl	%ebx, %eax
	movw	%ax, -18(%rbp)
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, -18(%rbp)
	jle	.L13
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rcx
	leaq	dp(%rip), %rdx
	movzwl	-18(%rbp), %eax
	movw	%ax, (%rcx,%rdx)
	jmp	.L13
.L21:
	nop
.L13:
	movzwl	-20(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -20(%rbp)
.L10:
	movzwl	n(%rip), %eax
	cmpw	%ax, -20(%rbp)
	jl	.L14
.L8:
	movzwl	-22(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -22(%rbp)
.L5:
	movzwl	n(%rip), %eax
	cmpw	%ax, -22(%rbp)
	jl	.L15
	movzwl	-24(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -24(%rbp)
.L4:
	movzwl	d(%rip), %eax
	cmpw	%ax, -24(%rbp)
	jl	.L16
	movw	$0, -22(%rbp)
	movw	$0, -24(%rbp)
	jmp	.L17
.L19:
	movzwl	d(%rip), %eax
	cwtl
	leal	-1(%rax), %edx
	movswl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, -22(%rbp)
	jge	.L18
	movzwl	d(%rip), %eax
	cwtl
	leal	-1(%rax), %edx
	movswl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movw	%ax, -22(%rbp)
.L18:
	movzwl	-24(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -24(%rbp)
.L17:
	movzwl	n(%rip), %eax
	cmpw	%ax, -24(%rbp)
	jl	.L19
	movswl	-22(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%hd%hd"
.LC2:
	.string	"%hd"
.LC3:
	.string	"%hd%hd%hd"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movw	$0, -2(%rbp)
	jmp	.L23
.L24:
	movswl	-2(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzwl	-2(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -2(%rbp)
.L23:
	movzwl	d(%rip), %eax
	cmpw	%ax, -2(%rbp)
	jl	.L24
	movw	$0, -2(%rbp)
	jmp	.L25
.L26:
	movswl	-2(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rdx
	addq	%rdx, %rax
	leaq	4(%rax), %rcx
	movswl	-2(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rdx
	addq	%rdx, %rax
	leaq	2(%rax), %rdx
	movswl	-2(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzwl	-2(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -2(%rbp)
.L25:
	movzwl	n(%rip), %eax
	cmpw	%ax, -2(%rbp)
	jl	.L26
	call	solve
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.globl	i_abs
	.type	i_abs, @function
i_abs:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	negw	%ax
	cmovs	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	i_abs, .-i_abs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%hd\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	movzwl	d(%rip), %edi
	movzwl	n(%rip), %eax
	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
	movw	%di, -20(%rsp)
	movw	%ax, -18(%rsp)
	testw	%di, %di
	jle	.L4
	testw	%ax, %ax
	jle	.L19
	leal	-1(%rax), %edx
	leaq	dp(%rip), %rax
	xorl	%ebx, %ebx
	movzwl	%dx, %edx
	movq	%rax, -16(%rsp)
	leaq	2+dp(%rip), %r8
	leaq	-400+dp(%rip), %r13
	leaq	(%rdx,%rdx), %rax
	addq	%rax, %r8
	addq	%rdx, %rax
	leaq	6+abc(%rip), %rdx
	leaq	(%rdx,%rax,2), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	t(%rip), %rax
	movq	%r13, %r15
	leaq	-400+dp(%rip), %r14
	addq	$400, %r13
	movzwl	(%rax,%rbx,2), %esi
	leaq	abc(%rip), %rdx
	movq	%r13, %rax
	subq	%r15, %r14
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	cmpw	2(%rdx), %si
	jg	.L7
	testq	%rbx, %rbx
	jne	.L10
	xorl	%edi, %edi
	movw	%di, (%rax,%r14)
.L9:
	addq	$2, %rax
	addq	$6, %rdx
	cmpq	%r8, %rax
	je	.L25
.L13:
	cmpw	%si, (%rdx)
	jle	.L26
.L7:
	movl	$-1, %r9d
	addq	$2, %rax
	addq	$6, %rdx
	movw	%r9w, -2(%rax)
	cmpq	%r8, %rax
	jne	.L13
.L25:
	addq	$1, %rbx
	addq	$400, %r8
	cmpw	%bx, -20(%rsp)
	jg	.L6
.L14:
	movzwl	-18(%rsp), %ebx
	movswl	-20(%rsp), %ecx
	leal	-1(%rbx), %eax
	leal	-1(%rcx), %edi
	cmpw	$6, %ax
	jbe	.L20
	movswq	%cx, %rax
	shrw	$3, %bx
	movq	-16(%rsp), %rcx
	pxor	%xmm0, %xmm0
	leaq	(%rax,%rax,4), %rax
	movl	%ebx, %edx
	leaq	(%rax,%rax,4), %rax
	subl	$1, %edx
	salq	$4, %rax
	movzwl	%dx, %edx
	leaq	-400(%rcx,%rax), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rax, %rcx
	pmaxsw	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rcx, %rdx
	jne	.L16
	movdqa	%xmm0, %xmm1
	movzwl	-18(%rsp), %ebx
	psrldq	$8, %xmm1
	pmaxsw	%xmm1, %xmm0
	movl	%ebx, %edx
	movdqa	%xmm0, %xmm1
	andl	$-8, %edx
	andl	$7, %ebx
	psrldq	$4, %xmm1
	pmaxsw	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$2, %xmm1
	pmaxsw	%xmm1, %xmm0
	pextrw	$0, %xmm0, %eax
	je	.L17
.L15:
	movslq	%edi, %rcx
	movswq	%dx, %rsi
	movq	-16(%rsp), %rdi
	movzwl	-18(%rsp), %ebx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	salq	$3, %rcx
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	1(%rdx), %esi
	cmpw	%bx, %si
	jge	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	2(%rdx), %esi
	cmpw	%bx, %si
	jge	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	3(%rdx), %esi
	cmpw	%bx, %si
	jge	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	4(%rdx), %esi
	cmpw	%si, %bx
	jle	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	5(%rdx), %esi
	cmpw	%si, %bx
	jle	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	addl	$6, %edx
	cmpw	%dx, %bx
	jle	.L17
	movswq	%dx, %rdx
	addq	%rdx, %rcx
	movzwl	(%rdi,%rcx,2), %edx
	cmpw	%dx, %ax
	cmovl	%edx, %eax
.L17:
	movswl	%ax, %edx
.L5:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rsi
	popq	%rbp
	.cfi_def_cfa_offset 40
	movl	$1, %edi
	popq	%r12
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%ecx, %ecx
	leaq	-2+t(%rip), %rdi
	movw	%cx, (%rax)
	movzwl	(%rdi,%rbx,2), %r10d
	leaq	abc(%rip), %rcx
	movq	%r15, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpw	%r10w, (%rcx)
	jg	.L11
	cmpw	2(%rcx), %r10w
	jg	.L11
	movzwl	(%rdi), %r11d
	testw	%r11w, %r11w
	js	.L11
	movzwl	4(%rdx), %ebp
	subw	4(%rcx), %bp
	movl	%ebp, %r9d
	negw	%r9w
	cmovs	%ebp, %r9d
	addl	%r11d, %r9d
	cmpw	%r9w, (%rax)
	jge	.L11
	movw	%r9w, (%rax)
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$6, %rcx
	addq	$2, %rdi
	cmpq	%r12, %rcx
	jne	.L12
	jmp	.L9
.L19:
	xorl	%edx, %edx
	jmp	.L5
.L4:
	cmpw	$0, -18(%rsp)
	jle	.L19
	leaq	dp(%rip), %rax
	movq	%rax, -16(%rsp)
	jmp	.L14
.L20:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L15
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC1:
	.string	"%hd%hd"
.LC2:
	.string	"%hd"
.LC3:
	.string	"%hd%hd%hd"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	n(%rip), %rdx
	leaq	d(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rdi
	leaq	t(%rip), %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %rbp
	call	__isoc99_scanf@PLT
	cmpw	$0, d(%rip)
	jle	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	movswq	%bx, %rax
	movq	%rbp, %rdi
	addl	$1, %ebx
	leaq	(%r12,%rax,2), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpw	%bx, d(%rip)
	jg	.L28
.L31:
	xorl	%ebx, %ebx
	leaq	abc(%rip), %rbp
	leaq	.LC3(%rip), %r12
	cmpw	$0, n(%rip)
	jle	.L30
	.p2align 4,,10
	.p2align 3
.L29:
	movswq	%bx, %rax
	movq	%r12, %rdi
	addl	$1, %ebx
	leaq	(%rax,%rax,2), %rsi
	xorl	%eax, %eax
	addq	%rsi, %rsi
	leaq	4(%rbp,%rsi), %rcx
	leaq	2(%rbp,%rsi), %rdx
	addq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpw	%bx, n(%rip)
	jg	.L29
.L30:
	call	solve
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 80000
dp:
	.zero	80000
	.globl	abc
	.align 32
	.type	abc, @object
	.size	abc, 1200
abc:
	.zero	1200
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400
t:
	.zero	400
	.globl	d
	.align 2
	.type	d, @object
	.size	d, 2
d:
	.zero	2
	.globl	n
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.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
	.p2align 4
	.globl	i_abs
	.type	i_abs, @function
i_abs:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	negw	%ax
	cmovs	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	i_abs, .-i_abs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%hd\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	movzwl	d(%rip), %edi
	movzwl	n(%rip), %eax
	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
	movw	%di, -20(%rsp)
	movw	%ax, -18(%rsp)
	testw	%di, %di
	jle	.L4
	testw	%ax, %ax
	jle	.L19
	leal	-1(%rax), %edx
	leaq	dp(%rip), %rax
	xorl	%ebx, %ebx
	movzwl	%dx, %edx
	movq	%rax, -16(%rsp)
	leaq	2+dp(%rip), %r8
	leaq	-400+dp(%rip), %r13
	leaq	(%rdx,%rdx), %rax
	addq	%rax, %r8
	addq	%rdx, %rax
	leaq	6+abc(%rip), %rdx
	leaq	(%rdx,%rax,2), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	t(%rip), %rax
	movq	%r13, %r15
	leaq	-400+dp(%rip), %r14
	addq	$400, %r13
	movzwl	(%rax,%rbx,2), %esi
	leaq	abc(%rip), %rdx
	movq	%r13, %rax
	subq	%r15, %r14
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	cmpw	2(%rdx), %si
	jg	.L7
	testq	%rbx, %rbx
	jne	.L10
	xorl	%edi, %edi
	movw	%di, (%rax,%r14)
.L9:
	addq	$2, %rax
	addq	$6, %rdx
	cmpq	%r8, %rax
	je	.L25
.L13:
	cmpw	%si, (%rdx)
	jle	.L26
.L7:
	movl	$-1, %r9d
	addq	$2, %rax
	addq	$6, %rdx
	movw	%r9w, -2(%rax)
	cmpq	%r8, %rax
	jne	.L13
.L25:
	addq	$1, %rbx
	addq	$400, %r8
	cmpw	%bx, -20(%rsp)
	jg	.L6
.L14:
	movzwl	-18(%rsp), %ebx
	movswl	-20(%rsp), %ecx
	leal	-1(%rbx), %eax
	leal	-1(%rcx), %edi
	cmpw	$6, %ax
	jbe	.L20
	movswq	%cx, %rax
	shrw	$3, %bx
	movq	-16(%rsp), %rcx
	pxor	%xmm0, %xmm0
	leaq	(%rax,%rax,4), %rax
	movl	%ebx, %edx
	leaq	(%rax,%rax,4), %rax
	subl	$1, %edx
	salq	$4, %rax
	movzwl	%dx, %edx
	leaq	-400(%rcx,%rax), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rax, %rcx
	pmaxsw	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rcx, %rdx
	jne	.L16
	movdqa	%xmm0, %xmm1
	movzwl	-18(%rsp), %ebx
	psrldq	$8, %xmm1
	pmaxsw	%xmm1, %xmm0
	movl	%ebx, %edx
	movdqa	%xmm0, %xmm1
	andl	$-8, %edx
	andl	$7, %ebx
	psrldq	$4, %xmm1
	pmaxsw	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$2, %xmm1
	pmaxsw	%xmm1, %xmm0
	pextrw	$0, %xmm0, %eax
	je	.L17
.L15:
	movslq	%edi, %rcx
	movswq	%dx, %rsi
	movq	-16(%rsp), %rdi
	movzwl	-18(%rsp), %ebx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	salq	$3, %rcx
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	1(%rdx), %esi
	cmpw	%bx, %si
	jge	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	2(%rdx), %esi
	cmpw	%bx, %si
	jge	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	3(%rdx), %esi
	cmpw	%bx, %si
	jge	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	4(%rdx), %esi
	cmpw	%si, %bx
	jle	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	leal	5(%rdx), %esi
	cmpw	%si, %bx
	jle	.L17
	movswq	%si, %rsi
	addq	%rcx, %rsi
	movzwl	(%rdi,%rsi,2), %esi
	cmpw	%si, %ax
	cmovl	%esi, %eax
	addl	$6, %edx
	cmpw	%dx, %bx
	jle	.L17
	movswq	%dx, %rdx
	addq	%rdx, %rcx
	movzwl	(%rdi,%rcx,2), %edx
	cmpw	%dx, %ax
	cmovl	%edx, %eax
.L17:
	movswl	%ax, %edx
.L5:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rsi
	popq	%rbp
	.cfi_def_cfa_offset 40
	movl	$1, %edi
	popq	%r12
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%ecx, %ecx
	leaq	-2+t(%rip), %rdi
	movw	%cx, (%rax)
	movzwl	(%rdi,%rbx,2), %r10d
	leaq	abc(%rip), %rcx
	movq	%r15, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpw	%r10w, (%rcx)
	jg	.L11
	cmpw	2(%rcx), %r10w
	jg	.L11
	movzwl	(%rdi), %r11d
	testw	%r11w, %r11w
	js	.L11
	movzwl	4(%rdx), %ebp
	subw	4(%rcx), %bp
	movl	%ebp, %r9d
	negw	%r9w
	cmovs	%ebp, %r9d
	addl	%r11d, %r9d
	cmpw	%r9w, (%rax)
	jge	.L11
	movw	%r9w, (%rax)
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$6, %rcx
	addq	$2, %rdi
	cmpq	%r12, %rcx
	jne	.L12
	jmp	.L9
.L19:
	xorl	%edx, %edx
	jmp	.L5
.L4:
	cmpw	$0, -18(%rsp)
	jle	.L19
	leaq	dp(%rip), %rax
	movq	%rax, -16(%rsp)
	jmp	.L14
.L20:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L15
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC1:
	.string	"%hd%hd"
.LC2:
	.string	"%hd"
.LC3:
	.string	"%hd%hd%hd"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	n(%rip), %rdx
	leaq	d(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rdi
	leaq	t(%rip), %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %rbp
	call	__isoc99_scanf@PLT
	cmpw	$0, d(%rip)
	jle	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	movswq	%bx, %rax
	movq	%rbp, %rdi
	addl	$1, %ebx
	leaq	(%r12,%rax,2), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpw	%bx, d(%rip)
	jg	.L28
.L31:
	xorl	%ebx, %ebx
	leaq	abc(%rip), %rbp
	leaq	.LC3(%rip), %r12
	cmpw	$0, n(%rip)
	jle	.L30
	.p2align 4,,10
	.p2align 3
.L29:
	movswq	%bx, %rax
	movq	%r12, %rdi
	addl	$1, %ebx
	leaq	(%rax,%rax,2), %rsi
	xorl	%eax, %eax
	addq	%rsi, %rsi
	leaq	4(%rbp,%rsi), %rcx
	leaq	2(%rbp,%rsi), %rdx
	addq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpw	%bx, n(%rip)
	jg	.L29
.L30:
	call	solve
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 80000
dp:
	.zero	80000
	.globl	abc
	.align 32
	.type	abc, @object
	.size	abc, 1200
abc:
	.zero	1200
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400
t:
	.zero	400
	.globl	d
	.align 2
	.type	d, @object
	.size	d, 2
d:
	.zero	2
	.globl	n
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.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>
#define N_MAX 200
#define D_MAX 200

typedef struct {
	short a;
	short b;
	short c;
} clothers;
/**/

short n,d,t[D_MAX];
clothers abc[N_MAX];
short dp[D_MAX][N_MAX];

short i_abs(short x){return(x<0)?-x:x;}

void solve(void)
{
	short i,j;
	for(i=0;i<d;i++){
		for(j=0;j<n;j++){
			if(!(abc[j].a <= t[i] && t[i] <= abc[j].b)){
				dp[i][j] = -1;
			}else if(!i){
				dp[i][j] = 0;
			}else{
				short k,l;
				dp[i][j] = 0;
				for(k=0;k<n;k++){
					if(!(abc[k].a <= t[i-1] && t[i-1] <= abc[k].b) || dp[i-1][k] < 0){
						continue;
					}
					l = dp[i-1][k] + i_abs(abc[j].c - abc[k].c);
					if(l > dp[i][j])dp[i][j] = l;//
				}
			}
		}
	}
	j = 0;
	for(i=0;i<n;i++)if(dp[d-1][i] > j)j = dp[d-1][i];
	printf("%hd\n",j);
	return;
}
int main(void){
	short i;
	scanf("%hd%hd",&d,&n);
	for(i=0;i<d;i++)scanf("%hd",&t[i]);
	for(i=0;i<n;i++)scanf("%hd%hd%hd",&abc[i].a,&abc[i].b,&abc[i].c);
	solve();
	return 0;
}
3 4
34
27
35
20 25 30
23 29 90
21 35 60
28 33 40
 3 4
31
27
35
20 25 30
35 29 90
21 35 60
28 33 40
 3 4
34
40
35
20 25 30
23 29 90
21 69 60
28 33 40
 3 4
31
27
35
20 25 30
23 29 90
21 35 60
28 48 40
 3 4
31
27
35
20 25 30
35 29 90
21 35 69
28 33 40
 3 4
31
27
35
20 25 30
23 29 90
21 35 60
28 48 25
 3 4
34
27
35
20 25 30
23 29 90
21 69 60
12 33 7
 3 4
31
27
35
20 25 30
43 29 90
21 35 60
28 48 25
 3 4
34
27
35
20 25 30
23 29 90
21 69 60
12 33 9
 3 4
34
40
44
38 25 30
24 29 11
21 69 60
28 43 40

60
 20
 0
 100
 29
 130
 106
 70
 102
 40

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>
#define N_MAX 200
#define D_MAX 200

typedef struct {
	short a;
	short b;
	short c;
} clothers;
/**/

short n,d,t[D_MAX];
clothers abc[N_MAX];
short dp[D_MAX][N_MAX];

short i_abs(short x){return(x<0)?-x:x;}

void solve(void)
{
	short i,j;
	for(i=0;i<d;i++){
		for(j=0;j<n;j++){
			if(!(abc[j].a <= t[i] && t[i] <= abc[j].b)){
				dp[i][j] = -1;
			}else if(!i){
				dp[i][j] = 0;
			}else{
				short k,l;
				dp[i][j] = 0;
				for(k=0;k<n;k++){
					if(!(abc[k].a <= t[i-1] && t[i-1] <= abc[k].b) || dp[i-1][k] < 0){
						continue;
					}
					l = dp[i-1][k] + i_abs(abc[j].c - abc[k].c);
					if(l > dp[i][j])dp[i][j] = l;//
				}
			}
		}
	}
	j = 0;
	for(i=0;i<n;i++)if(dp[d-1][i] > j)j = dp[d-1][i];
	printf("%hd\n",j);
	return;
}
int main(void){
	short i;
	scanf("%hd%hd",&d,&n);
	for(i=0;i<d;i++)scanf("%hd",&t[i]);
	for(i=0;i<n;i++)scanf("%hd%hd%hd",&abc[i].a,&abc[i].b,&abc[i].c);
	solve();
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.globl	d
	.align 2
	.type	d, @object
	.size	d, 2
d:
	.zero	2
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400
t:
	.zero	400
	.globl	abc
	.align 32
	.type	abc, @object
	.size	abc, 1200
abc:
	.zero	1200
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 80000
dp:
	.zero	80000
	.text
	.globl	i_abs
	.type	i_abs, @function
i_abs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %eax
	movw	%ax, -4(%rbp)
	movzwl	-4(%rbp), %eax
	movl	%eax, %edx
	negw	%dx
	cmovns	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	i_abs, .-i_abs
	.section	.rodata
.LC0:
	.string	"%hd\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movw	$0, -24(%rbp)
	jmp	.L4
.L16:
	movw	$0, -22(%rbp)
	jmp	.L5
.L15:
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	abc(%rip), %rax
	movzwl	(%rdx,%rax), %edx
	movswl	-24(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rcx
	leaq	t(%rip), %rax
	movzwl	(%rcx,%rax), %eax
	cmpw	%ax, %dx
	jg	.L6
	movswl	-24(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	movzwl	(%rdx,%rax), %ecx
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	2+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, %cx
	jle	.L7
.L6:
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$-1, (%rdx,%rax)
	jmp	.L8
.L7:
	cmpw	$0, -24(%rbp)
	jne	.L9
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$0, (%rdx,%rax)
	jmp	.L8
.L9:
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$0, (%rdx,%rax)
	movw	$0, -20(%rbp)
	jmp	.L10
.L14:
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	abc(%rip), %rax
	movzwl	(%rdx,%rax), %edx
	movswl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax), %rcx
	leaq	t(%rip), %rax
	movzwl	(%rcx,%rax), %eax
	cmpw	%ax, %dx
	jg	.L21
	movswl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	movzwl	(%rdx,%rax), %ecx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	2+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, %cx
	jg	.L21
	movswl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	testw	%ax, %ax
	js	.L21
	movswl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %ebx
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	4+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %ecx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	4+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cwtl
	movl	%eax, %edi
	call	i_abs
	addl	%ebx, %eax
	movw	%ax, -18(%rbp)
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, -18(%rbp)
	jle	.L13
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rcx
	leaq	dp(%rip), %rdx
	movzwl	-18(%rbp), %eax
	movw	%ax, (%rcx,%rdx)
	jmp	.L13
.L21:
	nop
.L13:
	movzwl	-20(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -20(%rbp)
.L10:
	movzwl	n(%rip), %eax
	cmpw	%ax, -20(%rbp)
	jl	.L14
.L8:
	movzwl	-22(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -22(%rbp)
.L5:
	movzwl	n(%rip), %eax
	cmpw	%ax, -22(%rbp)
	jl	.L15
	movzwl	-24(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -24(%rbp)
.L4:
	movzwl	d(%rip), %eax
	cmpw	%ax, -24(%rbp)
	jl	.L16
	movw	$0, -22(%rbp)
	movw	$0, -24(%rbp)
	jmp	.L17
.L19:
	movzwl	d(%rip), %eax
	cwtl
	leal	-1(%rax), %edx
	movswl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, -22(%rbp)
	jge	.L18
	movzwl	d(%rip), %eax
	cwtl
	leal	-1(%rax), %edx
	movswl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movw	%ax, -22(%rbp)
.L18:
	movzwl	-24(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -24(%rbp)
.L17:
	movzwl	n(%rip), %eax
	cmpw	%ax, -24(%rbp)
	jl	.L19
	movswl	-22(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%hd%hd"
.LC2:
	.string	"%hd"
.LC3:
	.string	"%hd%hd%hd"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movw	$0, -2(%rbp)
	jmp	.L23
.L24:
	movswl	-2(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzwl	-2(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -2(%rbp)
.L23:
	movzwl	d(%rip), %eax
	cmpw	%ax, -2(%rbp)
	jl	.L24
	movw	$0, -2(%rbp)
	jmp	.L25
.L26:
	movswl	-2(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rdx
	addq	%rdx, %rax
	leaq	4(%rax), %rcx
	movswl	-2(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rdx
	addq	%rdx, %rax
	leaq	2(%rax), %rdx
	movswl	-2(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzwl	-2(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -2(%rbp)
.L25:
	movzwl	n(%rip), %eax
	cmpw	%ax, -2(%rbp)
	jl	.L26
	call	solve
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	n
	.bss
	.align 2
	.type	n, @object
	.size	n, 2
n:
	.zero	2
	.globl	d
	.align 2
	.type	d, @object
	.size	d, 2
d:
	.zero	2
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400
t:
	.zero	400
	.globl	abc
	.align 32
	.type	abc, @object
	.size	abc, 1200
abc:
	.zero	1200
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 80000
dp:
	.zero	80000
	.text
	.globl	i_abs
	.type	i_abs, @function
i_abs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %eax
	movw	%ax, -4(%rbp)
	movzwl	-4(%rbp), %eax
	movl	%eax, %edx
	negw	%dx
	cmovns	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	i_abs, .-i_abs
	.section	.rodata
.LC0:
	.string	"%hd\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movw	$0, -24(%rbp)
	jmp	.L4
.L16:
	movw	$0, -22(%rbp)
	jmp	.L5
.L15:
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	abc(%rip), %rax
	movzwl	(%rdx,%rax), %edx
	movswl	-24(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rcx
	leaq	t(%rip), %rax
	movzwl	(%rcx,%rax), %eax
	cmpw	%ax, %dx
	jg	.L6
	movswl	-24(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	movzwl	(%rdx,%rax), %ecx
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	2+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, %cx
	jle	.L7
.L6:
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$-1, (%rdx,%rax)
	jmp	.L8
.L7:
	cmpw	$0, -24(%rbp)
	jne	.L9
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$0, (%rdx,%rax)
	jmp	.L8
.L9:
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movw	$0, (%rdx,%rax)
	movw	$0, -20(%rbp)
	jmp	.L10
.L14:
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	abc(%rip), %rax
	movzwl	(%rdx,%rax), %edx
	movswl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax), %rcx
	leaq	t(%rip), %rax
	movzwl	(%rcx,%rax), %eax
	cmpw	%ax, %dx
	jg	.L21
	movswl	-24(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	movzwl	(%rdx,%rax), %ecx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	2+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, %cx
	jg	.L21
	movswl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	testw	%ax, %ax
	js	.L21
	movswl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %ebx
	movswl	-22(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	4+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %ecx
	movswl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	4+abc(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cwtl
	movl	%eax, %edi
	call	i_abs
	addl	%ebx, %eax
	movw	%ax, -18(%rbp)
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, -18(%rbp)
	jle	.L13
	movswl	-24(%rbp), %eax
	movswl	-22(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rcx
	leaq	dp(%rip), %rdx
	movzwl	-18(%rbp), %eax
	movw	%ax, (%rcx,%rdx)
	jmp	.L13
.L21:
	nop
.L13:
	movzwl	-20(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -20(%rbp)
.L10:
	movzwl	n(%rip), %eax
	cmpw	%ax, -20(%rbp)
	jl	.L14
.L8:
	movzwl	-22(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -22(%rbp)
.L5:
	movzwl	n(%rip), %eax
	cmpw	%ax, -22(%rbp)
	jl	.L15
	movzwl	-24(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -24(%rbp)
.L4:
	movzwl	d(%rip), %eax
	cmpw	%ax, -24(%rbp)
	jl	.L16
	movw	$0, -22(%rbp)
	movw	$0, -24(%rbp)
	jmp	.L17
.L19:
	movzwl	d(%rip), %eax
	cwtl
	leal	-1(%rax), %edx
	movswl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	cmpw	%ax, -22(%rbp)
	jge	.L18
	movzwl	d(%rip), %eax
	cwtl
	leal	-1(%rax), %edx
	movswl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rdx
	leaq	dp(%rip), %rax
	movzwl	(%rdx,%rax), %eax
	movw	%ax, -22(%rbp)
.L18:
	movzwl	-24(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -24(%rbp)
.L17:
	movzwl	n(%rip), %eax
	cmpw	%ax, -24(%rbp)
	jl	.L19
	movswl	-22(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%hd%hd"
.LC2:
	.string	"%hd"
.LC3:
	.string	"%hd%hd%hd"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movw	$0, -2(%rbp)
	jmp	.L23
.L24:
	movswl	-2(%rbp), %eax
	cltq
	leaq	(%rax,%rax), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzwl	-2(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -2(%rbp)
.L23:
	movzwl	d(%rip), %eax
	cmpw	%ax, -2(%rbp)
	jl	.L24
	movw	$0, -2(%rbp)
	jmp	.L25
.L26:
	movswl	-2(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rdx
	addq	%rdx, %rax
	leaq	4(%rax), %rcx
	movswl	-2(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rdx
	addq	%rdx, %rax
	leaq	2(%rax), %rdx
	movswl	-2(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	leaq	abc(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzwl	-2(%rbp), %eax
	addl	$1, %eax
	movw	%ax, -2(%rbp)
.L25:
	movzwl	n(%rip), %eax
	cmpw	%ax, -2(%rbp)
	jl	.L26
	call	solve
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
