	.file	"979025.c"
	.intel_syntax noprefix
	.text
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.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
	.globl	m
	.align 32
	.type	m, @object
	.size	m, 60516
m:
	.zero	60516
	.globl	foi
	.align 32
	.type	foi, @object
	.size	foi, 60516
foi:
	.zero	60516
	.globl	nfoi
	.align 4
	.type	nfoi, @object
	.size	nfoi, 4
nfoi:
	.zero	4
	.globl	label
	.align 32
	.type	label, @object
	.size	label, 60516
label:
	.zero	60516
	.globl	iof
	.align 32
	.type	iof, @object
	.size	iof, 60516
iof:
	.zero	60516
	.globl	niof
	.align 4
	.type	niof, @object
	.size	niof, 4
niof:
	.zero	4
	.globl	label_zero
	.align 32
	.type	label_zero, @object
	.size	label_zero, 60516
label_zero:
	.zero	60516
	.globl	nlabel_zero
	.align 4
	.type	nlabel_zero, @object
	.size	nlabel_zero, 4
nlabel_zero:
	.zero	4
	.globl	dy
	.data
	.align 16
	.type	dy, @object
	.size	dy, 16
dy:
	.long	-1
	.long	0
	.long	0
	.long	1
	.globl	dx
	.align 16
	.type	dx, @object
	.size	dx, 16
dx:
	.long	0
	.long	-1
	.long	1
	.long	0
	.text
	.globl	DFS
	.type	DFS, @function
DFS:
.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, foi[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR nfoi[rip]
	cmp	edx, eax
	jne	.L2
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, label[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR nfoi[rip]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 123
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, foi[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], -1
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dy[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dx[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L5
	mov	eax, DWORD PTR h[rip]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L5
	cmp	DWORD PTR -4[rbp], 0
	js	.L5
	mov	eax, DWORD PTR w[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L5
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
.L5:
	add	DWORD PTR -20[rbp], 1
.L4:
	cmp	DWORD PTR -20[rbp], 3
	jle	.L6
	cmp	DWORD PTR -16[rbp], -1
	je	.L7
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dx[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, dy[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, ecx
	mov	esi, edx
	mov	edi, eax
	call	DFS
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 123
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, label[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L7:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, label[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	DFS, .-DFS
	.section	.rodata
.LC0:
	.string	" %d"
.LC1:
	.string	" %d %d"
.LC2:
	.string	"Case #%d:\n"
.LC3:
	.string	"%c "
	.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
	sub	rsp, 16
	mov	edx, 60516
	mov	esi, 0
	lea	rdi, foi[rip]
	call	memset@PLT
	mov	DWORD PTR nfoi[rip], 0
	mov	edx, 60516
	mov	esi, 0
	lea	rdi, iof[rip]
	call	memset@PLT
	mov	DWORD PTR niof[rip], 0
	lea	rsi, t[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -16[rbp], 1
	jmp	.L9
.L23:
	mov	eax, DWORD PTR nfoi[rip]
	add	eax, 1
	mov	DWORD PTR nfoi[rip], eax
	mov	eax, DWORD PTR niof[rip]
	add	eax, 1
	mov	DWORD PTR niof[rip], eax
	lea	rdx, w[rip]
	lea	rsi, h[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 123
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, label[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR w[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L12
	add	DWORD PTR -12[rbp], 1
.L10:
	mov	eax, DWORD PTR h[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L13
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L17:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	DFS
	add	DWORD PTR -8[rbp], 1
.L15:
	mov	eax, DWORD PTR w[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L16
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR h[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR nlabel_zero[rip], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L18
.L22:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, label[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, iof[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR niof[rip]
	cmp	edx, eax
	je	.L20
	mov	eax, DWORD PTR nlabel_zero[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR nlabel_zero[rip], edx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 123
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, label[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, label_zero[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, label[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR niof[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, iof[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L20:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 123
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, label[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, label_zero[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 97
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L19:
	mov	eax, DWORD PTR w[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L21
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L18:
	mov	eax, DWORD PTR h[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L22
	add	DWORD PTR -16[rbp], 1
.L9:
	mov	eax, DWORD PTR t[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L23
	mov	eax, 0
	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	"979025.c"
	.text
	.comm	t,4,4
	.comm	h,4,4
	.comm	w,4,4
	.comm	m,60516,4
	.comm	foi,60516,4
	.comm	nfoi,4,4
	.comm	label,60516,4
	.comm	iof,60516,4
	.comm	niof,4,4
	.comm	label_zero,60516,4
	.comm	nlabel_zero,4,4
	.global	dy
	.data
	.align	2
	.type	dy, %object
	.size	dy, 16
dy:
	.word	-1
	.word	0
	.word	0
	.word	1
	.global	dx
	.align	2
	.type	dx, %object
	.size	dx, 16
dx:
	.word	0
	.word	-1
	.word	1
	.word	0
	.text
	.align	2
	.global	DFS
	.syntax unified
	.arm
	.fpu softvfp
	.type	DFS, %function
DFS:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r1, .L8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	ldr	r2, [r1, r3, lsl #2]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r1, .L8+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	b	.L3
.L2:
	ldr	r3, .L8+4
	ldr	r1, [r3]
	ldr	r0, .L8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L8+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-16]
	b	.L4
.L6:
	ldr	r2, .L8+16
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, .L8+20
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L5
	ldr	r3, .L8+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L5
	ldr	r3, .L8+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L5
	ldr	r1, .L8+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L5
	ldr	r1, .L8+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L6
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L7
	ldr	r2, .L8+16
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	add	r0, r2, r3
	ldr	r2, .L8+20
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r1, r3
	bl	DFS
	mov	r1, r0
	ldr	r0, .L8+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
.L7:
	ldr	r1, .L8+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	foi
	.word	nfoi
	.word	label
	.word	m
	.word	dy
	.word	dx
	.word	h
	.word	w
	.size	DFS, .-DFS
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %d\000"
	.align	2
.LC1:
	.ascii	" %d %d\000"
	.align	2
.LC2:
	.ascii	"Case #%d:\012\000"
	.align	2
.LC3:
	.ascii	"%c \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r2, .L27
	mov	r1, #0
	ldr	r0, .L27+4
	bl	memset
	ldr	r3, .L27+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, .L27
	mov	r1, #0
	ldr	r0, .L27+12
	bl	memset
	ldr	r3, .L27+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L27+20
	ldr	r0, .L27+24
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L11
.L25:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L27+8
	str	r3, [r2]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L27+16
	str	r3, [r2]
	ldr	r2, .L27+28
	ldr	r1, .L27+32
	ldr	r0, .L27+36
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L15:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L14:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L27+40
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L27+24
	bl	__isoc99_scanf
	ldr	r1, [fp, #-8]
	add	r3, r1, #1
	str	r3, [fp, #-8]
	ldr	r0, .L27+44
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, .L27+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r3, .L27+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L19:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L18:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	DFS
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, .L27+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, .L27+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L19
	ldr	r1, [fp, #-20]
	ldr	r0, .L27+48
	bl	printf
	ldr	r3, .L27+52
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L24:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L23:
	ldr	r1, .L27+44
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, .L27+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L22
	ldr	r3, .L27+52
	ldr	r1, [r3]
	add	r3, r1, #1
	ldr	r2, .L27+52
	str	r3, [r2]
	ldr	r0, .L27+44
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L27+56
	str	r1, [r2, r3, lsl #2]
	ldr	r1, .L27+44
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, .L27+16
	ldr	r2, [r2]
	ldr	r1, .L27+12
	str	r2, [r1, r3, lsl #2]
.L22:
	ldr	r1, .L27+44
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, .L27+56
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #97
	mov	r1, r3
	ldr	r0, .L27+60
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, .L27+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L23
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, .L27+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, .L27+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L25
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	60516
	.word	foi
	.word	nfoi
	.word	iof
	.word	niof
	.word	t
	.word	.LC0
	.word	w
	.word	h
	.word	.LC1
	.word	m
	.word	label
	.word	.LC2
	.word	nlabel_zero
	.word	label_zero
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
