	.file	"148665.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the number of nodes:"
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the cost matrix:"
.LC3:
	.string	"Enter the source vertex:"
.LC4:
	.string	"Shortest path:"
.LC5:
	.string	"%d -> %d, cost = %d\n"
	.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
	sub	rsp, 480
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -480[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -472[rbp], 1
	jmp	.L2
.L6:
	mov	DWORD PTR -468[rbp], 1
	jmp	.L3
.L5:
	lea	rcx, -416[rbp]
	mov	eax, DWORD PTR -468[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -472[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -468[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -472[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	eax, DWORD PTR -416[rbp+rax*4]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -468[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -472[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -416[rbp+rax*4], 999
.L4:
	add	DWORD PTR -468[rbp], 1
.L3:
	mov	eax, DWORD PTR -480[rbp]
	cmp	DWORD PTR -468[rbp], eax
	jle	.L5
	add	DWORD PTR -472[rbp], 1
.L2:
	mov	eax, DWORD PTR -480[rbp]
	cmp	DWORD PTR -472[rbp], eax
	jle	.L6
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -476[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, DWORD PTR -476[rbp]
	mov	eax, DWORD PTR -480[rbp]
	lea	rcx, -464[rbp]
	lea	rdx, -416[rbp]
	mov	edi, eax
	call	dijkstra
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -472[rbp], 1
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -476[rbp]
	cmp	DWORD PTR -472[rbp], eax
	je	.L8
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	mov	ecx, DWORD PTR -464[rbp+rax*4]
	mov	eax, DWORD PTR -476[rbp]
	mov	edx, DWORD PTR -472[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	add	DWORD PTR -472[rbp], 1
.L7:
	mov	eax, DWORD PTR -480[rbp]
	cmp	DWORD PTR -472[rbp], eax
	jle	.L9
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.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, 112
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	QWORD PTR -96[rbp], rdx
	mov	QWORD PTR -104[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 1
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], 0
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -68[rbp], 1
.L13:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L14
	mov	DWORD PTR -60[rbp], 2
	jmp	.L15
.L22:
	mov	DWORD PTR -52[rbp], 99
	mov	DWORD PTR -56[rbp], 1
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -52[rbp], eax
	jle	.L17
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -64[rbp], eax
.L17:
	add	DWORD PTR -56[rbp], 1
.L16:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L18
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], 1
	add	DWORD PTR -60[rbp], 1
	mov	DWORD PTR -56[rbp], 1
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L20
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
.L20:
	add	DWORD PTR -56[rbp], 1
.L19:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L21
.L15:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L22
	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	dijkstra, .-dijkstra
	.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	"148665.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of nodes:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the cost matrix:\000"
	.align	2
.LC3:
	.ascii	"Enter the source vertex:\000"
	.align	2
.LC4:
	.ascii	"Shortest path:\000"
	.align	2
.LC5:
	.ascii	"%d -> %d, cost = %d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 464
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #464
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	puts
	sub	r3, fp, #464
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r0, .L12+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-456]
	b	.L2
.L6:
	mov	r3, #1
	str	r3, [fp, #-452]
	b	.L3
.L5:
	sub	r1, fp, #408
	ldr	r2, [fp, #-456]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-452]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r2, [fp, #-456]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-452]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	bne	.L4
	ldr	r2, [fp, #-456]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-452]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, .L12+16
	str	r2, [r3, #-404]
.L4:
	ldr	r3, [fp, #-452]
	add	r3, r3, #1
	str	r3, [fp, #-452]
.L3:
	ldr	r3, [fp, #-464]
	ldr	r2, [fp, #-452]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-456]
	add	r3, r3, #1
	str	r3, [fp, #-456]
.L2:
	ldr	r3, [fp, #-464]
	ldr	r2, [fp, #-456]
	cmp	r2, r3
	ble	.L6
	ldr	r0, .L12+20
	bl	puts
	sub	r3, fp, #460
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r0, [fp, #-464]
	ldr	r1, [fp, #-460]
	sub	r3, fp, #448
	sub	r2, fp, #408
	bl	dijkstra
	ldr	r0, .L12+24
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-456]
	b	.L7
.L9:
	ldr	r3, [fp, #-460]
	ldr	r2, [fp, #-456]
	cmp	r2, r3
	beq	.L8
	ldr	r1, [fp, #-460]
	ldr	r3, [fp, #-456]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-444]
	ldr	r2, [fp, #-456]
	ldr	r0, .L12+28
	bl	printf
.L8:
	ldr	r3, [fp, #-456]
	add	r3, r3, #1
	str	r3, [fp, #-456]
.L7:
	ldr	r3, [fp, #-464]
	ldr	r2, [fp, #-456]
	cmp	r2, r3
	ble	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	999
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dijkstra
	.syntax unified
	.arm
	.fpu softvfp
	.type	dijkstra, %function
dijkstra:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L15
.L16:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r2, r3, r2
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-84]
	add	r3, r1, r3
	ldr	r1, [fp, #-68]
	ldr	r2, [r2, r1, lsl #2]
	str	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L15:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L16
	mov	r3, #2
	str	r3, [fp, #-60]
	b	.L17
.L24:
	mov	r3, #99
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L18
.L20:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-64]
.L19:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L18:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L20
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L21
.L23:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r3, r2
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	add	r2, r1, r3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-84]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L22
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r3, r2
	ldr	r2, [fp, #-56]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-84]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L21:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L23
.L17:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L24
	nop
	ldr	r3, .L26
	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}
.L27:
	.align	2
.L26:
	.word	.LC7
	.size	dijkstra, .-dijkstra
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
