	.file	"101184.c"
	.intel_syntax noprefix
	.text
	.globl	get_size
	.type	get_size, @function
get_size:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], -1
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -17[rbp], al
	jmp	.L2
.L7:
	cmp	BYTE PTR -17[rbp], 10
	jne	.L3
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jnb	.L4
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
.L4:
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L3:
	cmp	BYTE PTR -17[rbp], 32
	je	.L6
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	add	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L5
.L6:
	cmp	BYTE PTR -17[rbp], 32
	jne	.L5
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	mov	DWORD PTR -4[rbp], 0
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -17[rbp], al
.L2:
	cmp	BYTE PTR -17[rbp], -1
	jne	.L7
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	je	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -16[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_size, .-get_size
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_matrix
	.type	get_matrix, @function
get_matrix:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_size
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -40[rbp], 1
.L12:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -36[rbp], eax
	ja	.L13
	add	DWORD PTR -44[rbp], 1
.L11:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	ja	.L14
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_matrix, .-get_matrix
	.local	columns_used
	.comm	columns_used,8,8
	.local	row_coords
	.comm	row_coords,8,8
	.local	current_sum
	.comm	current_sum,4,4
	.local	max_remaining
	.comm	max_remaining,8,8
	.local	max_coords
	.comm	max_coords,8,8
	.local	max_sum
	.comm	max_sum,4,4
	.globl	traverse_row_coords
	.type	traverse_row_coords, @function
traverse_row_coords:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L17
.L23:
	mov	rdx, QWORD PTR columns_used[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L24
	mov	rdx, QWORD PTR max_remaining[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR current_sum[rip]
	add	edx, eax
	mov	eax, DWORD PTR max_sum[rip]
	cmp	edx, eax
	jl	.L25
	mov	rdx, QWORD PTR columns_used[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rdx, QWORD PTR row_coords[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR row_coords[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR current_sum[rip]
	add	eax, edx
	mov	DWORD PTR current_sum[rip], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jne	.L21
	mov	edx, DWORD PTR current_sum[rip]
	mov	eax, DWORD PTR max_sum[rip]
	cmp	edx, eax
	jle	.L21
	mov	eax, DWORD PTR current_sum[rip]
	mov	DWORD PTR max_sum[rip], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rcx, QWORD PTR row_coords[rip]
	mov	rax, QWORD PTR max_coords[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	traverse_row_coords
.L22:
	mov	rdx, QWORD PTR columns_used[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR current_sum[rip]
	mov	rcx, QWORD PTR row_coords[rip]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	mov	DWORD PTR current_sum[rip], eax
	jmp	.L19
.L24:
	nop
	jmp	.L19
.L25:
	nop
.L19:
	add	DWORD PTR -16[rbp], 1
.L17:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	ja	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	traverse_row_coords, .-traverse_row_coords
	.globl	calc_max_remaining
	.type	calc_max_remaining, @function
calc_max_remaining:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR max_remaining[rip], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L27
.L31:
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L29
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -44[rbp], eax
.L29:
	add	DWORD PTR -40[rbp], 1
.L28:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -24[rbp], eax
	ja	.L30
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -48[rbp], 1
.L27:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -24[rbp], eax
	ja	.L31
	mov	DWORD PTR -36[rbp], 0
	jmp	.L32
.L35:
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -32[rbp], eax
	add	DWORD PTR -28[rbp], 1
.L33:
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -24[rbp], eax
	ja	.L34
	mov	rdx, QWORD PTR max_remaining[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -36[rbp], 1
.L32:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -24[rbp], eax
	ja	.L35
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calc_max_remaining, .-calc_max_remaining
	.globl	get_max_sum
	.type	get_max_sum, @function
get_max_sum:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	calc_max_remaining
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR row_coords[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR max_coords[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR columns_used[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	traverse_row_coords
	mov	rax, QWORD PTR row_coords[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR max_coords[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR columns_used[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR max_sum[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_max_sum, .-get_max_sum
	.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	"101184.c"
	.text
	.align	2
	.global	get_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_size, %function
get_size:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-21]
.L6:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcs	.L3
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
.L3:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L2:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	str	r3, [fp, #-8]
.L4:
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-21]
	b	.L6
	.size	get_size, .-get_size
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	get_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_matrix, %function
get_matrix:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	get_size
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	rewind
	mov	r1, #4
	ldr	r0, [fp, #-24]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L8
.L11:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-24]
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L9
.L10:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L13
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L10
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L11
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	get_matrix, .-get_matrix
	.local	columns_used
	.comm	columns_used,4,4
	.local	row_coords
	.comm	row_coords,4,4
	.local	current_sum
	.comm	current_sum,4,4
	.local	max_remaining
	.comm	max_remaining,4,4
	.local	max_coords
	.comm	max_coords,4,4
	.local	max_sum
	.comm	max_sum,4,4
	.align	2
	.global	traverse_row_coords
	.syntax unified
	.arm
	.fpu softvfp
	.type	traverse_row_coords, %function
traverse_row_coords:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L22:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L24
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L25+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L25+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L25+8
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L20
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L20
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r2, .L25+12
	str	r3, [r2]
	ldr	r3, .L25+20
	ldr	r0, [r3]
	ldr	r3, .L25+16
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L21
.L20:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	traverse_row_coords
.L21:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, .L25+16
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, .L25+8
	str	r3, [r2]
	b	.L18
.L23:
	nop
	b	.L18
.L24:
	nop
.L18:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bhi	.L22
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	columns_used
	.word	max_remaining
	.word	current_sum
	.word	max_sum
	.word	row_coords
	.word	max_coords
	.size	traverse_row_coords, .-traverse_row_coords
	.align	2
	.global	calc_max_remaining
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_max_remaining, %function
calc_max_remaining:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	mov	r1, #4
	ldr	r0, [fp, #-20]
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37
	str	r2, [r3]
	mov	r1, #4
	ldr	r0, [fp, #-20]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L28
.L32:
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L29
.L31:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L30
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-40]
.L30:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L29:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L31
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L28:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L32
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L33
.L36:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L34
.L35:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L34:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L35
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L33:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L36
	ldr	r0, [fp, #-12]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	max_remaining
	.size	calc_max_remaining, .-calc_max_remaining
	.align	2
	.global	get_max_sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_max_sum, %function
get_max_sum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	calc_max_remaining
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41
	str	r2, [r3]
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+4
	str	r2, [r3]
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+8
	str	r2, [r3]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	traverse_row_coords
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L41+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L41+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L41+12
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	row_coords
	.word	max_coords
	.word	columns_used
	.word	max_sum
	.size	get_max_sum, .-get_max_sum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
