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

```c
#include<stdio.h>
int cnt,dx[4]={0,-1,0,1},dy[4]={-1,0,1,0},max,x,y,m,n,i,j,a[90][90];
void func(int y,int x){
	int i,xx,yy;
	for(i=0;i<4;i++){
		xx=x+dx[i]; yy=y+dy[i];
		if(xx<m&&xx>=0&&yy<n&&yy>=0&&a[yy][xx]==1){
			cnt++;
			a[yy][xx]=0;
			if(max<cnt) max=cnt;
			func(yy,xx);
			a[yy][xx]=1; cnt--;
		}
	}
}
int main(void){
	int i,j;
	while(1){
		scanf("%d %d",&m,&n);
		if(m==0&&n==0) break;
		for(i=0;i<n;i++){
			for(j=0;j<m;j++) scanf("%d",&a[i][j]);
		}
		max=0;
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				cnt=0;
				func(i,j);
			}
		}
		printf("%d\n",max);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	-1
	.long	0
	.long	1
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	max
	.bss
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.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	a
	.align 32
	.type	a, @object
	.size	a, 32400
a:
	.zero	32400
	.text
	.globl	func
	.type	func, @function
func:
.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, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L3
	cmpl	$0, -8(%rbp)
	js	.L3
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jge	.L3
	cmpl	$0, -4(%rbp)
	js	.L3
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	max(%rip), %edx
	movl	cnt(%rip), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	cnt(%rip), %eax
	movl	%eax, max(%rip)
.L4:
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	cnt(%rip), %eax
	subl	$1, %eax
	movl	%eax, cnt(%rip)
.L3:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$3, -12(%rbp)
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
.L17:
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jne	.L7
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L20
.L7:
	movl	$0, -8(%rbp)
	jmp	.L9
.L12:
	movl	$0, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L10:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L11
	addl	$1, -8(%rbp)
.L9:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L12
	movl	$0, max(%rip)
	movl	$0, -8(%rbp)
	jmp	.L13
.L16:
	movl	$0, -4(%rbp)
	jmp	.L14
.L15:
	movl	$0, cnt(%rip)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	addl	$1, -4(%rbp)
.L14:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L15
	addl	$1, -8(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L16
	movl	max(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L17
.L20:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	func
	.type	func, @function
func:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%esi, %ebx
	addl	dx(%rip), %esi
	cmpl	%esi, m(%rip)
	jle	.L2
	testl	%esi, %esi
	jns	.L39
.L2:
	movl	4+dx(%rip), %esi
	addl	%ebx, %esi
	cmpl	m(%rip), %esi
	jge	.L5
	testl	%esi, %esi
	jns	.L40
.L5:
	movl	8+dx(%rip), %esi
	addl	%ebx, %esi
	cmpl	m(%rip), %esi
	jge	.L8
	testl	%esi, %esi
	jns	.L41
.L8:
	addl	12+dx(%rip), %ebx
	cmpl	%ebx, m(%rip)
	jle	.L1
	testl	%ebx, %ebx
	jns	.L42
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movl	12+dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	%edi, n(%rip)
	jle	.L1
	testl	%edi, %edi
	js	.L1
	movslq	%edi, %rbp
	movslq	%ebx, %r13
	leaq	a(%rip), %r12
	imulq	$90, %rbp, %rax
	addq	%r13, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L1
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	max(%rip), %edx
	movl	%edx, cnt(%rip)
	jle	.L12
	movl	%edx, max(%rip)
.L12:
	movl	%ebx, %esi
	call	func
	imulq	$90, %rbp, %rax
	subl	$1, cnt(%rip)
	addq	%r13, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	movl	8+dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	n(%rip), %edi
	jge	.L8
	testl	%edi, %edi
	js	.L8
	movslq	%edi, %r13
	movslq	%esi, %r14
	leaq	a(%rip), %r12
	imulq	$90, %r13, %rax
	addq	%r14, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L8
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	max(%rip), %edx
	movl	%edx, cnt(%rip)
	jle	.L10
	movl	%edx, max(%rip)
.L10:
	call	func
	imulq	$90, %r13, %rax
	subl	$1, cnt(%rip)
	addq	%r14, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L40:
	movl	4+dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	n(%rip), %edi
	jge	.L5
	testl	%edi, %edi
	js	.L5
	movslq	%edi, %r13
	movslq	%esi, %r14
	leaq	a(%rip), %r12
	imulq	$90, %r13, %rax
	addq	%r14, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L5
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	max(%rip), %edx
	movl	%edx, cnt(%rip)
	jle	.L7
	movl	%edx, max(%rip)
.L7:
	call	func
	imulq	$90, %r13, %rax
	subl	$1, cnt(%rip)
	addq	%r14, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L39:
	movl	dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	%edi, n(%rip)
	jle	.L2
	testl	%edi, %edi
	js	.L2
	movslq	%edi, %r13
	movslq	%esi, %r14
	leaq	a(%rip), %r12
	imulq	$90, %r13, %rax
	addq	%r14, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L2
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	%edx, max(%rip)
	movl	%edx, cnt(%rip)
	jge	.L4
	movl	%edx, max(%rip)
.L4:
	call	func
	imulq	$90, %r13, %rax
	subl	$1, cnt(%rip)
	addq	%r14, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.cfi_endproc
.LFE23:
	.size	func, .-func
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	leaq	a(%rip), %r13
	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	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L59:
	leaq	n(%rip), %rdx
	xorl	%eax, %eax
	leaq	m(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	movl	n(%rip), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L63
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	testl	%edx, %edx
	jle	.L74
	testl	%eax, %eax
	jle	.L75
	.p2align 4,,10
	.p2align 3
.L54:
	leaq	0(%r13,%r12,4), %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	addq	$4, %r15
	cmpl	%r14d, %eax
	jg	.L47
	movl	n(%rip), %edx
	addl	$1, %ebp
	cmpl	%ebp, %edx
	jle	.L76
	addq	$90, %r12
	testl	%eax, %eax
	jg	.L54
.L75:
	addl	$1, %ebp
	cmpl	%ebp, %edx
	jle	.L77
	movl	$0, max(%rip)
.L60:
	movl	max(%rip), %edx
.L53:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L59
.L74:
	movl	$0, max(%rip)
.L73:
	xorl	%edx, %edx
	jmp	.L53
.L63:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L76:
	.cfi_restore_state
	movl	$0, max(%rip)
	testl	%edx, %edx
	jle	.L73
.L52:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L57:
	testl	%eax, %eax
	jle	.L60
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L56:
	movl	$0, cnt(%rip)
	movl	%r8d, %esi
	movl	%r9d, %edi
	addl	$1, %r8d
	call	func
	movl	m(%rip), %eax
	cmpl	%r8d, %eax
	jg	.L56
	addl	$1, %r9d
	cmpl	%r9d, n(%rip)
	jg	.L57
	jmp	.L60
.L77:
	movl	$0, max(%rip)
	jmp	.L52
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 32400
a:
	.zero	32400
	.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
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	dy
	.data
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	dx
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	-1
	.long	0
	.long	1
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.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	func
	.type	func, @function
func:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%esi, %ebx
	addl	dx(%rip), %esi
	cmpl	%esi, m(%rip)
	jle	.L2
	testl	%esi, %esi
	jns	.L39
.L2:
	movl	4+dx(%rip), %esi
	addl	%ebx, %esi
	cmpl	m(%rip), %esi
	jge	.L5
	testl	%esi, %esi
	jns	.L40
.L5:
	movl	8+dx(%rip), %esi
	addl	%ebx, %esi
	cmpl	m(%rip), %esi
	jge	.L8
	testl	%esi, %esi
	jns	.L41
.L8:
	addl	12+dx(%rip), %ebx
	cmpl	%ebx, m(%rip)
	jle	.L1
	testl	%ebx, %ebx
	jns	.L42
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movl	12+dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	%edi, n(%rip)
	jle	.L1
	testl	%edi, %edi
	js	.L1
	movslq	%edi, %rbp
	movslq	%ebx, %r13
	leaq	a(%rip), %r12
	imulq	$90, %rbp, %rax
	addq	%r13, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L1
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	max(%rip), %edx
	movl	%edx, cnt(%rip)
	jle	.L12
	movl	%edx, max(%rip)
.L12:
	movl	%ebx, %esi
	call	func
	imulq	$90, %rbp, %rax
	subl	$1, cnt(%rip)
	addq	%r13, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	movl	8+dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	n(%rip), %edi
	jge	.L8
	testl	%edi, %edi
	js	.L8
	movslq	%edi, %r13
	movslq	%esi, %r14
	leaq	a(%rip), %r12
	imulq	$90, %r13, %rax
	addq	%r14, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L8
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	max(%rip), %edx
	movl	%edx, cnt(%rip)
	jle	.L10
	movl	%edx, max(%rip)
.L10:
	call	func
	imulq	$90, %r13, %rax
	subl	$1, cnt(%rip)
	addq	%r14, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L40:
	movl	4+dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	n(%rip), %edi
	jge	.L5
	testl	%edi, %edi
	js	.L5
	movslq	%edi, %r13
	movslq	%esi, %r14
	leaq	a(%rip), %r12
	imulq	$90, %r13, %rax
	addq	%r14, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L5
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	max(%rip), %edx
	movl	%edx, cnt(%rip)
	jle	.L7
	movl	%edx, max(%rip)
.L7:
	call	func
	imulq	$90, %r13, %rax
	subl	$1, cnt(%rip)
	addq	%r14, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L39:
	movl	dy(%rip), %edi
	addl	%ebp, %edi
	cmpl	%edi, n(%rip)
	jle	.L2
	testl	%edi, %edi
	js	.L2
	movslq	%edi, %r13
	movslq	%esi, %r14
	leaq	a(%rip), %r12
	imulq	$90, %r13, %rax
	addq	%r14, %rax
	cmpl	$1, (%r12,%rax,4)
	jne	.L2
	movl	cnt(%rip), %ecx
	movl	$0, (%r12,%rax,4)
	leal	1(%rcx), %edx
	cmpl	%edx, max(%rip)
	movl	%edx, cnt(%rip)
	jge	.L4
	movl	%edx, max(%rip)
.L4:
	call	func
	imulq	$90, %r13, %rax
	subl	$1, cnt(%rip)
	addq	%r14, %rax
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.cfi_endproc
.LFE23:
	.size	func, .-func
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	leaq	a(%rip), %r13
	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	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L59:
	leaq	n(%rip), %rdx
	xorl	%eax, %eax
	leaq	m(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	movl	n(%rip), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L63
	xorl	%r12d, %r12d
	xorl	%ebp, %ebp
	testl	%edx, %edx
	jle	.L74
	testl	%eax, %eax
	jle	.L75
	.p2align 4,,10
	.p2align 3
.L54:
	leaq	0(%r13,%r12,4), %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L47:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	addq	$4, %r15
	cmpl	%r14d, %eax
	jg	.L47
	movl	n(%rip), %edx
	addl	$1, %ebp
	cmpl	%ebp, %edx
	jle	.L76
	addq	$90, %r12
	testl	%eax, %eax
	jg	.L54
.L75:
	addl	$1, %ebp
	cmpl	%ebp, %edx
	jle	.L77
	movl	$0, max(%rip)
.L60:
	movl	max(%rip), %edx
.L53:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L59
.L74:
	movl	$0, max(%rip)
.L73:
	xorl	%edx, %edx
	jmp	.L53
.L63:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L76:
	.cfi_restore_state
	movl	$0, max(%rip)
	testl	%edx, %edx
	jle	.L73
.L52:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L57:
	testl	%eax, %eax
	jle	.L60
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L56:
	movl	$0, cnt(%rip)
	movl	%r8d, %esi
	movl	%r9d, %edi
	addl	$1, %r8d
	call	func
	movl	m(%rip), %eax
	cmpl	%r8d, %eax
	jg	.L56
	addl	$1, %r9d
	cmpl	%r9d, n(%rip)
	jg	.L57
	jmp	.L60
.L77:
	movl	$0, max(%rip)
	jmp	.L52
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 32400
a:
	.zero	32400
	.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
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	dy
	.data
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	dx
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	-1
	.long	0
	.long	1
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
int cnt,dx[4]={0,-1,0,1},dy[4]={-1,0,1,0},max,x,y,m,n,i,j,a[90][90];
void func(int y,int x){
	int i,xx,yy;
	for(i=0;i<4;i++){
		xx=x+dx[i]; yy=y+dy[i];
		if(xx<m&&xx>=0&&yy<n&&yy>=0&&a[yy][xx]==1){
			cnt++;
			a[yy][xx]=0;
			if(max<cnt) max=cnt;
			func(yy,xx);
			a[yy][xx]=1; cnt--;
		}
	}
}
int main(void){
	int i,j;
	while(1){
		scanf("%d %d",&m,&n);
		if(m==0&&n==0) break;
		for(i=0;i<n;i++){
			for(j=0;j<m;j++) scanf("%d",&a[i][j]);
		}
		max=0;
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				cnt=0;
				func(i,j);
			}
		}
		printf("%d\n",max);
	}
	return 0;
}
3
3
1 1 0
1 0 1
1 1 0
5
3
1 1 1 0 1
1 1 0 1 0
1 0 0 0 1
0
0
 3
3
1 1 0
1 0 1
0 1 0
5
3
1 1 0 0 1
1 1 0 1 0
1 0 0 0 1
0
0
 3
3
1 1 0
1 0 1
0 1 0
5
3
1 1 0 0 1
1 1 0 1 0
1 1 1 0 1
0
0
 3
3
1 1 0
1 0 1
1 1 0
5
3
1 0 1 0 1
1 1 0 1 0
1 0 0 0 1
0
0
 3
3
1 1 0
0 0 1
0 1 0
5
3
1 1 0 0 1
1 1 0 1 0
1 0 0 0 1
0
0
 3
3
1 0 0
1 0 1
1 1 0
5
3
1 0 1 0 1
1 1 0 1 0
1 0 0 0 1
0
0
 3
3
1 1 0
1 0 1
0 1 0
5
3
0 1 0 0 1
1 1 0 1 0
1 1 1 0 1
0
0
 3
3
1 1 0
1 0 1
0 1 0
5
3
1 1 1 0 1
0 1 0 0 0
1 0 1 0 1
0
0
 3
3
1 1 0
1 0 1
1 0 0
5
3
1 1 1 0 1
1 1 0 0 0
1 0 0 0 1
0
0
 3
3
1 1 0
1 0 1
1 1 1
5
3
1 0 1 0 1
1 0 0 1 0
1 0 0 0 1
0
0

5
5
 3
5
 3
7
 5
3
 2
5
 4
3
 3
6
 3
3
 4
5
 7
3

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

```c
#include<stdio.h>
int cnt,dx[4]={0,-1,0,1},dy[4]={-1,0,1,0},max,x,y,m,n,i,j,a[90][90];
void func(int y,int x){
	int i,xx,yy;
	for(i=0;i<4;i++){
		xx=x+dx[i]; yy=y+dy[i];
		if(xx<m&&xx>=0&&yy<n&&yy>=0&&a[yy][xx]==1){
			cnt++;
			a[yy][xx]=0;
			if(max<cnt) max=cnt;
			func(yy,xx);
			a[yy][xx]=1; cnt--;
		}
	}
}
int main(void){
	int i,j;
	while(1){
		scanf("%d %d",&m,&n);
		if(m==0&&n==0) break;
		for(i=0;i<n;i++){
			for(j=0;j<m;j++) scanf("%d",&a[i][j]);
		}
		max=0;
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				cnt=0;
				func(i,j);
			}
		}
		printf("%d\n",max);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	-1
	.long	0
	.long	1
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	max
	.bss
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.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	a
	.align 32
	.type	a, @object
	.size	a, 32400
