	.file	"19315.c"
	.intel_syntax noprefix
	.text
	.globl	G
	.bss
	.align 32
	.type	G, @object
	.size	G, 64000440
G:
	.zero	64000440
	.text
	.globl	g_ini
	.type	g_ini, @function
g_ini:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rax, G[rip]
	mov	DWORD PTR 64000432[rax], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	g_ini, .-g_ini
	.globl	g_add
	.type	g_add, @function
g_add:
.LFB1:
	.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	QWORD PTR -16[rbp], rdx
	lea	rax, G[rip]
	mov	eax, DWORD PTR 64000432[rax]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rcx, rax
	lea	rdx, G[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	lea	rax, G[rip]
	mov	eax, DWORD PTR 64000432[rax]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rcx, rax
	lea	rdx, G[rip+8]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	lea	rax, G[rip]
	mov	edx, DWORD PTR 64000432[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rcx+rax]
	movsx	rdx, edx
	add	rdx, 2000018
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, G[rip+4]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+8]
	mov	DWORD PTR [rdx+rax], ecx
	lea	rax, G[rip]
	mov	eax, DWORD PTR 64000432[rax]
	lea	edx, 1[rax]
	lea	rcx, G[rip]
	mov	DWORD PTR 64000432[rcx], edx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, G[rip]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	g_add, .-g_add
	.globl	Q
	.bss
	.align 32
	.type	Q, @object
	.size	Q, 8000080
Q:
	.zero	8000080
	.text
	.globl	q_ini
	.type	q_ini, @function
q_ini:
.LFB2:
	.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 Q[rip+8000076], 0
	mov	eax, DWORD PTR Q[rip+8000076]
	mov	DWORD PTR Q[rip+8000072], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	q_ini, .-q_ini
	.globl	q_psh
	.type	q_psh, @function
q_psh:
.LFB3:
	.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	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1000008
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip+4]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR Q[rip+8000072]
	lea	edx, 1[rax]
	mov	DWORD PTR Q[rip+8000072], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Q[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR Q[rip+8000072]
	cmp	eax, 1000009
	jne	.L6
	mov	DWORD PTR Q[rip+8000072], 0
.L6:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	q_psh, .-q_psh
	.globl	q_pop
	.type	q_pop, @function
q_pop:
.LFB4:
	.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 Q[rip+8000076]
	lea	edx, 1[rax]
	mov	DWORD PTR Q[rip+8000076], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1000008
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip+4]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR Q[rip+8000076]
	cmp	eax, 1000009
	jne	.L8
	mov	DWORD PTR Q[rip+8000076], 0
.L8:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	q_pop, .-q_pop
	.globl	q_ept
	.type	q_ept, @function
q_ept:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR Q[rip+8000072]
	mov	eax, DWORD PTR Q[rip+8000076]
	cmp	edx, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	q_ept, .-q_ept
	.globl	t_vis
	.bss
	.align 32
	.type	t_vis, @object
	.size	t_vis, 4000036
t_vis:
	.zero	4000036
	.globl	t_arr
	.align 32
	.type	t_arr, @object
	.size	t_arr, 4000036
t_arr:
	.zero	4000036
	.globl	t_top
	.align 4
	.type	t_top, @object
	.size	t_top, 4
t_top:
	.zero	4
	.text
	.globl	tpsort
	.type	tpsort, @function
