	.file	"12658.c"
	.intel_syntax noprefix
	.text
	.globl	i
	.bss
	.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	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	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	vv
	.align 4
	.type	vv, @object
	.size	vv, 4
vv:
	.zero	4
	.globl	w_u_vv
	.align 4
	.type	w_u_vv, @object
	.size	w_u_vv, 4
w_u_vv:
	.zero	4
	.globl	AdjList
	.align 32
	.type	AdjList, @object
	.size	AdjList, 4000000
AdjList:
	.zero	4000000
	.globl	weight
	.align 32
	.type	weight, @object
	.size	weight, 4000000
weight:
	.zero	4000000
	.globl	sz
	.align 32
	.type	sz, @object
	.size	sz, 4000
sz:
	.zero	4000
	.globl	dist
	.align 32
	.type	dist, @object
	.size	dist, 4000
dist:
	.zero	4000
	.globl	front
	.align 8
	.type	front, @object
	.size	front, 8
front:
	.zero	8
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 8000
A:
	.zero	8000
	.globl	BinaryHeapSize
	.align 4
	.type	BinaryHeapSize, @object
	.size	BinaryHeapSize, 4
BinaryHeapSize:
	.zero	4
	.text
	.globl	smaller
	.type	smaller, @function
smaller:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	setl	al
	movzx	eax, al
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	setl	al
	movzx	eax, al
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	smaller, .-smaller
	.globl	parent
	.type	parent, @function
parent:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	sar	eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	parent, .-parent
	.globl	left
	.type	left, @function
left:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	left, .-left
	.globl	right
	.type	right, @function
right:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	add	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	right, .-right
	.globl	Initialize
	.type	Initialize, @function
