	.file	"416579.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	parent
	.align 32
	.type	parent, @object
	.size	parent, 40000
parent:
	.zero	40000
	.text
	.globl	find
	.type	find, @function
find:
.LFB0:
	.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
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find, .-find
	.globl	union1
	.type	union1, @function
union1:
.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, 24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	find
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	find
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, parent[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	union1, .-union1
	.section	.rodata
.LC0:
	.string	"Edge %d:(%d, %d) cost:%d \n"
.LC1:
	.string	"\nMinimum cost= %d \n"
	.align 8
.LC3:
	.string	"Processing Time: %f MicroSeconds\n"
	.text
	.globl	kruskalMST
	.type	kruskalMST, @function
kruskalMST:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	call	clock@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, parent[rip]
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -68[rbp], 1
.L7:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L8
	mov	DWORD PTR -64[rbp], 0
	jmp	.L9
.L15:
	mov	DWORD PTR -60[rbp], 10000
	mov	DWORD PTR -56[rbp], -1
	mov	DWORD PTR -52[rbp], -1
	mov	DWORD PTR -48[rbp], 0
	jmp	.L10
.L14:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	find
	mov	ebx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	find
	cmp	ebx, eax
	je	.L12
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L12
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -52[rbp], eax
.L12:
	add	DWORD PTR -44[rbp], 1
.L11:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L13
	add	DWORD PTR -48[rbp], 1
.L10:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L14
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, edx
	mov	edi, eax
	call	union1
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -64[rbp], edx
	mov	esi, DWORD PTR -60[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -60[rbp]
	add	DWORD PTR -72[rbp], eax
.L9:
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cmp	DWORD PTR -64[rbp], eax
	jl	.L15
	call	clock@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -40[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	kruskalMST, .-kruskalMST
	.section	.rodata
.LC4:
	.string	"Enter the number of nodes: "
.LC5:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1840
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -10024[rbp], 0
	jmp	.L17
.L20:
	mov	DWORD PTR -10020[rbp], 0
	jmp	.L18
.L19:
	lea	rcx, -10016[rbp]
	mov	eax, DWORD PTR -10020[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -10024[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -10020[rbp], 1
.L18:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -10020[rbp], eax
	jl	.L19
	add	DWORD PTR -10024[rbp], 1
.L17:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -10024[rbp], eax
	jl	.L20
	mov	edx, DWORD PTR n[rip]
	lea	rax, -10016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	kruskalMST
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1093567616
	.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	"416579.c"
	.text
	.comm	n,4,4
	.comm	parent,40000,4
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ 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]
	b	.L2
.L3:
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
.L2:
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	parent
	.size	find, .-find
	.align	2
	.global	union1
	.syntax unified
	.arm
	.fpu softvfp
	.type	union1, %function
union1:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	find
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	find
	str	r0, [fp, #-8]
	ldr	r1, .L8
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	parent
	.size	union1, .-union1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Edge %d:(%d, %d) cost:%d \012\000"
	.align	2
.LC1:
	.ascii	"\012Minimum cost= %d \012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC2:
	.ascii	"Processing Time: %f MicroSeconds\012\000"
	.text
	.align	2
	.global	kruskalMST
	.syntax unified
	.arm
	.fpu softvfp
	.type	kruskalMST, %function
kruskalMST:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	bl	clock
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L11
.L12:
	ldr	r1, .L20
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L11:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L13
.L19:
	ldr	r3, .L20+4
	str	r3, [fp, #-48]
	mvn	r3, #0
	str	r3, [fp, #-44]
	mvn	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L14
.L18:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L15
.L17:
	ldr	r0, [fp, #-36]
	bl	find
	mov	r4, r0
	ldr	r0, [fp, #-32]
	bl	find
	mov	r3, r0
	cmp	r4, r3
	beq	.L16
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L16
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-40]
.L16:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L15:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L14:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L18
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	union1
	ldr	r1, [fp, #-52]
	add	r3, r1, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r0, .L20+8
	bl	printf
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-60]
.L13:
	ldr	r3, [fp, #-68]
	sub	r3, r3, #1
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L19
	bl	clock
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-60]
	ldr	r0, .L20+12
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #0
	ldr	r3, .L20+16
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+20
	bl	printf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	parent
	.word	10000
	.word	.LC0
	.word	.LC1
	.word	1093567616
	.word	.LC2
	.size	kruskalMST, .-kruskalMST
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Enter the number of nodes: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #9984
	sub	sp, sp, #32
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L29+4
	bl	printf
	ldr	r1, .L29+8
	ldr	r0, .L29+12
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1820]
	b	.L23
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1816]
	b	.L24
.L25:
	sub	r2, fp, #9984
	sub	r2, r2, #4
	sub	r2, r2, #20
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r1, [r3, #-1820]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, fp, #8192
	sub	r1, r1, #4
	ldr	r1, [r1, #-1816]
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L29+12
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1816]
	add	r3, r3, #1
	str	r3, [r2, #-1816]
.L24:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1816]
	cmp	r2, r3
	blt	.L25
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-1820]
	add	r3, r3, #1
	str	r3, [r2, #-1820]
.L23:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-1820]
	cmp	r2, r3
	blt	.L26
	ldr	r3, .L29+8
	ldr	r2, [r3]
	sub	r3, fp, #9984
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	kruskalMST
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	.LC3
	.word	n
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