tpsort:
.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, t_vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, t_vis[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rdx, rax
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	tpsort
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rdx, rax
	lea	rax, G[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
.L15:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR t_top[rip]
	sub	eax, 1
	mov	DWORD PTR t_top[rip], eax
	mov	eax, DWORD PTR t_top[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, t_arr[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L12
.L17:
	nop
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tpsort, .-tpsort
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%d%d%lld"
.LC3:
	.string	"%d %lld\n"
.LC4:
	.string	"NULL"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 1
	lea	rdx, -44[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -32[rbp], 1
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	lea	rdx, 16[rax]
	lea	rax, G[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	lea	rcx, 16[rax]
	lea	rax, G[rip]
	add	rax, rcx
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -32[rbp], 1
.L19:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L20
	call	g_ini
	mov	DWORD PTR -32[rbp], 0
	jmp	.L21
.L22:
	lea	rcx, -16[rbp]
	lea	rdx, -36[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	g_add
	add	DWORD PTR -32[rbp], 1
.L21:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L22
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR t_top[rip], eax
	mov	DWORD PTR -32[rbp], 1
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L24
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+16]
	mov	rax, QWORD PTR [rdx+rax]
	add	rcx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	tpsort
.L24:
	add	DWORD PTR -32[rbp], 1
.L23:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L25
	mov	DWORD PTR -32[rbp], 0
	jmp	.L26
.L30:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, t_arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, G[rip+16]
	mov	rdx, QWORD PTR [rcx+rdx]
	sub	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jle	.L27
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rdx, rax
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rdx, rax
	lea	rax, G[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, G[rip+24]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rdx, rax
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	rcx, rsi
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, 2000018
	sal	rax, 4
	mov	rdx, rax
	lea	rax, G[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -24[rbp], eax
.L28:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L29
.L27:
	add	DWORD PTR -32[rbp], 1
.L26:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L30
	mov	DWORD PTR -32[rbp], 1
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jle	.L32
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L32
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, G[rip+24]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	add	DWORD PTR -32[rbp], 1
.L31:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L33
	cmp	DWORD PTR -28[rbp], 0
	je	.L34
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L34:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	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	"19315.c"
	.text
	.comm	G,64000440,8
	.align	2
	.global	g_ini
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_ini, %function
g_ini:
	@ 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, .L2
	add	r3, r3, #63963136
	add	r3, r3, #36864
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #432]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	G
	.size	g_ini, .-g_ini
	.align	2
	.global	g_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_add, %function
g_add:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, .L5
	add	r3, r3, #63963136
	add	r3, r3, #36864
	ldr	r2, [r3, #432]
	ldr	r1, .L5
	ldr	r3, .L5+4
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #4]
	ldr	r3, .L5
	add	r3, r3, #63963136
	add	r3, r3, #36864
	ldr	r3, [r3, #432]
	ldr	r2, .L5
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L5+8
	add	r3, r2, r3
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	stm	r3, {r0-r1}
	ldr	r3, .L5
	add	r3, r3, #63963136
	add	r3, r3, #36864
	ldr	r1, [r3, #432]
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #5]
	ldr	r0, .L5
	ldr	r3, .L5+4
	add	r3, r1, r3
	lsl	r3, r3, #4
	add	r3, r0, r3
	str	r2, [r3, #4]
	ldr	r2, .L5
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r1, .L5
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #5
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r1, .L5
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	add	r3, r1, r3
	str	r2, [r3, #8]
	ldr	r3, .L5
	add	r3, r3, #63963136
	add	r3, r3, #36864
	ldr	r2, [r3, #432]
	add	r1, r2, #1
	ldr	r3, .L5
	add	r3, r3, #63963136
	add	r3, r3, #36864
	str	r1, [r3, #432]
	ldr	r1, .L5
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #5]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	G
	.word	2000018
	.word	32000296
	.size	g_add, .-g_add
	.comm	Q,8000080,4
	.align	2
	.global	q_ini
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_ini, %function
q_ini:
	@ 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, .L8
	add	r3, r3, #7995392
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #588]
	ldr	r3, .L8
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r2, [r3, #588]
	ldr	r3, .L8
	add	r3, r3, #7995392
	add	r3, r3, #4096
	str	r2, [r3, #584]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	Q
	.size	q_ini, .-q_ini
	.align	2
	.global	q_psh
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_psh, %function
q_psh:
	@ 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]
	ldr	r2, .L13
	ldr	r3, [fp, #-8]
	add	r3, r3, #999424
	add	r3, r3, #584
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L13
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r2, [r3, #584]
	add	r1, r2, #1
	ldr	r3, .L13
	add	r3, r3, #7995392
	add	r3, r3, #4096
	str	r1, [r3, #584]
	ldr	r1, .L13
	ldr	r3, [fp, #-8]
	str	r3, [r1, r2, lsl #2]
	ldr	r3, .L13
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r3, [r3, #584]
	ldr	r2, .L13+4
	cmp	r3, r2
	bne	.L12
	ldr	r3, .L13
	add	r3, r3, #7995392
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #584]
.L12:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	Q
	.word	1000009
	.size	q_psh, .-q_psh
	.align	2
	.global	q_pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_pop, %function
q_pop:
	@ 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
	ldr	r3, .L18
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r2, [r3, #588]
	add	r1, r2, #1
	ldr	r3, .L18
	add	r3, r3, #7995392
	add	r3, r3, #4096
	str	r1, [r3, #588]
	ldr	r3, .L18
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r2, .L18
	ldr	r3, [fp, #-8]
	add	r3, r3, #999424
	add	r3, r3, #584
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L18
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r3, [r3, #588]
	ldr	r2, .L18+4
	cmp	r3, r2
	bne	.L16
	ldr	r3, .L18
	add	r3, r3, #7995392
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #588]
.L16:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	Q
	.word	1000009
	.size	q_pop, .-q_pop
	.align	2
	.global	q_ept
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_ept, %function
q_ept:
	@ 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, .L22
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r2, [r3, #584]
	ldr	r3, .L22
	add	r3, r3, #7995392
	add	r3, r3, #4096
	ldr	r3, [r3, #588]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	Q
	.size	q_ept, .-q_ept
	.comm	t_vis,4000036,4
	.comm	t_arr,4000036,4
	.comm	t_top,4,4
	.align	2
	.global	tpsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	tpsort, %function
tpsort:
	@ 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]
	ldr	r2, .L30
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L29
	ldr	r2, .L30
	ldr	r3, [fp, #-16]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L30+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #5]
	str	r3, [fp, #-8]
	b	.L27
.L28:
	ldr	r1, .L30+4
	ldr	r2, [fp, #-8]
	ldr	r3, .L30+8
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #4]
	mov	r0, r3
	bl	tpsort
	ldr	r1, .L30+4
	ldr	r2, [fp, #-8]
	ldr	r3, .L30+8
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L30+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L30+12
	str	r3, [r2]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldr	r1, .L30+16
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	b	.L24
.L29:
	nop
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	t_vis
	.word	G
	.word	2000018
	.word	t_top
	.word	t_arr
	.size	tpsort, .-tpsort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%lld%lld\000"
	.align	2
.LC2:
	.ascii	"%d%d%lld\000"
	.align	2
.LC3:
	.ascii	"%d %lld\012\000"
	.align	2
.LC4:
	.ascii	"NULL\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-56]
	sub	r2, fp, #72
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L51+4
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L33
.L34:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r3, #24
	ldr	r2, .L51+8
	add	r1, r3, r2
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r3, #16
	ldr	r2, .L51+8
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L51+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L33:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	ble	.L34
	bl	g_ini
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L35
.L36:
	sub	r3, fp, #44
	sub	r2, fp, #64
	sub	r1, fp, #68
	ldr	r0, .L51+16
	bl	__isoc99_scanf
	ldr	r0, [fp, #-68]
	ldr	r1, [fp, #-64]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	g_add
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L35:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-76]
	ldr	r2, .L51+20
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L37
.L39:
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L38
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r0-r1}
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	stm	r3, {r4-r5}
	ldr	r0, [fp, #-60]
	bl	tpsort
.L38:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L37:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	ble	.L39
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L40
.L44:
	ldr	r2, .L51+24
	ldr	r3, [fp, #-60]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-48]
	ldr	r2, .L51+8
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r0-r1}
	ldr	r2, .L51+8
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	ldr	r2, .L51+8
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	stm	r3, {r8-r9}
	ldr	r2, .L51+8
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	blt	.L41
	ldr	r2, .L51+8
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #5]
	str	r3, [fp, #-52]
	b	.L42
.L43:
	ldr	r1, .L51+8
	ldr	r2, [fp, #-52]
	ldr	r3, .L51+28
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #4]
	ldr	r2, .L51+8
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r6-r7}
	ldr	r2, .L51+8
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L51+32
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, .L51+8
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	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	ip, .L51+8
	ldr	r0, [fp, #-52]
	ldr	r1, .L51+28
	add	r1, r0, r1
	ldr	r1, [ip, r1, lsl #4]
	adds	r0, r6, r2
	str	r0, [fp, #-84]
	adc	r3, r7, r3
	str	r3, [fp, #-80]
	ldr	r2, .L51+8
	lsl	r3, r1, #5
	add	r3, r2, r3
	add	r3, r3, #24
	sub	r2, fp, #84
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
	ldr	r1, .L51+8
	ldr	r2, [fp, #-52]
	ldr	r3, .L51+28
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-52]
.L42:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L43
.L41:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L40:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L44
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L45
.L47:
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	blt	.L46
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L46
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r2, .L51+8
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #5
	add	r3, r2, r3
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-60]
	ldr	r0, .L51+36
	bl	printf
.L46:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L45:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	ble	.L47
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L48
	ldr	r0, .L51+40
	bl	puts
.L48:
	mov	r3, #0
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC5
	.word	.LC0
	.word	G
	.word	.LC1
	.word	.LC2
	.word	t_top
	.word	t_arr
	.word	2000018
	.word	32000296
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
