	.file	"72146.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the no. of cities"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter the Coef. Adjacency Matrix"
.LC3:
	.string	"Enter Source"
.LC4:
	.string	"%d is not reachable\n"
.LC5:
	.string	"%d is reachable\n"
	.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, 1712
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -1712[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 -1704[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -1700[rbp], 0
	jmp	.L3
.L4:
	lea	rcx, -1616[rbp]
	mov	eax, DWORD PTR -1700[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1704[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -1700[rbp], 1
.L3:
	mov	eax, DWORD PTR -1712[rbp]
	cmp	DWORD PTR -1700[rbp], eax
	jl	.L4
	add	DWORD PTR -1704[rbp], 1
.L2:
	mov	eax, DWORD PTR -1712[rbp]
	cmp	DWORD PTR -1704[rbp], eax
	jl	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -1708[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1704[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -1704[rbp]
	cdqe
	mov	DWORD PTR -1696[rbp+rax*4], 0
	add	DWORD PTR -1704[rbp], 1
.L6:
	mov	eax, DWORD PTR -1712[rbp]
	cmp	DWORD PTR -1704[rbp], eax
	jl	.L7
	mov	ecx, DWORD PTR -1712[rbp]
	mov	edx, DWORD PTR -1708[rbp]
	lea	rsi, -1696[rbp]
	lea	rax, -1616[rbp]
	mov	rdi, rax
	call	bfs
	mov	DWORD PTR -1704[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -1704[rbp]
	cdqe
	mov	eax, DWORD PTR -1696[rbp+rax*4]
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -1704[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -1704[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	DWORD PTR -1704[rbp], 1
.L8:
	mov	eax, DWORD PTR -1712[rbp]
	cmp	DWORD PTR -1704[rbp], eax
	jl	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	bfs
	.type	bfs, @function
bfs:
.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, 144
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	DWORD PTR -132[rbp], edx
	mov	DWORD PTR -136[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	edx, DWORD PTR -132[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -108[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -108[rbp], edx
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	DWORD PTR -100[rbp], eax
	mov	DWORD PTR -104[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 1
	jne	.L16
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L16
	add	DWORD PTR -112[rbp], 1
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	edx, DWORD PTR -104[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L16:
	add	DWORD PTR -104[rbp], 1
.L15:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L17
.L14:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jle	.L18
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bfs, .-bfs
	.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	"72146.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the no. of cities\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the Coef. Adjacency Matrix\000"
	.align	2
.LC3:
	.ascii	"Enter Source\000"
	.align	2
.LC4:
	.ascii	"%d is not reachable\012\000"
	.align	2
.LC5:
	.ascii	"%d is reachable\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 = 1704
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1696
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	puts
	sub	r3, fp, #1696
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r0, .L13+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1696]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-1692]
	b	.L3
.L4:
	sub	r2, fp, #1600
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-1696]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-1692]
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1692]
	add	r3, r3, #1
	str	r3, [fp, #-1692]
.L3:
	ldr	r3, [fp, #-1704]
	ldr	r2, [fp, #-1692]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-1696]
	add	r3, r3, #1
	str	r3, [fp, #-1696]
.L2:
	ldr	r3, [fp, #-1704]
	ldr	r2, [fp, #-1696]
	cmp	r2, r3
	blt	.L5
	ldr	r0, .L13+16
	bl	puts
	sub	r3, fp, #1696
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1696]
	b	.L6
.L7:
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1684]
	ldr	r3, [fp, #-1696]
	add	r3, r3, #1
	str	r3, [fp, #-1696]
.L6:
	ldr	r3, [fp, #-1704]
	ldr	r2, [fp, #-1696]
	cmp	r2, r3
	blt	.L7
	ldr	r2, [fp, #-1700]
	ldr	r3, [fp, #-1704]
	sub	r1, fp, #1680
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r0, fp, #1600
	sub	r0, r0, #4
	sub	r0, r0, #4
	bl	bfs
	mov	r3, #0
	str	r3, [fp, #-1696]
	b	.L8
.L11:
	ldr	r3, [fp, #-1696]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1684]
	cmp	r3, #0
	bne	.L9
	ldr	r1, [fp, #-1696]
	ldr	r0, .L13+20
	bl	printf
	b	.L10
.L9:
	ldr	r1, [fp, #-1696]
	ldr	r0, .L13+24
	bl	printf
.L10:
	ldr	r3, [fp, #-1696]
	add	r3, r3, #1
	str	r3, [fp, #-1696]
.L8:
	ldr	r3, [fp, #-1704]
	ldr	r2, [fp, #-1696]
	cmp	r2, r3
	blt	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfs, %function
bfs:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-120]
	str	r2, [r3, #-84]
	b	.L16
.L20:
	ldr	r3, [fp, #-100]
	add	r2, r3, #1
	str	r2, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L17
.L19:
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-112]
	add	r3, r3, r2
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L18
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-96]
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L18:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L17:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L19
.L16:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	ble	.L20
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.size	bfs, .-bfs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
