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

```c
/*
cat <<EOF >mistaken-paste
*/

#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>

#define BIG 2000000007
#define VERYBIG 200000000000007LL

#define MOD 1000000007
typedef uint64_t ull;
typedef  int64_t sll;

#define N_MAX 200000
#define M_MAX 200000

typedef struct {
	int32_t a;
	int32_t b;
} hw;

typedef struct {
	sll a;
	sll b;
} hwll;

typedef struct {
	hwll a;
	hwll b;
} linell;


typedef struct {
	ull s;
	ull t;
	int32_t c;
} struct_a;

typedef struct {
	int32_t from;
	int32_t to;
	sll cost;
} struct_b;

ull n, m;
ull h, w;
ull k;
ull q;
ull vua, vub, vuc, vud, vue, vuf;
sll vsa, vsb, vsc, vsd, vse, vsf;
long double vra, vrb, vrc;
double vda, vdb, vdc;
size_t slen;
size_t tlen;
char ch, dh;

ull umax (ull x, ull y) {
	return (x > y) ? x : y;
}

char s[401];

ull dp[305][305][305];

ull solve () {
	sll i, j, ki, li;
	// ull result = 0;
	sll result = 0;
	double dresult = 0;
	// ull maybe = 0;
	sll maybe = 0;
	// ull sum = 0;
	sll sum = 0;
	sll item;
	ull *dpcell;

	n = strlen(s);
	for (j = 0; j <= n; j++) {
		for (i = 0; i + j <= n; i++) {
			for (ki = 0; ki <= k; ki++) {
				if (j == 0) {
					dp[i][j][ki] = 0;
					continue;
				}
				if (j == 1) {
					dp[i][j][ki] = 1;
					continue;
				}

				bool isaddable = (s[i] == s[i + j - 1]);
				maybe = umax(umax(dp[i][j - 1][ki], dp[i + 1][j - 1][ki]), dp[i + 1][j - 2][ki] + (isaddable ? 2 : 0));
				if (!isaddable && ki) {
					maybe = umax(maybe, dp[i + 1][j - 2][ki - 1] + 2);
				}

				dp[i][j][ki] = maybe;
				// printf("%lld/%lld/%lld: %lld\n", i, j, ki, maybe);
			}
		}
	}

	result = 0;
	for (ki = 0; ki <= k; ki++) {
		result = umax(result, dp[0][n][ki]);
	}

	printf("%lld\n", result);

	return 0;
}

int32_t main (void) {
	int32_t i, j;
	int32_t x, y;

	scanf("%s", s);
	scanf("%llu", &k);

	solve();

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	m
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	q
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	vua
	.align 8
	.type	vua, @object
	.size	vua, 8
vua:
	.zero	8
	.globl	vub
	.align 8
	.type	vub, @object
	.size	vub, 8
vub:
	.zero	8
	.globl	vuc
	.align 8
	.type	vuc, @object
	.size	vuc, 8
vuc:
	.zero	8
	.globl	vud
	.align 8
	.type	vud, @object
	.size	vud, 8
vud:
	.zero	8
	.globl	vue
	.align 8
	.type	vue, @object
	.size	vue, 8
vue:
	.zero	8
	.globl	vuf
	.align 8
	.type	vuf, @object
	.size	vuf, 8
vuf:
	.zero	8
	.globl	vsa
	.align 8
	.type	vsa, @object
	.size	vsa, 8
vsa:
	.zero	8
	.globl	vsb
	.align 8
	.type	vsb, @object
	.size	vsb, 8
vsb:
	.zero	8
	.globl	vsc
	.align 8
	.type	vsc, @object
	.size	vsc, 8
vsc:
	.zero	8
	.globl	vsd
	.align 8
	.type	vsd, @object
	.size	vsd, 8
vsd:
	.zero	8
	.globl	vse
	.align 8
	.type	vse, @object
	.size	vse, 8
vse:
	.zero	8
	.globl	vsf
	.align 8
	.type	vsf, @object
	.size	vsf, 8
vsf:
	.zero	8
	.globl	vra
	.align 16
	.type	vra, @object
	.size	vra, 16
vra:
	.zero	16
	.globl	vrb
	.align 16
	.type	vrb, @object
	.size	vrb, 16
vrb:
	.zero	16
	.globl	vrc
	.align 16
	.type	vrc, @object
	.size	vrc, 16
vrc:
	.zero	16
	.globl	vda
	.align 8
	.type	vda, @object
	.size	vda, 8
vda:
	.zero	8
	.globl	vdb
	.align 8
	.type	vdb, @object
	.size	vdb, 8
vdb:
	.zero	8
	.globl	vdc
	.align 8
	.type	vdc, @object
	.size	vdc, 8
vdc:
	.zero	8
	.globl	slen
	.align 8
	.type	slen, @object
	.size	slen, 8
slen:
	.zero	8
	.globl	tlen
	.align 8
	.type	tlen, @object
	.size	tlen, 8
tlen:
	.zero	8
	.globl	ch
	.type	ch, @object
	.size	ch, 1
ch:
	.zero	1
	.globl	dh
	.type	dh, @object
	.size	dh, 1
dh:
	.zero	1
	.text
	.globl	umax
	.type	umax, @function
umax:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	umax, .-umax
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 401
s:
	.zero	401
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 226981000
dp:
	.zero	226981000
	.section	.rodata
.LC1:
	.string	"%lld\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB7:
	.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	$72, %rsp
	.cfi_offset 3, -24
	movq	$0, -48(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -24(%rbp)
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, n(%rip)
	movq	$0, -64(%rbp)
	jmp	.L4
.L15:
	movq	$0, -72(%rbp)
	jmp	.L5
.L14:
	movq	$0, -56(%rbp)
	jmp	.L6
.L13:
	cmpq	$0, -64(%rbp)
	jne	.L7
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	imulq	$305, %rdx, %rdx
	imulq	$93025, %rax, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L8
.L7:
	cmpq	$1, -64(%rbp)
	jne	.L9
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	imulq	$305, %rdx, %rdx
	imulq	$93025, %rax, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L8
.L9:
	leaq	s(%rip), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rax
	addq	%rcx, %rax
	leaq	-1(%rax), %rcx
	leaq	s(%rip), %rax
	movzbl	(%rcx,%rax), %eax
	cmpb	%al, %dl
	sete	%al
	movb	%al, -73(%rbp)
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	subq	$2, %rax
	imulq	$305, %rax, %rcx
	imulq	$93025, %rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpb	$0, -73(%rbp)
	je	.L10
	movl	$2, %edx
	jmp	.L11
.L10:
	movl	$0, %edx
.L11:
	leaq	(%rdx,%rax), %rbx
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	$305, %rax, %rcx
	imulq	$93025, %rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-64(%rbp), %rax
	leaq	-1(%rax), %rcx
	movq	-72(%rbp), %rax
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rax, %rax
	addq	%rax, %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -40(%rbp)
	movzbl	-73(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L12
	cmpq	$0, -56(%rbp)
	je	.L12
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	leaq	-2(%rax), %rcx
	movq	-56(%rbp), %rax
	leaq	-1(%rax), %rsi
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rdx, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	2(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -40(%rbp)
.L12:
	movq	-40(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	-72(%rbp), %rdx
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rdx, %rdx
	addq	%rdx, %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L8:
	addq	$1, -56(%rbp)
.L6:
	movq	-56(%rbp), %rdx
	movq	k(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L13
	addq	$1, -72(%rbp)
.L5:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L14
	addq	$1, -64(%rbp)
.L4:
	movq	-64(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L15
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L16
.L17:
	movq	n(%rip), %rax
	imulq	$305, %rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -48(%rbp)
	addq	$1, -56(%rbp)
.L16:
	movq	-56(%rbp), %rdx
	movq	k(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L17
	movq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	solve, .-solve
	.section	.rodata
.LC2:
	.string	"%s"
.LC3:
	.string	"%llu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	k(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	call	solve
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	umax
	.type	umax, @function
umax:
.LFB51:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovnb	%rsi, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	umax, .-umax
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	s(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	call	strlen@PLT
	movq	k(%rip), %rbx
	leaq	dp(%rip), %rcx
	movdqa	.LC0(%rip), %xmm0
	movq	%rax, (%rsp)
	leaq	1(%rbx), %r12
	movq	%rax, n(%rip)
	addq	$1, %rax
	movq	%rax, 56(%rsp)
	leaq	0(,%r12,8), %rax
	movq	%rax, 24(%rsp)
	movq	%r12, %rax
	shrq	%rax
	movq	%rbx, 32(%rsp)
	salq	$4, %rax
	movq	%rcx, 8(%rsp)
	movq	%rax, 48(%rsp)
	movq	%r12, %rax
	andq	$-2, %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	cmpq	%r14, (%rsp)
	jb	.L5
	leaq	s(%rip), %r15
	leaq	2440+dp(%rip), %r8
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	$-744200, %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r13, %rax
	addq	$1, %r13
	testq	%r14, %r14
	je	.L27
	cmpq	$1, %r14
	je	.L8
	movq	8(%rsp), %rax
	movzbl	-1(%r15,%r14), %r11d
	xorl	%ecx, %ecx
	movzbl	(%r15), %r10d
	leaq	-4888(%rax), %rdx
	subq	%rbp, %rdx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	cmpq	%rdi, %rax
	cmovb	%rdi, %rax
	testq	%rcx, %rcx
	je	.L10
	movq	(%rdx), %rdi
	addq	$2, %rdi
	cmpq	%rdi, %rax
	cmovb	%rdi, %rax
.L10:
	addq	$1, %rcx
	movq	%rax, 4888(%rsi,%rbx)
	addq	$8, %rdx
	cmpq	%r12, %rcx
	je	.L7
.L11:
	leaq	(%rdx,%rbp), %rsi
	movq	8(%rdx), %rax
	movq	2448(%rdx), %r9
	movq	2448(%rsi,%rbx), %rdi
	cmpb	%r10b, %r11b
	jne	.L28
	addq	$2, %rax
	cmpq	%rdi, %rax
	cmovb	%rdi, %rax
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	cmpq	$0, 32(%rsp)
	je	.L18
	movq	48(%rsp), %rsi
	movq	%r8, %rdx
	leaq	(%rsi,%r8), %rcx
	.p2align 4,,10
	.p2align 3
.L13:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L13
	movq	40(%rsp), %rdx
	cmpq	%r12, %rdx
	je	.L7
.L12:
	imulq	$93025, %rax, %rax
	leaq	dp(%rip), %rsi
	leaq	305(%rdx,%rax), %rax
	movq	$1, (%rsi,%rax,8)
.L7:
	subq	$744200, %rbp
	addq	$1, %r15
	addq	$744200, %rbx
	addq	$744200, %r8
	leaq	0(%r13,%r14), %rax
	cmpq	%rax, (%rsp)
	jnb	.L16
.L5:
	addq	$2440, 8(%rsp)
	addq	$1, %r14
	cmpq	56(%rsp), %r14
	jne	.L4
	imulq	$2440, (%rsp), %rax
	leaq	dp(%rip), %rbx
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	addq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movq	(%rax,%rdx,8), %rcx
	cmpq	%rcx, %r8
	cmovb	%rcx, %r8
	addq	$1, %rdx
	cmpq	%rdx, %r12
	jne	.L17
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movq	24(%rsp), %rdx
	leaq	-2440(%r8), %rdi
	xorl	%esi, %esi
	movq	%r8, 16(%rsp)
	call	memset@PLT
	movq	16(%rsp), %r8
	movdqa	.LC0(%rip), %xmm0
	jmp	.L7
.L18:
	xorl	%edx, %edx
	jmp	.L12
	.cfi_endproc
.LFE52:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"%llu"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	s(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	k(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	call	solve
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 226981000
dp:
	.zero	226981000
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 401
s:
	.zero	401
	.globl	dh
	.type	dh, @object
	.size	dh, 1
dh:
	.zero	1
	.globl	ch
	.type	ch, @object
	.size	ch, 1
ch:
	.zero	1
	.globl	tlen
	.align 8
	.type	tlen, @object
	.size	tlen, 8
tlen:
	.zero	8
	.globl	slen
	.align 8
	.type	slen, @object
	.size	slen, 8
slen:
	.zero	8
	.globl	vdc
	.align 8
	.type	vdc, @object
	.size	vdc, 8
vdc:
	.zero	8
	.globl	vdb
	.align 8
	.type	vdb, @object
	.size	vdb, 8
vdb:
	.zero	8
	.globl	vda
	.align 8
	.type	vda, @object
	.size	vda, 8
vda:
	.zero	8
	.globl	vrc
	.align 16
	.type	vrc, @object
	.size	vrc, 16
vrc:
	.zero	16
	.globl	vrb
	.align 16
	.type	vrb, @object
	.size	vrb, 16
vrb:
	.zero	16
	.globl	vra
	.align 16
	.type	vra, @object
	.size	vra, 16
vra:
	.zero	16
	.globl	vsf
	.align 8
	.type	vsf, @object
	.size	vsf, 8
vsf:
	.zero	8
	.globl	vse
	.align 8
	.type	vse, @object
	.size	vse, 8
vse:
	.zero	8
	.globl	vsd
	.align 8
	.type	vsd, @object
	.size	vsd, 8
vsd:
	.zero	8
	.globl	vsc
	.align 8
	.type	vsc, @object
	.size	vsc, 8
vsc:
	.zero	8
	.globl	vsb
	.align 8
	.type	vsb, @object
	.size	vsb, 8
vsb:
	.zero	8
	.globl	vsa
	.align 8
	.type	vsa, @object
	.size	vsa, 8
vsa:
	.zero	8
	.globl	vuf
	.align 8
	.type	vuf, @object
	.size	vuf, 8
vuf:
	.zero	8
	.globl	vue
	.align 8
	.type	vue, @object
	.size	vue, 8
vue:
	.zero	8
	.globl	vud
	.align 8
	.type	vud, @object
	.size	vud, 8
vud:
	.zero	8
	.globl	vuc
	.align 8
	.type	vuc, @object
	.size	vuc, 8
vuc:
	.zero	8
	.globl	vub
	.align 8
	.type	vub, @object
	.size	vub, 8
vub:
	.zero	8
	.globl	vua
	.align 8
	.type	vua, @object
	.size	vua, 8
vua:
	.zero	8
	.globl	q
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	m
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.quad	1
	.quad	1
	.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	umax
	.type	umax, @function
umax:
.LFB51:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovnb	%rsi, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	umax, .-umax
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	s(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	call	strlen@PLT
	movq	k(%rip), %rbx
	leaq	dp(%rip), %rcx
	movdqa	.LC0(%rip), %xmm0
	movq	%rax, (%rsp)
	leaq	1(%rbx), %r12
	movq	%rax, n(%rip)
	addq	$1, %rax
	movq	%rax, 56(%rsp)
	leaq	0(,%r12,8), %rax
	movq	%rax, 24(%rsp)
	movq	%r12, %rax
	shrq	%rax
	movq	%rbx, 32(%rsp)
	salq	$4, %rax
	movq	%rcx, 8(%rsp)
	movq	%rax, 48(%rsp)
	movq	%r12, %rax
	andq	$-2, %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	cmpq	%r14, (%rsp)
	jb	.L5
	leaq	s(%rip), %r15
	leaq	2440+dp(%rip), %r8
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	$-744200, %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r13, %rax
	addq	$1, %r13
	testq	%r14, %r14
	je	.L27
	cmpq	$1, %r14
	je	.L8
	movq	8(%rsp), %rax
	movzbl	-1(%r15,%r14), %r11d
	xorl	%ecx, %ecx
	movzbl	(%r15), %r10d
	leaq	-4888(%rax), %rdx
	subq	%rbp, %rdx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	cmpq	%rdi, %rax
	cmovb	%rdi, %rax
	testq	%rcx, %rcx
	je	.L10
	movq	(%rdx), %rdi
	addq	$2, %rdi
	cmpq	%rdi, %rax
	cmovb	%rdi, %rax
.L10:
	addq	$1, %rcx
	movq	%rax, 4888(%rsi,%rbx)
	addq	$8, %rdx
	cmpq	%r12, %rcx
	je	.L7
.L11:
	leaq	(%rdx,%rbp), %rsi
	movq	8(%rdx), %rax
	movq	2448(%rdx), %r9
	movq	2448(%rsi,%rbx), %rdi
	cmpb	%r10b, %r11b
	jne	.L28
	addq	$2, %rax
	cmpq	%rdi, %rax
	cmovb	%rdi, %rax
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	cmpq	$0, 32(%rsp)
	je	.L18
	movq	48(%rsp), %rsi
	movq	%r8, %rdx
	leaq	(%rsi,%r8), %rcx
	.p2align 4,,10
	.p2align 3
.L13:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L13
	movq	40(%rsp), %rdx
	cmpq	%r12, %rdx
	je	.L7
.L12:
	imulq	$93025, %rax, %rax
	leaq	dp(%rip), %rsi
	leaq	305(%rdx,%rax), %rax
	movq	$1, (%rsi,%rax,8)
.L7:
	subq	$744200, %rbp
	addq	$1, %r15
	addq	$744200, %rbx
	addq	$744200, %r8
	leaq	0(%r13,%r14), %rax
	cmpq	%rax, (%rsp)
	jnb	.L16
.L5:
	addq	$2440, 8(%rsp)
	addq	$1, %r14
	cmpq	56(%rsp), %r14
	jne	.L4
	imulq	$2440, (%rsp), %rax
	leaq	dp(%rip), %rbx
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	addq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movq	(%rax,%rdx,8), %rcx
	cmpq	%rcx, %r8
	cmovb	%rcx, %r8
	addq	$1, %rdx
	cmpq	%rdx, %r12
	jne	.L17
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movq	24(%rsp), %rdx
	leaq	-2440(%r8), %rdi
	xorl	%esi, %esi
	movq	%r8, 16(%rsp)
	call	memset@PLT
	movq	16(%rsp), %r8
	movdqa	.LC0(%rip), %xmm0
	jmp	.L7
.L18:
	xorl	%edx, %edx
	jmp	.L12
	.cfi_endproc
.LFE52:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"%llu"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	s(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	k(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	call	solve
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 226981000
dp:
	.zero	226981000
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 401
s:
	.zero	401
	.globl	dh
	.type	dh, @object
	.size	dh, 1
dh:
	.zero	1
	.globl	ch
	.type	ch, @object
	.size	ch, 1
ch:
	.zero	1
	.globl	tlen
	.align 8
	.type	tlen, @object
	.size	tlen, 8
tlen:
	.zero	8
	.globl	slen
	.align 8
	.type	slen, @object
	.size	slen, 8
slen:
	.zero	8
	.globl	vdc
	.align 8
	.type	vdc, @object
	.size	vdc, 8
vdc:
	.zero	8
	.globl	vdb
	.align 8
	.type	vdb, @object
	.size	vdb, 8
vdb:
	.zero	8
	.globl	vda
	.align 8
	.type	vda, @object
	.size	vda, 8
vda:
	.zero	8
	.globl	vrc
	.align 16
	.type	vrc, @object
	.size	vrc, 16
vrc:
	.zero	16
	.globl	vrb
	.align 16
	.type	vrb, @object
	.size	vrb, 16
vrb:
	.zero	16
	.globl	vra
	.align 16
	.type	vra, @object
	.size	vra, 16
vra:
	.zero	16
	.globl	vsf
	.align 8
	.type	vsf, @object
	.size	vsf, 8
vsf:
	.zero	8
	.globl	vse
	.align 8
	.type	vse, @object
	.size	vse, 8
vse:
	.zero	8
	.globl	vsd
	.align 8
	.type	vsd, @object
	.size	vsd, 8
vsd:
	.zero	8
	.globl	vsc
	.align 8
	.type	vsc, @object
	.size	vsc, 8
vsc:
	.zero	8
	.globl	vsb
	.align 8
	.type	vsb, @object
	.size	vsb, 8
vsb:
	.zero	8
	.globl	vsa
	.align 8
	.type	vsa, @object
	.size	vsa, 8
vsa:
	.zero	8
	.globl	vuf
	.align 8
	.type	vuf, @object
	.size	vuf, 8
vuf:
	.zero	8
	.globl	vue
	.align 8
	.type	vue, @object
	.size	vue, 8
vue:
	.zero	8
	.globl	vud
	.align 8
	.type	vud, @object
	.size	vud, 8
vud:
	.zero	8
	.globl	vuc
	.align 8
	.type	vuc, @object
	.size	vuc, 8
vuc:
	.zero	8
	.globl	vub
	.align 8
	.type	vub, @object
	.size	vub, 8
vub:
	.zero	8
	.globl	vua
	.align 8
	.type	vua, @object
	.size	vua, 8
vua:
	.zero	8
	.globl	q
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	m
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.quad	1
	.quad	1
	.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:

/*
cat <<EOF >mistaken-paste
*/

#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>

#define BIG 2000000007
#define VERYBIG 200000000000007LL

#define MOD 1000000007
typedef uint64_t ull;
typedef  int64_t sll;

#define N_MAX 200000
#define M_MAX 200000

typedef struct {
	int32_t a;
	int32_t b;
} hw;

typedef struct {
	sll a;
	sll b;
} hwll;

typedef struct {
	hwll a;
	hwll b;
} linell;


typedef struct {
	ull s;
	ull t;
	int32_t c;
} struct_a;

typedef struct {
	int32_t from;
	int32_t to;
	sll cost;
} struct_b;

ull n, m;
ull h, w;
ull k;
ull q;
ull vua, vub, vuc, vud, vue, vuf;
sll vsa, vsb, vsc, vsd, vse, vsf;
long double vra, vrb, vrc;
double vda, vdb, vdc;
size_t slen;
size_t tlen;
char ch, dh;

ull umax (ull x, ull y) {
	return (x > y) ? x : y;
}

char s[401];

ull dp[305][305][305];

ull solve () {
	sll i, j, ki, li;
	// ull result = 0;
	sll result = 0;
	double dresult = 0;
	// ull maybe = 0;
	sll maybe = 0;
	// ull sum = 0;
	sll sum = 0;
	sll item;
	ull *dpcell;

	n = strlen(s);
	for (j = 0; j <= n; j++) {
		for (i = 0; i + j <= n; i++) {
			for (ki = 0; ki <= k; ki++) {
				if (j == 0) {
					dp[i][j][ki] = 0;
					continue;
				}
				if (j == 1) {
					dp[i][j][ki] = 1;
					continue;
				}

				bool isaddable = (s[i] == s[i + j - 1]);
				maybe = umax(umax(dp[i][j - 1][ki], dp[i + 1][j - 1][ki]), dp[i + 1][j - 2][ki] + (isaddable ? 2 : 0));
				if (!isaddable && ki) {
					maybe = umax(maybe, dp[i + 1][j - 2][ki - 1] + 2);
				}

				dp[i][j][ki] = maybe;
				// printf("%lld/%lld/%lld: %lld\n", i, j, ki, maybe);
			}
		}
	}

	result = 0;
	for (ki = 0; ki <= k; ki++) {
		result = umax(result, dp[0][n][ki]);
	}

	printf("%lld\n", result);

	return 0;
}

int32_t main (void) {
	int32_t i, j;
	int32_t x, y;

	scanf("%s", s);
	scanf("%llu", &k);

	solve();

	return 0;
}

abcabbacc
1
 tsetnocdnargredocta
3
 abcabbacc
0
 tsetnocdnargredocta
0
 abcabbbcc
0
 tsetnocdnargredocta
2
 tsetnocdnargredocta
1
 tsetntcdnargredocoa
0
 atcodergrandcontest
6
 atcodergrandcontest
5

8
 15
 6
 9
 5
 13
 11
 7
 17
 16

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

```c
/*
cat <<EOF >mistaken-paste
*/

#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>

#define BIG 2000000007
#define VERYBIG 200000000000007LL

#define MOD 1000000007
typedef uint64_t ull;
typedef  int64_t sll;

#define N_MAX 200000
#define M_MAX 200000

typedef struct {
	int32_t a;
	int32_t b;
} hw;

typedef struct {
	sll a;
	sll b;
} hwll;

typedef struct {
	hwll a;
	hwll b;
} linell;


typedef struct {
	ull s;
	ull t;
	int32_t c;
} struct_a;

typedef struct {
	int32_t from;
	int32_t to;
	sll cost;
} struct_b;

ull n, m;
ull h, w;
ull k;
ull q;
ull vua, vub, vuc, vud, vue, vuf;
sll vsa, vsb, vsc, vsd, vse, vsf;
long double vra, vrb, vrc;
double vda, vdb, vdc;
size_t slen;
size_t tlen;
char ch, dh;

ull umax (ull x, ull y) {
	return (x > y) ? x : y;
}

char s[401];

ull dp[305][305][305];

ull solve () {
	sll i, j, ki, li;
	// ull result = 0;
	sll result = 0;
	double dresult = 0;
	// ull maybe = 0;
	sll maybe = 0;
	// ull sum = 0;
	sll sum = 0;
	sll item;
	ull *dpcell;

	n = strlen(s);
	for (j = 0; j <= n; j++) {
		for (i = 0; i + j <= n; i++) {
			for (ki = 0; ki <= k; ki++) {
				if (j == 0) {
					dp[i][j][ki] = 0;
					continue;
				}
				if (j == 1) {
					dp[i][j][ki] = 1;
					continue;
				}

				bool isaddable = (s[i] == s[i + j - 1]);
				maybe = umax(umax(dp[i][j - 1][ki], dp[i + 1][j - 1][ki]), dp[i + 1][j - 2][ki] + (isaddable ? 2 : 0));
				if (!isaddable && ki) {
					maybe = umax(maybe, dp[i + 1][j - 2][ki - 1] + 2);
				}

				dp[i][j][ki] = maybe;
				// printf("%lld/%lld/%lld: %lld\n", i, j, ki, maybe);
			}
		}
	}

	result = 0;
	for (ki = 0; ki <= k; ki++) {
		result = umax(result, dp[0][n][ki]);
	}

	printf("%lld\n", result);

	return 0;
}

int32_t main (void) {
	int32_t i, j;
	int32_t x, y;

	scanf("%s", s);
	scanf("%llu", &k);

	solve();

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	m
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	q
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	vua
	.align 8
	.type	vua, @object
	.size	vua, 8
vua:
	.zero	8
	.globl	vub
	.align 8
	.type	vub, @object
	.size	vub, 8
vub:
	.zero	8
	.globl	vuc
	.align 8
	.type	vuc, @object
	.size	vuc, 8
vuc:
	.zero	8
	.globl	vud
	.align 8
	.type	vud, @object
	.size	vud, 8
vud:
	.zero	8
	.globl	vue
	.align 8
	.type	vue, @object
	.size	vue, 8
vue:
	.zero	8
	.globl	vuf
	.align 8
	.type	vuf, @object
	.size	vuf, 8
vuf:
	.zero	8
	.globl	vsa
	.align 8
	.type	vsa, @object
	.size	vsa, 8
vsa:
	.zero	8
	.globl	vsb
	.align 8
	.type	vsb, @object
	.size	vsb, 8
vsb:
	.zero	8
	.globl	vsc
	.align 8
	.type	vsc, @object
	.size	vsc, 8
vsc:
	.zero	8
	.globl	vsd
	.align 8
	.type	vsd, @object
	.size	vsd, 8
vsd:
	.zero	8
	.globl	vse
	.align 8
	.type	vse, @object
	.size	vse, 8
vse:
	.zero	8
	.globl	vsf
	.align 8
	.type	vsf, @object
	.size	vsf, 8
vsf:
	.zero	8
	.globl	vra
	.align 16
	.type	vra, @object
	.size	vra, 16
vra:
	.zero	16
	.globl	vrb
	.align 16
	.type	vrb, @object
	.size	vrb, 16
vrb:
	.zero	16
	.globl	vrc
	.align 16
	.type	vrc, @object
	.size	vrc, 16
vrc:
	.zero	16
	.globl	vda
	.align 8
	.type	vda, @object
	.size	vda, 8
vda:
	.zero	8
	.globl	vdb
	.align 8
	.type	vdb, @object
	.size	vdb, 8
vdb:
	.zero	8
	.globl	vdc
	.align 8
	.type	vdc, @object
	.size	vdc, 8
vdc:
	.zero	8
	.globl	slen
	.align 8
	.type	slen, @object
	.size	slen, 8
slen:
	.zero	8
	.globl	tlen
	.align 8
	.type	tlen, @object
	.size	tlen, 8
tlen:
	.zero	8
	.globl	ch
	.type	ch, @object
	.size	ch, 1
ch:
	.zero	1
	.globl	dh
	.type	dh, @object
	.size	dh, 1
dh:
	.zero	1
	.text
	.globl	umax
	.type	umax, @function
umax:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	umax, .-umax
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 401
s:
	.zero	401
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 226981000
dp:
	.zero	226981000
	.section	.rodata
.LC1:
	.string	"%lld\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB7:
	.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	$72, %rsp
	.cfi_offset 3, -24
	movq	$0, -48(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -24(%rbp)
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, n(%rip)
	movq	$0, -64(%rbp)
	jmp	.L4
.L15:
	movq	$0, -72(%rbp)
	jmp	.L5
.L14:
	movq	$0, -56(%rbp)
	jmp	.L6
.L13:
	cmpq	$0, -64(%rbp)
	jne	.L7
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	imulq	$305, %rdx, %rdx
	imulq	$93025, %rax, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L8
.L7:
	cmpq	$1, -64(%rbp)
	jne	.L9
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	imulq	$305, %rdx, %rdx
	imulq	$93025, %rax, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L8
.L9:
	leaq	s(%rip), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rax
	addq	%rcx, %rax
	leaq	-1(%rax), %rcx
	leaq	s(%rip), %rax
	movzbl	(%rcx,%rax), %eax
	cmpb	%al, %dl
	sete	%al
	movb	%al, -73(%rbp)
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	subq	$2, %rax
	imulq	$305, %rax, %rcx
	imulq	$93025, %rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpb	$0, -73(%rbp)
	je	.L10
	movl	$2, %edx
	jmp	.L11
.L10:
	movl	$0, %edx
.L11:
	leaq	(%rdx,%rax), %rbx
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	$305, %rax, %rcx
	imulq	$93025, %rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-64(%rbp), %rax
	leaq	-1(%rax), %rcx
	movq	-72(%rbp), %rax
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rax, %rax
	addq	%rax, %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -40(%rbp)
	movzbl	-73(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L12
	cmpq	$0, -56(%rbp)
	je	.L12
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	leaq	-2(%rax), %rcx
	movq	-56(%rbp), %rax
	leaq	-1(%rax), %rsi
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rdx, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	2(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -40(%rbp)
.L12:
	movq	-40(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	-72(%rbp), %rdx
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rdx, %rdx
	addq	%rdx, %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L8:
	addq	$1, -56(%rbp)
.L6:
	movq	-56(%rbp), %rdx
	movq	k(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L13
	addq	$1, -72(%rbp)
.L5:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L14
	addq	$1, -64(%rbp)
.L4:
	movq	-64(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L15
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L16
.L17:
	movq	n(%rip), %rax
	imulq	$305, %rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -48(%rbp)
	addq	$1, -56(%rbp)
.L16:
	movq	-56(%rbp), %rdx
	movq	k(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L17
	movq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	solve, .-solve
	.section	.rodata
.LC2:
	.string	"%s"
.LC3:
	.string	"%llu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	k(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	call	solve
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	m
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.zero	8
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	w
	.align 8
	.type	w, @object
	.size	w, 8
w:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	q
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	vua
	.align 8
	.type	vua, @object
	.size	vua, 8
vua:
	.zero	8
	.globl	vub
	.align 8
	.type	vub, @object
	.size	vub, 8
vub:
	.zero	8
	.globl	vuc
	.align 8
	.type	vuc, @object
	.size	vuc, 8
vuc:
	.zero	8
	.globl	vud
	.align 8
	.type	vud, @object
	.size	vud, 8
vud:
	.zero	8
	.globl	vue
	.align 8
	.type	vue, @object
	.size	vue, 8
vue:
	.zero	8
	.globl	vuf
	.align 8
	.type	vuf, @object
	.size	vuf, 8
vuf:
	.zero	8
	.globl	vsa
	.align 8
	.type	vsa, @object
	.size	vsa, 8
vsa:
	.zero	8
	.globl	vsb
	.align 8
	.type	vsb, @object
	.size	vsb, 8
vsb:
	.zero	8
	.globl	vsc
	.align 8
	.type	vsc, @object
	.size	vsc, 8
vsc:
	.zero	8
	.globl	vsd
	.align 8
	.type	vsd, @object
	.size	vsd, 8
vsd:
	.zero	8
	.globl	vse
	.align 8
	.type	vse, @object
	.size	vse, 8
vse:
	.zero	8
	.globl	vsf
	.align 8
	.type	vsf, @object
	.size	vsf, 8
vsf:
	.zero	8
	.globl	vra
	.align 16
	.type	vra, @object
	.size	vra, 16
vra:
	.zero	16
	.globl	vrb
	.align 16
	.type	vrb, @object
	.size	vrb, 16
vrb:
	.zero	16
	.globl	vrc
	.align 16
	.type	vrc, @object
	.size	vrc, 16
vrc:
	.zero	16
	.globl	vda
	.align 8
	.type	vda, @object
	.size	vda, 8
vda:
	.zero	8
	.globl	vdb
	.align 8
	.type	vdb, @object
	.size	vdb, 8
vdb:
	.zero	8
	.globl	vdc
	.align 8
	.type	vdc, @object
	.size	vdc, 8
vdc:
	.zero	8
	.globl	slen
	.align 8
	.type	slen, @object
	.size	slen, 8
slen:
	.zero	8
	.globl	tlen
	.align 8
	.type	tlen, @object
	.size	tlen, 8
tlen:
	.zero	8
	.globl	ch
	.type	ch, @object
	.size	ch, 1
ch:
	.zero	1
	.globl	dh
	.type	dh, @object
	.size	dh, 1
dh:
	.zero	1
	.text
	.globl	umax
	.type	umax, @function
umax:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	umax, .-umax
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 401
s:
	.zero	401
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 226981000
dp:
	.zero	226981000
	.section	.rodata
.LC1:
	.string	"%lld\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB7:
	.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	$72, %rsp
	.cfi_offset 3, -24
	movq	$0, -48(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -24(%rbp)
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, n(%rip)
	movq	$0, -64(%rbp)
	jmp	.L4
.L15:
	movq	$0, -72(%rbp)
	jmp	.L5
.L14:
	movq	$0, -56(%rbp)
	jmp	.L6
.L13:
	cmpq	$0, -64(%rbp)
	jne	.L7
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	imulq	$305, %rdx, %rdx
	imulq	$93025, %rax, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L8
.L7:
	cmpq	$1, -64(%rbp)
	jne	.L9
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	imulq	$305, %rdx, %rdx
	imulq	$93025, %rax, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L8
.L9:
	leaq	s(%rip), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rax
	addq	%rcx, %rax
	leaq	-1(%rax), %rcx
	leaq	s(%rip), %rax
	movzbl	(%rcx,%rax), %eax
	cmpb	%al, %dl
	sete	%al
	movb	%al, -73(%rbp)
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	subq	$2, %rax
	imulq	$305, %rax, %rcx
	imulq	$93025, %rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpb	$0, -73(%rbp)
	je	.L10
	movl	$2, %edx
	jmp	.L11
.L10:
	movl	$0, %edx
.L11:
	leaq	(%rdx,%rax), %rbx
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	subq	$1, %rax
	imulq	$305, %rax, %rcx
	imulq	$93025, %rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-64(%rbp), %rax
	leaq	-1(%rax), %rcx
	movq	-72(%rbp), %rax
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rax, %rax
	addq	%rax, %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -40(%rbp)
	movzbl	-73(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L12
	cmpq	$0, -56(%rbp)
	je	.L12
	movq	-72(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-64(%rbp), %rax
	leaq	-2(%rax), %rcx
	movq	-56(%rbp), %rax
	leaq	-1(%rax), %rsi
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rdx, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	2(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -40(%rbp)
.L12:
	movq	-40(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	-72(%rbp), %rdx
	imulq	$305, %rcx, %rcx
	imulq	$93025, %rdx, %rdx
	addq	%rdx, %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L8:
	addq	$1, -56(%rbp)
.L6:
	movq	-56(%rbp), %rdx
	movq	k(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L13
	addq	$1, -72(%rbp)
.L5:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L14
	addq	$1, -64(%rbp)
.L4:
	movq	-64(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L15
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L16
.L17:
	movq	n(%rip), %rax
	imulq	$305, %rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	umax
	movq	%rax, -48(%rbp)
	addq	$1, -56(%rbp)
.L16:
	movq	-56(%rbp), %rdx
	movq	k(%rip), %rax
	cmpq	%rax, %rdx
	jbe	.L17
	movq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	solve, .-solve
	.section	.rodata
.LC2:
	.string	"%s"
.LC3:
	.string	"%llu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	k(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	call	solve
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
