	.file	"181255.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 1600
a:
	.zero	1600
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 80
q:
	.zero	80
	.globl	visited
	.align 32
	.type	visited, @object
	.size	visited, 80
visited:
	.zero	80
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	r
	.data
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.long	-1
	.text
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB0:
	.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], edi
	mov	DWORD PTR i[rip], 1
	jmp	.L2
.L4:
	mov	eax, DWORD PTR i[rip]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR r[rip]
	add	eax, 1
	mov	DWORD PTR r[rip], eax
	mov	edx, DWORD PTR r[rip]
	mov	eax, DWORD PTR i[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, q[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L3:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L4
	mov	edx, DWORD PTR f[rip]
	mov	eax, DWORD PTR r[rip]
	cmp	edx, eax
	jg	.L6
	mov	eax, DWORD PTR f[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR f[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR f[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	bfs
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfs, .-bfs
	.section	.rodata
	.align 8
.LC0:
	.string	"\nEnter the number of vertices:"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\nEnter graph data in matrix form:"
.LC3:
	.string	"\nEnter the starting vertex:"
	.align 8
.LC4:
	.string	"\nThe node which are reachable are:"
.LC5:
	.string	"%d\t"
	.align 8
.LC6:
	.string	"\nBfs is not possible. Not all nodes are reachable"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	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	DWORD PTR i[rip], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, q[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L8:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L9
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR i[rip], 1
	jmp	.L10
.L13:
	mov	DWORD PTR j[rip], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L11:
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L12
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L10:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L13
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	bfs
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR i[rip], 1
	jmp	.L14
.L18:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, visited[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR i[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L15:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L20:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L14:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L18
.L17:
	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
.LFE1:
	.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	"181255.c"
	.text
	.comm	a,1600,4
	.comm	q,80,4
	.comm	visited,80,4
	.comm	n,4,4
	.comm	i,4,4
	.comm	j,4,4
	.global	f
	.bss
	.align	2
	.type	f, %object
	.size	f, 4
f:
	.space	4
	.global	r
	.data
	.align	2
	.type	r, %object
	.size	r, 4
r:
	.word	-1
	.text
	.align	2
	.global	bfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfs, %function
bfs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L7
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L4:
	ldr	r3, .L7
	ldr	r1, [r3]
	ldr	r0, .L7+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L7+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+12
	str	r3, [r2]
	ldr	r3, .L7+12
	ldr	r3, [r3]
	ldr	r2, .L7
	ldr	r2, [r2]
	ldr	r1, .L7+16
	str	r2, [r1, r3, lsl #2]
.L3:
	ldr	r3, .L7
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7
	str	r3, [r2]
.L2:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, .L7+20
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L4
	ldr	r3, .L7+24
	ldr	r2, [r3]
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L6
	ldr	r3, .L7+24
	ldr	r3, [r3]
	ldr	r2, .L7+16
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L7+8
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L7+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L7+24
	str	r2, [r1]
	ldr	r2, .L7+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	bfs
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	i
	.word	a
	.word	visited
	.word	r
	.word	q
	.word	n
	.word	f
	.size	bfs, .-bfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter the number of vertices:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012Enter graph data in matrix form:\000"
	.align	2
.LC3:
	.ascii	"\012Enter the starting vertex:\000"
	.align	2
.LC4:
	.ascii	"\012The node which are reachable are:\000"
	.align	2
.LC5:
	.ascii	"%d\011\000"
	.align	2
.LC6:
	.ascii	"\012Bfs is not possible. Not all nodes are reachabl"
	.ascii	"e\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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L23+4
	bl	printf
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	__isoc99_scanf
	ldr	r3, .L23+16
	mov	r2, #1
	str	r2, [r3]
	b	.L10
.L11:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r2, .L23+20
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r2, .L23+24
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L23+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+16
	str	r3, [r2]
.L10:
	ldr	r3, .L23+16
	ldr	r2, [r3]
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L11
	ldr	r0, .L23+28
	bl	puts
	ldr	r3, .L23+16
	mov	r2, #1
	str	r2, [r3]
	b	.L12
.L15:
	ldr	r3, .L23+32
	mov	r2, #1
	str	r2, [r3]
	b	.L13
.L14:
	ldr	r3, .L23+16
	ldr	r2, [r3]
	ldr	r3, .L23+32
	ldr	r1, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r2, .L23+36
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L23+12
	bl	__isoc99_scanf
	ldr	r3, .L23+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+32
	str	r3, [r2]
.L13:
	ldr	r3, .L23+32
	ldr	r2, [r3]
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L14
	ldr	r3, .L23+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+16
	str	r3, [r2]
.L12:
	ldr	r3, .L23+16
	ldr	r2, [r3]
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L15
	ldr	r0, .L23+40
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L23+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	bfs
	ldr	r0, .L23+44
	bl	puts
	ldr	r3, .L23+16
	mov	r2, #1
	str	r2, [r3]
	b	.L16
.L20:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r2, .L23+24
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L23+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+48
	bl	printf
	b	.L22
.L17:
	ldr	r0, .L23+52
	bl	printf
	b	.L19
.L22:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+16
	str	r3, [r2]
.L16:
	ldr	r3, .L23+16
	ldr	r2, [r3]
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L20
.L19:
	nop
	ldr	r3, .L23
	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}
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	.LC0
	.word	n
	.word	.LC1
	.word	i
	.word	q
	.word	visited
	.word	.LC2
	.word	j
	.word	a
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
