	.file	"821784.c"
	.intel_syntax noprefix
	.text
	.globl	submatrix_max
	.type	submatrix_max, @function
submatrix_max:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -28[rbp], 1
	jmp	.L2
.L5:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rdx, rax, 404
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rax, rax, 404
	lea	rdx, -404[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rdx, rax, 404
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	add	ecx, esi
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
	add	DWORD PTR -24[rbp], 1
.L3:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L4
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L5
	mov	DWORD PTR -20[rbp], -2147483648
	mov	DWORD PTR -16[rbp], 0
	jmp	.L6
.L14:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L13:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L8
.L12:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L9
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rdx, rax, 404
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rcx, rax, 404
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	ecx, DWORD PTR [rcx+rax*4]
	mov	eax, edx
	sub	eax, ecx
	add	DWORD PTR -8[rbp], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rdx, rax, 404
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rcx, rax, 404
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	ecx, DWORD PTR [rcx+rax*4]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L11
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], eax
.L11:
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L12
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L13
	add	DWORD PTR -16[rbp], 1
.L6:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L14
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	submatrix_max, .-submatrix_max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3968
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40828[rbp], 0
	lea	rax, -40816[rbp]
	mov	edx, 40804
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L17
.L22:
	mov	DWORD PTR -40824[rbp], 1
	jmp	.L18
.L21:
	mov	DWORD PTR -40820[rbp], 1
	jmp	.L19
.L20:
	lea	rcx, -40816[rbp]
	mov	eax, DWORD PTR -40820[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -40824[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -40820[rbp], 1
.L19:
	mov	eax, DWORD PTR -40828[rbp]
	cmp	DWORD PTR -40820[rbp], eax
	jle	.L20
	add	DWORD PTR -40824[rbp], 1
.L18:
	mov	eax, DWORD PTR -40828[rbp]
	cmp	DWORD PTR -40824[rbp], eax
	jle	.L21
	mov	edx, DWORD PTR -40828[rbp]
	lea	rax, -40816[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	submatrix_max
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	lea	rax, -40828[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L22
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"821784.c"
	.text
	.align	2
	.global	submatrix_max
	.syntax unified
	.arm
	.fpu softvfp
	.type	submatrix_max, %function
submatrix_max:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L2
.L5:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L3
.L4:
	ldr	r3, [fp, #-32]
	mov	r2, #404
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-32]
	mov	r2, #404
	mul	r3, r2, r3
	sub	r3, r3, #404
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-32]
	mov	r0, #404
	mul	r3, r0, r3
	ldr	r0, [fp, #-40]
	add	r3, r0, r3
	add	r1, r1, r2
	ldr	r2, [fp, #-28]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L3:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L5
	mov	r3, #-2147483648
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L6
.L14:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L7
.L13:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L8
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-16]
	mov	r2, #404
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	mov	r1, #404
	mul	r3, r1, r3
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r1, [fp, #-8]
	ldr	r3, [r3, r1, lsl #2]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L10
.L9:
	ldr	r3, [fp, #-16]
	mov	r2, #404
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	mov	r1, #404
	mul	r3, r1, r3
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r1, [fp, #-8]
	ldr	r3, [r3, r1, lsl #2]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L10:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-24]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	submatrix_max, .-submatrix_max
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40704
	sub	sp, sp, #120
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3956]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	sub	r3, r3, #3936
	sub	r3, r3, #8
	ldr	r2, .L25+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L17
.L22:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3952]
	b	.L18
.L21:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3948]
	b	.L19
.L20:
	sub	r2, fp, #40704
	sub	r2, r2, #4
	sub	r2, r2, #104
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r1, [r3, #-3952]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r1, fp, #36864
	sub	r1, r1, #4
	ldr	r1, [r1, #-3948]
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	add	r3, r3, #1
	str	r3, [r2, #-3948]
.L19:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3956]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3948]
	cmp	r2, r3
	ble	.L20
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	str	r3, [r2, #-3952]
.L18:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3956]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3952]
	cmp	r2, r3
	ble	.L21
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3956]
	sub	r3, fp, #40704
	sub	r3, r3, #4
	sub	r3, r3, #104
	mov	r1, r2
	mov	r0, r3
	bl	submatrix_max
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L25+12
	bl	printf
.L17:
	sub	r3, fp, #40704
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r1, r3
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	40804
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
