	.file	"98574308.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.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	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	ne
	.data
	.align 4
	.type	ne, @object
	.size	ne, 4
ne:
	.long	1
	.globl	st
	.bss
	.align 4
	.type	st, @object
	.size	st, 4
st:
	.zero	4
	.globl	et
	.align 4
	.type	et, @object
	.size	et, 4
et:
	.zero	4
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 40
visited:
	.zero	40
	.globl	min
	.align 4
	.type	min, @object
	.size	min, 4
min:
	.zero	4
	.globl	mincost
	.align 4
	.type	mincost, @object
	.size	mincost, 4
mincost:
	.zero	4
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 400
cost:
	.zero	400
	.section	.rodata
.LC0:
	.string	"Enter the number of nodes:"
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the adjacency matrix: "
.LC3:
	.string	"Edge %d:(%d %d) cost:%d"
.LC4:
	.string	"Minimun cost=%d"
.LC5:
	.string	"Start Time =%d\nEnd Time =%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR i[rip], 1
	jmp	.L2
.L6:
	mov	DWORD PTR j[rip], 1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cost[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	DWORD PTR [rdx+rax], 999
.L4:
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L3:
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L5
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L6
	call	clock@PLT
	mov	DWORD PTR st[rip], eax
	mov	DWORD PTR visited[rip+4], 1
	mov	edi, 110
	call	putchar@PLT
	jmp	.L7
.L15:
	mov	DWORD PTR i[rip], 1
	mov	DWORD PTR min[rip], 999
	jmp	.L8
.L12:
	mov	DWORD PTR j[rip], 1
	jmp	.L9
.L11:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR min[rip]
	cmp	edx, eax
	jge	.L10
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR min[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	DWORD PTR u[rip], eax
	mov	eax, DWORD PTR u[rip]
	mov	DWORD PTR a[rip], eax
	mov	eax, DWORD PTR j[rip]
	mov	DWORD PTR v[rip], eax
	mov	eax, DWORD PTR v[rip]
	mov	DWORD PTR b[rip], eax
.L10:
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L9:
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L11
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L8:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L12
	mov	eax, DWORD PTR u[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR v[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L14
.L13:
	mov	edi, DWORD PTR min[rip]
	mov	ecx, DWORD PTR b[rip]
	mov	edx, DWORD PTR a[rip]
	mov	eax, DWORD PTR ne[rip]
	lea	esi, 1[rax]
	mov	DWORD PTR ne[rip], esi
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR mincost[rip]
	mov	eax, DWORD PTR min[rip]
	add	eax, edx
	mov	DWORD PTR mincost[rip], eax
	mov	eax, DWORD PTR b[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	DWORD PTR [rdx+rax], 1
.L14:
	mov	edx, DWORD PTR b[rip]
	mov	ecx, DWORD PTR a[rip]
	movsx	rdi, ecx
	movsx	rsi, edx
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	add	rax, rax
	add	rax, rdi
	lea	rsi, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	DWORD PTR [rsi+rax], 999
	mov	esi, DWORD PTR a[rip]
	mov	edi, DWORD PTR b[rip]
	movsx	rcx, ecx
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	edx, DWORD PTR [rdx+rax]
	movsx	rdi, edi
	movsx	rcx, esi
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rdi
	lea	rcx, 0[0+rax*4]
	lea	rax, cost[rip]
	mov	DWORD PTR [rcx+rax], edx
.L7:
	mov	edx, DWORD PTR ne[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L15
	mov	eax, DWORD PTR mincost[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	mov	DWORD PTR et[rip], eax
	mov	edx, DWORD PTR et[rip]
	mov	eax, DWORD PTR st[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"98574308.c"
	.text
	.comm	a,4,4
	.comm	b,4,4
	.comm	u,4,4
	.comm	v,4,4
	.comm	n,4,4
	.comm	i,4,4
	.comm	j,4,4
	.global	ne
	.data
	.align	2
	.type	ne, %object
	.size	ne, 4
ne:
	.word	1
	.comm	st,4,4
	.comm	et,4,4
	.global	visited
	.bss
	.align	2
	.type	visited, %object
	.size	visited, 40
visited:
	.space	40
	.comm	min,4,4
	.global	mincost
	.align	2
	.type	mincost, %object
	.size	mincost, 4
mincost:
	.space	4
	.comm	cost,400,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of nodes:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the adjacency matrix: \000"
	.align	2
.LC3:
	.ascii	"Edge %d:(%d %d) cost:%d\000"
	.align	2
.LC4:
	.ascii	"Minimun cost=%d\000"
	.align	2
.LC5:
	.ascii	"Start Time =%d\012End Time =%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
	sub	sp, sp, #8
	ldr	r0, .L16
	bl	printf
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r0, .L16+12
	bl	printf
	ldr	r3, .L16+16
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L6:
	ldr	r3, .L16+20
	mov	r2, #1
	str	r2, [r3]
	b	.L3
.L5:
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r1, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r2, .L16+24
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r1, [r3]
	ldr	r0, .L16+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r1, [r3]
	ldr	r0, .L16+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r2, .L16+28
	str	r2, [r0, r3, lsl #2]
.L4:
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+20
	str	r3, [r2]
.L3:
	ldr	r3, .L16+20
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L5
	ldr	r3, .L16+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+16
	str	r3, [r2]
.L2:
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	bl	clock
	mov	r3, r0
	ldr	r2, .L16+32
	str	r3, [r2]
	ldr	r3, .L16+36
	mov	r2, #1
	str	r2, [r3, #4]
	mov	r0, #110
	bl	putchar
	b	.L7
.L15:
	ldr	r3, .L16+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L16+40
	ldr	r2, .L16+28
	str	r2, [r3]
	b	.L8
.L12:
	ldr	r3, .L16+20
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L11:
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r1, [r3]
	ldr	r0, .L16+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r2, [r0, r3, lsl #2]
	ldr	r3, .L16+40
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L10
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r2, .L16+36
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r1, [r3]
	ldr	r0, .L16+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L16+40
	str	r3, [r2]
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r2, .L16+44
	str	r3, [r2]
	ldr	r3, .L16+44
	ldr	r3, [r3]
	ldr	r2, .L16+48
	str	r3, [r2]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	ldr	r2, .L16+52
	str	r3, [r2]
	ldr	r3, .L16+52
	ldr	r3, [r3]
	ldr	r2, .L16+56
	str	r3, [r2]
.L10:
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+20
	str	r3, [r2]
.L9:
	ldr	r3, .L16+20
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L11
	ldr	r3, .L16+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+16
	str	r3, [r2]
.L8:
	ldr	r3, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L12
	ldr	r3, .L16+44
	ldr	r3, [r3]
	ldr	r2, .L16+36
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L16+52
	ldr	r3, [r3]
	ldr	r2, .L16+36
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r3, .L16+60
	ldr	r1, [r3]
	add	r3, r1, #1
	ldr	r2, .L16+60
	str	r3, [r2]
	ldr	r3, .L16+48
	ldr	r2, [r3]
	ldr	r3, .L16+56
	ldr	r0, [r3]
	ldr	r3, .L16+40
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L16+64
	bl	printf
	ldr	r3, .L16+68
	ldr	r2, [r3]
	ldr	r3, .L16+40
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L16+68
	str	r3, [r2]
	ldr	r3, .L16+56
	ldr	r3, [r3]
	ldr	r2, .L16+36
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
.L14:
	ldr	r3, .L16+56
	ldr	r2, [r3]
	ldr	r3, .L16+48
	ldr	r1, [r3]
	ldr	r0, .L16+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	ip, .L16+28
	str	ip, [r0, r3, lsl #2]
	ldr	r3, .L16+48
	ldr	r0, [r3]
	ldr	r3, .L16+56
	ldr	ip, [r3]
	ldr	lr, .L16+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r2, [lr, r3, lsl #2]
	ldr	r1, .L16+24
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #1
	add	r3, r3, ip
	str	r2, [r1, r3, lsl #2]
.L7:
	ldr	r3, .L16+60
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L16+68
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+72
	bl	printf
	bl	clock
	mov	r3, r0
	ldr	r2, .L16+76
	str	r3, [r2]
	ldr	r3, .L16+32
	ldr	r3, [r3]
	ldr	r2, .L16+76
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L16+80
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	n
	.word	.LC1
	.word	.LC2
	.word	i
	.word	j
	.word	cost
	.word	999
	.word	st
	.word	visited
	.word	min
	.word	u
	.word	a
	.word	v
	.word	b
	.word	ne
	.word	.LC3
	.word	mincost
	.word	.LC4
	.word	et
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
