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

```c
#define r return
i,j,n,max[6];
dx[8]={1,1,0,-1,-1,-1,0,1};
dy[8]={0,1,1,1,0,-1,-1,-1};
char t[10][10],mark[2]={'o','x'};
 
int l(int dx,int dy,int x,int y,char m,int c){
  if(t[x][y]=='.'||t[x][y]=='0')r 0;
  if(t[x][y]==m)r c;
  r l(dx,dy,x+dx,y+dy,m,c+1);
}
int s(int x,int y,char m){
  int k,c;
  c = 0;
  if(t[x][y]!='.')r 0;
  for(k=0;k<8;k++){
    c += l(dx[k],dy[k],x+dx[k],y+dy[k],m,0);
  }
  r c;
}
int okikae2(int dx,int dy,int x,int y,char m){
  if(t[x][y]=='0'||t[x][y]=='.')r 0;
  else if(t[x][y]==m)r 1;
  else if(okikae2(dx,dy,x+dx,y+dy,m)){
    t[x][y]=m;
    r 1;
  }
  else r 0;
}
int okikae(int x,int y,char m){
  int k;
  t[x][y]=m;
  for(k=0;k<8;k++){
    okikae2(dx[k],dy[k],x+dx[k],y+dy[k],m);
  }
  r 0;
}
 
int main(){
  for(i=0;i<10;i++)t[0][i]=t[9][i]='0';
  for(i=1;i<9;i++){
    scanf("%s",&t[i][1]);
    t[i][0]='0';
    t[i][9]='0';
  }
  max[1]=-1;
  for(n=0;;n=(n+1)%2){
    max[n]=-1;
    for(i=n?8:1;n?i>-1:i<9;n?i--:i++){
      for(j=n?8:1;n?j>-1:j<9;n?j--:j++){
        if(max[n]<s(i,j,mark[n])){
          max[2+n]=i;
          max[4+n]=j;
          max[n]=s(i,j,mark[n]);
        }
      }
    }
    if(max[n]!=0)okikae(max[2+n],max[4+n],mark[n]);
    if(max[0]==0&&max[1]==0)break;
  }
  for(i=1;i<9;i++){
    for(j=1;j<9;j++){
      printf("%c",t[i][j]);
    }
    puts("");
  }
  r 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	max
	.align 16
	.type	max, @object
	.size	max, 24
max:
	.zero	24
	.globl	dx
	.data
	.align 32
	.type	dx, @object
	.size	dx, 32
dx:
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	1
	.globl	dy
	.align 32
	.type	dy, @object
	.size	dy, 32
dy:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100
t:
	.zero	100
	.globl	mark
	.data
	.type	mark, @object
	.size	mark, 2
mark:
	.ascii	"ox"
	.text
	.globl	l
	.type	l, @function
l:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, %eax
	movl	%r9d, -24(%rbp)
	movb	%al, -20(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L2
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L3
.L2:
	movl	$0, %eax
	jmp	.L4
.L3:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -20(%rbp)
	jne	.L5
	movl	-24(%rbp), %eax
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	leal	1(%rax), %r8d
	movsbl	-20(%rbp), %edi
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%r8d, %r9d
	movl	%edi, %r8d
	movl	%eax, %edi
	call	l
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	l, .-l
	.globl	s
	.type	s, @function
s:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, %eax
	movb	%al, -28(%rbp)
	movl	$0, -4(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L7
	movl	$0, %eax
	jmp	.L8
.L7:
	movl	$0, -8(%rbp)
	jmp	.L9
.L10:
	movsbl	-28(%rbp), %r8d
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	dy(%rip), %rax
	movl	(%rsi,%rax), %esi
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	leaq	dx(%rip), %rax
	movl	(%rdi,%rax), %eax
	movl	$0, %r9d
	movl	%eax, %edi
	call	l
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L9:
	cmpl	$7, -8(%rbp)
	jle	.L10
	movl	-4(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	s, .-s
	.globl	okikae2
	.type	okikae2, @function
okikae2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, %eax
	movb	%al, -20(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	je	.L12
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L13
.L12:
	movl	$0, %eax
	jmp	.L14
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -20(%rbp)
	jne	.L15
	movl	$1, %eax
	jmp	.L14
.L15:
	movsbl	-20(%rbp), %edi
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%edi, %r8d
	movl	%eax, %edi
	call	okikae2
	testl	%eax, %eax
	je	.L16
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rax, %rdx
	movzbl	-20(%rbp), %eax
	movb	%al, (%rdx)
	movl	$1, %eax
	jmp	.L14
.L16:
	movl	$0, %eax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	okikae2, .-okikae2
	.globl	okikae
	.type	okikae, @function
okikae:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, %eax
	movb	%al, -28(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rax, %rdx
	movzbl	-28(%rbp), %eax
	movb	%al, (%rdx)
	movl	$0, -4(%rbp)
	jmp	.L18
.L19:
	movsbl	-28(%rbp), %r8d
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	dy(%rip), %rax
	movl	(%rsi,%rax), %esi
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	leaq	dx(%rip), %rax
	movl	(%rdi,%rax), %eax
	movl	%eax, %edi
	call	okikae2
	addl	$1, -4(%rbp)
.L18:
	cmpl	$7, -4(%rbp)
	jle	.L19
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	okikae, .-okikae
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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	$8, %rsp
	.cfi_offset 3, -24
	movl	$0, i(%rip)
	jmp	.L22
.L23:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	leaq	90+t(%rip), %rcx
	movb	$48, (%rdx,%rcx)
	movl	i(%rip), %ecx
	cltq
	leaq	90+t(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movslq	%ecx, %rax
	leaq	t(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L22:
	movl	i(%rip), %eax
	cmpl	$9, %eax
	jle	.L23
	movl	$1, i(%rip)
	jmp	.L24
.L25:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	t(%rip), %rax
	movb	$48, (%rdx,%rax)
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	9+t(%rip), %rax
	movb	$48, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L24:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	jle	.L25
	movl	$-1, 4+max(%rip)
	movl	$0, n(%rip)
.L44:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L26
	movl	$8, %eax
	jmp	.L27
.L26:
	movl	$1, %eax
.L27:
	movl	%eax, i(%rip)
	jmp	.L28
.L40:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L29
	movl	$8, %eax
	jmp	.L30
.L29:
	movl	$1, %eax
.L30:
	movl	%eax, j(%rip)
	jmp	.L31
.L36:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	j(%rip), %ecx
	movl	i(%rip), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	s
	cmpl	%eax, %ebx
	jge	.L32
	movl	n(%rip), %eax
	leal	2(%rax), %edx
	movl	i(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	n(%rip), %eax
	leal	4(%rax), %edx
	movl	j(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	j(%rip), %ecx
	movl	i(%rip), %eax
	movl	n(%rip), %ebx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	s
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L32:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L33
	movl	j(%rip), %eax
	subl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L31
.L33:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L31:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L34
	movl	j(%rip), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	.L35
.L34:
	movl	j(%rip), %eax
	cmpl	$8, %eax
	setle	%al
.L35:
	testb	%al, %al
	jne	.L36
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L37
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
	jmp	.L28
.L37:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L28:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L38
	movl	i(%rip), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	.L39
.L38:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	setle	%al
.L39:
	testb	%al, %al
	jne	.L40
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L41
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	n(%rip), %eax
	addl	$4, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	max(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	n(%rip), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	max(%rip), %rax
	movl	(%rsi,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	okikae
.L41:
	movl	max(%rip), %eax
	testl	%eax, %eax
	jne	.L42
	movl	4+max(%rip), %eax
	testl	%eax, %eax
	je	.L51
.L42:
	movl	n(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, n(%rip)
	jmp	.L44
.L51:
	nop
	movl	$1, i(%rip)
	jmp	.L45
.L48:
	movl	$1, j(%rip)
	jmp	.L46
.L47:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L46:
	movl	j(%rip), %eax
	cmpl	$8, %eax
	jle	.L47
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L45:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	jle	.L48
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	l
	.type	l, @function
l:
.LFB0:
	.cfi_startproc
	endbr64
	movl	%r9d, %eax
	movslq	%edx, %r9
	leaq	t(%rip), %r10
	movslq	%ecx, %r11
	leaq	(%r9,%r9,4), %r9
	leaq	(%r10,%r9,2), %r9
	movzbl	(%r9,%r11), %r9d
	leal	-46(%r9), %r11d
	andl	$253, %r11d
	je	.L8
	cmpb	%r8b, %r9b
	je	.L1
	addl	%edi, %edx
	addl	%esi, %ecx
	movslq	%edx, %r9
	movslq	%ecx, %r11
	leaq	(%r9,%r9,4), %r9
	leaq	(%r10,%r9,2), %r9
	movzbl	(%r9,%r11), %r9d
	leal	-46(%r9), %r11d
	andl	$253, %r11d
	je	.L8
	cmpb	%r9b, %r8b
	je	.L10
	addl	%edi, %edx
	addl	%esi, %ecx
	movslq	%edx, %r9
	movslq	%ecx, %r11
	leaq	(%r9,%r9,4), %r9
	leaq	(%r10,%r9,2), %r9
	movzbl	(%r9,%r11), %r9d
	leal	-46(%r9), %r10d
	andl	$253, %r10d
	je	.L8
	cmpb	%r9b, %r8b
	je	.L11
	addl	%esi, %ecx
	addl	%edi, %edx
	leal	3(%rax), %r9d
	movsbl	%r8b, %r8d
	jmp	l
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$2, %eax
	ret
	.cfi_endproc
.LFE0:
	.size	l, .-l
	.p2align 4
	.globl	s
	.type	s, @function
s:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	movslq	%esi, %rcx
	xorl	%r11d, %r11d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rax, %r13
	leaq	(%rax,%rax,4), %rax
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	t(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	(%r12,%rax,2), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpb	$46, (%rax,%rcx)
	jne	.L12
	leaq	dy(%rip), %rbx
	movq	%rcx, %r14
	movl	%edx, %r15d
	movsbl	%dl, %r8d
	leaq	dx(%rip), %rbp
	leaq	32(%rbx), %r10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	0(%rbp), %edi
	movl	(%rbx), %esi
	leal	0(%r13,%rdi), %eax
	leal	(%r14,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L14
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L35
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L36
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L37
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %r9
	movslq	%edx, %rcx
	leaq	(%r9,%r9,4), %r9
	leaq	(%r12,%r9,2), %r9
	movzbl	(%r9,%rcx), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L38
	leal	(%rsi,%rdx), %ecx
	movl	$5, %r9d
	leal	(%rdi,%rax), %edx
	movl	%r11d, 12(%rsp)
	movl	%r8d, 8(%rsp)
	call	l
	movl	12(%rsp), %r11d
	movl	8(%rsp), %r8d
	leaq	32+dy(%rip), %r10
	addl	%eax, %r11d
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %rbx
	addq	$4, %rbp
	cmpq	%r10, %rbx
	jne	.L19
.L12:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r11d, %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
.L35:
	.cfi_restore_state
	addq	$4, %rbx
	addl	$1, %r11d
	addq	$4, %rbp
	cmpq	%r10, %rbx
	jne	.L19
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L37:
	addl	$3, %r11d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rbx
	addl	$2, %r11d
	addq	$4, %rbp
	cmpq	%r10, %rbx
	jne	.L19
	jmp	.L12
.L38:
	addl	$4, %r11d
	jmp	.L14
	.cfi_endproc
.LFE1:
	.size	s, .-s
	.p2align 4
	.globl	okikae2
	.type	okikae2, @function
okikae2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%ecx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	t(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	0(%rbp,%rbp,4), %rdx
	movl	%r8d, %ebx
	leaq	(%r12,%rdx,2), %rdx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movzbl	(%rdx,%r13), %edx
	leal	-46(%rdx), %r8d
	andl	$253, %r8d
	je	.L42
	movl	$1, %r8d
	cmpb	%bl, %dl
	je	.L39
	movq	%rbp, %rax
	addl	%esi, %ecx
	addl	%edi, %eax
	movslq	%ecx, %r15
	movslq	%eax, %r14
	leaq	(%r14,%r14,4), %rdx
	leaq	(%r12,%rdx,2), %rdx
	movzbl	(%rdx,%r15), %edx
	leal	-46(%rdx), %r8d
	andl	$253, %r8d
	je	.L42
	cmpb	%dl, %bl
	je	.L43
	addl	%edi, %eax
	addl	%esi, %ecx
	movslq	%eax, %rdx
	movslq	%ecx, %r8
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r12,%rdx,2), %r9
	addq	%r8, %r9
	movzbl	(%r9), %edx
	movq	%r9, 8(%rsp)
	leal	-46(%rdx), %r8d
	andl	$253, %r8d
	je	.L42
	cmpb	%dl, %bl
	je	.L44
	addl	%esi, %ecx
	leal	(%rdi,%rax), %edx
	movsbl	%bl, %r8d
	call	okikae2
	testl	%eax, %eax
	je	.L42
	movq	8(%rsp), %r9
	movb	%bl, (%r9)
.L44:
	leaq	(%r14,%r14,4), %rax
	leaq	(%r12,%rax,2), %rax
	movb	%bl, (%rax,%r15)
.L43:
	leaq	0(%rbp,%rbp,4), %rax
	movl	$1, %r8d
	leaq	(%r12,%rax,2), %rax
	movb	%bl, (%rax,%r13)
.L39:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r8d, %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
.L42:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L39
	.cfi_endproc
.LFE2:
	.size	okikae2, .-okikae2
	.p2align 4
	.globl	okikae
	.type	okikae, @function
okikae:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	movslq	%esi, %rcx
	movl	%edx, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	dx(%rip), %r15
	leaq	dy(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rax, %r12
	leaq	(%rax,%rax,4), %rax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	0(%r13,%rax,2), %rax
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movb	%dl, (%rax,%rcx)
	movsbl	%dl, %eax
	movl	%eax, 72(%rsp)
	.p2align 4,,10
	.p2align 3
.L66:
	movl	(%r15), %edi
	movl	(%r14), %esi
	leal	(%rdi,%r12), %eax
	leal	(%rsi,%rbp), %edx
	movslq	%eax, %r10
	movslq	%edx, %r11
	leaq	(%r10,%r10,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movzbl	(%rcx,%r11), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L59
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rbx
	movslq	%edx, %r8
	leaq	(%rbx,%rbx,4), %rcx
	movq	%r8, 8(%rsp)
	leaq	0(%r13,%rcx,2), %rcx
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L61
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	movq	%rcx, 24(%rsp)
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movq	%r8, 16(%rsp)
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L62
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	movq	%rcx, 40(%rsp)
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movq	%r8, 32(%rsp)
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L63
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	movq	%rcx, 56(%rsp)
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movq	%r8, 48(%rsp)
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L64
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	addq	%r8, %rcx
	movq	%rcx, 64(%rsp)
	movzbl	(%rcx), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L65
	movl	72(%rsp), %r8d
	leal	(%rsi,%rdx), %ecx
	leal	(%rdi,%rax), %edx
	movb	%r9b, 79(%rsp)
	call	okikae2
	movzbl	79(%rsp), %r9d
	testl	%eax, %eax
	je	.L59
	movq	64(%rsp), %rcx
	movb	%r9b, (%rcx)
.L65:
	movq	56(%rsp), %rax
	movq	48(%rsp), %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rdi)
.L64:
	movq	40(%rsp), %rax
	movq	32(%rsp), %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rdi)
.L63:
	movq	24(%rsp), %rax
	movq	16(%rsp), %rsi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rsi)
.L62:
	leaq	(%rbx,%rbx,4), %rax
	movq	8(%rsp), %rbx
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rbx)
.L61:
	leaq	(%r10,%r10,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%r11)
.L59:
	addq	$4, %r14
	leaq	32+dy(%rip), %rax
	addq	$4, %r15
	cmpq	%rax, %r14
	jne	.L66
	addq	$88, %rsp
	.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
	.cfi_endproc
.LFE3:
	.size	okikae, .-okikae
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC2:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12336, %r8d
	movl	$12336, %r9d
	movabsq	$3472328296227680304, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	t(%rip), %r11
	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
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movw	%r8w, 8+t(%rip)
	movw	%r9w, 98+t(%rip)
	movl	$1, i(%rip)
	movq	%rax, t(%rip)
	movq	%rax, 90+t(%rip)
	movl	$1, %eax
.L88:
	cltq
	movq	%rbx, %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	1(%r11,%rax,2), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	i(%rip), %rdx
	leaq	t(%rip), %r11
	movq	%rdx, %rax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,2), %rdx
	addl	$1, %eax
	movb	$48, (%rdx)
	movb	$48, 9(%rdx)
	movl	%eax, i(%rip)
	cmpl	$8, %eax
	jle	.L88
	movq	.LC1(%rip), %rax
	movl	$0, 12(%rsp)
	movl	$0, n(%rip)
	movq	%rax, max(%rip)
	movl	$1, 8(%rsp)
	movl	8(%rsp), %r10d
.L89:
	movl	12(%rsp), %eax
	movl	$-1, 16(%rsp)
	movl	%r10d, %r15d
	addl	$2, %eax
	cltq
	movq	%rax, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L90:
	movl	12(%rsp), %ecx
	movl	%r15d, i(%rip)
	testl	%ecx, %ecx
	je	.L115
.L193:
	movl	%r15d, %eax
	notl	%eax
	shrl	$31, %eax
.L116:
	testb	%al, %al
	je	.L178
	movslq	%r15d, %rax
	movl	8(%rsp), %r10d
	movl	12(%rsp), %esi
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	movl	%r10d, j(%rip)
	movq	%rax, (%rsp)
	testl	%esi, %esi
	je	.L111
.L192:
	testl	%r10d, %r10d
	js	.L179
.L112:
	movslq	12(%rsp), %rax
	leaq	mark(%rip), %rbx
	movzbl	(%rbx,%rax), %r13d
	movq	(%rsp), %rbx
	movq	%rax, 24(%rsp)
	movslq	%r10d, %rax
	leaq	(%r11,%rbx), %rdx
	cmpb	$46, (%rdx,%rax)
	jne	.L91
	movl	$0, 20(%rsp)
	leaq	dy(%rip), %r12
	leaq	dx(%rip), %r14
	movsbl	%r13b, %r8d
	movq	%r14, %rbp
	movq	%r12, %rbx
	.p2align 4,,10
	.p2align 3
.L99:
	movl	0(%rbp), %edi
	movl	(%rbx), %esi
	leal	(%rdi,%r15), %eax
	leal	(%rsi,%r10), %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L92
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L180
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L181
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L182
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L183
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L184
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %r9
	movslq	%edx, %rcx
	leaq	(%r9,%r9,4), %r9
	leaq	(%r11,%r9,2), %r9
	movzbl	(%r9,%rcx), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L185
	leal	(%rsi,%rdx), %ecx
	movl	$7, %r9d
	leal	(%rdi,%rax), %edx
	movl	%r10d, 44(%rsp)
	movl	%r8d, 40(%rsp)
	call	l
	addl	%eax, 20(%rsp)
	movl	44(%rsp), %r10d
	leaq	t(%rip), %r11
	movl	40(%rsp), %r8d
	.p2align 4,,10
	.p2align 3
.L92:
	addq	$4, %rbx
	leaq	32+dy(%rip), %rax
	addq	$4, %rbp
	cmpq	%rax, %rbx
	jne	.L99
	movl	20(%rsp), %edi
	cmpl	%edi, 16(%rsp)
	jge	.L100
	movq	32(%rsp), %rax
	leaq	max(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r8d, %ebp
	movl	%r15d, (%rsi,%rax,4)
	movl	12(%rsp), %eax
	addl	$4, %eax
	cltq
	movl	%r10d, (%rsi,%rax,4)
	.p2align 4,,10
	.p2align 3
.L108:
	movl	(%r14), %edi
	movl	(%r12), %esi
	leal	(%r15,%rdi), %eax
	leal	(%rsi,%r10), %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L101
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L186
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L187
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L188
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L189
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L190
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L191
	leal	(%rsi,%rdx), %ecx
	movl	%ebp, %r8d
	leal	(%rdi,%rax), %edx
	movl	%r10d, 16(%rsp)
	movl	$7, %r9d
	call	l
	movl	16(%rsp), %r10d
	leaq	t(%rip), %r11
	addl	%eax, %ebx
	.p2align 4,,10
	.p2align 3
.L101:
	addq	$4, %r12
	leaq	32+dy(%rip), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jne	.L108
	movl	%ebx, 16(%rsp)
.L123:
	movq	24(%rsp), %rdi
	movl	16(%rsp), %ebx
	leaq	max(%rip), %rax
	movl	%ebx, (%rax,%rdi,4)
.L100:
	movl	12(%rsp), %edi
	leal	-1(%r10), %eax
	addl	$1, %r10d
	movl	12(%rsp), %esi
	testl	%edi, %edi
	cmovne	%eax, %r10d
	movl	%r10d, j(%rip)
	testl	%esi, %esi
	jne	.L192
.L111:
	cmpl	$8, %r10d
	jle	.L112
	movl	12(%rsp), %ecx
	addl	$1, %r15d
	movl	%r15d, i(%rip)
	testl	%ecx, %ecx
	jne	.L193
.L115:
	cmpl	$8, %r15d
	setle	%al
	jmp	.L116
	.p2align 4,,10
	.p2align 3
.L91:
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jns	.L100
	movq	32(%rsp), %rax
	leaq	max(%rip), %rdi
	movl	$0, 16(%rsp)
	movl	%r15d, (%rdi,%rax,4)
	movl	12(%rsp), %eax
	addl	$4, %eax
	cltq
	movl	%r10d, (%rdi,%rax,4)
	jmp	.L123
	.p2align 4,,10
	.p2align 3
.L180:
	addl	$1, 20(%rsp)
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L186:
	addl	$1, %ebx
	jmp	.L101
	.p2align 4,,10
	.p2align 3
.L181:
	addl	$2, 20(%rsp)
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L187:
	addl	$2, %ebx
	jmp	.L101
	.p2align 4,,10
	.p2align 3
.L182:
	addl	$3, 20(%rsp)
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L179:
	subl	$1, %r15d
	jmp	.L90
.L188:
	addl	$3, %ebx
	jmp	.L101
.L183:
	addl	$4, 20(%rsp)
	jmp	.L92
.L189:
	addl	$4, %ebx
	jmp	.L101
.L178:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jne	.L194
.L117:
	leaq	max(%rip), %rbx
	movl	(%rbx), %eax
	orl	4+max(%rip), %eax
	je	.L118
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %eax
	andl	$1, %edx
	subl	%ecx, %edx
	cmpl	$1, %eax
	sbbl	%eax, %eax
	movl	%edx, 12(%rsp)
	andl	$-7, %eax
	movl	%edx, n(%rip)
	movslq	%edx, %rdx
	addl	$8, %eax
	movl	$-1, (%rbx,%rdx,4)
	movl	%eax, 8(%rsp)
	movl	%eax, %r10d
	jmp	.L89
.L184:
	addl	$5, 20(%rsp)
	jmp	.L92
.L190:
	addl	$5, %ebx
	jmp	.L101
.L185:
	addl	$6, 20(%rsp)
	jmp	.L92
.L194:
	movslq	12(%rsp), %rax
	leaq	mark(%rip), %rsi
	leaq	max(%rip), %rdi
	movsbl	(%rsi,%rax), %edx
	movq	%rax, %rbx
	leal	4(%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %esi
	leal	2(%rbx), %eax
	cltq
	movl	(%rdi,%rax,4), %edi
	call	okikae
	leaq	t(%rip), %r11
	jmp	.L117
.L191:
	addl	$6, %ebx
	jmp	.L101
.L118:
	movl	$1, i(%rip)
	movl	$1, %edx
	leaq	.LC2(%rip), %rbx
.L122:
	movl	$1, j(%rip)
	movl	$1, %eax
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L195:
	movl	i(%rip), %edx
.L121:
	movslq	%edx, %rdx
	cltq
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,2), %rdx
	movsbl	(%rdx,%rax), %edi
	call	putchar@PLT
	movl	j(%rip), %eax
	leaq	t(%rip), %r11
	addl	$1, %eax
	cmpl	$8, %eax
	movl	%eax, j(%rip)
	jle	.L195
	movq	%rbx, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	leaq	t(%rip), %r11
	leal	1(%rax), %edx
	cmpl	$8, %edx
	movl	%edx, i(%rip)
	jle	.L122
	addq	$56, %rsp
	.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
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.globl	mark
	.data
	.type	mark, @object
	.size	mark, 2
mark:
	.ascii	"ox"
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100
t:
	.zero	100
	.globl	dy
	.data
	.align 32
	.type	dy, @object
	.size	dy, 32
dy:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.globl	dx
	.align 32
	.type	dx, @object
	.size	dx, 32
dx:
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	1
	.globl	max
	.bss
	.align 16
	.type	max, @object
	.size	max, 24
max:
	.zero	24
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.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	l
	.type	l, @function
l:
.LFB0:
	.cfi_startproc
	endbr64
	movl	%r9d, %eax
	movslq	%edx, %r9
	leaq	t(%rip), %r10
	movslq	%ecx, %r11
	leaq	(%r9,%r9,4), %r9
	leaq	(%r10,%r9,2), %r9
	movzbl	(%r9,%r11), %r9d
	leal	-46(%r9), %r11d
	andl	$253, %r11d
	je	.L8
	cmpb	%r8b, %r9b
	je	.L1
	addl	%edi, %edx
	addl	%esi, %ecx
	movslq	%edx, %r9
	movslq	%ecx, %r11
	leaq	(%r9,%r9,4), %r9
	leaq	(%r10,%r9,2), %r9
	movzbl	(%r9,%r11), %r9d
	leal	-46(%r9), %r11d
	andl	$253, %r11d
	je	.L8
	cmpb	%r9b, %r8b
	je	.L10
	addl	%edi, %edx
	addl	%esi, %ecx
	movslq	%edx, %r9
	movslq	%ecx, %r11
	leaq	(%r9,%r9,4), %r9
	leaq	(%r10,%r9,2), %r9
	movzbl	(%r9,%r11), %r9d
	leal	-46(%r9), %r10d
	andl	$253, %r10d
	je	.L8
	cmpb	%r9b, %r8b
	je	.L11
	addl	%esi, %ecx
	addl	%edi, %edx
	leal	3(%rax), %r9d
	movsbl	%r8b, %r8d
	jmp	l
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$2, %eax
	ret
	.cfi_endproc
.LFE0:
	.size	l, .-l
	.p2align 4
	.globl	s
	.type	s, @function
s:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	movslq	%esi, %rcx
	xorl	%r11d, %r11d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rax, %r13
	leaq	(%rax,%rax,4), %rax
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	t(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	(%r12,%rax,2), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpb	$46, (%rax,%rcx)
	jne	.L12
	leaq	dy(%rip), %rbx
	movq	%rcx, %r14
	movl	%edx, %r15d
	movsbl	%dl, %r8d
	leaq	dx(%rip), %rbp
	leaq	32(%rbx), %r10
	.p2align 4,,10
	.p2align 3
.L19:
	movl	0(%rbp), %edi
	movl	(%rbx), %esi
	leal	0(%r13,%rdi), %eax
	leal	(%r14,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L14
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L35
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L36
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r12,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L37
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %r9
	movslq	%edx, %rcx
	leaq	(%r9,%r9,4), %r9
	leaq	(%r12,%r9,2), %r9
	movzbl	(%r9,%rcx), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L14
	cmpb	%cl, %r15b
	je	.L38
	leal	(%rsi,%rdx), %ecx
	movl	$5, %r9d
	leal	(%rdi,%rax), %edx
	movl	%r11d, 12(%rsp)
	movl	%r8d, 8(%rsp)
	call	l
	movl	12(%rsp), %r11d
	movl	8(%rsp), %r8d
	leaq	32+dy(%rip), %r10
	addl	%eax, %r11d
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %rbx
	addq	$4, %rbp
	cmpq	%r10, %rbx
	jne	.L19
.L12:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r11d, %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
.L35:
	.cfi_restore_state
	addq	$4, %rbx
	addl	$1, %r11d
	addq	$4, %rbp
	cmpq	%r10, %rbx
	jne	.L19
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L37:
	addl	$3, %r11d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rbx
	addl	$2, %r11d
	addq	$4, %rbp
	cmpq	%r10, %rbx
	jne	.L19
	jmp	.L12
.L38:
	addl	$4, %r11d
	jmp	.L14
	.cfi_endproc
.LFE1:
	.size	s, .-s
	.p2align 4
	.globl	okikae2
	.type	okikae2, @function
okikae2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%ecx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	t(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	0(%rbp,%rbp,4), %rdx
	movl	%r8d, %ebx
	leaq	(%r12,%rdx,2), %rdx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movzbl	(%rdx,%r13), %edx
	leal	-46(%rdx), %r8d
	andl	$253, %r8d
	je	.L42
	movl	$1, %r8d
	cmpb	%bl, %dl
	je	.L39
	movq	%rbp, %rax
	addl	%esi, %ecx
	addl	%edi, %eax
	movslq	%ecx, %r15
	movslq	%eax, %r14
	leaq	(%r14,%r14,4), %rdx
	leaq	(%r12,%rdx,2), %rdx
	movzbl	(%rdx,%r15), %edx
	leal	-46(%rdx), %r8d
	andl	$253, %r8d
	je	.L42
	cmpb	%dl, %bl
	je	.L43
	addl	%edi, %eax
	addl	%esi, %ecx
	movslq	%eax, %rdx
	movslq	%ecx, %r8
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r12,%rdx,2), %r9
	addq	%r8, %r9
	movzbl	(%r9), %edx
	movq	%r9, 8(%rsp)
	leal	-46(%rdx), %r8d
	andl	$253, %r8d
	je	.L42
	cmpb	%dl, %bl
	je	.L44
	addl	%esi, %ecx
	leal	(%rdi,%rax), %edx
	movsbl	%bl, %r8d
	call	okikae2
	testl	%eax, %eax
	je	.L42
	movq	8(%rsp), %r9
	movb	%bl, (%r9)
.L44:
	leaq	(%r14,%r14,4), %rax
	leaq	(%r12,%rax,2), %rax
	movb	%bl, (%rax,%r15)
.L43:
	leaq	0(%rbp,%rbp,4), %rax
	movl	$1, %r8d
	leaq	(%r12,%rax,2), %rax
	movb	%bl, (%rax,%r13)
.L39:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r8d, %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
.L42:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L39
	.cfi_endproc
.LFE2:
	.size	okikae2, .-okikae2
	.p2align 4
	.globl	okikae
	.type	okikae, @function
okikae:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	movslq	%esi, %rcx
	movl	%edx, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	dx(%rip), %r15
	leaq	dy(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rax, %r12
	leaq	(%rax,%rax,4), %rax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	0(%r13,%rax,2), %rax
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movb	%dl, (%rax,%rcx)
	movsbl	%dl, %eax
	movl	%eax, 72(%rsp)
	.p2align 4,,10
	.p2align 3
.L66:
	movl	(%r15), %edi
	movl	(%r14), %esi
	leal	(%rdi,%r12), %eax
	leal	(%rsi,%rbp), %edx
	movslq	%eax, %r10
	movslq	%edx, %r11
	leaq	(%r10,%r10,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movzbl	(%rcx,%r11), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L59
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rbx
	movslq	%edx, %r8
	leaq	(%rbx,%rbx,4), %rcx
	movq	%r8, 8(%rsp)
	leaq	0(%r13,%rcx,2), %rcx
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L61
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	movq	%rcx, 24(%rsp)
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movq	%r8, 16(%rsp)
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L62
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	movq	%rcx, 40(%rsp)
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movq	%r8, 32(%rsp)
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L63
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	movq	%rcx, 56(%rsp)
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	movq	%r8, 48(%rsp)
	movzbl	(%rcx,%r8), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L64
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r8
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%r13,%rcx,2), %rcx
	addq	%r8, %rcx
	movq	%rcx, 64(%rsp)
	movzbl	(%rcx), %ecx
	leal	-46(%rcx), %r8d
	andl	$253, %r8d
	je	.L59
	cmpb	%cl, %r9b
	je	.L65
	movl	72(%rsp), %r8d
	leal	(%rsi,%rdx), %ecx
	leal	(%rdi,%rax), %edx
	movb	%r9b, 79(%rsp)
	call	okikae2
	movzbl	79(%rsp), %r9d
	testl	%eax, %eax
	je	.L59
	movq	64(%rsp), %rcx
	movb	%r9b, (%rcx)
.L65:
	movq	56(%rsp), %rax
	movq	48(%rsp), %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rdi)
.L64:
	movq	40(%rsp), %rax
	movq	32(%rsp), %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rdi)
.L63:
	movq	24(%rsp), %rax
	movq	16(%rsp), %rsi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rsi)
.L62:
	leaq	(%rbx,%rbx,4), %rax
	movq	8(%rsp), %rbx
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%rbx)
.L61:
	leaq	(%r10,%r10,4), %rax
	leaq	0(%r13,%rax,2), %rax
	movb	%r9b, (%rax,%r11)
.L59:
	addq	$4, %r14
	leaq	32+dy(%rip), %rax
	addq	$4, %r15
	cmpq	%rax, %r14
	jne	.L66
	addq	$88, %rsp
	.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
	.cfi_endproc
.LFE3:
	.size	okikae, .-okikae
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC2:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12336, %r8d
	movl	$12336, %r9d
	movabsq	$3472328296227680304, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	t(%rip), %r11
	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
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movw	%r8w, 8+t(%rip)
	movw	%r9w, 98+t(%rip)
	movl	$1, i(%rip)
	movq	%rax, t(%rip)
	movq	%rax, 90+t(%rip)
	movl	$1, %eax
.L88:
	cltq
	movq	%rbx, %rdi
	leaq	(%rax,%rax,4), %rax
	leaq	1(%r11,%rax,2), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	i(%rip), %rdx
	leaq	t(%rip), %r11
	movq	%rdx, %rax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,2), %rdx
	addl	$1, %eax
	movb	$48, (%rdx)
	movb	$48, 9(%rdx)
	movl	%eax, i(%rip)
	cmpl	$8, %eax
	jle	.L88
	movq	.LC1(%rip), %rax
	movl	$0, 12(%rsp)
	movl	$0, n(%rip)
	movq	%rax, max(%rip)
	movl	$1, 8(%rsp)
	movl	8(%rsp), %r10d
.L89:
	movl	12(%rsp), %eax
	movl	$-1, 16(%rsp)
	movl	%r10d, %r15d
	addl	$2, %eax
	cltq
	movq	%rax, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L90:
	movl	12(%rsp), %ecx
	movl	%r15d, i(%rip)
	testl	%ecx, %ecx
	je	.L115
.L193:
	movl	%r15d, %eax
	notl	%eax
	shrl	$31, %eax
.L116:
	testb	%al, %al
	je	.L178
	movslq	%r15d, %rax
	movl	8(%rsp), %r10d
	movl	12(%rsp), %esi
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	movl	%r10d, j(%rip)
	movq	%rax, (%rsp)
	testl	%esi, %esi
	je	.L111
.L192:
	testl	%r10d, %r10d
	js	.L179
.L112:
	movslq	12(%rsp), %rax
	leaq	mark(%rip), %rbx
	movzbl	(%rbx,%rax), %r13d
	movq	(%rsp), %rbx
	movq	%rax, 24(%rsp)
	movslq	%r10d, %rax
	leaq	(%r11,%rbx), %rdx
	cmpb	$46, (%rdx,%rax)
	jne	.L91
	movl	$0, 20(%rsp)
	leaq	dy(%rip), %r12
	leaq	dx(%rip), %r14
	movsbl	%r13b, %r8d
	movq	%r14, %rbp
	movq	%r12, %rbx
	.p2align 4,,10
	.p2align 3
.L99:
	movl	0(%rbp), %edi
	movl	(%rbx), %esi
	leal	(%rdi,%r15), %eax
	leal	(%rsi,%r10), %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L92
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L180
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L181
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L182
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L183
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L184
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %r9
	movslq	%edx, %rcx
	leaq	(%r9,%r9,4), %r9
	leaq	(%r11,%r9,2), %r9
	movzbl	(%r9,%rcx), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L92
	cmpb	%cl, %r13b
	je	.L185
	leal	(%rsi,%rdx), %ecx
	movl	$7, %r9d
	leal	(%rdi,%rax), %edx
	movl	%r10d, 44(%rsp)
	movl	%r8d, 40(%rsp)
	call	l
	addl	%eax, 20(%rsp)
	movl	44(%rsp), %r10d
	leaq	t(%rip), %r11
	movl	40(%rsp), %r8d
	.p2align 4,,10
	.p2align 3
.L92:
	addq	$4, %rbx
	leaq	32+dy(%rip), %rax
	addq	$4, %rbp
	cmpq	%rax, %rbx
	jne	.L99
	movl	20(%rsp), %edi
	cmpl	%edi, 16(%rsp)
	jge	.L100
	movq	32(%rsp), %rax
	leaq	max(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r8d, %ebp
	movl	%r15d, (%rsi,%rax,4)
	movl	12(%rsp), %eax
	addl	$4, %eax
	cltq
	movl	%r10d, (%rsi,%rax,4)
	.p2align 4,,10
	.p2align 3
.L108:
	movl	(%r14), %edi
	movl	(%r12), %esi
	leal	(%r15,%rdi), %eax
	leal	(%rsi,%r10), %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L101
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L186
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L187
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L188
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L189
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L190
	addl	%edi, %eax
	addl	%esi, %edx
	movslq	%eax, %rcx
	movslq	%edx, %r9
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%r11,%rcx,2), %rcx
	movzbl	(%rcx,%r9), %ecx
	leal	-46(%rcx), %r9d
	andl	$253, %r9d
	je	.L101
	cmpb	%cl, %r13b
	je	.L191
	leal	(%rsi,%rdx), %ecx
	movl	%ebp, %r8d
	leal	(%rdi,%rax), %edx
	movl	%r10d, 16(%rsp)
	movl	$7, %r9d
	call	l
	movl	16(%rsp), %r10d
	leaq	t(%rip), %r11
	addl	%eax, %ebx
	.p2align 4,,10
	.p2align 3
.L101:
	addq	$4, %r12
	leaq	32+dy(%rip), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jne	.L108
	movl	%ebx, 16(%rsp)
.L123:
	movq	24(%rsp), %rdi
	movl	16(%rsp), %ebx
	leaq	max(%rip), %rax
	movl	%ebx, (%rax,%rdi,4)
.L100:
	movl	12(%rsp), %edi
	leal	-1(%r10), %eax
	addl	$1, %r10d
	movl	12(%rsp), %esi
	testl	%edi, %edi
	cmovne	%eax, %r10d
	movl	%r10d, j(%rip)
	testl	%esi, %esi
	jne	.L192
.L111:
	cmpl	$8, %r10d
	jle	.L112
	movl	12(%rsp), %ecx
	addl	$1, %r15d
	movl	%r15d, i(%rip)
	testl	%ecx, %ecx
	jne	.L193
.L115:
	cmpl	$8, %r15d
	setle	%al
	jmp	.L116
	.p2align 4,,10
	.p2align 3
.L91:
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jns	.L100
	movq	32(%rsp), %rax
	leaq	max(%rip), %rdi
	movl	$0, 16(%rsp)
	movl	%r15d, (%rdi,%rax,4)
	movl	12(%rsp), %eax
	addl	$4, %eax
	cltq
	movl	%r10d, (%rdi,%rax,4)
	jmp	.L123
	.p2align 4,,10
	.p2align 3
.L180:
	addl	$1, 20(%rsp)
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L186:
	addl	$1, %ebx
	jmp	.L101
	.p2align 4,,10
	.p2align 3
.L181:
	addl	$2, 20(%rsp)
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L187:
	addl	$2, %ebx
	jmp	.L101
	.p2align 4,,10
	.p2align 3
.L182:
	addl	$3, 20(%rsp)
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L179:
	subl	$1, %r15d
	jmp	.L90
.L188:
	addl	$3, %ebx
	jmp	.L101
.L183:
	addl	$4, 20(%rsp)
	jmp	.L92
.L189:
	addl	$4, %ebx
	jmp	.L101
.L178:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	jne	.L194
.L117:
	leaq	max(%rip), %rbx
	movl	(%rbx), %eax
	orl	4+max(%rip), %eax
	je	.L118
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %eax
	andl	$1, %edx
	subl	%ecx, %edx
	cmpl	$1, %eax
	sbbl	%eax, %eax
	movl	%edx, 12(%rsp)
	andl	$-7, %eax
	movl	%edx, n(%rip)
	movslq	%edx, %rdx
	addl	$8, %eax
	movl	$-1, (%rbx,%rdx,4)
	movl	%eax, 8(%rsp)
	movl	%eax, %r10d
	jmp	.L89
.L184:
	addl	$5, 20(%rsp)
	jmp	.L92
.L190:
	addl	$5, %ebx
	jmp	.L101
.L185:
	addl	$6, 20(%rsp)
	jmp	.L92
.L194:
	movslq	12(%rsp), %rax
	leaq	mark(%rip), %rsi
	leaq	max(%rip), %rdi
	movsbl	(%rsi,%rax), %edx
	movq	%rax, %rbx
	leal	4(%rax), %eax
	cltq
	movl	(%rdi,%rax,4), %esi
	leal	2(%rbx), %eax
	cltq
	movl	(%rdi,%rax,4), %edi
	call	okikae
	leaq	t(%rip), %r11
	jmp	.L117
.L191:
	addl	$6, %ebx
	jmp	.L101
.L118:
	movl	$1, i(%rip)
	movl	$1, %edx
	leaq	.LC2(%rip), %rbx
.L122:
	movl	$1, j(%rip)
	movl	$1, %eax
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L195:
	movl	i(%rip), %edx
.L121:
	movslq	%edx, %rdx
	cltq
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%r11,%rdx,2), %rdx
	movsbl	(%rdx,%rax), %edi
	call	putchar@PLT
	movl	j(%rip), %eax
	leaq	t(%rip), %r11
	addl	$1, %eax
	cmpl	$8, %eax
	movl	%eax, j(%rip)
	jle	.L195
	movq	%rbx, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	leaq	t(%rip), %r11
	leal	1(%rax), %edx
	cmpl	$8, %edx
	movl	%edx, i(%rip)
	jle	.L122
	addq	$56, %rsp
	.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
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.globl	mark
	.data
	.type	mark, @object
	.size	mark, 2
mark:
	.ascii	"ox"
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100
t:
	.zero	100
	.globl	dy
	.data
	.align 32
	.type	dy, @object
	.size	dy, 32
dy:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.globl	dx
	.align 32
	.type	dx, @object
	.size	dx, 32
dx:
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	1
	.globl	max
	.bss
	.align 16
	.type	max, @object
	.size	max, 24
max:
	.zero	24
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.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:

#define r return
i,j,n,max[6];
dx[8]={1,1,0,-1,-1,-1,0,1};
dy[8]={0,1,1,1,0,-1,-1,-1};
char t[10][10],mark[2]={'o','x'};
 
int l(int dx,int dy,int x,int y,char m,int c){
  if(t[x][y]=='.'||t[x][y]=='0')r 0;
  if(t[x][y]==m)r c;
  r l(dx,dy,x+dx,y+dy,m,c+1);
}
int s(int x,int y,char m){
  int k,c;
  c = 0;
  if(t[x][y]!='.')r 0;
  for(k=0;k<8;k++){
    c += l(dx[k],dy[k],x+dx[k],y+dy[k],m,0);
  }
  r c;
}
int okikae2(int dx,int dy,int x,int y,char m){
  if(t[x][y]=='0'||t[x][y]=='.')r 0;
  else if(t[x][y]==m)r 1;
  else if(okikae2(dx,dy,x+dx,y+dy,m)){
    t[x][y]=m;
    r 1;
  }
  else r 0;
}
int okikae(int x,int y,char m){
  int k;
  t[x][y]=m;
  for(k=0;k<8;k++){
    okikae2(dx[k],dy[k],x+dx[k],y+dy[k],m);
  }
  r 0;
}
 
int main(){
  for(i=0;i<10;i++)t[0][i]=t[9][i]='0';
  for(i=1;i<9;i++){
    scanf("%s",&t[i][1]);
    t[i][0]='0';
    t[i][9]='0';
  }
  max[1]=-1;
  for(n=0;;n=(n+1)%2){
    max[n]=-1;
    for(i=n?8:1;n?i>-1:i<9;n?i--:i++){
      for(j=n?8:1;n?j>-1:j<9;n?j--:j++){
        if(max[n]<s(i,j,mark[n])){
          max[2+n]=i;
          max[4+n]=j;
          max[n]=s(i,j,mark[n]);
        }
      }
    }
    if(max[n]!=0)okikae(max[2+n],max[4+n],mark[n]);
    if(max[0]==0&&max[1]==0)break;
  }
  for(i=1;i<9;i++){
    for(j=1;j<9;j++){
      printf("%c",t[i][j]);
    }
    puts("");
  }
  r 0;
}
ooox....
.x......
ooo.....
........
........
........
........
........

ooooo...
.o......
ooo.....
...o....
....o...
........
........
........

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

```c
#define r return
i,j,n,max[6];
dx[8]={1,1,0,-1,-1,-1,0,1};
dy[8]={0,1,1,1,0,-1,-1,-1};
char t[10][10],mark[2]={'o','x'};
 
