	.file	"829129.c"
	.intel_syntax noprefix
	.text
	.globl	cant
	.bss
	.align 8
	.type	cant, @object
	.size	cant, 8
cant:
	.zero	8
	.globl	visited
	.align 8
	.type	visited, @object
	.size	visited, 8
visited:
	.zero	8
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.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	maxx
	.align 4
	.type	maxx, @object
	.size	maxx, 4
maxx:
	.zero	4
	.globl	maxy
	.align 4
	.type	maxy, @object
	.size	maxy, 4
maxy:
	.zero	4
	.globl	maxv
	.align 4
	.type	maxv, @object
	.size	maxv, 4
maxv:
	.zero	4
	.globl	dx
	.data
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	1
	.long	0
	.long	-1
	.long	0
	.globl	dy
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	0
	.long	1
	.long	0
	.long	-1
	.text
	.globl	fdm
	.type	fdm, @function
fdm:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L7:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L4
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR a[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR b[rip], eax
	jmp	.L5
.L4:
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 14
	jle	.L6
.L5:
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 1
	jle	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	nextone
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fdm, .-fdm
	.globl	randomize
	.type	randomize, @function
randomize:
.LFB7:
	.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
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L10
.L11:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dx[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR a[rip]
	add	eax, edx
	cmp	eax, 14
	jg	.L11
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dx[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR a[rip]
	add	eax, edx
	test	eax, eax
	js	.L11
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dy[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR b[rip]
	add	eax, edx
	cmp	eax, 14
	jg	.L11
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dy[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR b[rip]
	add	eax, edx
	test	eax, eax
	js	.L11
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	randomize, .-randomize
	.globl	nextone
	.type	nextone, @function
nextone:
.LFB8:
	.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 -24[rbp], rdi
	mov	DWORD PTR m[rip], -1
	mov	DWORD PTR n[rip], -1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L18:
	mov	edx, DWORD PTR a[rip]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, edx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	ecx, DWORD PTR b[rip]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L16
	mov	eax, DWORD PTR m[rip]
	cmp	eax, -1
	jne	.L17
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR m[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR n[rip], eax
.L17:
	mov	eax, DWORD PTR m[rip]
	mov	edx, DWORD PTR a[rip]
	sub	eax, edx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR n[rip]
	mov	ecx, DWORD PTR b[rip]
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	add	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jge	.L16
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR m[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR n[rip], eax
.L16:
	add	DWORD PTR -8[rbp], 1
.L15:
	cmp	DWORD PTR -8[rbp], 14
	jle	.L18
	add	DWORD PTR -12[rbp], 1
.L14:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L19
	mov	eax, DWORD PTR m[rip]
	cmp	eax, -1
	je	.L20
	mov	edx, DWORD PTR m[rip]
	mov	eax, DWORD PTR a[rip]
	cmp	edx, eax
	jge	.L21
	mov	eax, 2
	jmp	.L13
.L21:
	mov	edx, DWORD PTR m[rip]
	mov	eax, DWORD PTR a[rip]
	cmp	edx, eax
	jle	.L23
	mov	eax, 0
	jmp	.L13
.L23:
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR b[rip]
	cmp	edx, eax
	jge	.L24
	mov	eax, 3
	jmp	.L13
.L24:
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR b[rip]
	cmp	edx, eax
	jle	.L25
	mov	eax, 1
	jmp	.L13
.L20:
	mov	eax, -1
	jmp	.L13
.L25:
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextone, .-nextone
	.section	.rodata
.LC0:
	.string	"maxx%d, maxy%d, maxv%d"
	.text
	.globl	max
	.type	max, @function
max:
.LFB9:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	esi, 4
	mov	edi, 120
	call	calloc@PLT
	mov	QWORD PTR cant[rip], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L27
.L28:
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	esi, 4
	mov	edi, 60
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -56[rbp], 1
.L27:
	cmp	DWORD PTR -56[rbp], 14
	jle	.L28
	mov	esi, 4
	mov	edi, 120
	call	calloc@PLT
	mov	QWORD PTR visited[rip], rax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L29
.L30:
	mov	rdx, QWORD PTR visited[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	esi, 4
	mov	edi, 60
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -52[rbp], 1
.L29:
	cmp	DWORD PTR -52[rbp], 14
	jle	.L30
	mov	DWORD PTR -48[rbp], 0
	jmp	.L31
.L40:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L32
.L39:
	mov	rdx, QWORD PTR visited[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L33
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L33
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR visited[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	DWORD PTR -40[rbp], 0
	jmp	.L34
.L38:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dx[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dy[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -24[rbp], 14
	jg	.L35
	cmp	DWORD PTR -24[rbp], 0
	js	.L35
	cmp	DWORD PTR -20[rbp], 14
	jg	.L35
	cmp	DWORD PTR -20[rbp], 0
	js	.L35
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L35
	cmp	DWORD PTR -40[rbp], 1
	je	.L36
	cmp	DWORD PTR -40[rbp], 2
	jne	.L37
.L36:
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L35
.L37:
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L35:
	add	DWORD PTR -40[rbp], 1
.L34:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L38
.L33:
	add	DWORD PTR -44[rbp], 1
.L32:
	cmp	DWORD PTR -44[rbp], 14
	jle	.L39
	add	DWORD PTR -48[rbp], 1
.L31:
	cmp	DWORD PTR -48[rbp], 14
	jle	.L40
	mov	DWORD PTR maxx[rip], 0
	mov	DWORD PTR maxy[rip], 0
	mov	DWORD PTR maxv[rip], -1
	mov	DWORD PTR -36[rbp], 0
	jmp	.L41
.L45:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L42
.L44:
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR maxv[rip]
	cmp	edx, eax
	jle	.L43
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR maxv[rip], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR maxx[rip], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR maxy[rip], eax
.L43:
	add	DWORD PTR -32[rbp], 1
.L42:
	cmp	DWORD PTR -32[rbp], 14
	jle	.L44
	add	DWORD PTR -36[rbp], 1
.L41:
	cmp	DWORD PTR -36[rbp], 14
	jle	.L45
	mov	ecx, DWORD PTR maxv[rip]
	mov	edx, DWORD PTR maxy[rip]
	mov	eax, DWORD PTR maxx[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L46
.L47:
	mov	rdx, QWORD PTR visited[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR cant[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -28[rbp], 1
.L46:
	cmp	DWORD PTR -28[rbp], 14
	jle	.L47
	mov	rax, QWORD PTR visited[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR cant[rip]
	mov	rdi, rax
	call	free@PLT
	mov	edx, DWORD PTR maxy[rip]
	mov	eax, DWORD PTR b[rip]
	cmp	edx, eax
	jge	.L48
	mov	eax, 3
	jmp	.L26
.L48:
	mov	edx, DWORD PTR maxy[rip]
	mov	eax, DWORD PTR b[rip]
	cmp	edx, eax
	jle	.L50
	mov	eax, 1
	jmp	.L26
.L50:
	mov	edx, DWORD PTR maxx[rip]
	mov	eax, DWORD PTR a[rip]
	cmp	edx, eax
	jge	.L51
	mov	eax, 2
	jmp	.L26
.L51:
	mov	edx, DWORD PTR maxx[rip]
	mov	eax, DWORD PTR a[rip]
	cmp	edx, eax
	jle	.L52
	mov	eax, 0
	jmp	.L26
.L52:
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	max, .-max
	.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	"829129.c"
	.text
	.comm	cant,4,4
	.comm	visited,4,4
	.comm	a,4,4
	.comm	b,4,4
	.comm	m,4,4
	.comm	n,4,4
	.comm	maxx,4,4
	.comm	maxy,4,4
	.comm	maxv,4,4
	.global	dx
	.data
	.align	2
	.type	dx, %object
	.size	dx, 16
dx:
	.word	1
	.word	0
	.word	-1
	.word	0
	.global	dy
	.align	2
	.type	dy, %object
	.size	dy, 16
dy:
	.word	0
	.word	1
	.word	0
	.word	-1
	.text
	.align	2
	.global	fdm
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdm, %function
fdm:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L6:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L4
	ldr	r2, .L9
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r2, .L9+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L5
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	ble	.L6
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L7
	ldr	r0, [fp, #-16]
	bl	nextone
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	a
	.word	b
	.size	fdm, .-fdm
	.align	2
	.global	randomize
	.syntax unified
	.arm
	.fpu softvfp
	.type	randomize, %function
randomize:
	@ 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]
	bl	rand
	mov	r2, r0
	ldr	r3, .L15
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L12
.L13:
	bl	rand
	mov	r2, r0
	ldr	r3, .L15
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L12:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #14
	bgt	.L13
	ldr	r2, .L15+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L13
	ldr	r2, .L15+12
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L15+16
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #14
	bgt	.L13
	ldr	r2, .L15+12
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L15+16
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L13
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	1717986919
	.word	dx
	.word	a
	.word	dy
	.word	b
	.size	randomize, .-randomize
	.align	2
	.global	nextone
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextone, %function
nextone:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, .L30
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L30+4
	mvn	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L18
.L23:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L22:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L20
	ldr	r3, .L30
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L21
	ldr	r2, .L30
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r2, .L30+4
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L21:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, .L30+4
	ldr	r1, [r3]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L20
	ldr	r2, .L30
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r2, .L30+4
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #14
	ble	.L22
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L23
	ldr	r3, .L30
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L24
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L25
	mov	r3, #2
	b	.L17
.L25:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L27
	mov	r3, #0
	b	.L17
.L27:
	ldr	r3, .L30+4
	ldr	r2, [r3]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L28
	mov	r3, #3
	b	.L17
.L28:
	ldr	r3, .L30+4
	ldr	r2, [r3]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L29
	mov	r3, #1
	b	.L17
.L24:
	mvn	r3, #0
	b	.L17
.L29:
.L17:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	m
	.word	n
	.word	a
	.word	b
	.size	nextone, .-nextone
	.section	.rodata
	.align	2
.LC0:
	.ascii	"maxx%d, maxy%d, maxv%d\000"
	.text
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	mov	r1, #4
	mov	r0, #60
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L59
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L33
.L34:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r1, #4
	mov	r0, #60
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L33:
	ldr	r3, [fp, #-52]
	cmp	r3, #14
	ble	.L34
	mov	r1, #4
	mov	r0, #60
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L59+4
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L35
.L36:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r1, #4
	mov	r0, #60
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L35:
	ldr	r3, [fp, #-48]
	cmp	r3, #14
	ble	.L36
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L37
.L46:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L38
.L45:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L39
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L40
.L44:
	ldr	r2, .L59+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, .L59+12
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #14
	bgt	.L41
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L41
	ldr	r3, [fp, #-16]
	cmp	r3, #14
	bgt	.L41
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L41
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L41
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L42
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bne	.L43
.L42:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L59
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	b	.L41
.L43:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L41:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L40:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	ble	.L44
.L39:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L38:
	ldr	r3, [fp, #-40]
	cmp	r3, #14
	ble	.L45
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L37:
	ldr	r3, [fp, #-44]
	cmp	r3, #14
	ble	.L46
	ldr	r3, .L59+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L59+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L59+24
	mvn	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L47
.L51:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L48
.L50:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L59+24
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L49
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L59+24
	str	r3, [r2]
	ldr	r2, .L59+16
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldr	r2, .L59+20
	ldr	r3, [fp, #-28]
	str	r3, [r2]
.L49:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L48:
	ldr	r3, [fp, #-28]
	cmp	r3, #14
	ble	.L50
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L47:
	ldr	r3, [fp, #-32]
	cmp	r3, #14
	ble	.L51
	ldr	r3, .L59+16
	ldr	r1, [r3]
	ldr	r3, .L59+20
	ldr	r2, [r3]
	ldr	r3, .L59+24
	ldr	r3, [r3]
	ldr	r0, .L59+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L52
.L53:
	ldr	r3, .L59+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L52:
	ldr	r3, [fp, #-24]
	cmp	r3, #14
	ble	.L53
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L59
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L59+20
	ldr	r2, [r3]
	ldr	r3, .L59+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L54
	mov	r3, #3
	b	.L32
.L54:
	ldr	r3, .L59+20
	ldr	r2, [r3]
	ldr	r3, .L59+32
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L56
	mov	r3, #1
	b	.L32
.L56:
	ldr	r3, .L59+16
	ldr	r2, [r3]
	ldr	r3, .L59+36
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L57
	mov	r3, #2
	b	.L32
.L57:
	ldr	r3, .L59+16
	ldr	r2, [r3]
	ldr	r3, .L59+36
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L58
	mov	r3, #0
	b	.L32
.L58:
.L32:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	cant
	.word	visited
	.word	dx
	.word	dy
	.word	maxx
	.word	maxy
	.word	maxv
	.word	.LC0
	.word	b
	.word	a
	.size	max, .-max
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
