	.file	"314840.c"
	.intel_syntax noprefix
	.text
	.globl	gcd_ll
	.type	gcd_ll, @function
gcd_ll:
.LFB0:
	.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	QWORD PTR -16[rbp], rsi
.L5:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	div	QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	div	QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rdx
	jmp	.L5
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd_ll, .-gcd_ll
	.globl	powmod_ll
	.type	powmod_ll, @function
powmod_ll:
.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	QWORD PTR -40[rbp], rdx
	cmp	DWORD PTR -28[rbp], 0
	jne	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L9
.L10:
	shr	DWORD PTR -16[rbp]
	add	DWORD PTR -12[rbp], 1
.L9:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	sub	DWORD PTR -12[rbp], 2
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax
	mov	edx, 0
	div	QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rdx
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -28[rbp]
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rdx
.L12:
	sub	DWORD PTR -12[rbp], 1
.L11:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L13
	mov	rax, QWORD PTR -8[rbp]
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	powmod_ll, .-powmod_ll
	.globl	factab
	.bss
	.align 32
	.type	factab, @object
	.size	factab, 80
factab:
	.zero	80
	.text
	.globl	facts
	.type	facts, @function
facts:
.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, 104
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	DWORD PTR -100[rbp], ecx
	lea	rax, factab[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -68[rbp], 1
	jmp	.L15
.L20:
	mov	rdx, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	powmod_ll
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	powmod_ll
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	powmod_ll
	mov	rdx, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jbe	.L16
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
.L17:
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jne	.L18
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	add	DWORD PTR -64[rbp], eax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gcd_ll
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 1
	je	.L18
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -56[rbp], rdx
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	div	QWORD PTR -8[rbp]
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 1
	je	.L21
.L18:
	add	DWORD PTR -68[rbp], 1
.L15:
	cmp	DWORD PTR -68[rbp], 9999
	jle	.L20
	jmp	.L14
.L21:
	nop
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	facts, .-facts
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], 27
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], -1
	mov	DWORD PTR -12[rbp], 3
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	facts
	mov	rax, QWORD PTR factab[rip]
	cmp	rax, 7
	jne	.L23
	mov	rax, QWORD PTR factab[rip+8]
	cmp	rax, 73
	jne	.L23
	mov	rax, QWORD PTR factab[rip+16]
	cmp	rax, 262657
	je	.L24
.L23:
	call	abort@PLT
.L24:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE3:
	.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	"314840.c"
	.text
	.global	__aeabi_uldivmod
	.align	2
	.global	gcd_ll
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcd_ll, %function
gcd_ll:
	@ 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, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
.L5:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L2
	ldr	r3, [fp, #-12]
	b	.L3
.L2:
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L4
	ldr	r3, [fp, #-20]
	b	.L3
.L4:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L5
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gcd_ll, .-gcd_ll
	.align	2
	.global	powmod_ll
	.syntax unified
	.arm
	.fpu softvfp
	.type	powmod_ll, %function
powmod_ll:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L7
	mov	r2, #1
	mov	r3, #0
	b	.L8
.L7:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L11
.L13:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	umull	r0, r1, r3, r3
	add	r3, r2, r1
	mov	r1, r3
	ldmib	fp, {r2-r3}
	bl	__aeabi_uldivmod
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	ip, [fp, #-12]
	ldr	r2, [fp, #-28]
	umull	r0, r1, ip, r2
	add	r3, r3, r1
	mov	r1, r3
	ldmib	fp, {r2-r3}
	bl	__aeabi_uldivmod
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L13
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
.L8:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	powmod_ll, .-powmod_ll
	.comm	factab,40,4
	.align	2
	.global	facts
	.syntax unified
	.arm
	.fpu softvfp
	.type	facts, %function
facts:
	@ args = 4, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #88
	str	r0, [fp, #-92]
	str	r1, [fp, #-88]
	str	r2, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, .L22
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-96]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-100]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-100]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L15
.L20:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #4]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	powmod_ll
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, r0
	adc	r7, r3, r1
	str	r6, [fp, #-52]
	str	r7, [fp, #-48]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #4]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	powmod_ll
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r8, r2, r0
	adc	r9, r3, r1
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #4]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	powmod_ll
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-108]
	adc	r3, r3, r1
	str	r3, [fp, #-104]
	sub	r4, fp, #108
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L16
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-64]
	b	.L17
.L16:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	str	r3, [fp, #-64]
.L17:
	ldr	r3, [fp, #-76]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #-64]
	mov	r2, r3
	mov	r3, #0
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_uldivmod
	mov	r3, r2
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-76]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	bl	gcd_ll
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	beq	.L18
	ldr	r3, [fp, #-80]
	add	r2, r3, #4
	str	r2, [fp, #-80]
	ldr	r2, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	beq	.L21
.L18:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L15:
	ldr	r3, [fp, #-72]
	ldr	r2, .L22+4
	cmp	r3, r2
	ble	.L20
	b	.L14
.L21:
	nop
.L14:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L23:
	.align	2
.L22:
	.word	factab
	.word	9999
	.size	facts, .-facts
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	mov	r1, #27
	str	r1, [fp, #-40]
	mov	r0, #1
	mov	r1, #0
	ldr	ip, [fp, #-40]
	sub	r6, ip, #32
	rsb	lr, ip, #32
	lsl	r3, r1, ip
	orr	r3, r3, r0, lsl r6
	orr	r3, r3, r0, lsr lr
	lsl	r2, r0, ip
	subs	r4, r2, #1
	sbc	r5, r3, #0
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	facts
	ldr	r3, .L27
	ldr	r3, [r3]
	cmp	r3, #7
	bne	.L25
	ldr	r3, .L27
	ldr	r3, [r3, #4]
	cmp	r3, #73
	bne	.L25
	ldr	r3, .L27
	ldr	r3, [r3, #8]
	ldr	r2, .L27+4
	cmp	r3, r2
	beq	.L26
.L25:
	bl	abort
.L26:
	mov	r0, #0
	bl	exit
.L28:
	.align	2
.L27:
	.word	factab
	.word	262657
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
