	.file	"620273.c"
	.intel_syntax noprefix
	.text
	.globl	g
	.bss
	.align 32
	.type	g, @object
	.size	g, 12000400
g:
	.zero	12000400
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 100
used:
	.zero	100
	.globl	H
	.align 32
	.type	H, @object
	.size	H, 400
H:
	.zero	400
	.globl	heapsize
	.align 4
	.type	heapsize, @object
	.size	heapsize, 4
heapsize:
	.zero	4
	.globl	vert
	.align 32
	.type	vert, @object
	.size	vert, 800
vert:
	.zero	800
	.text
	.globl	insertUpdate
	.type	insertUpdate, @function
insertUpdate:
.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR heapsize[rip]
	add	eax, 1
	mov	DWORD PTR heapsize[rip], eax
	mov	eax, DWORD PTR heapsize[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -4[rbp]
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, vert[rip+4]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	sar	DWORD PTR -4[rbp]
.L3:
	cmp	DWORD PTR -4[rbp], 1
	jle	.L4
	mov	eax, DWORD PTR -4[rbp]
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jg	.L5
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, vert[rip+4]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	insertUpdate, .-insertUpdate
	.globl	corrige
	.type	corrige, @function
corrige:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	or	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR heapsize[rip]
	cmp	DWORD PTR -12[rbp], eax
	jg	.L7
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L7
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
.L8:
	mov	eax, DWORD PTR heapsize[rip]
	cmp	DWORD PTR -8[rbp], eax
	jg	.L9
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L9
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
.L9:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L11
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, vert[rip+4]
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, vert[rip+4]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	corrige
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	corrige, .-corrige
	.globl	minimum
	.type	minimum, @function
minimum:
.LFB2:
	.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 4[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR heapsize[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR heapsize[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip+4]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	corrige
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	minimum, .-minimum
	.globl	dijkstra
	.type	dijkstra, @function
dijkstra:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 848
	mov	DWORD PTR -836[rbp], edi
	mov	DWORD PTR -840[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR heapsize[rip], 0
	mov	DWORD PTR -828[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	DWORD PTR [rdx+rax], 1500000000
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip+4]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -828[rbp], 1
.L15:
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	cmp	DWORD PTR -828[rbp], eax
	jle	.L16
	mov	eax, DWORD PTR -836[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -836[rbp]
	cdqe
	mov	DWORD PTR -816[rbp+rax*8], -1
	mov	eax, DWORD PTR -836[rbp]
	mov	esi, eax
	lea	rdi, H[rip]
	call	insertUpdate
	jmp	.L17
.L23:
	lea	rdi, H[rip]
	call	minimum
	mov	DWORD PTR -828[rbp], eax
	mov	eax, DWORD PTR -828[rbp]
	cmp	eax, DWORD PTR -840[rbp]
	je	.L31
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip+4]
	mov	DWORD PTR [rdx+rax], -1
	mov	DWORD PTR -824[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -824[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -828[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -820[rbp], eax
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	js	.L21
	mov	eax, DWORD PTR -824[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -828[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip+8]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L21
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	lea	rdx, used[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L21
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	edi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -824[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -828[rbp]
	movsx	rsi, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rsi, 120000
	add	rdx, rax
	lea	rax, g[rip+4]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, edi
	cmp	ecx, eax
	jle	.L21
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	mov	edx, DWORD PTR -828[rbp]
	mov	DWORD PTR -816[rbp+rax*8], edx
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	mov	edx, DWORD PTR -824[rbp]
	mov	DWORD PTR -812[rbp+rax*8], edx
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -824[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -828[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip+4]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	ecx, [rsi+rax]
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -820[rbp]
	mov	esi, eax
	lea	rdi, H[rip]
	call	insertUpdate
.L21:
	add	DWORD PTR -824[rbp], 1
.L20:
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	add	rax, 3000000
	lea	rdx, 0[0+rax*4]
	lea	rax, g[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -824[rbp], eax
	jl	.L22
.L17:
	mov	eax, DWORD PTR heapsize[rip]
	test	eax, eax
	jg	.L23
	jmp	.L19
.L31:
	nop
.L19:
	mov	eax, DWORD PTR -828[rbp]
	cmp	eax, DWORD PTR -840[rbp]
	je	.L24
	movsd	xmm0, QWORD PTR .LC0[rip]
	jmp	.L29
.L24:
	mov	eax, DWORD PTR -840[rbp]
	mov	DWORD PTR -824[rbp], eax
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -824[rbp]
	cdqe
	mov	eax, DWORD PTR -816[rbp+rax*8]
	mov	DWORD PTR -828[rbp], eax
	cmp	DWORD PTR -828[rbp], 0
	je	.L27
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	lea	rdx, used[rip]
	mov	BYTE PTR [rax+rdx], 1
.L27:
	mov	eax, DWORD PTR -824[rbp]
	cdqe
	mov	eax, DWORD PTR -812[rbp+rax*8]
	movsx	rdx, eax
	mov	eax, DWORD PTR -828[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip+8]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -828[rbp]
	mov	DWORD PTR -824[rbp], eax
.L26:
	mov	eax, DWORD PTR -824[rbp]
	cdqe
	mov	eax, DWORD PTR -816[rbp+rax*8]
	cmp	eax, -1
	jne	.L28
	mov	eax, DWORD PTR -840[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vert[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
.L29:
	movq	rax, xmm0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dijkstra, .-dijkstra
	.globl	getint
	.type	getint, @function
getint:
.LFB4:
	.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], 1
	nop
.L33:
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 32
	je	.L33
	cmp	DWORD PTR -12[rbp], 10
	je	.L33
	cmp	DWORD PTR -12[rbp], -1
	jne	.L34
	mov	eax, -1
	jmp	.L35
.L34:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L36
.L38:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
.L36:
	cmp	DWORD PTR -12[rbp], 47
	jle	.L37
	cmp	DWORD PTR -12[rbp], 57
	jle	.L38
.L37:
	mov	eax, DWORD PTR -8[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	getint, .-getint
	.section	.rodata
.LC1:
	.string	"Instance #%d: "
.LC2:
	.string	"Not possible"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -16[rbp], 0
	jmp	.L40
.L49:
	mov	eax, 0
	call	getint
	mov	DWORD PTR m[rip], eax
	mov	eax, DWORD PTR n[rip]
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR m[rip]
	test	eax, eax
	je	.L51
.L41:
	add	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 3000000
	lea	rdx, 0[0+rax*4]
	lea	rax, g[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, used[rip]
	mov	BYTE PTR [rax+rdx], 0
	add	DWORD PTR -20[rbp], 1
.L43:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L44
	mov	DWORD PTR -20[rbp], 0
	jmp	.L45
.L46:
	mov	eax, 0
	call	getint
	mov	DWORD PTR -8[rbp], eax
	mov	eax, 0
	call	getint
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 0
	call	getint
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 3000000
	lea	rdx, 0[0+rax*4]
	lea	rax, g[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 3000000
	lea	rdx, 0[0+rax*4]
	lea	rax, g[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip+4]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 3000000
	lea	rdx, 0[0+rax*4]
	lea	rax, g[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -8[rbp]
	movsx	rcx, ecx
	add	rcx, 3000000
	lea	rsi, 0[0+rcx*4]
	lea	rcx, g[rip]
	mov	DWORD PTR [rsi+rcx], edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	imul	rdx, rcx, 120000
	add	rdx, rax
	lea	rax, g[rip+8]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -20[rbp], 1
.L45:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L46
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	esi, eax
	mov	edi, 0
	call	dijkstra
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 1499999999
	jle	.L47
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L40
.L47:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -12[rbp]
	movsd	QWORD PTR -40[rbp], xmm1
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	esi, eax
	mov	edi, 0
	call	dijkstra
	addsd	xmm0, QWORD PTR -40[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 1499999999
	jle	.L48
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L40
.L48:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L40:
	mov	eax, 0
	call	getint
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR n[rip]
	cmp	eax, -1
	jne	.L49
	jmp	.L42
.L51:
	nop
.L42:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-1073741824
	.long	1104566795
	.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	"620273.c"
	.text
	.comm	g,12000400,4
	.comm	n,4,4
	.comm	m,4,4
	.comm	used,100,4
	.comm	H,400,4
	.comm	heapsize,4,4
	.comm	vert,800,4
	.align	2
	.global	insertUpdate
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertUpdate, %function
insertUpdate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, .L6
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L3
.L5:
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L6
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L6
	ldr	r2, [r2, r3, lsl #3]
	ldr	r1, .L6
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #3]
	cmp	r2, r3
	bgt	.L5
.L4:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r2, .L6
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	vert
	.word	heapsize
	.size	insertUpdate, .-insertUpdate
	.align	2
	.global	corrige
	.syntax unified
	.arm
	.fpu softvfp
	.type	corrige, %function
corrige:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L9
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r1, .L14+4
	ldr	r3, [r1, r3, lsl #3]
	cmp	r2, r3
	bge	.L9
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L10
.L9:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L10:
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L11
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r1, .L14+4
	ldr	r3, [r1, r3, lsl #3]
	cmp	r2, r3
	bge	.L11
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L11:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L13
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L14+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r2, .L14+4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	corrige
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	heapsize
	.word	vert
	.size	corrige, .-corrige
	.align	2
	.global	minimum
	.syntax unified
	.arm
	.fpu softvfp
	.type	minimum, %function
minimum:
	@ 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	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L18
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L18+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #4]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	corrige
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	heapsize
	.word	vert
	.size	minimum, .-minimum
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dijkstra
	.syntax unified
	.arm
	.fpu softvfp
	.type	dijkstra, %function
dijkstra:
	@ args = 0, pretend = 0, frame = 824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #824
	str	r0, [fp, #-824]
	str	r1, [fp, #-828]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L38+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-820]
	b	.L21
.L22:
	ldr	r2, .L38+8
	ldr	r3, [fp, #-820]
	ldr	r1, .L38+12
	str	r1, [r2, r3, lsl #3]
	ldr	r2, .L38+8
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-820]
	add	r3, r3, #1
	str	r3, [fp, #-820]
.L21:
	ldr	r3, .L38+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-820]
	cmp	r2, r3
	ble	.L22
	ldr	r2, .L38+8
	ldr	r3, [fp, #-824]
	mov	r1, #0
	str	r1, [r2, r3, lsl #3]
	ldr	r3, [fp, #-824]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-804]
	ldr	r1, [fp, #-824]
	ldr	r0, .L38+20
	bl	insertUpdate
	b	.L23
.L29:
	ldr	r0, .L38+20
	bl	minimum
	str	r0, [fp, #-820]
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-828]
	cmp	r2, r3
	beq	.L37
	ldr	r2, .L38+8
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-816]
	b	.L26
.L28:
	ldr	r0, .L38+24
	ldr	r3, [fp, #-816]
	ldr	r1, [fp, #-820]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, r0, r3
	ldr	r3, [r3]
	str	r3, [fp, #-812]
	ldr	r2, .L38+8
	ldr	r3, [fp, #-812]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	blt	.L27
	ldr	r0, .L38+24
	ldr	r3, [fp, #-816]
	ldr	r1, [fp, #-820]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, r0, r3
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
	ldr	r2, .L38+28
	ldr	r3, [fp, #-812]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
	ldr	r2, .L38+8
	ldr	r3, [fp, #-812]
	ldr	r0, [r2, r3, lsl #3]
	ldr	r2, .L38+8
	ldr	r3, [fp, #-820]
	ldr	ip, [r2, r3, lsl #3]
	ldr	lr, .L38+24
	ldr	r3, [fp, #-816]
	ldr	r1, [fp, #-820]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, lr, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, ip, r3
	cmp	r0, r3
	ble	.L27
	ldr	r3, [fp, #-812]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-820]
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-812]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-816]
	str	r2, [r3, #-800]
	ldr	r2, .L38+8
	ldr	r3, [fp, #-820]
	ldr	r0, [r2, r3, lsl #3]
	ldr	ip, .L38+24
	ldr	r3, [fp, #-816]
	ldr	r1, [fp, #-820]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, ip, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r2, r0, r3
	ldr	r1, .L38+8
	ldr	r3, [fp, #-812]
	str	r2, [r1, r3, lsl #3]
	ldr	r1, [fp, #-812]
	ldr	r0, .L38+20
	bl	insertUpdate
.L27:
	ldr	r3, [fp, #-816]
	add	r3, r3, #1
	str	r3, [fp, #-816]
.L26:
	ldr	r2, .L38+24
	ldr	r3, [fp, #-820]
	add	r3, r3, #2998272
	add	r3, r3, #1728
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-816]
	cmp	r2, r3
	blt	.L28
.L23:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L29
	b	.L25
.L37:
	nop
.L25:
	ldr	r2, [fp, #-820]
	ldr	r3, [fp, #-828]
	cmp	r2, r3
	beq	.L30
	mov	r2, #-1073741824
	ldr	r3, .L38+32
	b	.L35
.L30:
	ldr	r3, [fp, #-828]
	str	r3, [fp, #-816]
	b	.L32
.L34:
	ldr	r3, [fp, #-816]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	str	r3, [fp, #-820]
	ldr	r3, [fp, #-820]
	cmp	r3, #0
	beq	.L33
	ldr	r2, .L38+28
	ldr	r3, [fp, #-820]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
.L33:
	ldr	r3, [fp, #-816]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-800]
	ldr	r0, .L38+24
	ldr	r1, [fp, #-820]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, r0, r3
	add	r3, r3, #8
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-820]
	str	r3, [fp, #-816]
.L32:
	ldr	r3, [fp, #-816]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	cmn	r3, #1
	bne	.L34
	ldr	r2, .L38+8
	ldr	r3, [fp, #-828]
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
.L35:
	ldr	r1, .L38
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC0
	.word	heapsize
	.word	vert
	.word	1500000000
	.word	n
	.word	H
	.word	g
	.word	used
	.word	1104566795
	.size	dijkstra, .-dijkstra
	.align	2
	.global	getint
	.syntax unified
	.arm
	.fpu softvfp
	.type	getint, %function
getint:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-8]
	nop
.L41:
	bl	getchar
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #32
	beq	.L41
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	beq	.L41
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L42
	mvn	r3, #0
	b	.L43
.L42:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L44
.L46:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-12]
	bl	getchar
	str	r0, [fp, #-16]
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #47
	ble	.L45
	ldr	r3, [fp, #-16]
	cmp	r3, #57
	ble	.L46
.L45:
	ldr	r3, [fp, #-12]
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getint, .-getint
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Instance #%d: \000"
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.ascii	"Not possible\000"
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L48
.L57:
	bl	getint
	mov	r3, r0
	ldr	r2, .L60
	str	r3, [r2]
	ldr	r3, .L60+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L59
.L49:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L51
.L52:
	ldr	r2, .L60+8
	ldr	r3, [fp, #-32]
	add	r3, r3, #2998272
	add	r3, r3, #1728
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L60+12
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L51:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L52
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L53
.L54:
	bl	getint
	str	r0, [fp, #-20]
	bl	getint
	str	r0, [fp, #-16]
	bl	getint
	str	r0, [fp, #-24]
	ldr	r2, .L60+8
	ldr	r3, [fp, #-20]
	add	r3, r3, #2998272
	add	r3, r3, #1728
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, .L60+8
	ldr	r1, [fp, #-20]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, r0, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r2, .L60+8
	ldr	r3, [fp, #-20]
	add	r3, r3, #2998272
	add	r3, r3, #1728
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, .L60+8
	ldr	r1, [fp, #-20]
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r2, .L60+8
	ldr	r3, [fp, #-20]
	add	r3, r3, #2998272
	add	r3, r3, #1728
	ldr	r0, [r2, r3, lsl #2]
	add	r2, r0, #1
	ldr	r1, .L60+8
	ldr	r3, [fp, #-20]
	add	r3, r3, #2998272
	add	r3, r3, #1728
	str	r2, [r1, r3, lsl #2]
	ldr	ip, .L60+8
	ldr	r1, [fp, #-20]
	mov	r2, r0
	lsl	r2, r2, #1
	add	r2, r2, r0
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #4
	sub	r1, r1, r3
	lsl	r3, r1, #6
	mov	r1, r3
	add	r3, r2, r1
	add	r3, ip, r3
	add	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L53:
	ldr	r3, .L60
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L54
	ldr	r1, [fp, #-28]
	ldr	r0, .L60+16
	bl	printf
	ldr	r3, .L60+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, #0
	bl	dijkstra
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L60+20
	cmp	r3, r2
	ble	.L55
	ldr	r0, .L60+24
	bl	puts
	b	.L48
.L55:
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L60+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, #0
	bl	dijkstra
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L60+20
	cmp	r3, r2
	ble	.L56
	ldr	r0, .L60+24
	bl	puts
	b	.L48
.L56:
	ldr	r1, [fp, #-24]
	ldr	r0, .L60+28
	bl	printf
.L48:
	bl	getint
	mov	r3, r0
	ldr	r2, .L60+4
	str	r3, [r2]
	ldr	r3, .L60+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L57
	b	.L50
.L59:
	nop
.L50:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L61:
	.align	2
.L60:
	.word	m
	.word	n
	.word	g
	.word	used
	.word	.LC1
	.word	1499999999
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
