	.file	"87637312.c"
	.intel_syntax noprefix
	.text
	.globl	qHead
	.bss
	.align 8
	.type	qHead, @object
	.size	qHead, 8
qHead:
	.zero	8
	.globl	AdjMatrix
	.align 32
	.type	AdjMatrix, @object
	.size	AdjMatrix, 40000
AdjMatrix:
	.zero	40000
	.globl	g_qCount
	.align 4
	.type	g_qCount, @object
	.size	g_qCount, 4
g_qCount:
	.zero	4
	.globl	rgnNodes
	.align 32
	.type	rgnNodes, @object
	.size	rgnNodes, 800
rgnNodes:
	.zero	800
	.globl	ch
	.align 4
	.type	ch, @object
	.size	ch, 4
ch:
	.zero	4
	.globl	iPrev
	.align 4
	.type	iPrev, @object
	.size	iPrev, 4
iPrev:
	.zero	4
	.globl	iNode
	.align 4
	.type	iNode, @object
	.size	iNode, 4
iNode:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	iCost
	.align 4
	.type	iCost, @object
	.size	iCost, 4
iCost:
	.zero	4
	.globl	iDist
	.align 4
	.type	iDist, @object
	.size	iDist, 4
iDist:
	.zero	4
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	print_path
	.type	print_path, @function
print_path:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 9999
	je	.L2
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_path
.L2:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_path, .-print_path
	.section	.rodata
