	.file	"73574178.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 16080100
G:
	.zero	16080100
	.globl	vis
	.align 32
	.type	vis, @object
	.size	vis, 8020
vis:
	.zero	8020
	.globl	len
	.align 32
	.type	len, @object
	.size	len, 8020
len:
	.zero	8020
	.globl	val
	.align 32
	.type	val, @object
	.size	val, 16040
val:
	.zero	16040
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 2005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, len[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	divsd	xmm0, xmm2
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 2005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	addsd	xmm0, xmm1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 2005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 2005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	dfs
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, len[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L4
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"Enter no. of islands : "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter no. of one-way bridges : "
	.align 8
.LC3:
	.string	"Enter the index of island you are initially on : "
.LC4:
	.string	"Enter Edges in format : u v "
.LC5:
	.string	"%d %d"
	.align 8
.LC8:
	.string	"\nIndex(s) of island(s) that you are most likely to get stuck on : "
.LC11:
	.string	"%d "
	.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, 16
	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
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, m[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, r[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L7:
	lea	rdx, v[rip]
	lea	rsi, u[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, DWORD PTR u[rip]
	mov	edx, DWORD PTR u[rip]
	movsx	rax, edx
	lea	rcx, 0[0+rax*4]
	lea	rax, len[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, 1[rax]
	movsx	rdx, edx
	lea	rdi, 0[0+rdx*4]
	lea	rdx, len[rip]
	mov	DWORD PTR [rdi+rdx], ecx
	mov	edx, DWORD PTR v[rip]
	movsx	rcx, eax
	movsx	rax, esi
	imul	rax, rax, 2005
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR r[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR r[rip]
	mov	edi, eax
	call	dfs
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 1
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L9
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, len[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsd	QWORD PTR -8[rbp], xmm0
.L9:
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L11
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	subsd	xmm0, QWORD PTR -8[rbp]
	movq	xmm1, QWORD PTR .LC9[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC10[rip]
	comisd	xmm0, xmm1
	jb	.L13
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, len[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L15
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1072693248
	.align 16
.LC9:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC10:
	.long	-400107883
	.long	1041313291
	.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	"73574178.c"
	.text
	.comm	n,4,4
	.comm	m,4,4
	.comm	r,4,4
	.comm	u,4,4
	.comm	v,4,4
	.comm	G,16080100,4
	.comm	vis,8020,4
	.comm	len,8020,4
	.comm	val,16040,8
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	str	r0, [fp, #-40]
	ldr	r2, .L5
	ldr	r3, [fp, #-40]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L4:
	ldr	r0, .L5+4
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L5+8
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, .L5+8
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r2, .L5+12
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r0, .L5+4
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r3, r3, r2
	ldr	r6, [r0, r3, lsl #2]
	mov	r2, r8
	mov	r3, r9
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L5+8
	lsl	r1, r6, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r0, .L5+4
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, .L5
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L5+4
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	mov	r0, r3
	bl	dfs
.L3:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r2, .L5+12
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L4
	nop
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L6:
	.align	2
.L5:
	.word	vis
	.word	G
	.word	val
	.word	len
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter no. of islands : \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter no. of one-way bridges : \000"
	.align	2
.LC3:
	.ascii	"Enter the index of island you are initially on : \000"
	.align	2
.LC4:
	.ascii	"Enter Edges in format : u v \000"
	.align	2
.LC5:
	.ascii	"%d %d\000"
	.global	__aeabi_dcmplt
	.align	2
.LC6:
	.ascii	"\012Index(s) of island(s) that you are most likely "
	.ascii	"to get stuck on : \000"
	.global	__aeabi_dsub
	.global	__aeabi_dcmple
	.align	2
.LC7:
	.ascii	"%d \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r0, .L21
	bl	printf
	ldr	r1, .L21+4
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r0, .L21+12
	bl	printf
	ldr	r1, .L21+16
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r0, .L21+20
	bl	printf
	ldr	r1, .L21+24
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r0, .L21+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L9:
	ldr	r2, .L21+32
	ldr	r1, .L21+36
	ldr	r0, .L21+40
	bl	__isoc99_scanf
	ldr	r3, .L21+36
	ldr	r2, [r3]
	ldr	r3, .L21+36
	ldr	r3, [r3]
	ldr	r1, .L21+44
	ldr	r1, [r1, r3, lsl #2]
	add	r0, r1, #1
	ldr	ip, .L21+44
	str	r0, [ip, r3, lsl #2]
	ldr	r3, .L21+32
	ldr	r0, [r3]
	ldr	lr, .L21+48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	ip, r3, #2
	add	r3, r3, ip
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	str	r0, [lr, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r3, .L21+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L9
	ldr	r3, .L21+24
	ldr	r3, [r3]
	ldr	r2, .L21+52
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	ldr	r3, .L21+56
	stm	r1, {r2-r3}
	ldr	r3, .L21+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	dfs
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L10
.L13:
	ldr	r2, .L21+52
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r2, .L21+44
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L11
	ldr	r2, .L21+60
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L11
	ldr	r2, .L21+52
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L13
	ldr	r0, .L21+64
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L14
.L17:
	ldr	r2, .L21+52
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	ldr	r2, .L21+68
	ldr	r3, .L21+72
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r2, .L21+44
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L15
	ldr	r2, .L21+60
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L15
	ldr	r1, [fp, #-24]
	ldr	r0, .L21+76
	bl	printf
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L17
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	n
	.word	.LC1
	.word	.LC2
	.word	m
	.word	.LC3
	.word	r
	.word	.LC4
	.word	v
	.word	u
	.word	.LC5
	.word	len
	.word	G
	.word	val
	.word	1072693248
	.word	vis
	.word	.LC6
	.word	-400107883
	.word	1041313291
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
