	.file	"75138051.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"number of vertices : \n "
.LC1:
	.string	"%d"
.LC2:
	.string	"enter the cost matrix "
.LC3:
	.string	"enter source \n "
.LC4:
	.string	" \n edge %d \t %d -> %d =%d \n"
.LC5:
	.string	"min cost is %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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 184
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rbx
	xor	ebx, ebx
	mov	rcx, rsp
	mov	r15, rcx
	mov	DWORD PTR -192[rbp], 1
	mov	DWORD PTR -188[rbp], 0
	mov	ecx, DWORD PTR -212[rbp]
	mov	r12d, DWORD PTR -212[rbp]
	movsx	rbx, ecx
	sub	rbx, 1
	mov	QWORD PTR -168[rbp], rbx
	movsx	rbx, ecx
	mov	r13, rbx
	mov	r14d, 0
	movsx	rbx, ecx
	sal	rbx, 2
	movsx	r13, r12d
	sub	r13, 1
	mov	QWORD PTR -160[rbp], r13
	movsx	r13, ecx
	mov	r10, r13
	mov	r11d, 0
	movsx	r13, r12d
	mov	rax, r13
	mov	edx, 0
	mov	r14, r11
	imul	r14, rax
	mov	r13, rdx
	imul	r13, r10
	add	r13, r14
	mul	r10
	lea	r10, 0[r13+rdx]
	mov	rdx, r10
	movsx	rax, ecx
	mov	r8, rax
	mov	r9d, 0
	movsx	rax, r12d
	mov	rsi, rax
	mov	edi, 0
	mov	rdx, r9
	imul	rdx, rsi
	mov	rax, rdi
	imul	rax, r8
	lea	r10, [rdx+rax]
	mov	rax, r8
	mul	rsi
	lea	rsi, [r10+rdx]
	mov	rdx, rsi
	movsx	rdx, ecx
	movsx	rax, r12d
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -152[rbp], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -212[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 -196[rbp], 1
	jmp	.L5
.L8:
	mov	DWORD PTR -200[rbp], 1
	jmp	.L6
.L7:
	mov	rdx, rbx
	shr	rdx, 2
	mov	eax, DWORD PTR -200[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	imul	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -200[rbp], 1
.L6:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -200[rbp], eax
	jle	.L7
	add	DWORD PTR -196[rbp], 1
.L5:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -196[rbp], eax
	jle	.L8
	mov	DWORD PTR -196[rbp], 1
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], 0
	add	DWORD PTR -196[rbp], 1
.L9:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -196[rbp], eax
	jle	.L10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], 1
	jmp	.L11
.L20:
	mov	DWORD PTR -204[rbp], 111
	mov	DWORD PTR -196[rbp], 1
	jmp	.L12
.L17:
	mov	DWORD PTR -200[rbp], 1
	jmp	.L13
.L16:
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -200[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -196[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -204[rbp], eax
	jle	.L14
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	test	eax, eax
	je	.L22
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -200[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -196[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	mov	DWORD PTR -184[rbp], eax
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	mov	DWORD PTR -176[rbp], eax
	jmp	.L14
.L22:
	nop
.L14:
	add	DWORD PTR -200[rbp], 1
.L13:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -200[rbp], eax
	jle	.L16
	add	DWORD PTR -196[rbp], 1
.L12:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -196[rbp], eax
	jle	.L17
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	test	eax, eax
	jne	.L19
.L18:
	mov	eax, DWORD PTR -192[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -192[rbp], edx
	mov	esi, DWORD PTR -204[rbp]
	mov	ecx, DWORD PTR -172[rbp]
	mov	edx, DWORD PTR -184[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -204[rbp]
	add	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], 1
.L19:
	mov	rax, rbx
	shr	rax, 2
	mov	rdx, QWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -184[rbp]
	movsx	rsi, ecx
	mov	ecx, DWORD PTR -176[rbp]
	movsx	rcx, ecx
	imul	rcx, rax
	add	rcx, rsi
	mov	DWORD PTR [rdx+rcx*4], 999
	mov	rsi, rbx
	shr	rsi, 2
	mov	rdx, QWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -184[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -176[rbp]
	movsx	rcx, ecx
	imul	rax, rcx
	add	rax, rdi
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -176[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -184[rbp]
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	DWORD PTR [rax+rcx*4], edx
.L11:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -192[rbp], eax
	jl	.L20
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsp, r15
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	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	"75138051.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"number of vertices : \012 \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"enter the cost matrix \000"
	.align	2
.LC3:
	.ascii	"enter source \012 \000"
	.align	2
.LC4:
	.ascii	" \012 edge %d \011 %d -> %d =%d \012\000"
	.align	2
.LC5:
	.ascii	"min cost 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 = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #156
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	mov	r3, #1
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-144]
	ldr	ip, [fp, #-168]
	ldr	lr, [fp, #-168]
	sub	r3, ip, #1
	str	r3, [fp, #-124]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r6, r3, #2
	sub	r3, lr, #1
	str	r3, [fp, #-120]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-116]
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, .L20+8
	bl	__isoc99_scanf
	ldr	r0, .L20+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L2
.L5:
	mov	r3, #1
	str	r3, [fp, #-156]
	b	.L3
.L4:
	lsr	r3, r6, #2
	ldr	r2, [fp, #-152]
	mul	r2, r3, r2
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L20+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L3:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L2:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	ble	.L5
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L6
.L7:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L6:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	ble	.L7
	ldr	r0, .L20+16
	bl	printf
	sub	r3, fp, #164
	mov	r1, r3
	ldr	r0, .L20+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-84]
	b	.L8
.L17:
	mov	r3, #111
	str	r3, [fp, #-160]
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L9
.L14:
	mov	r3, #1
	str	r3, [fp, #-156]
	b	.L10
.L13:
	lsr	r2, r6, #2
	ldr	r3, [fp, #-116]
	ldr	r1, [fp, #-152]
	mul	r1, r2, r1
	ldr	r2, [fp, #-156]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L19
	lsr	r2, r6, #2
	ldr	r3, [fp, #-116]
	ldr	r1, [fp, #-152]
	mul	r1, r2, r1
	ldr	r2, [fp, #-156]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-152]
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-156]
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-132]
	b	.L11
.L19:
	nop
.L11:
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L10:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L9:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r1, [fp, #-148]
	add	r3, r1, #1
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-160]
	str	r3, [sp]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-140]
	ldr	r0, .L20+20
	bl	printf
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-84]
.L16:
	lsr	r3, r6, #2
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-132]
	mul	r0, r1, r3
	ldr	r1, [fp, #-140]
	add	r1, r0, r1
	ldr	r0, .L20+24
	str	r0, [r2, r1, lsl #2]
	lsr	r2, r6, #2
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-132]
	mul	r0, r3, r0
	ldr	r3, [fp, #-140]
	add	r3, r0, r3
	ldr	r1, [r1, r3, lsl #2]
	ldr	r3, [fp, #-116]
	ldr	r0, [fp, #-140]
	mul	r0, r2, r0
	ldr	r2, [fp, #-132]
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
.L8:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-148]
	cmp	r2, r3
	blt	.L17
	ldr	r1, [fp, #-144]
	ldr	r0, .L20+28
	bl	printf
	mov	sp, r8
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	999
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