int l(int dx,int dy,int x,int y,char m,int c){
  if(t[x][y]=='.'||t[x][y]=='0')r 0;
  if(t[x][y]==m)r c;
  r l(dx,dy,x+dx,y+dy,m,c+1);
}
int s(int x,int y,char m){
  int k,c;
  c = 0;
  if(t[x][y]!='.')r 0;
  for(k=0;k<8;k++){
    c += l(dx[k],dy[k],x+dx[k],y+dy[k],m,0);
  }
  r c;
}
int okikae2(int dx,int dy,int x,int y,char m){
  if(t[x][y]=='0'||t[x][y]=='.')r 0;
  else if(t[x][y]==m)r 1;
  else if(okikae2(dx,dy,x+dx,y+dy,m)){
    t[x][y]=m;
    r 1;
  }
  else r 0;
}
int okikae(int x,int y,char m){
  int k;
  t[x][y]=m;
  for(k=0;k<8;k++){
    okikae2(dx[k],dy[k],x+dx[k],y+dy[k],m);
  }
  r 0;
}
 
int main(){
  for(i=0;i<10;i++)t[0][i]=t[9][i]='0';
  for(i=1;i<9;i++){
    scanf("%s",&t[i][1]);
    t[i][0]='0';
    t[i][9]='0';
  }
  max[1]=-1;
  for(n=0;;n=(n+1)%2){
    max[n]=-1;
    for(i=n?8:1;n?i>-1:i<9;n?i--:i++){
      for(j=n?8:1;n?j>-1:j<9;n?j--:j++){
        if(max[n]<s(i,j,mark[n])){
          max[2+n]=i;
          max[4+n]=j;
          max[n]=s(i,j,mark[n]);
        }
      }
    }
    if(max[n]!=0)okikae(max[2+n],max[4+n],mark[n]);
    if(max[0]==0&&max[1]==0)break;
  }
  for(i=1;i<9;i++){
    for(j=1;j<9;j++){
      printf("%c",t[i][j]);
    }
    puts("");
  }
  r 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	max
	.align 16
	.type	max, @object
	.size	max, 24
max:
	.zero	24
	.globl	dx
	.data
	.align 32
	.type	dx, @object
	.size	dx, 32
dx:
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	1
	.globl	dy
	.align 32
	.type	dy, @object
	.size	dy, 32
dy:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100
t:
	.zero	100
	.globl	mark
	.data
	.type	mark, @object
	.size	mark, 2
mark:
	.ascii	"ox"
	.text
	.globl	l
	.type	l, @function
l:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, %eax
	movl	%r9d, -24(%rbp)
	movb	%al, -20(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L2
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L3
.L2:
	movl	$0, %eax
	jmp	.L4
.L3:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -20(%rbp)
	jne	.L5
	movl	-24(%rbp), %eax
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	leal	1(%rax), %r8d
	movsbl	-20(%rbp), %edi
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%r8d, %r9d
	movl	%edi, %r8d
	movl	%eax, %edi
	call	l
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	l, .-l
	.globl	s
	.type	s, @function
s:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, %eax
	movb	%al, -28(%rbp)
	movl	$0, -4(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L7
	movl	$0, %eax
	jmp	.L8
.L7:
	movl	$0, -8(%rbp)
	jmp	.L9
.L10:
	movsbl	-28(%rbp), %r8d
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	dy(%rip), %rax
	movl	(%rsi,%rax), %esi
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	leaq	dx(%rip), %rax
	movl	(%rdi,%rax), %eax
	movl	$0, %r9d
	movl	%eax, %edi
	call	l
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L9:
	cmpl	$7, -8(%rbp)
	jle	.L10
	movl	-4(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	s, .-s
	.globl	okikae2
	.type	okikae2, @function
okikae2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, %eax
	movb	%al, -20(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	je	.L12
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L13
.L12:
	movl	$0, %eax
	jmp	.L14
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -20(%rbp)
	jne	.L15
	movl	$1, %eax
	jmp	.L14
.L15:
	movsbl	-20(%rbp), %edi
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%edi, %r8d
	movl	%eax, %edi
	call	okikae2
	testl	%eax, %eax
	je	.L16
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rax, %rdx
	movzbl	-20(%rbp), %eax
	movb	%al, (%rdx)
	movl	$1, %eax
	jmp	.L14
.L16:
	movl	$0, %eax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	okikae2, .-okikae2
	.globl	okikae
	.type	okikae, @function
okikae:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, %eax
	movb	%al, -28(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rax, %rdx
	movzbl	-28(%rbp), %eax
	movb	%al, (%rdx)
	movl	$0, -4(%rbp)
	jmp	.L18
.L19:
	movsbl	-28(%rbp), %r8d
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	dy(%rip), %rax
	movl	(%rsi,%rax), %esi
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	leaq	dx(%rip), %rax
	movl	(%rdi,%rax), %eax
	movl	%eax, %edi
	call	okikae2
	addl	$1, -4(%rbp)
.L18:
	cmpl	$7, -4(%rbp)
	jle	.L19
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	okikae, .-okikae
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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	$8, %rsp
	.cfi_offset 3, -24
	movl	$0, i(%rip)
	jmp	.L22
.L23:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	leaq	90+t(%rip), %rcx
	movb	$48, (%rdx,%rcx)
	movl	i(%rip), %ecx
	cltq
	leaq	90+t(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movslq	%ecx, %rax
	leaq	t(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L22:
	movl	i(%rip), %eax
	cmpl	$9, %eax
	jle	.L23
	movl	$1, i(%rip)
	jmp	.L24
.L25:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	t(%rip), %rax
	movb	$48, (%rdx,%rax)
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	9+t(%rip), %rax
	movb	$48, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L24:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	jle	.L25
	movl	$-1, 4+max(%rip)
	movl	$0, n(%rip)
.L44:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L26
	movl	$8, %eax
	jmp	.L27
.L26:
	movl	$1, %eax
.L27:
	movl	%eax, i(%rip)
	jmp	.L28
.L40:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L29
	movl	$8, %eax
	jmp	.L30
.L29:
	movl	$1, %eax
.L30:
	movl	%eax, j(%rip)
	jmp	.L31
.L36:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	j(%rip), %ecx
	movl	i(%rip), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	s
	cmpl	%eax, %ebx
	jge	.L32
	movl	n(%rip), %eax
	leal	2(%rax), %edx
	movl	i(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	n(%rip), %eax
	leal	4(%rax), %edx
	movl	j(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	j(%rip), %ecx
	movl	i(%rip), %eax
	movl	n(%rip), %ebx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	s
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L32:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L33
	movl	j(%rip), %eax
	subl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L31
.L33:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L31:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L34
	movl	j(%rip), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	.L35
.L34:
	movl	j(%rip), %eax
	cmpl	$8, %eax
	setle	%al
.L35:
	testb	%al, %al
	jne	.L36
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L37
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
	jmp	.L28
.L37:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L28:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L38
	movl	i(%rip), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	.L39
.L38:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	setle	%al
.L39:
	testb	%al, %al
	jne	.L40
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L41
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	n(%rip), %eax
	addl	$4, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	max(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	n(%rip), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	max(%rip), %rax
	movl	(%rsi,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	okikae
.L41:
	movl	max(%rip), %eax
	testl	%eax, %eax
	jne	.L42
	movl	4+max(%rip), %eax
	testl	%eax, %eax
	je	.L51
.L42:
	movl	n(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, n(%rip)
	jmp	.L44
.L51:
	nop
	movl	$1, i(%rip)
	jmp	.L45
.L48:
	movl	$1, j(%rip)
	jmp	.L46
.L47:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L46:
	movl	j(%rip), %eax
	cmpl	$8, %eax
	jle	.L47
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L45:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	jle	.L48
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	max
	.align 16
	.type	max, @object
	.size	max, 24
max:
	.zero	24
	.globl	dx
	.data
	.align 32
	.type	dx, @object
	.size	dx, 32
dx:
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	1
	.globl	dy
	.align 32
	.type	dy, @object
	.size	dy, 32
dy:
	.long	0
	.long	1
	.long	1
	.long	1
	.long	0
	.long	-1
	.long	-1
	.long	-1
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100
t:
	.zero	100
	.globl	mark
	.data
	.type	mark, @object
	.size	mark, 2
mark:
	.ascii	"ox"
	.text
	.globl	l
	.type	l, @function
l:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, %eax
	movl	%r9d, -24(%rbp)
	movb	%al, -20(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L2
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L3
.L2:
	movl	$0, %eax
	jmp	.L4
.L3:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -20(%rbp)
	jne	.L5
	movl	-24(%rbp), %eax
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	leal	1(%rax), %r8d
	movsbl	-20(%rbp), %edi
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%r8d, %r9d
	movl	%edi, %r8d
	movl	%eax, %edi
	call	l
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	l, .-l
	.globl	s
	.type	s, @function
s:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, %eax
	movb	%al, -28(%rbp)
	movl	$0, -4(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	je	.L7
	movl	$0, %eax
	jmp	.L8
.L7:
	movl	$0, -8(%rbp)
	jmp	.L9
.L10:
	movsbl	-28(%rbp), %r8d
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	dy(%rip), %rax
	movl	(%rsi,%rax), %esi
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	leaq	dx(%rip), %rax
	movl	(%rdi,%rax), %eax
	movl	$0, %r9d
	movl	%eax, %edi
	call	l
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L9:
	cmpl	$7, -8(%rbp)
	jle	.L10
	movl	-4(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	s, .-s
	.globl	okikae2
	.type	okikae2, @function
okikae2:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, %eax
	movb	%al, -20(%rbp)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	je	.L12
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L13
.L12:
	movl	$0, %eax
	jmp	.L14
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -20(%rbp)
	jne	.L15
	movl	$1, %eax
	jmp	.L14
.L15:
	movsbl	-20(%rbp), %edi
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%edi, %r8d
	movl	%eax, %edi
	call	okikae2
	testl	%eax, %eax
	je	.L16
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rax, %rdx
	movzbl	-20(%rbp), %eax
	movb	%al, (%rdx)
	movl	$1, %eax
	jmp	.L14
.L16:
	movl	$0, %eax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	okikae2, .-okikae2
	.globl	okikae
	.type	okikae, @function
okikae:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, %eax
	movb	%al, -28(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rax, %rdx
	movzbl	-28(%rbp), %eax
	movb	%al, (%rdx)
	movl	$0, -4(%rbp)
	jmp	.L18
.L19:
	movsbl	-28(%rbp), %r8d
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	dy(%rip), %rax
	movl	(%rsi,%rax), %esi
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	leaq	dx(%rip), %rax
	movl	(%rdi,%rax), %eax
	movl	%eax, %edi
	call	okikae2
	addl	$1, -4(%rbp)
.L18:
	cmpl	$7, -4(%rbp)
	jle	.L19
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	okikae, .-okikae
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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	$8, %rsp
	.cfi_offset 3, -24
	movl	$0, i(%rip)
	jmp	.L22
.L23:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	leaq	90+t(%rip), %rcx
	movb	$48, (%rdx,%rcx)
	movl	i(%rip), %ecx
	cltq
	leaq	90+t(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movslq	%ecx, %rax
	leaq	t(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L22:
	movl	i(%rip), %eax
	cmpl	$9, %eax
	jle	.L23
	movl	$1, i(%rip)
	jmp	.L24
.L25:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	t(%rip), %rax
	movb	$48, (%rdx,%rax)
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	leaq	9+t(%rip), %rax
	movb	$48, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L24:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	jle	.L25
	movl	$-1, 4+max(%rip)
	movl	$0, n(%rip)
.L44:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	$-1, (%rdx,%rax)
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L26
	movl	$8, %eax
	jmp	.L27
.L26:
	movl	$1, %eax
.L27:
	movl	%eax, i(%rip)
	jmp	.L28
.L40:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L29
	movl	$8, %eax
	jmp	.L30
.L29:
	movl	$1, %eax
.L30:
	movl	%eax, j(%rip)
	jmp	.L31
.L36:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	j(%rip), %ecx
	movl	i(%rip), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	s
	cmpl	%eax, %ebx
	jge	.L32
	movl	n(%rip), %eax
	leal	2(%rax), %edx
	movl	i(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	n(%rip), %eax
	leal	4(%rax), %edx
	movl	j(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	j(%rip), %ecx
	movl	i(%rip), %eax
	movl	n(%rip), %ebx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	s
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	max(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L32:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L33
	movl	j(%rip), %eax
	subl	$1, %eax
	movl	%eax, j(%rip)
	jmp	.L31
.L33:
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L31:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L34
	movl	j(%rip), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	.L35
.L34:
	movl	j(%rip), %eax
	cmpl	$8, %eax
	setle	%al
.L35:
	testb	%al, %al
	jne	.L36
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L37
	movl	i(%rip), %eax
	subl	$1, %eax
	movl	%eax, i(%rip)
	jmp	.L28
.L37:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L28:
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L38
	movl	i(%rip), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	.L39
.L38:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	setle	%al
.L39:
	testb	%al, %al
	jne	.L40
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	max(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L41
	movl	n(%rip), %eax
	cltq
	leaq	mark(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %edx
	movl	n(%rip), %eax
	addl	$4, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	max(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	n(%rip), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	leaq	max(%rip), %rax
	movl	(%rsi,%rax), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	okikae
.L41:
	movl	max(%rip), %eax
	testl	%eax, %eax
	jne	.L42
	movl	4+max(%rip), %eax
	testl	%eax, %eax
	je	.L51
.L42:
	movl	n(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, n(%rip)
	jmp	.L44
.L51:
	nop
	movl	$1, i(%rip)
	jmp	.L45
.L48:
	movl	$1, j(%rip)
	jmp	.L46
.L47:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L46:
	movl	j(%rip), %eax
	cmpl	$8, %eax
	jle	.L47
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L45:
	movl	i(%rip), %eax
	cmpl	$8, %eax
	jle	.L48
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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:
