	.file	"539020.c"
	.intel_syntax noprefix
	.text
	.globl	minim
	.data
	.align 8
	.type	minim, @object
	.size	minim, 8
minim:
	.quad	10000000
	.globl	mult
	.align 8
	.type	mult, @object
	.size	mult, 8
mult:
	.quad	1
	.globl	finsum
	.bss
	.align 8
	.type	finsum, @object
	.size	finsum, 8
finsum:
	.zero	8
	.globl	finmult
	.data
	.align 8
	.type	finmult, @object
	.size	finmult, 8
finmult:
	.quad	1
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 2400040
stack:
	.zero	2400040
	.globl	stackcount
	.align 8
	.type	stackcount, @object
	.size	stackcount, 8
stackcount:
	.zero	8
	.globl	state
	.align 8
	.type	state, @object
	.size	state, 8
state:
	.zero	8
	.globl	count
	.align 8
	.type	count, @object
	.size	count, 8
count:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	mystor
	.align 32
	.type	mystor, @object
	.size	mystor, 2400040
mystor:
	.zero	2400040
	.globl	mystor2
	.align 32
	.type	mystor2, @object
	.size	mystor2, 2400040
mystor2:
	.zero	2400040
	.globl	cost
	.align 32
	.type	cost, @object
	.size	cost, 2400040
cost:
	.zero	2400040
	.globl	marked
	.align 32
	.type	marked, @object
	.size	marked, 2400040
marked:
	.zero	2400040
	.globl	marked2
	.align 32
	.type	marked2, @object
	.size	marked2, 2400040
marked2:
	.zero	2400040
	.text
	.globl	push
	.type	push, @function
