Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// Aizu 0579: Hot days
// 2017.9.24 bal4u@uu

#include <stdio.h>
#include <string.h>
#define abs(a) ((a)>=0?(a):-(a))

typedef struct { int a, b, c; } T;
T clothes[203];		// ?´????
int t[203];			// ???????°????
int dp[2][203];		// ?????????????´??????????????¨?

int main()
{
	int d, n, i, j, k, k1, k2, ans;
	T *p, *q;

	scanf("%d%d", &d, &n);
	for (i = 0; i < d; i++) scanf("%d", t+i);
	for (p = clothes, i = 0; i < n; i++, p++) scanf("%d%d%d", &p->a, &p->b, &p->c);

	memset(dp, -1, sizeof(dp)); dp[0][0] = 0;
	for (k1 = 0, k2 = 1, i = 0; i < d; i++, k1 = k2, k2 = !k2) {
		memset(dp[k2], -1, sizeof(dp[k2]));
		for (p = clothes, j = 0; j < n; j++, p++) {
			if (p->a <= t[i] && t[i] <= p->b) {
				for (q = clothes, k = 0; k < n; k++, q++) {
					if (dp[k1][k] >= 0) {
						int t = 0;
						if (i > 0) t = abs(p->c - q->c) + dp[k1][k];
						if (dp[k2][j] < 0 || t > dp[k2][j]) dp[k2][j] = t;
					}
				}
			}
		}
	}
	for (ans = 0, i = 0; i < n; i++) if (dp[k1][i] > ans) ans = dp[k1][i];
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	clothes
	.bss
	.align 32
	.type	clothes, @object
	.size	clothes, 2436
clothes:
	.zero	2436
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 812
t:
	.zero	812
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 1624
dp:
	.zero	1624
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%d\n"
	.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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L2:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L3
	leaq	clothes(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L4
.L5:
	movq	-24(%rbp), %rax
	leaq	8(%rax), %rcx
	movq	-24(%rbp), %rax
	leaq	4(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
	addq	$12, -24(%rbp)
.L4:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L5
	movl	$1624, %edx
	movl	$-1, %esi
	leaq	dp(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp(%rip)
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L6
.L15:
	movl	-36(%rbp), %eax
	cltq
	imulq	$812, %rax, %rax
	leaq	dp(%rip), %rdx
	addq	%rdx, %rax
	movl	$812, %edx
	movl	$-1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	clothes(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L7
.L14:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-24(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jg	.L8
	leaq	clothes(%rip), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L9
.L13:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L10
	movl	$0, -28(%rbp)
	cmpl	$0, -52(%rbp)
	jle	.L11
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-16(%rbp), %rax
	movl	8(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -28(%rbp)
.L11:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L12
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L10
.L12:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L10:
	addl	$1, -44(%rbp)
	addq	$12, -16(%rbp)
.L9:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L13
.L8:
	addl	$1, -48(%rbp)
	addq	$12, -24(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L14
	addl	$1, -52(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	cmpl	$0, -36(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -36(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L15
	movl	$0, -32(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L16
.L18:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L17
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -32(%rbp)
.L17:
	addl	$1, -52(%rbp)
.L16:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L18
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
.LC3:
	.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
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 16(%rsp)
	jg	.L5
.L6:
	movl	20(%rsp), %ebp
	leaq	clothes(%rip), %r13
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r14
	movq	%r13, %rbx
	testl	%ebp, %ebp
	jle	.L48
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbx), %rcx
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbx
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ebp
	cmpl	%r12d, %ebp
	jg	.L3
	leaq	dp(%rip), %r12
	movq	$-1, %rax
	movl	$203, %ecx
	movq	%r12, %rdi
	rep stosq
	movslq	16(%rsp), %rax
	movl	$0, dp(%rip)
	testl	%eax, %eax
	jle	.L27
.L24:
	movq	%rax, (%rsp)
	leal	-1(%rbp), %eax
	xorl	%r11d, %r11d
	movl	$1, %ebx
	movq	%rax, 8(%rsp)
	leaq	3(%rax,%rax,2), %rax
	xorl	%esi, %esi
	leaq	0(%r13,%rax,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%ebx, %rdx
	movq	$-1, %rax
	imulq	$812, %rdx, %rdx
	addq	%r12, %rdx
	leaq	8(%rdx), %rdi
	movq	%rdx, %rcx
	movq	$-1, (%rdx)
	movq	$-1, 804(%rdx)
	andq	$-8, %rdi
	subq	%rdi, %rcx
	addl	$812, %ecx
	shrl	$3, %ecx
	rep stosq
	testl	%ebp, %ebp
	jle	.L12
	imulq	$812, %rsi, %r15
	leaq	t(%rip), %rax
	imulq	$203, %rsi, %rsi
	movl	(%rax,%r11,4), %r9d
	addq	8(%rsp), %rsi
	leaq	4+dp(%rip), %rax
	leaq	(%rax,%rsi,4), %r14
	leaq	clothes(%rip), %rax
	addq	%r12, %r15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$12, %rax
	addq	$4, %rdx
	cmpq	%r10, %rax
	je	.L12
.L11:
	cmpl	%r9d, (%rax)
	jg	.L13
	cmpl	4(%rax), %r9d
	jg	.L13
	testq	%r11, %r11
	jne	.L29
	movq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rcx), %edi
	testl	%edi, %edi
	js	.L15
	movl	(%rdx), %esi
	testl	%esi, %esi
	jns	.L15
	movl	$0, (%rdx)
.L15:
	addq	$4, %rcx
	cmpq	%r14, %rcx
	jne	.L16
	addq	$12, %rax
	addq	$4, %rdx
	cmpq	%r10, %rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%ebx, %eax
	addq	$1, %r11
	movslq	%ebx, %rsi
	xorl	$1, %eax
	cmpq	(%rsp), %r11
	je	.L7
	movslq	%eax, %rbx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r15, %rdi
	leaq	clothes(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	js	.L18
	movl	8(%rax), %r13d
	subl	8(%rsi), %r13d
	movl	%r13d, %ecx
	negl	%ecx
	cmovs	%r13d, %ecx
	addl	%r8d, %ecx
	cmpl	%ecx, (%rdx)
	jge	.L18
	movl	%ecx, (%rdx)
.L18:
	addq	$12, %rsi
	addq	$4, %rdi
	cmpq	%r10, %rsi
	jne	.L14
	jmp	.L13
.L27:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%ebp, %ebp
	jle	.L30
	leal	-1(%rbp), %eax
	cmpl	$2, %eax
	jbe	.L31
	imulq	$812, %rbx, %rax
	movl	%ebp, %edx
	pxor	%xmm2, %xmm2
	shrl	$2, %edx
	salq	$4, %rdx
	addq	%r12, %rax
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rax
	jne	.L21
	movdqa	%xmm2, %xmm1
	movl	%ebp, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %bpl
	je	.L19
.L20:
	imulq	$203, %rbx, %rax
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	movl	(%r12,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%ebp, %esi
	jge	.L19
	movslq	%esi, %rsi
	addq	%rax, %rsi
	movl	(%r12,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ebp, %ecx
	jge	.L19
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movl	(%r12,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L19:
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$40, %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
.L48:
	.cfi_restore_state
	leaq	dp(%rip), %r12
	orq	$-1, %rax
	movl	$203, %ecx
	movq	%r12, %rdi
	rep stosq
	movslq	16(%rsp), %rax
	movl	$0, dp(%rip)
	testl	%eax, %eax
	jg	.L24
.L30:
	xorl	%edx, %edx
	jmp	.L19
.L31:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L20
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 1624
dp:
	.zero	1624
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 812
t:
	.zero	812
	.globl	clothes
	.align 32
	.type	clothes, @object
	.size	clothes, 2436
clothes:
	.zero	2436
	.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"
.LC2:
	.string	"%d%d%d"
.LC3:
	.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
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 16(%rsp)
	jg	.L5
.L6:
	movl	20(%rsp), %ebp
	leaq	clothes(%rip), %r13
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r14
	movq	%r13, %rbx
	testl	%ebp, %ebp
	jle	.L48
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbx), %rcx
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbx
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ebp
	cmpl	%r12d, %ebp
	jg	.L3
	leaq	dp(%rip), %r12
	movq	$-1, %rax
	movl	$203, %ecx
	movq	%r12, %rdi
	rep stosq
	movslq	16(%rsp), %rax
	movl	$0, dp(%rip)
	testl	%eax, %eax
	jle	.L27
.L24:
	movq	%rax, (%rsp)
	leal	-1(%rbp), %eax
	xorl	%r11d, %r11d
	movl	$1, %ebx
	movq	%rax, 8(%rsp)
	leaq	3(%rax,%rax,2), %rax
	xorl	%esi, %esi
	leaq	0(%r13,%rax,4), %r10
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%ebx, %rdx
	movq	$-1, %rax
	imulq	$812, %rdx, %rdx
	addq	%r12, %rdx
	leaq	8(%rdx), %rdi
	movq	%rdx, %rcx
	movq	$-1, (%rdx)
	movq	$-1, 804(%rdx)
	andq	$-8, %rdi
	subq	%rdi, %rcx
	addl	$812, %ecx
	shrl	$3, %ecx
	rep stosq
	testl	%ebp, %ebp
	jle	.L12
	imulq	$812, %rsi, %r15
	leaq	t(%rip), %rax
	imulq	$203, %rsi, %rsi
	movl	(%rax,%r11,4), %r9d
	addq	8(%rsp), %rsi
	leaq	4+dp(%rip), %rax
	leaq	(%rax,%rsi,4), %r14
	leaq	clothes(%rip), %rax
	addq	%r12, %r15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$12, %rax
	addq	$4, %rdx
	cmpq	%r10, %rax
	je	.L12
.L11:
	cmpl	%r9d, (%rax)
	jg	.L13
	cmpl	4(%rax), %r9d
	jg	.L13
	testq	%r11, %r11
	jne	.L29
	movq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rcx), %edi
	testl	%edi, %edi
	js	.L15
	movl	(%rdx), %esi
	testl	%esi, %esi
	jns	.L15
	movl	$0, (%rdx)
.L15:
	addq	$4, %rcx
	cmpq	%r14, %rcx
	jne	.L16
	addq	$12, %rax
	addq	$4, %rdx
	cmpq	%r10, %rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%ebx, %eax
	addq	$1, %r11
	movslq	%ebx, %rsi
	xorl	$1, %eax
	cmpq	(%rsp), %r11
	je	.L7
	movslq	%eax, %rbx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r15, %rdi
	leaq	clothes(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	js	.L18
	movl	8(%rax), %r13d
	subl	8(%rsi), %r13d
	movl	%r13d, %ecx
	negl	%ecx
	cmovs	%r13d, %ecx
	addl	%r8d, %ecx
	cmpl	%ecx, (%rdx)
	jge	.L18
	movl	%ecx, (%rdx)
.L18:
	addq	$12, %rsi
	addq	$4, %rdi
	cmpq	%r10, %rsi
	jne	.L14
	jmp	.L13
.L27:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%ebp, %ebp
	jle	.L30
	leal	-1(%rbp), %eax
	cmpl	$2, %eax
	jbe	.L31
	imulq	$812, %rbx, %rax
	movl	%ebp, %edx
	pxor	%xmm2, %xmm2
	shrl	$2, %edx
	salq	$4, %rdx
	addq	%r12, %rax
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rax
	jne	.L21
	movdqa	%xmm2, %xmm1
	movl	%ebp, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %bpl
	je	.L19
.L20:
	imulq	$203, %rbx, %rax
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	movl	(%r12,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%ebp, %esi
	jge	.L19
	movslq	%esi, %rsi
	addq	%rax, %rsi
	movl	(%r12,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ebp, %ecx
	jge	.L19
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movl	(%r12,%rax,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L19:
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$40, %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
.L48:
	.cfi_restore_state
	leaq	dp(%rip), %r12
	orq	$-1, %rax
	movl	$203, %ecx
	movq	%r12, %rdi
	rep stosq
	movslq	16(%rsp), %rax
	movl	$0, dp(%rip)
	testl	%eax, %eax
	jg	.L24
.L30:
	xorl	%edx, %edx
	jmp	.L19
.L31:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L20
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 1624
dp:
	.zero	1624
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 812
t:
	.zero	812
	.globl	clothes
	.align 32
	.type	clothes, @object
	.size	clothes, 2436
clothes:
	.zero	2436
	.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:

// Aizu 0579: Hot days
// 2017.9.24 bal4u@uu

#include <stdio.h>
#include <string.h>
#define abs(a) ((a)>=0?(a):-(a))

typedef struct { int a, b, c; } T;
T clothes[203];		// ?´????
int t[203];			// ???????°????
int dp[2][203];		// ?????????????´??????????????¨?

int main()
{
	int d, n, i, j, k, k1, k2, ans;
	T *p, *q;

	scanf("%d%d", &d, &n);
	for (i = 0; i < d; i++) scanf("%d", t+i);
	for (p = clothes, i = 0; i < n; i++, p++) scanf("%d%d%d", &p->a, &p->b, &p->c);

	memset(dp, -1, sizeof(dp)); dp[0][0] = 0;
	for (k1 = 0, k2 = 1, i = 0; i < d; i++, k1 = k2, k2 = !k2) {
		memset(dp[k2], -1, sizeof(dp[k2]));
		for (p = clothes, j = 0; j < n; j++, p++) {
			if (p->a <= t[i] && t[i] <= p->b) {
				for (q = clothes, k = 0; k < n; k++, q++) {
					if (dp[k1][k] >= 0) {
						int t = 0;
						if (i > 0) t = abs(p->c - q->c) + dp[k1][k];
						if (dp[k2][j] < 0 || t > dp[k2][j]) dp[k2][j] = t;
					}
				}
			}
		}
	}
	for (ans = 0, i = 0; i < n; i++) if (dp[k1][i] > ans) ans = dp[k1][i];
	printf("%d\n", ans);
	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
// Aizu 0579: Hot days
// 2017.9.24 bal4u@uu

#include <stdio.h>
#include <string.h>
#define abs(a) ((a)>=0?(a):-(a))

typedef struct { int a, b, c; } T;
T clothes[203];		// ?´????
int t[203];			// ???????°????
int dp[2][203];		// ?????????????´??????????????¨?

int main()
{
	int d, n, i, j, k, k1, k2, ans;
	T *p, *q;

	scanf("%d%d", &d, &n);
	for (i = 0; i < d; i++) scanf("%d", t+i);
	for (p = clothes, i = 0; i < n; i++, p++) scanf("%d%d%d", &p->a, &p->b, &p->c);

	memset(dp, -1, sizeof(dp)); dp[0][0] = 0;
	for (k1 = 0, k2 = 1, i = 0; i < d; i++, k1 = k2, k2 = !k2) {
		memset(dp[k2], -1, sizeof(dp[k2]));
		for (p = clothes, j = 0; j < n; j++, p++) {
			if (p->a <= t[i] && t[i] <= p->b) {
				for (q = clothes, k = 0; k < n; k++, q++) {
					if (dp[k1][k] >= 0) {
						int t = 0;
						if (i > 0) t = abs(p->c - q->c) + dp[k1][k];
						if (dp[k2][j] < 0 || t > dp[k2][j]) dp[k2][j] = t;
					}
				}
			}
		}
	}
	for (ans = 0, i = 0; i < n; i++) if (dp[k1][i] > ans) ans = dp[k1][i];
	printf("%d\n", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	clothes
	.bss
	.align 32
	.type	clothes, @object
	.size	clothes, 2436
clothes:
	.zero	2436
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 812
t:
	.zero	812
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 1624
dp:
	.zero	1624
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%d\n"
	.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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L2:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L3
	leaq	clothes(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L4
.L5:
	movq	-24(%rbp), %rax
	leaq	8(%rax), %rcx
	movq	-24(%rbp), %rax
	leaq	4(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
	addq	$12, -24(%rbp)
.L4:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L5
	movl	$1624, %edx
	movl	$-1, %esi
	leaq	dp(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp(%rip)
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L6
.L15:
	movl	-36(%rbp), %eax
	cltq
	imulq	$812, %rax, %rax
	leaq	dp(%rip), %rdx
	addq	%rdx, %rax
	movl	$812, %edx
	movl	$-1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	clothes(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L7
.L14:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-24(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jg	.L8
	leaq	clothes(%rip), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L9
.L13:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L10
	movl	$0, -28(%rbp)
	cmpl	$0, -52(%rbp)
	jle	.L11
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-16(%rbp), %rax
	movl	8(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -28(%rbp)
.L11:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L12
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L10
.L12:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L10:
	addl	$1, -44(%rbp)
	addq	$12, -16(%rbp)
.L9:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L13
.L8:
	addl	$1, -48(%rbp)
	addq	$12, -24(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L14
	addl	$1, -52(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	cmpl	$0, -36(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -36(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L15
	movl	$0, -32(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L16
.L18:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L17
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -32(%rbp)
.L17:
	addl	$1, -52(%rbp)
.L16:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L18
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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
	.globl	clothes
	.bss
	.align 32
	.type	clothes, @object
	.size	clothes, 2436
clothes:
	.zero	2436
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 812
t:
	.zero	812
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 1624
dp:
	.zero	1624
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d%d%d"
.LC3:
	.string	"%d\n"
	.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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L2:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L3
	leaq	clothes(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L4
.L5:
	movq	-24(%rbp), %rax
	leaq	8(%rax), %rcx
	movq	-24(%rbp), %rax
	leaq	4(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
	addq	$12, -24(%rbp)
.L4:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L5
	movl	$1624, %edx
	movl	$-1, %esi
	leaq	dp(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, dp(%rip)
	movl	$0, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L6
.L15:
	movl	-36(%rbp), %eax
	cltq
	imulq	$812, %rax, %rax
	leaq	dp(%rip), %rdx
	addq	%rdx, %rax
	movl	$812, %edx
	movl	$-1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	clothes(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L7
.L14:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L8
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-24(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jg	.L8
	leaq	clothes(%rip), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L9
.L13:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L10
	movl	$0, -28(%rbp)
	cmpl	$0, -52(%rbp)
	jle	.L11
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-16(%rbp), %rax
	movl	8(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -28(%rbp)
.L11:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L12
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L10
.L12:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movl	-36(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L10:
	addl	$1, -44(%rbp)
	addq	$12, -16(%rbp)
.L9:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L13
.L8:
	addl	$1, -48(%rbp)
	addq	$12, -24(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L14
	addl	$1, -52(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	cmpl	$0, -36(%rbp)
	sete	%al
	movzbl	%al, %eax
	movl	%eax, -36(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L15
	movl	$0, -32(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L16
.L18:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L17
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$203, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -32(%rbp)
.L17:
	addl	$1, -52(%rbp)
.L16:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L18
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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:
