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"

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

#define BIG 2000000007
#define VERYBIG 200000000000007LL

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

#define N_MAX 10000
#define M_MAX 400

#ifdef __cplusplus
#include <queue>
#include <stack>
#include <tuple>

using namespace std; // I'm NOT gonna use C++ without compro. shit

typedef priority_queue<ull, vector<ull>, greater<ull> > upque123;
typedef priority_queue<ull, vector<ull> > upque321;
typedef priority_queue<sll, vector<sll>, greater<sll> > spque123;
typedef priority_queue<sll, vector<sll> > spque321;

#endif

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;



const hw vector8[8] = {
	{-1, -1},
	{-1,  0},
	{-1, +1},
	{ 0, -1},
	{ 0, +1},
	{+1, -1},
	{+1,  0},
	{+1, +1}
};

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;


int32_t charcomp (const char left, const char right) {
	if (left < right) {
		return -1;
	} else if (left > right) {
		return +1;
	} else {
		return 0;
	}
}


sll dist[N_MAX];
struct_b path[M_MAX * 2];

char s[N_MAX + 1][M_MAX + 1];
char t[N_MAX + 1];

ull alphabets[26];

bool isfaster[N_MAX];
bool islater[N_MAX];

double distance (sll x1, sll y1, sll x2, sll y2) {
	double xdist2, ydist2, origindist, dist;

	xdist2 = (x1 - x2) * (x1 - x2);
	ydist2 = (y1 - y2) * (y1 - y2);
	return sqrt(xdist2 + ydist2);
}

ull solve () {
	sll i, j, ki, l;
	ull result = 0;
	ull maybe = 0;
	ull sum = 0;
	ull item;
	ull *dpcell;
	// qsortの際には"p"ullcompを使う

	for (i = 0; i < n; i++) {
		j = 0;
		while (true) {
			if (s[i][j] == '?') {
				if (!t[j]) {
					isfaster[i] = true;
					break;
				}

				if (t[j] == 'a') {
					isfaster[j] = true;
				} else if (t[j] == 'z') {
					islater[j] = true;
				} else {
					isfaster[i] = islater[i] = true;
					break;
				}
			} else {
				int c = charcomp(s[i][j], t[j]);
				if (c > 0) {
					isfaster[i] = true;
					break;
				}
				if (c < 0) {
					islater[i] = true;
					break;
				}
				if (!s[i][j] && !t[j]) {
					isfaster[i] = islater[i] = true;
					break;
				}
			}

			j++;
		}
	}

	ull minval = 1, maxval = n + 1;
	for (i = 0; i < n; i++) {
		if (!isfaster[i]) minval++;
		if (!islater[i]) maxval--;
	}

	for (i = minval; i <= maxval; i++) {
		printf("%llu%c", i, (i == maxval ? '\n' : ' '));
	}


	return 0;
}

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

	scanf("%llu", &n, &m);
	for (i = 0; i < n; i++) {
		scanf("%s", s[i]);
	}
	scanf("%s", t);

	solve();

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	vector8
	.section	.rodata
	.align 32
	.type	vector8, @object
	.size	vector8, 64
vector8:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	-1
	.long	0
	.long	1
	.long	1
	.long	-1
	.long	1
	.long	0
	.long	1
	.long	1
	.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	charcomp
	.type	charcomp, @function
charcomp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %edx
	movl	%esi, %eax
	movb	%dl, -4(%rbp)
	movb	%al, -8(%rbp)
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jge	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jle	.L4
	movl	$1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	charcomp, .-charcomp
	.globl	dist
	.bss
	.align 32
	.type	dist, @object
	.size	dist, 80000
dist:
	.zero	80000
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 12800
path:
	.zero	12800
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4010401
s:
	.zero	4010401
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 10001
t:
	.zero	10001
	.globl	alphabets
	.align 32
	.type	alphabets, @object
	.size	alphabets, 208