.LC1:
	.string	"Out of memory.\n"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR qHead[rip]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR qHead[rip], rax
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L6:
	mov	eax, DWORD PTR g_qCount[rip]
	add	eax, 1
	mov	DWORD PTR g_qCount[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR qHead[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR qHead[rip]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR qHead[rip]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR qHead[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR qHead[rip]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR qHead[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR qHead[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR g_qCount[rip]
	sub	eax, 1
	mov	DWORD PTR g_qCount[rip], eax
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dequeue, .-dequeue
	.globl	qcount
	.type	qcount, @function
qcount:
.LFB9:
	.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 g_qCount[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	qcount, .-qcount
	.section	.rodata
	.align 8
.LC2:
	.string	"Shortest path is 0 in cost. Just stay where you are."
.LC3:
	.string	"Shortest path is %d in cost. "
.LC4:
	.string	"Path is: "
	.text
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR ch[rip], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR ch[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip]
	mov	DWORD PTR [rdx+rax], 9999
	mov	eax, DWORD PTR ch[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip+4]
	mov	DWORD PTR [rdx+rax], 9999
	mov	eax, DWORD PTR ch[rip]
	add	eax, 1
	mov	DWORD PTR ch[rip], eax
.L15:
	mov	eax, DWORD PTR ch[rip]
	cmp	eax, 99
	jle	.L16
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L17
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip+4]
	mov	DWORD PTR [rdx+rax], 9999
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 9999
	mov	esi, 0
	mov	edi, eax
	call	enqueue
	jmp	.L19
.L24:
	lea	rdx, iPrev[rip]
	lea	rsi, iDist[rip]
	lea	rdi, iNode[rip]
	call	dequeue
	mov	DWORD PTR i[rip], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR iNode[rip]
	mov	edx, DWORD PTR i[rip]
	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, AdjMatrix[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR iCost[rip], eax
	mov	eax, DWORD PTR iCost[rip]
	cmp	eax, 9999
	je	.L21
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 9999
	je	.L22
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR iCost[rip]
	mov	edx, DWORD PTR iDist[rip]
	add	edx, ecx
	cmp	eax, edx
	jle	.L21
.L22:
	mov	ecx, DWORD PTR iDist[rip]
	mov	edx, DWORD PTR iCost[rip]
	mov	eax, DWORD PTR i[rip]
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR iNode[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, rgnNodes[rip+4]
	mov	DWORD PTR [rcx+rdx], eax
	mov	edx, DWORD PTR iNode[rip]
	mov	ecx, DWORD PTR iDist[rip]
	mov	eax, DWORD PTR iCost[rip]
	add	ecx, eax
	mov	eax, DWORD PTR i[rip]
	mov	esi, ecx
	mov	edi, eax
	call	enqueue
.L21:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L20:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 99
	jle	.L23
.L19:
	call	qcount
	test	eax, eax
	jg	.L24
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, rgnNodes[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, rgnNodes[rip]
	call	print_path
	mov	edi, 10
	call	putchar@PLT
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	dijkstra, .-dijkstra
	.section	.rodata
.LC5:
	.string	"Usage: dijkstra <filename>\n"
	.align 8
.LC6:
	.string	"Only supports matrix size is #define'd.\n"
.LC7:
	.string	"r"
.LC8:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
.L26:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L28
.L29:
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, AdjMatrix[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -20[rbp], 1
.L28:
	cmp	DWORD PTR -20[rbp], 99
	jle	.L29
	add	DWORD PTR -24[rbp], 1
.L27:
	cmp	DWORD PTR -24[rbp], 99
	jle	.L30
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 50
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dijkstra
	add	DWORD PTR -24[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L31:
	cmp	DWORD PTR -24[rbp], 19
	jle	.L32
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.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	"87637312.c"
	.text
	.global	qHead
	.bss
	.align	2
	.type	qHead, %object
	.size	qHead, 4
qHead:
	.space	4
	.comm	AdjMatrix,40000,4
	.global	g_qCount
	.align	2
	.type	g_qCount, %object
	.size	g_qCount, 4
g_qCount:
	.space	4
	.comm	rgnNodes,800,4
	.comm	ch,4,4
	.comm	iPrev,4,4
	.comm	iNode,4,4
	.comm	i,4,4
	.comm	iCost,4,4
	.comm	iDist,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %d\000"
	.text
	.align	2
	.global	print_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_path, %function
print_path:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, .L3
	cmp	r3, r2
	beq	.L2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	print_path
.L2:
	ldr	r1, [fp, #-12]
	ldr	r0, .L3+4
	bl	printf
	ldr	r3, .L3+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	9999
	.word	.LC0
	.word	stdout
	.size	print_path, .-print_path
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Out of memory.\012\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L11+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L8
.L10:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
.L8:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+12
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	qHead
	.word	stderr
	.word	.LC1
	.word	g_qCount
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, .L16+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L16+4
	str	r3, [r2]
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	qHead
	.word	g_qCount
	.size	dequeue, .-dequeue
	.align	2
	.global	qcount
	.syntax unified
	.arm
	.fpu softvfp
	.type	qcount, %function
qcount:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L20
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	g_qCount
	.size	qcount, .-qcount
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Shortest path is 0 in cost. Just stay where you are"
	.ascii	".\000"
	.align	2
.LC3:
	.ascii	"Shortest path is %d in cost. \000"
	.align	2
.LC4:
	.ascii	"Path is: \000"
	.text
	.align	2
	.global	dijkstra
	.syntax unified
	.arm
	.fpu softvfp
	.type	dijkstra, %function
dijkstra:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L33
	mov	r2, #0
	str	r2, [r3]
	b	.L23
.L24:
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, .L33+4
	ldr	r1, .L33+8
	str	r1, [r2, r3, lsl #3]
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, .L33+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, .L33+8
	str	r2, [r3, #4]
	ldr	r3, .L33
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33
	str	r3, [r2]
.L23:
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L24
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L25
	ldr	r0, .L33+12
	bl	puts
	b	.L26
.L25:
	ldr	r2, .L33+4
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #3]
	ldr	r2, .L33+4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, .L33+8
	str	r2, [r3, #4]
	ldr	r2, .L33+8
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	enqueue
	b	.L27
.L32:
	ldr	r2, .L33+16
	ldr	r1, .L33+20
	ldr	r0, .L33+24
	bl	dequeue
	ldr	r3, .L33+28
	mov	r2, #0
	str	r2, [r3]
	b	.L28
.L31:
	ldr	r3, .L33+24
	ldr	r2, [r3]
	ldr	r3, .L33+28
	ldr	r1, [r3]
	ldr	r0, .L33+32
	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]
	ldr	r2, .L33+36
	str	r3, [r2]
	ldr	r3, .L33+36
	ldr	r3, [r3]
	ldr	r2, .L33+8
	cmp	r3, r2
	beq	.L29
	ldr	r3, .L33+28
	ldr	r3, [r3]
	ldr	r2, .L33+4
	ldr	r3, [r2, r3, lsl #3]
	ldr	r2, .L33+8
	cmp	r3, r2
	beq	.L30
	ldr	r3, .L33+28
	ldr	r3, [r3]
	ldr	r2, .L33+4
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, .L33+36
	ldr	r1, [r3]
	ldr	r3, .L33+20
	ldr	r3, [r3]
	add	r3, r1, r3
	cmp	r2, r3
	ble	.L29
.L30:
	ldr	r3, .L33+20
	ldr	r1, [r3]
	ldr	r3, .L33+36
	ldr	r2, [r3]
	ldr	r3, .L33+28
	ldr	r3, [r3]
	add	r2, r1, r2
	ldr	r1, .L33+4
	str	r2, [r1, r3, lsl #3]
	ldr	r3, .L33+28
	ldr	r3, [r3]
	ldr	r2, .L33+24
	ldr	r2, [r2]
	ldr	r1, .L33+4
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, .L33+28
	ldr	r0, [r3]
	ldr	r3, .L33+20
	ldr	r2, [r3]
	ldr	r3, .L33+36
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+24
	ldr	r2, [r2]
	mov	r1, r3
	bl	enqueue
.L29:
	ldr	r3, .L33+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+28
	str	r3, [r2]
.L28:
	ldr	r3, .L33+28
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L31
.L27:
	bl	qcount
	mov	r3, r0
	cmp	r3, #0
	bgt	.L32
	ldr	r2, .L33+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #3]
	mov	r1, r3
	ldr	r0, .L33+40
	bl	printf
	ldr	r0, .L33+44
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L33+4
	bl	print_path
	mov	r0, #10
	bl	putchar
.L26:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	ch
	.word	rgnNodes
	.word	9999
	.word	.LC2
	.word	iPrev
	.word	iDist
	.word	iNode
	.word	i
	.word	AdjMatrix
	.word	iCost
	.word	.LC3
	.word	.LC4
	.size	dijkstra, .-dijkstra
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: dijkstra <filename>\012\000"
	.align	2
.LC6:
	.ascii	"Only supports matrix size is #define'd.\012\000"
	.align	2
.LC7:
	.ascii	"r\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L36
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L44+8
	bl	fwrite
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L44+12
	bl	fwrite
.L36:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L44+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L37
.L40:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L38
.L39:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L44+20
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	ldr	r1, [fp, #-24]
	ldr	r0, .L44+24
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L38:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L39
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L37:
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	ble	.L40
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #50
	str	r3, [fp, #-16]
	b	.L41
.L42:
	ldr	r2, [fp, #-16]
	ldr	r3, .L44+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	dijkstra
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-20]
	cmp	r3, #19
	ble	.L42
	mov	r0, #0
	bl	exit
.L45:
	.align	2
.L44:
	.word	.LC9
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	AdjMatrix
	.word	1374389535
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