push:
.LFB6:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR stackcount[rip]
	lea	rcx, 0[0+rax*8]
	lea	rdx, stack[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR stackcount[rip]
	add	rax, 1
	mov	QWORD PTR stackcount[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stackcount[rip]
	sub	rax, 1
	mov	QWORD PTR stackcount[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.globl	top
	.type	top, @function
top:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stackcount[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR stackcount[rip]
	sub	rax, 1
	lea	rdx, 0[0+rax*8]
	lea	rax, stack[rip]
	mov	rax, QWORD PTR [rdx+rax]
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	top, .-top
	.globl	dfs2
	.type	dfs2, @function
dfs2:
.LFB9:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, cost[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR minim[rip]
	cmp	rdx, rax
	jne	.L7
	mov	rax, QWORD PTR mult[rip]
	add	rax, 1
	mov	QWORD PTR mult[rip], rax
.L7:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, cost[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR minim[rip]
	cmp	rdx, rax
	jge	.L8
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, cost[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR minim[rip], rax
	mov	QWORD PTR mult[rip], 1
.L8:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, mystor2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked2[rip]
	mov	QWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dfs2
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L9:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dfs2, .-dfs2
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, mystor[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked[rip]
	mov	QWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dfs
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L13:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	push
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld %lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 1
	mov	QWORD PTR -40[rbp], 0
	jmp	.L17
.L30:
	mov	QWORD PTR stackcount[rip], 0
	mov	QWORD PTR count[rip], 1
	mov	QWORD PTR -56[rbp], 0
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked2[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, mystor[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, mystor2[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	QWORD PTR -56[rbp], 1
.L18:
	cmp	QWORD PTR -56[rbp], 300004
	jle	.L19
	mov	QWORD PTR finsum[rip], 0
	mov	QWORD PTR finmult[rip], 0
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -56[rbp], 1
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, cost[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	QWORD PTR -56[rbp], 1
.L20:
	mov	rax, QWORD PTR n[rip]
	cmp	QWORD PTR -56[rbp], rax
	jle	.L21
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -48[rbp], 0
	jmp	.L22
.L23:
	lea	rdx, -72[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, mystor[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rdx, mystor[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, mystor2[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rdx, mystor2[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	add	QWORD PTR -48[rbp], 1
.L22:
	mov	rax, QWORD PTR -64[rbp]
	cmp	QWORD PTR -48[rbp], rax
	jl	.L23
	mov	QWORD PTR -56[rbp], 1
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, marked[rip]
	mov	QWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	dfs
.L25:
	add	QWORD PTR -56[rbp], 1
.L24:
	mov	rax, QWORD PTR n[rip]
	cmp	QWORD PTR -56[rbp], rax
	jle	.L26
	mov	QWORD PTR finsum[rip], 0
	mov	QWORD PTR finmult[rip], 1
	jmp	.L27
.L29:
	mov	eax, 0
	call	top
	lea	rdx, 0[0+rax*8]
	lea	rax, marked2[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L28
	mov	eax, 0
	call	top
	lea	rdx, 0[0+rax*8]
	lea	rax, marked2[rip]
	mov	QWORD PTR [rdx+rax], 1
	mov	eax, 0
	call	top
	lea	rdx, 0[0+rax*8]
	lea	rax, cost[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR minim[rip], rax
	mov	QWORD PTR mult[rip], 0
	mov	eax, 0
	call	top
	mov	rdi, rax
	call	dfs2
	mov	rdx, QWORD PTR finsum[rip]
	mov	rax, QWORD PTR minim[rip]
	add	rax, rdx
	mov	QWORD PTR finsum[rip], rax
	mov	rdx, QWORD PTR finmult[rip]
	mov	rax, QWORD PTR mult[rip]
	imul	rax, rdx
	mov	QWORD PTR finmult[rip], rax
.L28:
	mov	eax, 0
	call	pop
.L27:
	mov	rax, QWORD PTR stackcount[rip]
	cmp	rax, -1
	jne	.L29
	mov	rcx, QWORD PTR finmult[rip]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	rcx, QWORD PTR finsum[rip]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -40[rbp], 1
.L17:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L30
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"539020.c"
	.text
	.global	minim
	.data
	.align	3
	.type	minim, %object
	.size	minim, 8
minim:
	.word	10000000
	.word	0
	.global	mult
	.align	3
	.type	mult, %object
	.size	mult, 8
mult:
	.word	1
	.word	0
	.global	finsum
	.bss
	.align	3
	.type	finsum, %object
	.size	finsum, 8
finsum:
	.space	8
	.global	finmult
	.data
	.align	3
	.type	finmult, %object
	.size	finmult, 8
finmult:
	.word	1
	.word	0
	.global	stack
	.bss
	.align	3
	.type	stack, %object
	.size	stack, 2400040
stack:
	.space	2400040
	.global	stackcount
	.align	3
	.type	stackcount, %object
	.size	stackcount, 8
stackcount:
	.space	8
	.global	state
	.align	3
	.type	state, %object
	.size	state, 8
state:
	.space	8
	.global	count
	.align	3
	.type	count, %object
	.size	count, 8
count:
	.space	8
	.comm	n,8,8
	.global	mystor
	.align	2
	.type	mystor, %object
	.size	mystor, 1200020
mystor:
	.space	1200020
	.global	mystor2
	.align	2
	.type	mystor2, %object
	.size	mystor2, 1200020
mystor2:
	.space	1200020
	.global	cost
	.align	3
	.type	cost, %object
	.size	cost, 2400040
cost:
	.space	2400040
	.global	marked
	.align	3
	.type	marked, %object
	.size	marked, 2400040
marked:
	.space	2400040
	.global	marked2
	.align	3
	.type	marked2, %object
	.size	marked2, 2400040
marked2:
	.space	2400040
	.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
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r3, .L2
	ldmia	r3, {r2-r3}
	ldr	r1, .L2+4
	mov	r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, .L2
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, .L2
	stm	r3, {r4-r5}
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L3:
	.align	2
.L2:
	.word	stackcount
	.word	stack
	.size	push, .-push
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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, .L5
	ldmia	r3, {r2-r3}
	subs	r0, r2, #1
	sbc	r1, r3, #0
	ldr	r3, .L5
	stm	r3, {r0-r1}
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	stackcount
	.size	pop, .-pop
	.align	2
	.global	top
	.syntax unified
	.arm
	.fpu softvfp
	.type	top, %function
top:
	@ 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, .L10
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L8
	ldr	r3, .L10
	ldmia	r3, {r2-r3}
	subs	r0, r2, #1
	sbc	r1, r3, #0
	ldr	r2, .L10+4
	mov	r3, r0
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	b	.L9
.L8:
	mov	r2, #0
	mov	r3, #0
.L9:
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	stackcount
	.word	stack
	.size	top, .-top
	.align	2
	.global	dfs2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs2, %function
dfs2:
	@ 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
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r2, .L18
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L18+4
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L13
	ldr	r3, .L18+8
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, .L18+8
	stm	r3, {r4-r5}
.L13:
	ldr	r2, .L18
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L18+4
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L14
	ldr	r2, .L18
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L18+4
	stm	r1, {r2-r3}
	ldr	r1, .L18+8
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
.L14:
	ldr	r2, .L18+12
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-16]
	b	.L15
.L17:
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	ldr	r1, .L18+16
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L16
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	ldr	r1, .L18+16
	mov	r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	dfs2
.L16:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L17
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	cost
	.word	minim
	.word	mult
	.word	mystor2
	.word	marked2
	.size	dfs2, .-dfs2
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r2, .L24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	b	.L21
.L23:
	ldr	r3, [fp, #-8]
	ldmia	r3, {r2-r3}
	ldr	r1, .L24+4
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L22
	ldr	r3, [fp, #-8]
	ldmia	r3, {r2-r3}
	ldr	r1, .L24+4
	mov	r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-8]
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	dfs
.L22:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L23
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	push
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	mystor
	.word	marked
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lld\000"
	.align	2
.LC1:
	.ascii	"%lld%lld\000"
	.global	__aeabi_ldivmod
	.align	2
.LC2:
	.ascii	"%lld %lld\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #112
	ldr	r3, .L43+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L27
.L40:
	ldr	r1, .L43+12
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L43+16
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L28
.L29:
	ldr	r2, .L43+20
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r2, .L43+24
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L43+28
	ldr	r2, [fp, #-68]
	mov	r3, #0
	str	r3, [r1, r2, lsl #2]
	ldr	r1, .L43+32
	ldr	r2, [fp, #-68]
	mov	r3, #0
	str	r3, [r1, r2, lsl #2]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-68]
	str	r9, [fp, #-64]
.L28:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	ldr	r2, .L43+36
	mov	r3, #0
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L29
	ldr	r1, .L43+40
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L43+44
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L43+48
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L30
.L31:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	ldr	r2, .L43+56
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-108]
	adc	r3, r3, #0
	str	r3, [fp, #-104]
	sub	r4, fp, #108
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-68]
	str	r4, [fp, #-64]
.L30:
	ldr	r3, .L43+48
	ldmia	r3, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L31
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L32
.L33:
	sub	r3, fp, #84
	sub	r1, fp, #92
	mov	r2, r3
	ldr	r0, .L43+60
	bl	__isoc99_scanf
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-100]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-100]
	stm	r3, {r0-r1}
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r1, .L43+28
	mov	r3, r2
	ldr	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-100]
	str	r2, [r3, #8]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r1, .L43+28
	ldr	r3, [fp, #-100]
	str	r3, [r1, r2, lsl #2]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-96]
	stm	r3, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	ldr	r1, .L43+32
	mov	r3, r2
	ldr	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-96]
	str	r2, [r3, #8]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	ldr	r1, .L43+32
	ldr	r3, [fp, #-96]
	str	r3, [r1, r2, lsl #2]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-116]
	adc	r3, r3, #0
	str	r3, [fp, #-112]
	sub	r4, fp, #116
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
.L32:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L33
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L34
.L36:
	ldr	r2, .L43+20
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L35
	ldr	r2, .L43+20
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	dfs
.L35:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-124]
	adc	r3, r3, #0
	str	r3, [fp, #-120]
	sub	r4, fp, #124
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-68]
	str	r4, [fp, #-64]
.L34:
	ldr	r3, .L43+48
	ldmia	r3, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L36
	ldr	r1, .L43+40
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L43+44
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L37
.L39:
	bl	top
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L43+24
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L38
	bl	top
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L43+24
	mov	r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	bl	top
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L43+56
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L43+64
	stm	r1, {r2-r3}
	ldr	r1, .L43+68
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	bl	top
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	dfs2
	ldr	r3, .L43+40
	ldmia	r3, {r0-r1}
	ldr	r3, .L43+64
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	ldr	r3, .L43+40
	stm	r3, {r6-r7}
	ldr	r3, .L43+44
	ldmia	r3, {r4-r5}
	ldr	r3, .L43+68
	ldmia	r3, {r0-r1}
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, .L43+44
	stm	r1, {r2-r3}
.L38:
	bl	pop
.L37:
	ldr	r3, .L43+12
	ldmia	r3, {r0-r1}
	mvn	r2, #0
	mvn	r3, #0
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L39
	ldr	r3, .L43+40
	ldmia	r3, {r4-r5}
	ldr	r3, .L43+44
	ldmia	r3, {r0-r1}
	adr	r3, .L43
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L43+72
	bl	printf
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-132]
	adc	r3, r3, #0
	str	r3, [fp, #-128]
	sub	r4, fp, #132
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L27:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L40
	mov	r3, #0
	ldr	r2, .L43+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L44:
	.align	3
.L43:
	.word	1000000007
	.word	0
	.word	.LC3
	.word	stackcount
	.word	count
	.word	marked
	.word	marked2
	.word	mystor
	.word	mystor2
	.word	300004
	.word	finsum
	.word	finmult
	.word	n
	.word	.LC0
	.word	cost
	.word	.LC1
	.word	minim
	.word	mult
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