a:
	.zero	32400
	.text
	.globl	func
	.type	func, @function
func:
.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, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L3
	cmpl	$0, -8(%rbp)
	js	.L3
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jge	.L3
	cmpl	$0, -4(%rbp)
	js	.L3
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	max(%rip), %edx
	movl	cnt(%rip), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	cnt(%rip), %eax
	movl	%eax, max(%rip)
.L4:
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	cnt(%rip), %eax
	subl	$1, %eax
	movl	%eax, cnt(%rip)
.L3:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$3, -12(%rbp)
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
.L17:
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jne	.L7
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L20
.L7:
	movl	$0, -8(%rbp)
	jmp	.L9
.L12:
	movl	$0, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L10:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L11
	addl	$1, -8(%rbp)
.L9:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L12
	movl	$0, max(%rip)
	movl	$0, -8(%rbp)
	jmp	.L13
.L16:
	movl	$0, -4(%rbp)
	jmp	.L14
.L15:
	movl	$0, cnt(%rip)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	addl	$1, -4(%rbp)
.L14:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L15
	addl	$1, -8(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L16
	movl	max(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L17
.L20:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	-1
	.long	0
	.long	1
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	max
	.bss
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.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	a
	.align 32
	.type	a, @object
	.size	a, 32400
a:
	.zero	32400
	.text
	.globl	func
	.type	func, @function
func:
.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, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L3
	cmpl	$0, -8(%rbp)
	js	.L3
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jge	.L3
	cmpl	$0, -4(%rbp)
	js	.L3
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L3
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	max(%rip), %edx
	movl	cnt(%rip), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	cnt(%rip), %eax
	movl	%eax, max(%rip)
.L4:
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	cnt(%rip), %eax
	subl	$1, %eax
	movl	%eax, cnt(%rip)
.L3:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$3, -12(%rbp)
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
.L17:
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	jne	.L7
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L20
.L7:
	movl	$0, -8(%rbp)
	jmp	.L9
.L12:
	movl	$0, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	imulq	$90, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L10:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L11
	addl	$1, -8(%rbp)
.L9:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L12
	movl	$0, max(%rip)
	movl	$0, -8(%rbp)
	jmp	.L13
.L16:
	movl	$0, -4(%rbp)
	jmp	.L14
.L15:
	movl	$0, cnt(%rip)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	addl	$1, -4(%rbp)
.L14:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L15
	addl	$1, -8(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L16
	movl	max(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L17
.L20:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
