	.file	"242331870.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.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	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 1200
d:
	.zero	1200
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 1200
q:
	.zero	1200
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	af
	.align 4
	.type	af, @object
	.size	af, 4
af:
	.zero	4
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	g
	.align 32
	.type	g, @object
	.size	g, 2400
g:
	.zero	2400
	.globl	u
	.align 8
	.type	u, @object
	.size	u, 8
u:
	.zero	8
	.globl	v
	.align 8
	.type	v, @object
	.size	v, 8
v:
	.zero	8
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 2400
l:
	.zero	2400
	.text
	.globl	add
	.type	add, @function
add:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR u[rip], rax
	mov	rax, QWORD PTR u[rip]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR u[rip]
	mov	edx, DWORD PTR b[rip]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR a[rip]
	mov	rax, QWORD PTR u[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, g[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, DWORD PTR a[rip]
	mov	rax, QWORD PTR u[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, g[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR v[rip], rax
	mov	rax, QWORD PTR v[rip]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR v[rip]
	mov	edx, DWORD PTR a[rip]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR b[rip]
	mov	rax, QWORD PTR v[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, g[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, DWORD PTR b[rip]
	mov	rax, QWORD PTR v[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, g[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR u[rip]
	mov	rdx, QWORD PTR v[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR v[rip]
	mov	rdx, QWORD PTR u[rip]
	mov	QWORD PTR 16[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	add, .-add
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR n[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d[rip+4]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR h[rip], 0
	mov	DWORD PTR t[rip], 1
	jmp	.L3
.L7:
	mov	eax, DWORD PTR h[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR h[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR c[rip], eax
	mov	eax, DWORD PTR c[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR u[rip], rax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR u[rip]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR u[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR c[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR u[rip]
	mov	eax, DWORD PTR 4[rax]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	rdx, QWORD PTR u[rip]
	mov	eax, DWORD PTR t[rip]
	lea	ecx, 1[rax]
	mov	DWORD PTR t[rip], ecx
	mov	edx, DWORD PTR 4[rdx]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, q[rip]
	mov	DWORD PTR [rcx+rax], edx
.L5:
	mov	rax, QWORD PTR u[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR u[rip], rax
.L4:
	mov	rax, QWORD PTR u[rip]
	test	rax, rax
	jne	.L6
.L3:
	mov	edx, DWORD PTR t[rip]
	mov	eax, DWORD PTR h[rip]
	cmp	edx, eax
	jg	.L7
	mov	eax, DWORD PTR n[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bfs, .-bfs
	.globl	dfs
	.type	dfs, @function
dfs:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L12
	mov	eax, 1
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, d[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	add	edx, 1
	cmp	eax, edx
	jne	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	dfs
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, l[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, l[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L14
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, m[rip]
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	DWORD PTR n[rip], eax
	jmp	.L16
.L17:
	lea	rdx, b[rip]
	lea	rsi, a[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	add
.L16:
	mov	eax, DWORD PTR m[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR m[rip], edx
	test	eax, eax
	jne	.L17
	mov	DWORD PTR d[rip], 1
	jmp	.L18
.L23:
	mov	DWORD PTR i[rip], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR i[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, g[rip]
	mov	rax, QWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, l[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L19:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L20
	jmp	.L21
.L22:
	mov	eax, DWORD PTR f[rip]
	add	eax, 1
	mov	DWORD PTR f[rip], eax
.L21:
	mov	edi, 0
	call	dfs
	test	eax, eax
	jne	.L22
.L18:
	mov	eax, 0
	call	bfs
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR f[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"242331870.c"
	.text
	.comm	n,4,4
	.comm	m,4,4
	.comm	a,4,4
	.comm	b,4,4
	.comm	i,4,4
	.comm	d,1200,4
	.comm	q,1200,4
	.comm	f,4,4
	.comm	af,4,4
	.comm	h,4,4
	.comm	t,4,4
	.comm	c,4,4
	.comm	g,1200,4
	.comm	u,4,4
	.comm	v,4,4
	.comm	l,1200,4
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L2
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+4
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L2+8
	ldr	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r1, .L2+12
	ldr	r2, [r1, r2, lsl #2]
	str	r2, [r3, #8]
	ldr	r3, .L2+8
	ldr	r3, [r3]
	ldr	r2, .L2
	ldr	r2, [r2]
	ldr	r1, .L2+12
	str	r2, [r1, r3, lsl #2]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L2+16
	str	r2, [r3]
	ldr	r3, .L2+16
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L2+16
	ldr	r3, [r3]
	ldr	r2, .L2+8
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L2+4
	ldr	r2, [r3]
	ldr	r3, .L2+16
	ldr	r3, [r3]
	ldr	r1, .L2+12
	ldr	r2, [r1, r2, lsl #2]
	str	r2, [r3, #8]
	ldr	r3, .L2+4
	ldr	r3, [r3]
	ldr	r2, .L2+16
	ldr	r2, [r2]
	ldr	r1, .L2+12
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+16
	ldr	r2, [r2]
	str	r2, [r3, #12]
	ldr	r3, .L2+16
	ldr	r3, [r3]
	ldr	r2, .L2
	ldr	r2, [r2]
	str	r2, [r3, #12]
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	u
	.word	b
	.word	a
	.word	g
	.word	v
	.size	add, .-add
	.align	2
	.global	bfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfs, %function
bfs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L11
	ldr	r3, .L11+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L11+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L11+12
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L9:
	ldr	r3, .L11+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L11+8
	str	r2, [r1]
	ldr	r2, .L11+16
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L11+20
	str	r3, [r2]
	ldr	r3, .L11+20
	ldr	r3, [r3]
	ldr	r2, .L11+24
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L11+28
	str	r3, [r2]
	b	.L6
.L8:
	ldr	r3, .L11+28
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L11+32
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L11+28
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L11+20
	ldr	r3, [r3]
	ldr	r2, .L11+32
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L11+28
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	add	r2, r2, #1
	ldr	r1, .L11+32
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L11+28
	ldr	r2, [r3]
	ldr	r3, .L11+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L11+12
	str	r1, [r0]
	ldr	r2, [r2, #4]
	ldr	r1, .L11+16
	str	r2, [r1, r3, lsl #2]
.L7:
	ldr	r3, .L11+28
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L11+28
	str	r3, [r2]
.L6:
	ldr	r3, .L11+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
.L5:
	ldr	r3, .L11+12
	ldr	r2, [r3]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L9
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r2, .L11+32
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	d+4
	.word	n
	.word	h
	.word	t
	.word	q
	.word	c
	.word	g
	.word	u
	.word	d
	.size	bfs, .-bfs
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L16
	mov	r3, #1
	b	.L15
.L18:
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #4]
	ldr	r2, .L19+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L19+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r3, #1
	cmp	r2, r3
	bne	.L17
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	dfs
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #12]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	mov	r3, #1
	b	.L15
.L17:
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r1, .L19+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L16:
	ldr	r2, .L19+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	n
	.word	l
	.word	d
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L31
	ldr	r1, .L31+4
	ldr	r0, .L31+8
	bl	__isoc99_scanf
	ldr	r3, .L31+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L31+4
	str	r3, [r2]
	b	.L22
.L23:
	ldr	r2, .L31+12
	ldr	r1, .L31+16
	ldr	r0, .L31+8
	bl	__isoc99_scanf
	bl	add
.L22:
	ldr	r3, .L31
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L31
	str	r2, [r1]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L31+20
	mov	r2, #1
	str	r2, [r3]
	b	.L24
.L29:
	ldr	r3, .L31+24
	mov	r2, #0
	str	r2, [r3]
	b	.L25
.L26:
	ldr	r3, .L31+24
	ldr	r2, [r3]
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r1, .L31+28
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L31+32
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L31+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+24
	str	r3, [r2]
.L25:
	ldr	r3, .L31+24
	ldr	r2, [r3]
	ldr	r3, .L31+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L26
	b	.L27
.L28:
	ldr	r3, .L31+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+36
	str	r3, [r2]
.L27:
	mov	r0, #0
	bl	dfs
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
.L24:
	bl	bfs
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L31+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+40
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	m
	.word	n
	.word	.LC0
	.word	b
	.word	a
	.word	d
	.word	i
	.word	g
	.word	l
	.word	f
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
