	.file	"867950.c"
	.intel_syntax noprefix
	.text
	.globl	visited
	.bss
	.align 32
	.type	visited, @object
	.size	visited, 400
visited:
	.zero	400
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 400
path:
	.zero	400
	.globl	graph
	.align 32
	.type	graph, @object
	.size	graph, 40000
graph:
	.zero	40000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	length
	.align 4
	.type	length, @object
	.size	length, 4
length:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Enter number of elements : "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter starting position and last position: "
.LC3:
	.string	"%d %d"
.LC4:
	.string	"Path Found!"
.LC5:
	.string	"%d->"
.LC6:
	.string	"No path found."
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	create_graph
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -20[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -16[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L3
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	findpath
	test	eax, eax
	je	.L4
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L6
	mov	edi, 10
	call	putchar@PLT
	jmp	.L7
.L4:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.string	"Enter source and destination vertex : "
	.text
	.globl	create_graph
	.type	create_graph, @function
create_graph:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L13:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -12[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L15
.L11:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, graph[rip]
	mov	DWORD PTR [rdx+rax], 1
	jmp	.L13
.L15:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_graph, .-create_graph
	.globl	findpath
	.type	findpath, @function
findpath:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L17
.L21:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, graph[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L18
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR length[rip]
	add	eax, 1
	mov	DWORD PTR length[rip], eax
	mov	eax, DWORD PTR length[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, path[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L19
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	findpath
	test	eax, eax
	je	.L18
.L19:
	mov	eax, 1
	jmp	.L20
.L18:
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L21
	mov	eax, DWORD PTR length[rip]
	sub	eax, 1
	mov	DWORD PTR length[rip], eax
	mov	eax, 0
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	findpath, .-findpath
	.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	"867950.c"
	.text
	.comm	visited,400,4
	.comm	path,400,4
	.comm	graph,40000,4
	.comm	n,4,4
	.global	length
	.bss
	.align	2
	.type	length, %object
	.size	length, 4
length:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter number of elements : \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter starting position and last position: \000"
	.align	2
.LC3:
	.ascii	"%d %d\000"
	.align	2
.LC4:
	.ascii	"Path Found!\000"
	.align	2
.LC5:
	.ascii	"%d->\000"
	.align	2
.LC6:
	.ascii	"No path found.\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	printf
	ldr	r1, .L10+8
	ldr	r0, .L10+12
	bl	__isoc99_scanf
	bl	create_graph
	ldr	r0, .L10+16
	bl	printf
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L10+20
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r2, .L10+24
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	findpath
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L10+28
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r2, .L10+32
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r3, .L10+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L6
	mov	r0, #10
	bl	putchar
	b	.L7
.L4:
	ldr	r0, .L10+44
	bl	puts
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC0
	.word	n
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	visited
	.word	.LC4
	.word	path
	.word	.LC5
	.word	length
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Enter source and destination vertex : \000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_graph
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_graph, %function
create_graph:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L15:
	ldr	r0, .L18+4
	bl	printf
	sub	r2, fp, #12
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L17
.L13:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, .L18+12
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	mov	r2, #1
	str	r2, [r0, r3, lsl #2]
	b	.L15
.L17:
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC8
	.word	.LC3
	.word	graph
	.size	create_graph, .-create_graph
	.align	2
	.global	findpath
	.syntax unified
	.arm
	.fpu softvfp
	.type	findpath, %function
findpath:
	@ 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	r2, .L26
	ldr	r3, [fp, #-16]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L21
.L25:
	ldr	r1, .L26+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	bne	.L22
	ldr	r2, .L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L26+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L26+8
	str	r3, [r2]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	ldr	r1, .L26+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L23
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	findpath
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
.L23:
	mov	r3, #1
	b	.L24
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, .L26+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L25
	ldr	r3, .L26+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L26+8
	str	r3, [r2]
	mov	r3, #0
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	visited
	.word	graph
	.word	length
	.word	path
	.word	n
	.size	findpath, .-findpath
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
