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>          // printf(), scanf()

#define MAX_M 1400
#define max(a, b) ((a) > (b) ? (a) : (b))

int G[MAX_M][MAX_M];
int dp[MAX_M][MAX_M];
int H, W;

int
getLargestSquare()
{
	int i, j;
	int s, t;

	int maxWidth = 0;
	for (i = 0; i < H; ++i)
	{
		for (j = 0; j < W; ++j)
		{
			dp[i][j] = (G[i][j] + 1) % 2;
			maxWidth |= dp[i][j];
		}
	}

	for (i = 1; i < H; ++i)
	{
		for (j = 1; j < W; ++j)
		{
			if (G[i][j])
				dp[i][j] = 0;
			else
			{
				t = dp[i - 1][j - 1];
				s = dp[i - 1][j];
				if (s < t)
					t = s;

				s = dp[i][j - 1];
				if (s < t)
					t = s;

				dp[i][j] = t + 1;
				maxWidth = max(maxWidth, dp[i][j]);
			}
		}
	}

	return maxWidth * maxWidth;
}

int
main(int argc, char** argv)
{
	int c;
	int i, j;

	scanf("%d %d", &H, &W);
	c = getchar();
	for (i = 0; i < H; ++i)
	{
		for (j = 0; j < W; ++j)
		{
			while (c == ' ' || c == '\n')
				c = getchar();

			G[i][j] = c != '0' ? 1 : 0;
			c = getchar();
		}
	}

	printf("%d\n", getLargestSquare());
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	G
	.bss
	.align 32
	.type	G, @object
	.size	G, 7840000
G:
	.zero	7840000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 7840000
dp:
	.zero	7840000
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.text
	.globl	getLargestSquare
	.type	getLargestSquare, @function
getLargestSquare:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L5:
	movl	$0, -16(%rbp)
	jmp	.L3
.L4:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	G(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	orl	%eax, -8(%rbp)
	addl	$1, -16(%rbp)
.L3:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L4
	addl	$1, -20(%rbp)
.L2:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L5
	movl	$1, -20(%rbp)
	jmp	.L6
.L13:
	movl	$1, -16(%rbp)
	jmp	.L7
.L12:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	G(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L8
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L8:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1400, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1400, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L10
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L10:
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L11
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L11:
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -8(%rbp)
.L9:
	addl	$1, -16(%rbp)
.L7:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L12
	addl	$1, -20(%rbp)
.L6:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L13
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getLargestSquare, .-getLargestSquare
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.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	$32, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	leaq	W(%rip), %rax
	movq	%rax, %rdx
	leaq	H(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L16
.L21:
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	call	getchar@PLT
	movl	%eax, -12(%rbp)
.L18:
	cmpl	$32, -12(%rbp)
	je	.L19
	cmpl	$10, -12(%rbp)
	je	.L19
	cmpl	$48, -12(%rbp)
	setne	%al
	movzbl	%al, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$1400, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	G(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	call	getchar@PLT
	movl	%eax, -12(%rbp)
	addl	$1, -4(%rbp)
.L17:
	movl	W(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L18
	addl	$1, -8(%rbp)
.L16:
	movl	H(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L21
	movl	$0, %eax
	call	getLargestSquare
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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	getLargestSquare
	.type	getLargestSquare, @function
getLargestSquare:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	H(%rip), %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	testl	%r15d, %r15d
	jle	.L16
	movl	W(%rip), %r11d
	leaq	G(%rip), %r12
	xorl	%ebx, %ebx
	leaq	dp(%rip), %r8
	movdqa	.LC0(%rip), %xmm3
	movq	%r12, %rdi
	movq	%r8, %rsi
	leal	-1(%r11), %eax
	movl	%r11d, %r14d
	movl	%eax, -12(%rsp)
	movl	%r11d, %eax
	andl	$-4, %r14d
	shrl	$2, %eax
	leal	-1(%rax), %r9d
	xorl	%eax, %eax
	addq	$1, %r9
	salq	$4, %r9
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%r11d, %r11d
	jle	.L9
	cmpl	$2, -12(%rsp)
	jbe	.L17
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rdi,%rdx), %xmm0
	paddd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	movaps	%xmm0, (%rsi,%rdx)
	addq	$16, %rdx
	por	%xmm0, %xmm1
	cmpq	%r9, %rdx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%r14d, %ecx
	psrldq	$8, %xmm0
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	orl	%edx, %eax
	cmpl	%r14d, %r11d
	je	.L9
.L4:
	movslq	%ebx, %rbp
	movslq	%ecx, %r10
	imulq	$1400, %rbp, %rbp
	addq	%rbp, %r10
	movl	(%r12,%r10,4), %edx
	addl	$1, %edx
	movl	%edx, %r13d
	shrl	$31, %r13d
	addl	%r13d, %edx
	andl	$1, %edx
	subl	%r13d, %edx
	movl	%edx, (%r8,%r10,4)
	leal	1(%rcx), %r10d
	orl	%edx, %eax
	cmpl	%r11d, %r10d
	jge	.L9
	movslq	%r10d, %r10
	addl	$2, %ecx
	addq	%rbp, %r10
	movl	(%r12,%r10,4), %edx
	addl	$1, %edx
	movl	%edx, %r13d
	shrl	$31, %r13d
	addl	%r13d, %edx
	andl	$1, %edx
	subl	%r13d, %edx
	movl	%edx, (%r8,%r10,4)
	orl	%edx, %eax
	cmpl	%r11d, %ecx
	jge	.L9
	movslq	%ecx, %rcx
	leaq	0(%rbp,%rcx), %rdx
	movl	(%r12,%rdx,4), %ecx
	addl	$1, %ecx
	movl	%ecx, %r10d
	shrl	$31, %r10d
	addl	%r10d, %ecx
	andl	$1, %ecx
	subl	%r10d, %ecx
	movl	%ecx, (%r8,%rdx,4)
	orl	%ecx, %eax
.L9:
	addl	$1, %ebx
	addq	$5600, %rdi
	addq	$5600, %rsi
	cmpl	%r15d, %ebx
	jne	.L3
	cmpl	$1, %ebx
	jle	.L2
	leal	-2(%rbx), %ebp
	leal	-2(%r11), %edx
	movl	$5600, %ebx
	imulq	$5600, %rbp, %rbp
	leaq	-5600+dp(%rip), %r12
	leaq	5604(,%rdx,4), %rdi
	leaq	4+G(%rip), %r10
	leaq	5604(%r12), %r9
	addq	$11200, %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	(%r12,%rbx), %rsi
	movq	%rbx, %rcx
	cmpl	$1, %r11d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%r10,%rcx), %edx
	testl	%edx, %edx
	jne	.L11
	movl	4(%rsi), %r13d
	movl	(%rsi), %edx
	cmpl	%r13d, %edx
	cmovg	%r13d, %edx
	movl	(%r8,%rcx), %r13d
	cmpl	%r13d, %edx
	cmovg	%r13d, %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	movl	%edx, (%r9,%rcx)
	cmovl	%edx, %eax
	addq	$4, %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rcx
	jne	.L14
.L13:
	addq	$5600, %rbx
	addq	$5600, %rdi
	cmpq	%rbp, %rbx
	jne	.L10
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	imull	%eax, %eax
	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
.L11:
	.cfi_restore_state
	movl	$0, (%r9,%rcx)
	addq	$4, %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rcx
	jne	.L14
	jmp	.L13
.L17:
	xorl	%ecx, %ecx
	jmp	.L4
.L16:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	imull	%eax, %eax
	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
.LFE23:
	.size	getLargestSquare, .-getLargestSquare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	W(%rip), %rdx
	leaq	H(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	H(%rip), %edx
	testl	%edx, %edx
	jle	.L24
	movl	W(%rip), %edx
	leaq	G(%rip), %rbp
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L31:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$32, %eax
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L33:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpl	$32, %eax
	je	.L33
.L36:
	cmpl	$10, %eax
	je	.L33
	cmpl	$48, %eax
	movq	stdin(%rip), %rdi
	setne	%al
	movzbl	%al, %eax
	movl	%eax, 0(%rbp,%rbx,4)
	addq	$1, %rbx
	call	getc@PLT
	movl	W(%rip), %edx
	cmpl	%ebx, %edx
	jg	.L30
	addl	$1, %r12d
	cmpl	H(%rip), %r12d
	jge	.L24
	addq	$5600, %rbp
	testl	%edx, %edx
	jg	.L31
.L24:
	xorl	%eax, %eax
	call	getLargestSquare
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.bss
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 7840000
dp:
	.zero	7840000
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 7840000
G:
	.zero	7840000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.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	getLargestSquare
	.type	getLargestSquare, @function
getLargestSquare:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	H(%rip), %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	testl	%r15d, %r15d
	jle	.L16
	movl	W(%rip), %r11d
	leaq	G(%rip), %r12
	xorl	%ebx, %ebx
	leaq	dp(%rip), %r8
	movdqa	.LC0(%rip), %xmm3
	movq	%r12, %rdi
	movq	%r8, %rsi
	leal	-1(%r11), %eax
	movl	%r11d, %r14d
	movl	%eax, -12(%rsp)
	movl	%r11d, %eax
	andl	$-4, %r14d
	shrl	$2, %eax
	leal	-1(%rax), %r9d
	xorl	%eax, %eax
	addq	$1, %r9
	salq	$4, %r9
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%r11d, %r11d
	jle	.L9
	cmpl	$2, -12(%rsp)
	jbe	.L17
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rdi,%rdx), %xmm0
	paddd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	movaps	%xmm0, (%rsi,%rdx)
	addq	$16, %rdx
	por	%xmm0, %xmm1
	cmpq	%r9, %rdx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%r14d, %ecx
	psrldq	$8, %xmm0
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	orl	%edx, %eax
	cmpl	%r14d, %r11d
	je	.L9
.L4:
	movslq	%ebx, %rbp
	movslq	%ecx, %r10
	imulq	$1400, %rbp, %rbp
	addq	%rbp, %r10
	movl	(%r12,%r10,4), %edx
	addl	$1, %edx
	movl	%edx, %r13d
	shrl	$31, %r13d
	addl	%r13d, %edx
	andl	$1, %edx
	subl	%r13d, %edx
	movl	%edx, (%r8,%r10,4)
	leal	1(%rcx), %r10d
	orl	%edx, %eax
	cmpl	%r11d, %r10d
	jge	.L9
	movslq	%r10d, %r10
	addl	$2, %ecx
	addq	%rbp, %r10
	movl	(%r12,%r10,4), %edx
	addl	$1, %edx
	movl	%edx, %r13d
	shrl	$31, %r13d
	addl	%r13d, %edx
	andl	$1, %edx
	subl	%r13d, %edx
	movl	%edx, (%r8,%r10,4)
	orl	%edx, %eax
	cmpl	%r11d, %ecx
	jge	.L9
	movslq	%ecx, %rcx
	leaq	0(%rbp,%rcx), %rdx
	movl	(%r12,%rdx,4), %ecx
	addl	$1, %ecx
	movl	%ecx, %r10d
	shrl	$31, %r10d
	addl	%r10d, %ecx
	andl	$1, %ecx
	subl	%r10d, %ecx
	movl	%ecx, (%r8,%rdx,4)
	orl	%ecx, %eax
.L9:
	addl	$1, %ebx
	addq	$5600, %rdi
	addq	$5600, %rsi
	cmpl	%r15d, %ebx
	jne	.L3
	cmpl	$1, %ebx
	jle	.L2
	leal	-2(%rbx), %ebp
	leal	-2(%r11), %edx
	movl	$5600, %ebx
	imulq	$5600, %rbp, %rbp
	leaq	-5600+dp(%rip), %r12
	leaq	5604(,%rdx,4), %rdi
	leaq	4+G(%rip), %r10
	leaq	5604(%r12), %r9
	addq	$11200, %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	(%r12,%rbx), %rsi
	movq	%rbx, %rcx
	cmpl	$1, %r11d
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%r10,%rcx), %edx
	testl	%edx, %edx
	jne	.L11
	movl	4(%rsi), %r13d
	movl	(%rsi), %edx
	cmpl	%r13d, %edx
	cmovg	%r13d, %edx
	movl	(%r8,%rcx), %r13d
	cmpl	%r13d, %edx
	cmovg	%r13d, %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	movl	%edx, (%r9,%rcx)
	cmovl	%edx, %eax
	addq	$4, %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rcx
	jne	.L14
.L13:
	addq	$5600, %rbx
	addq	$5600, %rdi
	cmpq	%rbp, %rbx
	jne	.L10
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	imull	%eax, %eax
	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
.L11:
	.cfi_restore_state
	movl	$0, (%r9,%rcx)
	addq	$4, %rcx
	addq	$4, %rsi
	cmpq	%rdi, %rcx
	jne	.L14
	jmp	.L13
.L17:
	xorl	%ecx, %ecx
	jmp	.L4
.L16:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	imull	%eax, %eax
	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
.LFE23:
	.size	getLargestSquare, .-getLargestSquare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	W(%rip), %rdx
	leaq	H(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	H(%rip), %edx
	testl	%edx, %edx
	jle	.L24
	movl	W(%rip), %edx
	leaq	G(%rip), %rbp
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L31:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$32, %eax
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L33:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpl	$32, %eax
	je	.L33
.L36:
	cmpl	$10, %eax
	je	.L33
	cmpl	$48, %eax
	movq	stdin(%rip), %rdi
	setne	%al
	movzbl	%al, %eax
	movl	%eax, 0(%rbp,%rbx,4)
	addq	$1, %rbx
	call	getc@PLT
	movl	W(%rip), %edx
	cmpl	%ebx, %edx
	jg	.L30
	addl	$1, %r12d
	cmpl	H(%rip), %r12d
	jge	.L24
	addq	$5600, %rbp
	testl	%edx, %edx
	jg	.L31
.L24:
	xorl	%eax, %eax
	call	getLargestSquare
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	W
	.bss
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 7840000
dp:
	.zero	7840000
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 7840000
G:
	.zero	7840000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.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:

#include <stdio.h>          // printf(), scanf()

#define MAX_M 1400
#define max(a, b) ((a) > (b) ? (a) : (b))

int G[MAX_M][MAX_M];
int dp[MAX_M][MAX_M];
int H, W;

int
getLargestSquare()
{
	int i, j;
	int s, t;

	int maxWidth = 0;
	for (i = 0; i < H; ++i)
	{
		for (j = 0; j < W; ++j)
		{
			dp[i][j] = (G[i][j] + 1) % 2;
			maxWidth |= dp[i][j];
		}
	}

	for (i = 1; i < H; ++i)
	{
		for (j = 1; j < W; ++j)
		{
			if (G[i][j])
				dp[i][j] = 0;
			else
			{
				t = dp[i - 1][j - 1];
				s = dp[i - 1][j];
				if (s < t)
					t = s;

				s = dp[i][j - 1];
				if (s < t)
					t = s;

				dp[i][j] = t + 1;
				maxWidth = max(maxWidth, dp[i][j]);
			}
		}
	}

	return maxWidth * maxWidth;
}

int
main(int argc, char** argv)
{
	int c;
	int i, j;

	scanf("%d %d", &H, &W);
	c = getchar();
	for (i = 0; i < H; ++i)
	{
		for (j = 0; j < W; ++j)
		{
			while (c == ' ' || c == '\n')
				c = getchar();

			G[i][j] = c != '0' ? 1 : 0;
			c = getchar();
		}
	}

	printf("%d\n", getLargestSquare());
	return 0;
}
4 5
0 0 1 0 0
1 0 0 0 1
0 0 0 1 0
0 0 0 1 0
 1 5
1 0 1 0 0
1 0 0 0 0
0 0 0 1 -1
0 -1 0 1 0
 1 1
1 0 0 0 0
1 0 0 0 1
0 -1 0 1 -1
0 -1 0 2 0
 4 5
0 0 1 0 0
1 0 0 0 1
0 0 0 1 0
0 -1 0 1 0
 4 5
0 0 1 0 0
1 0 0 0 1
0 0 0 1 0
0 -1 0 1 -1
 4 5
0 0 1 0 0
1 0 0 0 1
0 0 0 1 0
0 -1 0 2 -1
 4 5
0 0 1 0 0
1 0 0 0 0
0 0 0 1 -1
0 0 0 1 0
 4 5
0 0 1 0 0
1 0 1 0 1
0 0 0 1 0
0 0 0 1 0
 4 5
0 0 1 0 0
1 0 0 0 1
0 0 0 1 -1
0 -1 0 1 0
 4 5
0 0 1 0 0
1 0 0 0 1
0 0 0 1 0
0 -1 0 0 0

4
 1
 0
 4
 4
 4
 4
 4
 4
 4

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>          // printf(), scanf()

#define MAX_M 1400
#define max(a, b) ((a) > (b) ? (a) : (b))

int G[MAX_M][MAX_M];
int dp[MAX_M][MAX_M];
int H, W;

int
getLargestSquare()
{
	int i, j;
	int s, t;

	int maxWidth = 0;
	for (i = 0; i < H; ++i)
	{
		for (j = 0; j < W; ++j)
		{
			dp[i][j] = (G[i][j] + 1) % 2;
			maxWidth |= dp[i][j];
		}
	}

	for (i = 1; i < H; ++i)
	{
		for (j = 1; j < W; ++j)
		{
			if (G[i][j])
				dp[i][j] = 0;
			else
			{
				t = dp[i - 1][j - 1];
				s = dp[i - 1][j];
				if (s < t)
					t = s;

				s = dp[i][j - 1];
				if (s < t)
					t = s;

				dp[i][j] = t + 1;
				maxWidth = max(maxWidth, dp[i][j]);
			}
		}
	}

	return maxWidth * maxWidth;
}

int
main(int argc, char** argv)
{
	int c;
	int i, j;

	scanf("%d %d", &H, &W);
	c = getchar();
	for (i = 0; i < H; ++i)
	{
		for (j = 0; j < W; ++j)
		{
			while (c == ' ' || c == '\n')
				c = getchar();

			G[i][j] = c != '0' ? 1 : 0;
			c = getchar();
		}
	}

	printf("%d\n", getLargestSquare());
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	G
	.bss
	.align 32
	.type	G, @object
	.size	G, 7840000
G:
	.zero	7840000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 7840000
dp:
	.zero	7840000
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.text
	.globl	getLargestSquare
	.type	getLargestSquare, @function
getLargestSquare:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L5:
	movl	$0, -16(%rbp)
	jmp	.L3
.L4:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	G(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	orl	%eax, -8(%rbp)
	addl	$1, -16(%rbp)
.L3:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L4
	addl	$1, -20(%rbp)
.L2:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L5
	movl	$1, -20(%rbp)
	jmp	.L6
.L13:
	movl	$1, -16(%rbp)
	jmp	.L7
.L12:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	G(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L8
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L8:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1400, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1400, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L10
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L10:
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L11
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L11:
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -8(%rbp)
.L9:
	addl	$1, -16(%rbp)
.L7:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L12
	addl	$1, -20(%rbp)
.L6:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L13
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getLargestSquare, .-getLargestSquare
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.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	$32, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	leaq	W(%rip), %rax
	movq	%rax, %rdx
	leaq	H(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L16
.L21:
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	call	getchar@PLT
	movl	%eax, -12(%rbp)
.L18:
	cmpl	$32, -12(%rbp)
	je	.L19
	cmpl	$10, -12(%rbp)
	je	.L19
	cmpl	$48, -12(%rbp)
	setne	%al
	movzbl	%al, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$1400, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	G(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	call	getchar@PLT
	movl	%eax, -12(%rbp)
	addl	$1, -4(%rbp)
.L17:
	movl	W(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L18
	addl	$1, -8(%rbp)
.L16:
	movl	H(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L21
	movl	$0, %eax
	call	getLargestSquare
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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	G
	.bss
	.align 32
	.type	G, @object
	.size	G, 7840000
G:
	.zero	7840000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 7840000
dp:
	.zero	7840000
	.globl	H
	.align 4
	.type	H, @object
	.size	H, 4
H:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.text
	.globl	getLargestSquare
	.type	getLargestSquare, @function
getLargestSquare:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L5:
	movl	$0, -16(%rbp)
	jmp	.L3
.L4:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	G(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	orl	%eax, -8(%rbp)
	addl	$1, -16(%rbp)
.L3:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L4
	addl	$1, -20(%rbp)
.L2:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L5
	movl	$1, -20(%rbp)
	jmp	.L6
.L13:
	movl	$1, -16(%rbp)
	jmp	.L7
.L12:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	G(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L8
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L8:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1400, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$1400, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L10
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L10:
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L11
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L11:
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1400, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -8(%rbp)
.L9:
	addl	$1, -16(%rbp)
.L7:
	movl	W(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L12
	addl	$1, -20(%rbp)
.L6:
	movl	H(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L13
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getLargestSquare, .-getLargestSquare
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.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	$32, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	leaq	W(%rip), %rax
	movq	%rax, %rdx
	leaq	H(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	%eax, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L16
.L21:
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	call	getchar@PLT
	movl	%eax, -12(%rbp)
.L18:
	cmpl	$32, -12(%rbp)
	je	.L19
	cmpl	$10, -12(%rbp)
	je	.L19
	cmpl	$48, -12(%rbp)
	setne	%al
	movzbl	%al, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$1400, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	G(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	call	getchar@PLT
	movl	%eax, -12(%rbp)
	addl	$1, -4(%rbp)
.L17:
	movl	W(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L18
	addl	$1, -8(%rbp)
.L16:
	movl	H(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L21
	movl	$0, %eax
	call	getLargestSquare
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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:
