	.file	"730002.c"
	.intel_syntax noprefix
	.text
	.globl	nodes
	.bss
	.align 32
	.type	nodes, @object
	.size	nodes, 2800
nodes:
	.zero	2800
	.globl	edges
	.align 32
	.type	edges, @object
	.size	edges, 40000
edges:
	.zero	40000
	.globl	numnodes
	.align 4
	.type	numnodes, @object
	.size	numnodes, 4
numnodes:
	.zero	4
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 800
path:
	.zero	800
	.globl	nodesvisited
	.align 4
	.type	nodesvisited, @object
	.size	nodesvisited, 4
nodesvisited:
	.zero	4
	.section	.rodata
.LC0:
	.string	"testing at node %d\n"
	.align 8
.LC1:
	.string	"    checking edge %d %d, visited %d numvisited %d\n"
.LC2:
	.string	"    completed tour"
.LC3:
	.string	"    going in for findtour %d\n"
	.align 8
.LC4:
	.string	"    not found: leaving from node %d\n"
	.text
	.globl	findtour
	.type	findtour, @function
findtour:
.LFB0:
	.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	eax, DWORD PTR 20[rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 1
	mov	eax, DWORD PTR nodesvisited[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR nodesvisited[rip], edx
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, path[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	DWORD PTR -4[rbp], eax
	je	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 20[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rsi, eax
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, edges[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L4
	mov	esi, DWORD PTR nodesvisited[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+24]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+20]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L5
	mov	edx, DWORD PTR nodesvisited[rip]
	mov	eax, DWORD PTR numnodes[rip]
	cmp	edx, eax
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edx, DWORD PTR nodesvisited[rip]
	lea	eax, 1[rdx]
	mov	DWORD PTR nodesvisited[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	lea	rcx, nodes[rip]
	add	rcx, rax
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, path[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, nodes[rip]
	add	rax, rdx
	mov	rdi, rax
	call	findtour
	cmp	eax, 1
	jne	.L4
	mov	eax, 1
	jmp	.L6
.L8:
	nop
.L4:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR numnodes[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	eax, DWORD PTR nodesvisited[rip]
	sub	eax, 1
	mov	DWORD PTR nodesvisited[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	findtour, .-findtour
	.section	.rodata
.LC5:
	.string	"%d"
.LC6:
	.string	"%d %s"
.LC7:
	.string	"%d %d"
.LC8:
	.string	"path found"
.LC9:
	.string	"   %d %s ->\n"
.LC10:
	.string	"no path exists"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, numnodes[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L10
.L11:
	lea	rdx, -32[rbp]
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, nodes[rip+20]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, nodes[rip]
	add	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nodes[rip+24]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L10:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR numnodes[rip]
	cmp	edx, eax
	jl	.L11
	mov	DWORD PTR -44[rbp], 0
	jmp	.L12
.L15:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, edges[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	DWORD PTR -40[rbp], eax
.L13:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR numnodes[rip]
	cmp	edx, eax
	jl	.L14
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L12:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR numnodes[rip]
	cmp	edx, eax
	jl	.L15
.L18:
	lea	rdx, -40[rbp]
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, -1
	jne	.L16
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, -1
	je	.L25
.L16:
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	movsx	rdi, ecx
	movsx	rsi, edx
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdi
	lea	rsi, 0[0+rax*4]
	lea	rax, edges[rip]
	mov	DWORD PTR [rsi+rax], 1
	mov	esi, DWORD PTR -44[rbp]
	mov	edi, DWORD PTR -40[rbp]
	movsx	rcx, ecx
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, edges[rip]
	mov	edx, DWORD PTR [rdx+rax]
	movsx	rdi, edi
	movsx	rcx, esi
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	sal	rax, 2
	add	rax, rdi
	lea	rcx, 0[0+rax*4]
	lea	rax, edges[rip]
	mov	DWORD PTR [rcx+rax], edx
	jmp	.L18
.L25:
	nop
	lea	rdi, nodes[rip]
	call	findtour
	test	eax, eax
	je	.L19
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, path[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rcx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, path[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 20[rax]
	mov	rdx, rcx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L20:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR nodesvisited[rip]
	cmp	edx, eax
	jl	.L21
	jmp	.L26
.L19:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L26:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"730002.c"
	.text
	.comm	nodes,2800,4
	.comm	edges,40000,4
	.comm	numnodes,4,4
	.comm	path,400,4
	.global	nodesvisited
	.bss
	.align	2
	.type	nodesvisited, %object
	.size	nodesvisited, 4
nodesvisited:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"testing at node %d\012\000"
	.align	2
.LC1:
	.ascii	"    checking edge %d %d, visited %d numvisited %d\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"    completed tour\000"
	.align	2
.LC3:
	.ascii	"    going in for findtour %d\012\000"
	.align	2
.LC4:
	.ascii	"    not found: leaving from node %d\012\000"
	.text
	.align	2
	.global	findtour
	.syntax unified
	.arm
	.fpu softvfp
	.type	findtour, %function
findtour:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #24]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L9+4
	str	r2, [r1]
	ldr	r1, .L9+8
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #20]
	ldr	r0, .L9+12
	ldr	r1, [fp, #-8]
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #20
	ldr	r1, [r3]
	ldr	r0, .L9+16
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #1
	bne	.L4
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #20]
	ldr	r0, .L9+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #20
	ldr	r0, [r3]
	ldr	ip, .L9+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	add	r3, r3, #24
	ldr	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r0
	ldr	r0, .L9+20
	bl	printf
	ldr	r1, .L9+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, .L9+24
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	ldr	r0, .L9+28
	bl	puts
	ldr	r3, .L9+4
	ldr	r2, [r3]
	add	r3, r2, #1
	ldr	r1, .L9+4
	str	r3, [r1]
	ldr	r1, [fp, #-8]
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r1, .L9+12
	add	r3, r3, r1
	ldr	r1, .L9+8
	str	r3, [r1, r2, lsl #2]
	mov	r3, #1
	b	.L6
.L5:
	ldr	r1, .L9+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r1, .L9+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+32
	bl	printf
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L9+12
	add	r3, r3, r2
	mov	r0, r3
	bl	findtour
	mov	r3, r0
	cmp	r3, #1
	bne	.L4
	mov	r3, #1
	b	.L6
.L8:
	nop
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L9+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L9+36
	bl	printf
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	nodesvisited
	.word	path
	.word	nodes
	.word	edges
	.word	.LC1
	.word	numnodes
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	findtour, .-findtour
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"%d %s\000"
	.align	2
.LC7:
	.ascii	"%d %d\000"
	.align	2
.LC8:
	.ascii	"path found\000"
	.align	2
.LC9:
	.ascii	"   %d %s ->\012\000"
	.align	2
.LC10:
	.ascii	"no path exists\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L29+4
	ldr	r0, .L29+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L12
.L13:
	sub	r2, fp, #28
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L29+12
	bl	__isoc99_scanf
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L29+16
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #20
	str	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L29+16
	add	r3, r3, r2
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-32]
	ldr	r1, .L29+16
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L12:
	ldr	r2, [fp, #-40]
	ldr	r3, .L29+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L14
.L17:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L15
.L16:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, .L29+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	mov	r2, #0
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L15:
	ldr	r2, [fp, #-36]
	ldr	r3, .L29+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L14:
	ldr	r2, [fp, #-40]
	ldr	r3, .L29+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L17
.L20:
	sub	r2, fp, #36
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L29+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	beq	.L27
.L18:
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	ip, .L29+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r1
	mov	r0, #1
	str	r0, [ip, r3, lsl #2]
	ldr	r0, [fp, #-40]
	ldr	ip, [fp, #-36]
	ldr	lr, .L29+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	ldr	r2, [lr, r3, lsl #2]
	ldr	lr, .L29+20
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r0
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, ip
	str	r2, [lr, r3, lsl #2]
	b	.L20
.L27:
	nop
	ldr	r0, .L29+16
	bl	findtour
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L29+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L22
.L23:
	ldr	r3, [fp, #-40]
	ldr	r2, .L29+32
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-40]
	ldr	r2, .L29+32
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L29+36
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L22:
	ldr	r2, [fp, #-40]
	ldr	r3, .L29+40
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L23
	b	.L28
.L21:
	ldr	r0, .L29+44
	bl	puts
.L28:
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC11
	.word	numnodes
	.word	.LC5
	.word	.LC6
	.word	nodes
	.word	edges
	.word	.LC7
	.word	.LC8
	.word	path
	.word	.LC9
	.word	nodesvisited
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