alphabets:
	.zero	208
	.globl	isfaster
	.align 32
	.type	isfaster, @object
	.size	isfaster, 10000
isfaster:
	.zero	10000
	.globl	islater
	.align 32
	.type	islater, @object
	.size	islater, 10000
islater:
	.zero	10000
	.text
	.globl	distance
	.type	distance, @function
distance:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	%xmm0, -16(%rbp)
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-16(%rbp), %xmm0
	addsd	-8(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	distance, .-distance
	.section	.rodata
.LC0:
	.string	"%llu%c"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB8:
	.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	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	$0, -8(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L8
.L18:
	movq	$0, -48(%rbp)
.L17:
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L9
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L10
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L10:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$97, %al
	jne	.L12
	leaq	isfaster(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L13
.L12:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$122, %al
	jne	.L14
	leaq	islater(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L13
.L14:
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	leaq	isfaster(%rip), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	jmp	.L11
.L9:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rax, %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	charcomp
	movl	%eax, -60(%rbp)
	cmpl	$0, -60(%rbp)
	jle	.L15
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L15:
	cmpl	$0, -60(%rbp)
	jns	.L16
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L16:
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L13
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L13
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	leaq	isfaster(%rip), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	jmp	.L11
.L13:
	addq	$1, -48(%rbp)
	jmp	.L17
.L11:
	addq	$1, -56(%rbp)
.L8:
	movq	-56(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L18
	movq	$1, -40(%rbp)
	movq	n(%rip), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L19
.L22:
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L20
	addq	$1, -40(%rbp)
.L20:
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L21
	subq	$1, -32(%rbp)
.L21:
	addq	$1, -56(%rbp)
.L19:
	movq	-56(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L22
	movq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L23
.L26:
	movq	-32(%rbp), %rax
	cmpq	%rax, -56(%rbp)
	jne	.L24
	movl	$10, %edx
	jmp	.L25
.L24:
	movl	$32, %edx
.L25:
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -56(%rbp)
.L23:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jnb	.L26
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%llu"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L29
.L30:
	movl	-4(%rbp), %eax
	cltq
	imulq	$401, %rax, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L29:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L30
	leaq	t(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	call	solve
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	charcomp
	.type	charcomp, @function
charcomp:
.LFB51:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	cmpb	%sil, %dil
	movl	$-1, %edx
	setg	%al
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	charcomp, .-charcomp
	.p2align 4
	.globl	distance
	.type	distance, @function
distance:
.LFB52:
	.cfi_startproc
	endbr64
	subq	%rdx, %rdi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	subq	%rcx, %rsi
	imulq	%rdi, %rdi
	imulq	%rsi, %rsi
	cvtsi2sdq	%rdi, %xmm0
	cvtsi2sdq	%rsi, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
	ret
.L13:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE52:
	.size	distance, .-distance
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%llu%c"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	n(%rip), %r12
	testq	%r12, %r12
	je	.L35
	leaq	isfaster(%rip), %r11
	leaq	islater(%rip), %r10
	movq	%r11, %r8
	movq	%r10, %r9
	leaq	(%r11,%r12), %rbx
	leaq	s(%rip), %rsi
	leaq	t(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	movzbl	(%rsi,%rax), %edx
	movzbl	(%rdi,%rax), %ecx
	cmpb	$63, %dl
	je	.L40
.L17:
	cmpb	%cl, %dl
	jl	.L23
	jle	.L24
.L39:
	movb	$1, (%r8)
.L19:
	addq	$1, %r8
	addq	$1, %r9
	addq	$401, %rsi
	cmpq	%rbx, %r8
	jne	.L16
	leaq	1(%r12), %rbp
	movl	$1, %ebx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L29:
	cmpb	$1, (%r11,%rax)
	adcq	$0, %rbx
	cmpb	$1, (%r10,%rax)
	sbbq	$0, %rbp
	addq	$1, %rax
	cmpq	%r12, %rax
	jne	.L29
	movq	%rbp, %r12
	cmpq	%rbx, %rbp
	jb	.L36
.L15:
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L34:
	cmpq	%r12, %rbx
	je	.L31
	movq	%rbx, %rdx
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbp, %rbx
	jbe	.L34
.L36:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	orb	%cl, %dl
	je	.L22
.L21:
	addq	$1, %rax
	movzbl	(%rsi,%rax), %edx
	movzbl	(%rdi,%rax), %ecx
	cmpb	$63, %dl
	jne	.L17
.L40:
	testb	%cl, %cl
	je	.L39
	cmpb	$97, %cl
	je	.L41
	cmpb	$122, %cl
	jne	.L22
	movb	$1, (%r10,%rax)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$1, (%r9)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L41:
	movb	$1, (%r11,%rax)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rbx, %rdx
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jnb	.L34
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movb	$1, (%r9)
	jmp	.L39
.L35:
	movl	$1, %r12d
	movl	$1, %ebp
	movl	$1, %ebx
	jmp	.L15
	.cfi_endproc
.LFE53:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC2:
	.string	"%llu"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rdi
	leaq	.LC3(%rip), %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	cmpq	$0, n(%rip)
	je	.L43
	leaq	s(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	addq	$401, %rbp
	cmpq	%rbx, n(%rip)
	ja	.L44
.L43:
	movq	%r12, %rdi
	leaq	t(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	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
.LFE54:
	.size	main, .-main
	.globl	islater
	.bss
	.align 32
	.type	islater, @object
	.size	islater, 10000
islater:
	.zero	10000
	.globl	isfaster
	.align 32
	.type	isfaster, @object
	.size	isfaster, 10000
isfaster:
	.zero	10000
	.globl	alphabets
	.align 32
	.type	alphabets, @object
	.size	alphabets, 208
alphabets:
	.zero	208
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 10001
t:
	.zero	10001
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4010401
s:
	.zero	4010401
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 12800
path:
	.zero	12800
	.globl	dist
	.align 32
	.type	dist, @object
	.size	dist, 80000
dist:
	.zero	80000
	.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
	.globl	vector8
	.section	.rodata
	.align 32
	.type	vector8, @object
	.size	vector8, 64
vector8:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	-1
	.long	0
	.long	1
	.long	1
	.long	-1
	.long	1
	.long	0
	.long	1
	.long	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	charcomp
	.type	charcomp, @function
charcomp:
.LFB51:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	cmpb	%sil, %dil
	movl	$-1, %edx
	setg	%al
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	charcomp, .-charcomp
	.p2align 4
	.globl	distance
	.type	distance, @function
distance:
.LFB52:
	.cfi_startproc
	endbr64
	subq	%rdx, %rdi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	subq	%rcx, %rsi
	imulq	%rdi, %rdi
	imulq	%rsi, %rsi
	cvtsi2sdq	%rdi, %xmm0
	cvtsi2sdq	%rsi, %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
	ret
.L13:
	jmp	sqrt@PLT
	.cfi_endproc
.LFE52:
	.size	distance, .-distance
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%llu%c"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	n(%rip), %r12
	testq	%r12, %r12
	je	.L35
	leaq	isfaster(%rip), %r11
	leaq	islater(%rip), %r10
	movq	%r11, %r8
	movq	%r10, %r9
	leaq	(%r11,%r12), %rbx
	leaq	s(%rip), %rsi
	leaq	t(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	movzbl	(%rsi,%rax), %edx
	movzbl	(%rdi,%rax), %ecx
	cmpb	$63, %dl
	je	.L40
.L17:
	cmpb	%cl, %dl
	jl	.L23
	jle	.L24
.L39:
	movb	$1, (%r8)
.L19:
	addq	$1, %r8
	addq	$1, %r9
	addq	$401, %rsi
	cmpq	%rbx, %r8
	jne	.L16
	leaq	1(%r12), %rbp
	movl	$1, %ebx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L29:
	cmpb	$1, (%r11,%rax)
	adcq	$0, %rbx
	cmpb	$1, (%r10,%rax)
	sbbq	$0, %rbp
	addq	$1, %rax
	cmpq	%r12, %rax
	jne	.L29
	movq	%rbp, %r12
	cmpq	%rbx, %rbp
	jb	.L36
.L15:
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L34:
	cmpq	%r12, %rbx
	je	.L31
	movq	%rbx, %rdx
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbp, %rbx
	jbe	.L34
.L36:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	orb	%cl, %dl
	je	.L22
.L21:
	addq	$1, %rax
	movzbl	(%rsi,%rax), %edx
	movzbl	(%rdi,%rax), %ecx
	cmpb	$63, %dl
	jne	.L17
.L40:
	testb	%cl, %cl
	je	.L39
	cmpb	$97, %cl
	je	.L41
	cmpb	$122, %cl
	jne	.L22
	movb	$1, (%r10,%rax)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L23:
	movb	$1, (%r9)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L41:
	movb	$1, (%r11,%rax)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rbx, %rdx
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	jnb	.L34
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movb	$1, (%r9)
	jmp	.L39
.L35:
	movl	$1, %r12d
	movl	$1, %ebp
	movl	$1, %ebx
	jmp	.L15
	.cfi_endproc
.LFE53:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC2:
	.string	"%llu"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rdi
	leaq	.LC3(%rip), %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	cmpq	$0, n(%rip)
	je	.L43
	leaq	s(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	addq	$401, %rbp
	cmpq	%rbx, n(%rip)
	ja	.L44
.L43:
	movq	%r12, %rdi
	leaq	t(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	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
.LFE54:
	.size	main, .-main
	.globl	islater
	.bss
	.align 32
	.type	islater, @object
	.size	islater, 10000
islater:
	.zero	10000
	.globl	isfaster
	.align 32
	.type	isfaster, @object
	.size	isfaster, 10000
isfaster:
	.zero	10000
	.globl	alphabets
	.align 32
	.type	alphabets, @object
	.size	alphabets, 208
alphabets:
	.zero	208
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 10001
t:
	.zero	10001
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4010401
s:
	.zero	4010401
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 12800
path:
	.zero	12800
	.globl	dist
	.align 32
	.type	dist, @object
	.size	dist, 80000
dist:
	.zero	80000
	.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
	.globl	vector8
	.section	.rodata
	.align 32
	.type	vector8, @object
	.size	vector8, 64
vector8:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	-1
	.long	0
	.long	1
	.long	1
	.long	-1
	.long	1
	.long	0
	.long	1
	.long	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"

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

#define BIG 2000000007
#define VERYBIG 200000000000007LL

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

#define N_MAX 10000
#define M_MAX 400

#ifdef __cplusplus
#include <queue>
#include <stack>
#include <tuple>

using namespace std; // I'm NOT gonna use C++ without compro. shit

typedef priority_queue<ull, vector<ull>, greater<ull> > upque123;
typedef priority_queue<ull, vector<ull> > upque321;
typedef priority_queue<sll, vector<sll>, greater<sll> > spque123;
typedef priority_queue<sll, vector<sll> > spque321;

#endif

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;



const hw vector8[8] = {
	{-1, -1},
	{-1,  0},
	{-1, +1},
	{ 0, -1},
	{ 0, +1},
	{+1, -1},
	{+1,  0},
	{+1, +1}
};

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;


int32_t charcomp (const char left, const char right) {
	if (left < right) {
		return -1;
	} else if (left > right) {
		return +1;
	} else {
		return 0;
	}
}


sll dist[N_MAX];
struct_b path[M_MAX * 2];

char s[N_MAX + 1][M_MAX + 1];
char t[N_MAX + 1];

ull alphabets[26];

bool isfaster[N_MAX];
bool islater[N_MAX];

double distance (sll x1, sll y1, sll x2, sll y2) {
	double xdist2, ydist2, origindist, dist;

	xdist2 = (x1 - x2) * (x1 - x2);
	ydist2 = (y1 - y2) * (y1 - y2);
	return sqrt(xdist2 + ydist2);
}

ull solve () {
	sll i, j, ki, l;
	ull result = 0;
	ull maybe = 0;
	ull sum = 0;
	ull item;
	ull *dpcell;
	// qsortの際には"p"ullcompを使う

	for (i = 0; i < n; i++) {
		j = 0;
		while (true) {
			if (s[i][j] == '?') {
				if (!t[j]) {
					isfaster[i] = true;
					break;
				}

				if (t[j] == 'a') {
					isfaster[j] = true;
				} else if (t[j] == 'z') {
					islater[j] = true;
				} else {
					isfaster[i] = islater[i] = true;
					break;
				}
			} else {
				int c = charcomp(s[i][j], t[j]);
				if (c > 0) {
					isfaster[i] = true;
					break;
				}
				if (c < 0) {
					islater[i] = true;
					break;
				}
				if (!s[i][j] && !t[j]) {
					isfaster[i] = islater[i] = true;
					break;
				}
			}

			j++;
		}
	}

	ull minval = 1, maxval = n + 1;
	for (i = 0; i < n; i++) {
		if (!isfaster[i]) minval++;
		if (!islater[i]) maxval--;
	}

	for (i = minval; i <= maxval; i++) {
		printf("%llu%c", i, (i == maxval ? '\n' : ' '));
	}


	return 0;
}

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

	scanf("%llu", &n, &m);
	for (i = 0; i < n; i++) {
		scanf("%s", s[i]);
	}
	scanf("%s", t);

	solve();

	return 0;
}

2
tourist
eptr
e
 2
ssvuhnr
errs
f
 2
hupouvt
etor
i
 2
sourist
eptr
e
 2
sourist
eqtr
e
 2
sourist
etqr
e
 2
sourisu
etqr
e
 2
sourisu
etqr
d
 2
sourisu
etrr
d
 2
sourisu
rrte
d

1
 2
 3
 1
 1
 1
 1
 1
 1
 1

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"

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

#define BIG 2000000007
#define VERYBIG 200000000000007LL

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

#define N_MAX 10000
#define M_MAX 400

#ifdef __cplusplus
#include <queue>
#include <stack>
#include <tuple>

using namespace std; // I'm NOT gonna use C++ without compro. shit

typedef priority_queue<ull, vector<ull>, greater<ull> > upque123;
typedef priority_queue<ull, vector<ull> > upque321;
typedef priority_queue<sll, vector<sll>, greater<sll> > spque123;
typedef priority_queue<sll, vector<sll> > spque321;

#endif

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;



const hw vector8[8] = {
	{-1, -1},
	{-1,  0},
	{-1, +1},
	{ 0, -1},
	{ 0, +1},
	{+1, -1},
	{+1,  0},
	{+1, +1}
};

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;


int32_t charcomp (const char left, const char right) {
	if (left < right) {
		return -1;
	} else if (left > right) {
		return +1;
	} else {
		return 0;
	}
}


sll dist[N_MAX];
struct_b path[M_MAX * 2];

char s[N_MAX + 1][M_MAX + 1];
char t[N_MAX + 1];

ull alphabets[26];

bool isfaster[N_MAX];
bool islater[N_MAX];

double distance (sll x1, sll y1, sll x2, sll y2) {
	double xdist2, ydist2, origindist, dist;

	xdist2 = (x1 - x2) * (x1 - x2);
	ydist2 = (y1 - y2) * (y1 - y2);
	return sqrt(xdist2 + ydist2);
}

ull solve () {
	sll i, j, ki, l;
	ull result = 0;
	ull maybe = 0;
	ull sum = 0;
	ull item;
	ull *dpcell;
	// qsortの際には"p"ullcompを使う

	for (i = 0; i < n; i++) {
		j = 0;
		while (true) {
			if (s[i][j] == '?') {
				if (!t[j]) {
					isfaster[i] = true;
					break;
				}

				if (t[j] == 'a') {
					isfaster[j] = true;
				} else if (t[j] == 'z') {
					islater[j] = true;
				} else {
					isfaster[i] = islater[i] = true;
					break;
				}
			} else {
				int c = charcomp(s[i][j], t[j]);
				if (c > 0) {
					isfaster[i] = true;
					break;
				}
				if (c < 0) {
					islater[i] = true;
					break;
				}
				if (!s[i][j] && !t[j]) {
					isfaster[i] = islater[i] = true;
					break;
				}
			}

			j++;
		}
	}

	ull minval = 1, maxval = n + 1;
	for (i = 0; i < n; i++) {
		if (!isfaster[i]) minval++;
		if (!islater[i]) maxval--;
	}

	for (i = minval; i <= maxval; i++) {
		printf("%llu%c", i, (i == maxval ? '\n' : ' '));
	}


	return 0;
}

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

	scanf("%llu", &n, &m);
	for (i = 0; i < n; i++) {
		scanf("%s", s[i]);
	}
	scanf("%s", t);

	solve();

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	vector8
	.section	.rodata
	.align 32
	.type	vector8, @object
	.size	vector8, 64
vector8:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	-1
	.long	0
	.long	1
	.long	1
	.long	-1
	.long	1
	.long	0
	.long	1
	.long	1
	.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	charcomp
	.type	charcomp, @function
charcomp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %edx
	movl	%esi, %eax
	movb	%dl, -4(%rbp)
	movb	%al, -8(%rbp)
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jge	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jle	.L4
	movl	$1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	charcomp, .-charcomp
	.globl	dist
	.bss
	.align 32
	.type	dist, @object
	.size	dist, 80000
dist:
	.zero	80000
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 12800
path:
	.zero	12800
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4010401
s:
	.zero	4010401
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 10001
t:
	.zero	10001
	.globl	alphabets
	.align 32
	.type	alphabets, @object
	.size	alphabets, 208
alphabets:
	.zero	208
	.globl	isfaster
	.align 32
	.type	isfaster, @object
	.size	isfaster, 10000
isfaster:
	.zero	10000
	.globl	islater
	.align 32
	.type	islater, @object
	.size	islater, 10000
islater:
	.zero	10000
	.text
	.globl	distance
	.type	distance, @function
distance:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	%xmm0, -16(%rbp)
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-16(%rbp), %xmm0
	addsd	-8(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	distance, .-distance
	.section	.rodata
.LC0:
	.string	"%llu%c"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB8:
	.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	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	$0, -8(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L8
.L18:
	movq	$0, -48(%rbp)
.L17:
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L9
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L10
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L10:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$97, %al
	jne	.L12
	leaq	isfaster(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L13
.L12:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$122, %al
	jne	.L14
	leaq	islater(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L13
.L14:
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	leaq	isfaster(%rip), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	jmp	.L11
.L9:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rax, %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	charcomp
	movl	%eax, -60(%rbp)
	cmpl	$0, -60(%rbp)
	jle	.L15
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L15:
	cmpl	$0, -60(%rbp)
	jns	.L16
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L16:
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L13
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L13
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	leaq	isfaster(%rip), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	jmp	.L11
.L13:
	addq	$1, -48(%rbp)
	jmp	.L17
.L11:
	addq	$1, -56(%rbp)
.L8:
	movq	-56(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L18
	movq	$1, -40(%rbp)
	movq	n(%rip), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L19
.L22:
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L20
	addq	$1, -40(%rbp)
.L20:
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L21
	subq	$1, -32(%rbp)
.L21:
	addq	$1, -56(%rbp)
.L19:
	movq	-56(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L22
	movq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L23
.L26:
	movq	-32(%rbp), %rax
	cmpq	%rax, -56(%rbp)
	jne	.L24
	movl	$10, %edx
	jmp	.L25
.L24:
	movl	$32, %edx
.L25:
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -56(%rbp)
.L23:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jnb	.L26
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%llu"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L29
.L30:
	movl	-4(%rbp), %eax
	cltq
	imulq	$401, %rax, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L29:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L30
	leaq	t(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	call	solve
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	vector8
	.section	.rodata
	.align 32
	.type	vector8, @object
	.size	vector8, 64
vector8:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	-1
	.long	1
	.long	0
	.long	-1
	.long	0
	.long	1
	.long	1
	.long	-1
	.long	1
	.long	0
	.long	1
	.long	1
	.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	charcomp
	.type	charcomp, @function
charcomp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %edx
	movl	%esi, %eax
	movb	%dl, -4(%rbp)
	movb	%al, -8(%rbp)
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jge	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jle	.L4
	movl	$1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	charcomp, .-charcomp
	.globl	dist
	.bss
	.align 32
	.type	dist, @object
	.size	dist, 80000
dist:
	.zero	80000
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 12800
path:
	.zero	12800
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4010401
s:
	.zero	4010401
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 10001
t:
	.zero	10001
	.globl	alphabets
	.align 32
	.type	alphabets, @object
	.size	alphabets, 208
alphabets:
	.zero	208
	.globl	isfaster
	.align 32
	.type	isfaster, @object
	.size	isfaster, 10000
isfaster:
	.zero	10000
	.globl	islater
	.align 32
	.type	islater, @object
	.size	islater, 10000
islater:
	.zero	10000
	.text
	.globl	distance
	.type	distance, @function
distance:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	%xmm0, -16(%rbp)
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-16(%rbp), %xmm0
	addsd	-8(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	distance, .-distance
	.section	.rodata
.LC0:
	.string	"%llu%c"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB8:
	.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	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	$0, -8(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L8
.L18:
	movq	$0, -48(%rbp)
.L17:
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L9
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L10
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L10:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$97, %al
	jne	.L12
	leaq	isfaster(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L13
.L12:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$122, %al
	jne	.L14
	leaq	islater(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L13
.L14:
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	leaq	isfaster(%rip), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	jmp	.L11
.L9:
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rax, %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	charcomp
	movl	%eax, -60(%rbp)
	cmpl	$0, -60(%rbp)
	jle	.L15
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L15:
	cmpl	$0, -60(%rbp)
	jns	.L16
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	jmp	.L11
.L16:
	movq	-56(%rbp), %rax
	imulq	$401, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L13
	leaq	t(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L13
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	leaq	isfaster(%rip), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	jmp	.L11
.L13:
	addq	$1, -48(%rbp)
	jmp	.L17
.L11:
	addq	$1, -56(%rbp)
.L8:
	movq	-56(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L18
	movq	$1, -40(%rbp)
	movq	n(%rip), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L19
.L22:
	leaq	isfaster(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L20
	addq	$1, -40(%rbp)
.L20:
	leaq	islater(%rip), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L21
	subq	$1, -32(%rbp)
.L21:
	addq	$1, -56(%rbp)
.L19:
	movq	-56(%rbp), %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L22
	movq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L23
.L26:
	movq	-32(%rbp), %rax
	cmpq	%rax, -56(%rbp)
	jne	.L24
	movl	$10, %edx
	jmp	.L25
.L24:
	movl	$32, %edx
.L25:
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -56(%rbp)
.L23:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jnb	.L26
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%llu"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L29
.L30:
	movl	-4(%rbp), %eax
	cltq
	imulq	$401, %rax, %rax
	leaq	s(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L29:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	n(%rip), %rax
	cmpq	%rax, %rdx
	jb	.L30
	leaq	t(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	call	solve
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