Initialize:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR A[rip+4], 0
	mov	eax, DWORD PTR A[rip+4]
	mov	DWORD PTR A[rip], eax
	mov	DWORD PTR BinaryHeapSize[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	Initialize, .-Initialize
	.globl	shiftUp
	.type	shiftUp, @function
shiftUp:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	DWORD PTR -20[rbp], edi
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, A[rip]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rsi+rax]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, A[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	mov	DWORD PTR -20[rbp], eax
.L12:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L15
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, A[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	smaller
	test	eax, eax
	jne	.L14
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	shiftUp, .-shiftUp
	.globl	Enqueue
	.type	Enqueue, @function
Enqueue:
.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, 8
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	add	eax, 1
	mov	DWORD PTR BinaryHeapSize[rip], eax
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, A[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, A[rip+4]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	mov	edi, eax
	call	shiftUp
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Enqueue, .-Enqueue
	.globl	shiftDown
	.type	shiftDown, @function
shiftDown:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L18
.L23:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	left
	mov	edx, DWORD PTR BinaryHeapSize[rip]
	cmp	eax, edx
	jg	.L19
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	left
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	add	rdx, rax
	lea	rax, -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	smaller
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	left
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	left
	mov	DWORD PTR -28[rbp], eax
.L19:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	right
	mov	edx, DWORD PTR BinaryHeapSize[rip]
	cmp	eax, edx
	jg	.L20
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	right
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	add	rdx, rax
	lea	rax, -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	smaller
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	right
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	right
	mov	DWORD PTR -28[rbp], eax
.L20:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L25
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, A[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rsi+rax]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, A[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -36[rbp], eax
.L18:
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L23
	jmp	.L22
.L25:
	nop
.L22:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	shiftDown, .-shiftDown
	.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, 16
	mov	rax, QWORD PTR A[rip+8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR A[rip+8], rax
	mov	eax, DWORD PTR BinaryHeapSize[rip]
	sub	eax, 1
	mov	DWORD PTR BinaryHeapSize[rip], eax
	mov	edi, 1
	call	shiftDown
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Dequeue, .-Dequeue
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.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 BinaryHeapSize[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isEmpty, .-isEmpty
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.align 8
.LC2:
	.string	"TLE because iteration counter > 1000000"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"The value of counter is: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, V[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L31
.L34:
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L32
.L33:
	lea	rdx, w[rip]
	lea	rsi, j[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, sz[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR j[rip]
	movsx	rcx, ecx
	movsx	rdx, edx
	imul	rdx, rdx, 1000
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, AdjList[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, sz[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR w[rip]
	movsx	rcx, ecx
	movsx	rdx, edx
	imul	rdx, rdx, 1000
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, weight[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR i[rip]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, sz[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sz[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L32:
	mov	eax, DWORD PTR n[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR n[rip], edx
	test	eax, eax
	jne	.L33
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L31:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR V[rip]
	cmp	edx, eax
	jl	.L34
	mov	DWORD PTR counter[rip], 0
	lea	rsi, Q[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L35
.L45:
	lea	rdx, t[rip]
	lea	rsi, s[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L36
.L37:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	DWORD PTR [rdx+rax], 1000000000
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L36:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR V[rip]
	cmp	edx, eax
	jl	.L37
	mov	eax, DWORD PTR s[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, 0
	call	Initialize
	mov	eax, DWORD PTR s[rip]
	mov	esi, eax
	mov	edi, 0
	call	Enqueue
	jmp	.L38
.L44:
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR counter[rip]
	cmp	eax, 1000000
	jle	.L39
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L40
.L39:
	mov	eax, 0
	call	Dequeue
	mov	QWORD PTR front[rip], rax
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR d[rip], eax
	mov	eax, DWORD PTR front[rip+4]
	mov	DWORD PTR u[rip], eax
	mov	eax, DWORD PTR u[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR d[rip]
	cmp	edx, eax
	jne	.L38
	mov	DWORD PTR j[rip], 0
	jmp	.L41
.L43:
	mov	eax, DWORD PTR u[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, AdjList[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR vv[rip], eax
	mov	eax, DWORD PTR u[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, weight[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR w_u_vv[rip], eax
	mov	eax, DWORD PTR u[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR w_u_vv[rip]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR vv[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jge	.L42
	mov	eax, DWORD PTR u[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR w_u_vv[rip]
	mov	eax, DWORD PTR vv[rip]
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	edx, DWORD PTR vv[rip]
	mov	eax, DWORD PTR vv[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	Enqueue
.L42:
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L41:
	mov	eax, DWORD PTR u[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sz[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR j[rip]
	cmp	edx, eax
	jg	.L43
.L38:
	mov	eax, 0
	call	isEmpty
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR t[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dist[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	mov	eax, DWORD PTR Q[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR Q[rip], edx
	test	eax, eax
	jne	.L45
	mov	eax, DWORD PTR counter[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L40:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"12658.c"
	.text
	.comm	i,4,4
	.comm	j,4,4
	.comm	V,4,4
	.comm	n,4,4
	.comm	w,4,4
	.comm	counter,4,4
	.comm	Q,4,4
	.comm	s,4,4
	.comm	t,4,4
	.comm	d,4,4
	.comm	u,4,4
	.comm	vv,4,4
	.comm	w_u_vv,4,4
	.comm	AdjList,4000000,4
	.comm	weight,4000000,4
	.comm	sz,4000,4
	.comm	dist,4000,4
	.comm	front,8,4
	.comm	A,8000,4
	.comm	BinaryHeapSize,4,4
	.align	2
	.global	smaller
	.syntax unified
	.arm
	.fpu softvfp
	.type	smaller, %function
smaller:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	smaller, .-smaller
	.align	2
	.global	parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent, %function
parent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	parent, .-parent
	.align	2
	.global	left
	.syntax unified
	.arm
	.fpu softvfp
	.type	left, %function
left:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	left, .-left
	.align	2
	.global	right
	.syntax unified
	.arm
	.fpu softvfp
	.type	right, %function
right:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	right, .-right
	.align	2
	.global	Initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	Initialize, %function
Initialize:
	@ 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, .L11
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L11
	ldr	r3, [r3, #4]
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, .L11+4
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	A
	.word	BinaryHeapSize
	.size	Initialize, .-Initialize
	.align	2
	.global	shiftUp
	.syntax unified
	.arm
	.fpu softvfp
	.type	shiftUp, %function
shiftUp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	b	.L14
.L16:
	ldr	r1, .L18
	ldr	r3, [fp, #-24]
	sub	r2, fp, #20
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-24]
	bl	parent
	mov	r2, r0
	ldr	r0, .L18
	ldr	r3, [fp, #-24]
	ldr	r1, .L18
	lsl	r3, r3, #3
	add	r3, r0, r3
	lsl	r2, r2, #3
	add	r2, r1, r2
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, [fp, #-24]
	bl	parent
	mov	r3, r0
	ldr	r2, .L18
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, [fp, #-24]
	bl	parent
	str	r0, [fp, #-24]
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L17
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, .L18
	add	r4, r3, r2
	ldr	r0, [fp, #-24]
	bl	parent
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, .L18
	add	r3, r3, r2
	mov	r1, r3
	mov	r0, r4
	bl	smaller
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L17:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	A
	.size	shiftUp, .-shiftUp
	.align	2
	.global	Enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Enqueue, %function
Enqueue:
	@ 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, .L21
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21
	str	r3, [r2]
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r1, .L21+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #3]
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r0, r3
	bl	shiftUp
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	BinaryHeapSize
	.word	A
	.size	Enqueue, .-Enqueue
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shiftDown
	.syntax unified
	.arm
	.fpu softvfp
	.type	shiftDown, %function
shiftDown:
	@ 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]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L24
.L29:
	ldr	r1, .L32+4
	ldr	r3, [fp, #-32]
	sub	r2, fp, #24
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	left
	mov	r2, r0
	ldr	r3, .L32+8
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L25
	ldr	r0, [fp, #-32]
	bl	left
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, .L32+4
	add	r3, r3, r2
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	smaller
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-32]
	bl	left
	mov	r3, r0
	ldr	r1, .L32+4
	sub	r2, fp, #24
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-32]
	bl	left
	str	r0, [fp, #-28]
.L25:
	ldr	r0, [fp, #-32]
	bl	right
	mov	r2, r0
	ldr	r3, .L32+8
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L26
	ldr	r0, [fp, #-32]
	bl	right
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, .L32+4
	add	r3, r3, r2
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	smaller
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, [fp, #-32]
	bl	right
	mov	r3, r0
	ldr	r1, .L32+4
	sub	r2, fp, #24
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-32]
	bl	right
	str	r0, [fp, #-28]
.L26:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L31
	ldr	r1, .L32+4
	ldr	r3, [fp, #-32]
	sub	r2, fp, #16
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, .L32+4
	ldr	r3, [fp, #-32]
	ldr	r1, .L32+4
	ldr	r2, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r0, r3
	lsl	r2, r2, #3
	add	r2, r1, r2
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L32+4
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
.L24:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L29
	b	.L28
.L31:
	nop
.L28:
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	A
	.word	BinaryHeapSize
	.size	shiftDown, .-shiftDown
	.align	2
	.global	Dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Dequeue, %function
Dequeue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r2, .L36
	sub	r3, fp, #12
	add	r2, r2, #8
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, .L36
	ldr	r1, .L36
	add	r2, r2, #8
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L36+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L36+4
	str	r3, [r2]
	mov	r0, #1
	bl	shiftDown
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	A
	.word	BinaryHeapSize
	.size	Dequeue, .-Dequeue
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ 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, .L40
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L41:
	.align	2
.L40:
	.word	BinaryHeapSize
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d %d\000"
	.align	2
.LC3:
	.ascii	"TLE because iteration counter > 1000000\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"The value of counter is: %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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L59+4
	ldr	r0, .L59+8
	bl	__isoc99_scanf
	ldr	r3, .L59+12
	mov	r2, #0
	str	r2, [r3]
	b	.L43
.L46:
	ldr	r1, .L59+16
	ldr	r0, .L59+8
	bl	__isoc99_scanf
	b	.L44
.L45:
	ldr	r2, .L59+20
	ldr	r1, .L59+24
	ldr	r0, .L59+28
	bl	__isoc99_scanf
	ldr	r3, .L59+12
	ldr	r2, [r3]
	ldr	r3, .L59+12
	ldr	r3, [r3]
	ldr	r1, .L59+32
	ldr	r0, [r1, r3, lsl #2]
	ldr	r3, .L59+24
	ldr	r1, [r3]
	ldr	ip, .L59+36
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r0
	str	r1, [ip, r3, lsl #2]
	ldr	r3, .L59+12
	ldr	r2, [r3]
	ldr	r3, .L59+12
	ldr	r3, [r3]
	ldr	r1, .L59+32
	ldr	r0, [r1, r3, lsl #2]
	ldr	r3, .L59+20
	ldr	r1, [r3]
	ldr	ip, .L59+40
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r0
	str	r1, [ip, r3, lsl #2]
	ldr	r3, .L59+12
	ldr	r3, [r3]
	ldr	r2, .L59+32
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L59+32
	str	r2, [r1, r3, lsl #2]
.L44:
	ldr	r3, .L59+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L59+16
	str	r2, [r1]
	cmp	r3, #0
	bne	.L45
	ldr	r3, .L59+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+12
	str	r3, [r2]
.L43:
	ldr	r3, .L59+12
	ldr	r2, [r3]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L46
	ldr	r3, .L59+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L59+48
	ldr	r0, .L59+8
	bl	__isoc99_scanf
	b	.L47
.L57:
	ldr	r2, .L59+52
	ldr	r1, .L59+56
	ldr	r0, .L59+28
	bl	__isoc99_scanf
	ldr	r3, .L59+12
	mov	r2, #0
	str	r2, [r3]
	b	.L48
.L49:
	ldr	r3, .L59+12
	ldr	r3, [r3]
	ldr	r2, .L59+60
	ldr	r1, .L59+64
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L59+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+12
	str	r3, [r2]
.L48:
	ldr	r3, .L59+12
	ldr	r2, [r3]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L49
	ldr	r3, .L59+56
	ldr	r3, [r3]
	ldr	r2, .L59+60
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	bl	Initialize
	ldr	r3, .L59+56
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	Enqueue
	b	.L50
.L56:
	ldr	r3, .L59+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+44
	str	r3, [r2]
	ldr	r3, .L59+44
	ldr	r3, [r3]
	ldr	r2, .L59+68
	cmp	r3, r2
	ble	.L51
	ldr	r0, .L59+72
	bl	puts
	mov	r3, #1
	b	.L52
.L51:
	ldr	r4, .L59+76
	sub	r3, fp, #28
	mov	r0, r3
	bl	Dequeue
	mov	r2, r4
	sub	r3, fp, #28
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L59+76
	ldr	r3, [r3]
	ldr	r2, .L59+80
	str	r3, [r2]
	ldr	r3, .L59+76
	ldr	r3, [r3, #4]
	ldr	r2, .L59+84
	str	r3, [r2]
	ldr	r3, .L59+84
	ldr	r3, [r3]
	ldr	r2, .L59+60
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L59+80
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L50
	ldr	r3, .L59+24
	mov	r2, #0
	str	r2, [r3]
	b	.L53
.L55:
	ldr	r3, .L59+84
	ldr	r2, [r3]
	ldr	r3, .L59+24
	ldr	r1, [r3]
	ldr	r0, .L59+36
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L59+88
	str	r3, [r2]
	ldr	r3, .L59+84
	ldr	r2, [r3]
	ldr	r3, .L59+24
	ldr	r1, [r3]
	ldr	r0, .L59+40
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L59+92
	str	r3, [r2]
	ldr	r3, .L59+84
	ldr	r3, [r3]
	ldr	r2, .L59+60
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L59+92
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, .L59+88
	ldr	r3, [r3]
	ldr	r1, .L59+60
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L54
	ldr	r3, .L59+84
	ldr	r3, [r3]
	ldr	r2, .L59+60
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L59+92
	ldr	r2, [r3]
	ldr	r3, .L59+88
	ldr	r3, [r3]
	add	r2, r1, r2
	ldr	r1, .L59+60
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L59+88
	ldr	r3, [r3]
	ldr	r2, .L59+60
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L59+88
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	Enqueue
.L54:
	ldr	r3, .L59+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+24
	str	r3, [r2]
.L53:
	ldr	r3, .L59+84
	ldr	r3, [r3]
	ldr	r2, .L59+32
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L59+24
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L55
.L50:
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L59+52
	ldr	r3, [r3]
	ldr	r2, .L59+60
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L59+96
	bl	printf
.L47:
	ldr	r3, .L59+48
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L59+48
	str	r2, [r1]
	cmp	r3, #0
	bne	.L57
	ldr	r3, .L59+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L59+100
	bl	printf
	mov	r3, #0
.L52:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC6
	.word	V
	.word	.LC1
	.word	i
	.word	n
	.word	w
	.word	j
	.word	.LC2
	.word	sz
	.word	AdjList
	.word	weight
	.word	counter
	.word	Q
	.word	t
	.word	s
	.word	dist
	.word	1000000000
	.word	1000000
	.word	.LC3
	.word	front
	.word	d
	.word	u
	.word	vv
	.word	w_u_vv
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
