	.file	"61990.c"
	.intel_syntax noprefix
	.text
	.globl	fact
	.bss
	.align 32
	.type	fact, @object
	.size	fact, 400040
fact:
	.zero	400040
	.globl	inv
	.align 32
	.type	inv, @object
	.size	inv, 400040
inv:
	.zero	400040
	.text
	.globl	expo
	.type	expo, @function
expo:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	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	DWORD PTR -4[rbp], eax
.L3:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	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	DWORD PTR -20[rbp], eax
	sar	DWORD PTR -24[rbp]
.L2:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	expo, .-expo
	.globl	Generate
	.type	Generate, @function
Generate:
.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	DWORD PTR fact[rip], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, fact[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	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	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, fact[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 100009
	jle	.L8
	mov	eax, DWORD PTR fact[rip+400036]
	mov	esi, 1000000005
	mov	edi, eax
	call	expo
	mov	DWORD PTR inv[rip+400036], eax
	mov	DWORD PTR -4[rbp], 100008
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, inv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	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	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, inv[rip]
	mov	DWORD PTR [rdx+rax], ecx
	sub	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Generate, .-Generate
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	Generate
	mov	eax, DWORD PTR inv[rip+140]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fact[rip+140]
	mov	esi, 1000000005
	mov	edi, eax
	call	expo
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"61990.c"
	.text
	.comm	fact,400040,4
	.comm	inv,400040,4
	.global	__aeabi_ldivmod
	.align	2
	.global	expo
	.syntax unified
	.arm
	.fpu softvfp
	.type	expo, %function
expo:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-24]
	mov	r2, r3
	asr	r3, r2, #31
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	adr	r3, .L6
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	mov	r3, r2
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-24]
	mov	r2, r3
	asr	r3, r2, #31
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	adr	r3, .L6
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	mov	r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	asr	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	.align	3
.L6:
	.word	1000000007
	.word	0
	.size	expo, .-expo
	.align	2
	.global	Generate
	.syntax unified
	.arm
	.fpu softvfp
	.type	Generate, %function
Generate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L13+8
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L13+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	asr	r3, r2, #31
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	adr	r3, .L13
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	mov	r1, r2
	ldr	r2, .L13+8
	ldr	r3, [fp, #-16]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	ldr	r2, .L13+12
	cmp	r3, r2
	ble	.L10
	ldr	r3, .L13+8
	add	r3, r3, #397312
	ldr	r3, [r3, #2724]
	ldr	r1, .L13+16
	mov	r0, r3
	bl	expo
	mov	r3, r0
	ldr	r2, .L13+20
	add	r2, r2, #397312
	str	r3, [r2, #2724]
	ldr	r3, .L13+24
	str	r3, [fp, #-16]
	b	.L11
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L13+20
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	adr	r3, .L13
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	mov	r1, r2
	ldr	r2, .L13+20
	ldr	r3, [fp, #-16]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L12
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	3
.L13:
	.word	1000000007
	.word	0
	.word	fact
	.word	100009
	.word	1000000005
	.word	inv
	.word	100008
	.size	Generate, .-Generate
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	Generate
	ldr	r3, .L17
	ldr	r3, [r3, #140]
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r3, .L17+8
	ldr	r3, [r3, #140]
	ldr	r1, .L17+12
	mov	r0, r3
	bl	expo
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	inv
	.word	.LC0
	.word	fact
	.word	1000000005
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
