	.file	"247018585.c"
	.intel_syntax noprefix
	.text
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 48240
B:
	.zero	48240
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 4040100
A:
	.zero	4040100
	.text
	.globl	min
	.type	min, @function
min:
.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.globl	count
	.type	count, @function
count:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L5
.L6:
	mov	ecx, DWORD PTR -4[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
.L5:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	count, .-count
	.globl	check
	.type	check, @function
check:
.LFB2:
	.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, B[rip+8]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, B[rip+8]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	min
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L8:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L9
	cmp	DWORD PTR -4[rbp], 2
	jle	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	check, .-check
	.globl	s
	.bss
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	e
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.globl	arr
	.align 32
	.type	arr, @object
	.size	arr, 4020
arr:
	.zero	4020
	.section	.rodata
.LC0:
	.string	"Queue Overflow"
	.text
	.globl	push
	.type	push, @function
push:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR e[rip]
	cmp	eax, 1004
	jne	.L13
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L17
.L13:
	mov	eax, DWORD PTR e[rip]
	cmp	eax, -1
	jne	.L15
	mov	DWORD PTR e[rip], 0
	mov	eax, DWORD PTR e[rip]
	mov	DWORD PTR s[rip], eax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR e[rip]
	add	eax, 1
	mov	DWORD PTR e[rip], eax
.L16:
	mov	eax, DWORD PTR e[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, arr[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"Queue Underflow"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB4:
	.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	eax, DWORD PTR s[rip]
	cmp	eax, -1
	je	.L19
	mov	edx, DWORD PTR s[rip]
	mov	eax, DWORD PTR e[rip]
	cmp	edx, eax
	jle	.L20
.L19:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L20:
	mov	eax, DWORD PTR s[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR s[rip]
	add	eax, 1
	mov	DWORD PTR s[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	pop, .-pop
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR s[rip]
	cmp	eax, -1
	je	.L23
	mov	edx, DWORD PTR s[rip]
	mov	eax, DWORD PTR e[rip]
	cmp	edx, eax
	jle	.L24
.L23:
	mov	DWORD PTR e[rip], -1
	mov	eax, DWORD PTR e[rip]
	mov	DWORD PTR s[rip], eax
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	is_empty, .-is_empty
	.globl	bfs
	.type	bfs, @function
bfs:
.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, 4064
	mov	DWORD PTR -4052[rbp], edi
	mov	QWORD PTR -4064[rbp], rsi
	mov	DWORD PTR -4056[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4040[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	mov	DWORD PTR -4032[rbp+rax*4], 0
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4064[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1000000
	add	DWORD PTR -4040[rbp], 1
.L27:
	cmp	DWORD PTR -4040[rbp], 1004
	jle	.L28
	mov	eax, DWORD PTR -4052[rbp]
	mov	edi, eax
	call	push
	mov	eax, DWORD PTR -4052[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4064[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -4052[rbp]
	cdqe
	mov	DWORD PTR -4032[rbp+rax*4], 1
	jmp	.L29
.L33:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -4036[rbp], eax
	mov	DWORD PTR -4040[rbp], 1
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -4040[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4036[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L31
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	mov	eax, DWORD PTR -4032[rbp+rax*4]
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR -4036[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4064[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -4064[rbp]
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	mov	DWORD PTR -4032[rbp+rax*4], 1
	mov	eax, DWORD PTR -4040[rbp]
	mov	edi, eax
	call	push
.L31:
	add	DWORD PTR -4040[rbp], 1
.L30:
	mov	eax, DWORD PTR -4040[rbp]
	cmp	eax, DWORD PTR -4056[rbp]
	jle	.L32
.L29:
	mov	eax, 0
	call	is_empty
	test	eax, eax
	je	.L33
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	bfs, .-bfs
	.section	.rodata
.LC2:
	.string	"Enter number of students : "
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"Enter roll number of n students : "
.LC5:
	.string	"Enter number of queries : "
.LC6:
	.string	"Enter query type : "
.LC7:
	.string	"Enter roll number : "
.LC8:
	.string	"Enter at most hops(t) : "
	.align 8
.LC9:
	.string	"Number of nodes reachable from %d in at most t-hops : %d \n"
.LC10:
	.string	"Enter roll number 1 : "
.LC11:
	.string	"Enter roll number 2 : "
	.align 8
.LC12:
	.string	"Distance between %d and %d is infinite \n"
	.align 8
.LC13:
	.string	"Distance between %d and %d is %d \n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4080
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4076[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -4056[rbp], 1
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rcx, rax
	lea	rdx, B[rip]
	mov	eax, DWORD PTR -4056[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, B[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, B[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	lea	rcx, B[rip]
	add	rax, rcx
	add	rax, 8
	mov	esi, edx
	mov	rdi, rax
	call	count
	add	DWORD PTR -4056[rbp], 1
.L36:
	mov	eax, DWORD PTR -4076[rbp]
	cmp	DWORD PTR -4056[rbp], eax
	jle	.L37
	mov	DWORD PTR -4056[rbp], 1
	jmp	.L38
.L42:
	mov	DWORD PTR -4052[rbp], 1
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -4056[rbp]
	cmp	eax, DWORD PTR -4052[rbp]
	je	.L40
	mov	edx, DWORD PTR -4052[rbp]
	mov	eax, DWORD PTR -4056[rbp]
	mov	esi, edx
	mov	edi, eax
	call	check
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR -4052[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4056[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	DWORD PTR [rdx+rax], 1
.L40:
	add	DWORD PTR -4052[rbp], 1
.L39:
	mov	eax, DWORD PTR -4076[rbp]
	cmp	DWORD PTR -4052[rbp], eax
	jle	.L41
	add	DWORD PTR -4056[rbp], 1
.L38:
	mov	eax, DWORD PTR -4076[rbp]
	cmp	DWORD PTR -4056[rbp], eax
	jle	.L42
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4072[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L43
.L58:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4068[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -4068[rbp]
	cmp	eax, 1
	jne	.L44
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4064[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4060[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4056[rbp], 1
	jmp	.L45
.L47:
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, B[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4064[rbp]
	cmp	edx, eax
	jne	.L46
	mov	eax, DWORD PTR -4056[rbp]
	mov	DWORD PTR -4048[rbp], eax
.L46:
	add	DWORD PTR -4056[rbp], 1
.L45:
	mov	eax, DWORD PTR -4076[rbp]
	cmp	DWORD PTR -4056[rbp], eax
	jle	.L47
	mov	edx, DWORD PTR -4076[rbp]
	lea	rcx, -4032[rbp]
	mov	eax, DWORD PTR -4048[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bfs
	mov	DWORD PTR -4044[rbp], 0
	mov	DWORD PTR -4056[rbp], 1
	jmp	.L48
.L50:
	mov	eax, DWORD PTR -4056[rbp]
	cdqe
	mov	edx, DWORD PTR -4032[rbp+rax*4]
	mov	eax, DWORD PTR -4060[rbp]
	cmp	edx, eax
	jg	.L49
	add	DWORD PTR -4044[rbp], 1
.L49:
	add	DWORD PTR -4056[rbp], 1
.L48:
	mov	eax, DWORD PTR -4076[rbp]
	cmp	DWORD PTR -4056[rbp], eax
	jle	.L50
	mov	eax, DWORD PTR -4044[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4064[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L44:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4064[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4060[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4056[rbp], 1
	jmp	.L52
.L55:
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, B[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4064[rbp]
	cmp	edx, eax
	jne	.L53
	mov	eax, DWORD PTR -4056[rbp]
	mov	DWORD PTR -4040[rbp], eax
.L53:
	mov	eax, DWORD PTR -4056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, B[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4060[rbp]
	cmp	edx, eax
	jne	.L54
	mov	eax, DWORD PTR -4056[rbp]
	mov	DWORD PTR -4036[rbp], eax
.L54:
	add	DWORD PTR -4056[rbp], 1
.L52:
	mov	eax, DWORD PTR -4076[rbp]
	cmp	DWORD PTR -4056[rbp], eax
	jle	.L55
	mov	edx, DWORD PTR -4076[rbp]
	lea	rcx, -4032[rbp]
	mov	eax, DWORD PTR -4040[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bfs
	mov	eax, DWORD PTR -4036[rbp]
	cdqe
	mov	eax, DWORD PTR -4032[rbp+rax*4]
	cmp	eax, 999999
	jle	.L56
	mov	edx, DWORD PTR -4060[rbp]
	mov	eax, DWORD PTR -4064[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L56:
	mov	eax, DWORD PTR -4036[rbp]
	cdqe
	mov	ecx, DWORD PTR -4032[rbp+rax*4]
	mov	edx, DWORD PTR -4060[rbp]
	mov	eax, DWORD PTR -4064[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L43:
	mov	eax, DWORD PTR -4072[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -4072[rbp], edx
	test	eax, eax
	jne	.L58
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"247018585.c"
	.text
	.comm	B,48240,4
	.comm	A,4040100,4
	.align	2
	.global	min
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.align	2
	.global	count
	.syntax unified
	.arm
	.fpu softvfp
	.type	count, %function
count:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r2, [fp, #-8]
	ldr	r3, .L7
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, .L7
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	1717986919
	.size	count, .-count
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L11:
	ldr	r1, .L14
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	add	r3, r3, #2
	ldr	r0, [r1, r3, lsl #2]
	ldr	r1, .L14
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	add	r3, r3, #2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	bl	min
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L11
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L12
	mov	r3, #1
	b	.L13
.L12:
	mov	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	B
	.size	check, .-check
	.comm	s,4,4
	.comm	e,4,4
	.comm	arr,4020,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Queue Overflow\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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, .L22
	ldr	r3, [r3]
	cmp	r3, #1004
	bne	.L17
	ldr	r0, .L22+4
	bl	puts
	b	.L21
.L17:
	ldr	r3, .L22
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L19
	ldr	r3, .L22
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+8
	str	r3, [r2]
	b	.L20
.L19:
	ldr	r3, .L22
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22
	str	r3, [r2]
.L20:
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r1, .L22+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	e
	.word	.LC0
	.word	s
	.word	arr
	.size	push, .-push
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Queue Underflow\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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, .L28
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L25
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, .L28+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L26
.L25:
	ldr	r0, .L28+8
	bl	puts
.L26:
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, .L28+12
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L28
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	s
	.word	e
	.word	.LC1
	.word	arr
	.size	pop, .-pop
	.align	2
	.global	is_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_empty, %function
is_empty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L34
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L31
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L32
.L31:
	ldr	r3, .L34+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, .L34
	str	r3, [r2]
	mov	r3, #1
	b	.L33
.L32:
	mov	r3, #0
.L33:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	s
	.word	e
	.size	is_empty, .-is_empty
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfs, %function
bfs:
	@ args = 0, pretend = 0, frame = 4048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4048
	str	r0, [fp, #-4040]
	str	r1, [fp, #-4044]
	str	r2, [fp, #-4048]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-4036]
	b	.L37
.L38:
	ldr	r3, [fp, #-4036]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-4024]
	ldr	r3, [fp, #-4036]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-4044]
	add	r3, r2, r3
	ldr	r2, .L45+4
	str	r2, [r3]
	ldr	r3, [fp, #-4036]
	add	r3, r3, #1
	str	r3, [fp, #-4036]
.L37:
	ldr	r3, [fp, #-4036]
	cmp	r3, #1004
	ble	.L38
	ldr	r0, [fp, #-4040]
	bl	push
	ldr	r3, [fp, #-4040]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-4044]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-4040]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-4024]
	b	.L39
.L43:
	bl	pop
	str	r0, [fp, #-4032]
	mov	r3, #1
	str	r3, [fp, #-4036]
	b	.L40
.L42:
	ldr	r1, .L45+8
	ldr	r2, [fp, #-4032]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-4036]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	bne	.L41
	ldr	r3, [fp, #-4036]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4024]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-4032]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-4044]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-4036]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-4044]
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-4036]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-4024]
	ldr	r0, [fp, #-4036]
	bl	push
.L41:
	ldr	r3, [fp, #-4036]
	add	r3, r3, #1
	str	r3, [fp, #-4036]
.L40:
	ldr	r2, [fp, #-4036]
	ldr	r3, [fp, #-4048]
	cmp	r2, r3
	ble	.L42
.L39:
	bl	is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	nop
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC2
	.word	1000000
	.word	A
	.size	bfs, .-bfs
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Enter number of students : \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"Enter roll number of n students : \000"
	.align	2
.LC6:
	.ascii	"Enter number of queries : \000"
	.align	2
.LC7:
	.ascii	"Enter query type : \000"
	.align	2
.LC8:
	.ascii	"Enter roll number : \000"
	.align	2
.LC9:
	.ascii	"Enter at most hops(t) : \000"
	.align	2
.LC10:
	.ascii	"Number of nodes reachable from %d in at most t-hops"
	.ascii	" : %d \012\000"
	.align	2
.LC11:
	.ascii	"Enter roll number 1 : \000"
	.align	2
.LC12:
	.ascii	"Enter roll number 2 : \000"
	.align	2
.LC13:
	.ascii	"Distance between %d and %d is infinite \012\000"
	.align	2
.LC14:
	.ascii	"Distance between %d and %d is %d \012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4064
	sub	sp, sp, #8
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L73+4
	bl	printf
	sub	r3, fp, #4064
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	ldr	r0, .L73+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-4052]
	b	.L48
.L49:
	ldr	r1, .L73+16
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-4052]
	str	r2, [r3]
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L73+16
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, .L73+16
	add	r0, r3, r2
	ldr	r1, .L73+16
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	bl	count
	ldr	r3, [fp, #-4052]
	add	r3, r3, #1
	str	r3, [fp, #-4052]
.L48:
	ldr	r3, [fp, #-4072]
	ldr	r2, [fp, #-4052]
	cmp	r2, r3
	ble	.L49
	mov	r3, #1
	str	r3, [fp, #-4052]
	b	.L50
.L54:
	mov	r3, #1
	str	r3, [fp, #-4048]
	b	.L51
.L53:
	ldr	r2, [fp, #-4052]
	ldr	r3, [fp, #-4048]
	cmp	r2, r3
	beq	.L52
	ldr	r1, [fp, #-4048]
	ldr	r0, [fp, #-4052]
	bl	check
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r1, .L73+20
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-4048]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
.L52:
	ldr	r3, [fp, #-4048]
	add	r3, r3, #1
	str	r3, [fp, #-4048]
.L51:
	ldr	r3, [fp, #-4072]
	ldr	r2, [fp, #-4048]
	cmp	r2, r3
	ble	.L53
	ldr	r3, [fp, #-4052]
	add	r3, r3, #1
	str	r3, [fp, #-4052]
.L50:
	ldr	r3, [fp, #-4072]
	ldr	r2, [fp, #-4052]
	cmp	r2, r3
	ble	.L54
	ldr	r0, .L73+24
	bl	printf
	sub	r3, fp, #4064
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	b	.L55
.L70:
	ldr	r0, .L73+28
	bl	printf
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-4064]
	cmp	r3, #1
	bne	.L56
	ldr	r0, .L73+32
	bl	printf
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	ldr	r0, .L73+36
	bl	printf
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-4052]
	b	.L57
.L59:
	ldr	r1, .L73+16
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-4060]
	cmp	r2, r3
	bne	.L58
	ldr	r3, [fp, #-4052]
	str	r3, [fp, #-4044]
.L58:
	ldr	r3, [fp, #-4052]
	add	r3, r3, #1
	str	r3, [fp, #-4052]
.L57:
	ldr	r3, [fp, #-4072]
	ldr	r2, [fp, #-4052]
	cmp	r2, r3
	ble	.L59
	ldr	r2, [fp, #-4072]
	sub	r3, fp, #4016
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-4044]
	bl	bfs
	mov	r3, #0
	str	r3, [fp, #-4040]
	mov	r3, #1
	str	r3, [fp, #-4052]
	b	.L60
.L62:
	ldr	r3, [fp, #-4052]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-4024]
	ldr	r3, [fp, #-4056]
	cmp	r2, r3
	bgt	.L61
	ldr	r3, [fp, #-4040]
	add	r3, r3, #1
	str	r3, [fp, #-4040]
.L61:
	ldr	r3, [fp, #-4052]
	add	r3, r3, #1
	str	r3, [fp, #-4052]
.L60:
	ldr	r3, [fp, #-4072]
	ldr	r2, [fp, #-4052]
	cmp	r2, r3
	ble	.L62
	ldr	r1, [fp, #-4060]
	ldr	r3, [fp, #-4040]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L73+40
	bl	printf
	b	.L55
.L56:
	ldr	r0, .L73+44
	bl	printf
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	ldr	r0, .L73+48
	bl	printf
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L73+8
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-4052]
	b	.L64
.L67:
	ldr	r1, .L73+16
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-4060]
	cmp	r2, r3
	bne	.L65
	ldr	r3, [fp, #-4052]
	str	r3, [fp, #-4036]
.L65:
	ldr	r1, .L73+16
	ldr	r2, [fp, #-4052]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-4056]
	cmp	r2, r3
	bne	.L66
	ldr	r3, [fp, #-4052]
	str	r3, [fp, #-4032]
.L66:
	ldr	r3, [fp, #-4052]
	add	r3, r3, #1
	str	r3, [fp, #-4052]
.L64:
	ldr	r3, [fp, #-4072]
	ldr	r2, [fp, #-4052]
	cmp	r2, r3
	ble	.L67
	ldr	r2, [fp, #-4072]
	sub	r3, fp, #4016
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-4036]
	bl	bfs
	ldr	r3, [fp, #-4032]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4024]
	ldr	r2, .L73+52
	cmp	r3, r2
	blt	.L68
	ldr	r3, [fp, #-4060]
	ldr	r2, [fp, #-4056]
	mov	r1, r3
	ldr	r0, .L73+56
	bl	printf
	b	.L55
.L68:
	ldr	r1, [fp, #-4060]
	ldr	r2, [fp, #-4056]
	ldr	r3, [fp, #-4032]
	lsl	r3, r3, #2
	sub	r0, fp, #4
	add	r3, r0, r3
	ldr	r3, [r3, #-4024]
	ldr	r0, .L73+60
	bl	printf
.L55:
	ldr	r3, [fp, #-4068]
	sub	r2, r3, #1
	str	r2, [fp, #-4068]
	cmp	r3, #0
	bne	.L70
	mov	r3, #0
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC15
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	B
	.word	A
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1000000
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
