	.file	"486701.c"
	.intel_syntax noprefix
	.text
	.globl	inv_mod
	.type	inv_mod, @function
inv_mod:
.LFB6:
	.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 -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -16[rbp], 0
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jne	.L2
	mov	eax, DWORD PTR -16[rbp]
	cdq
	idiv	DWORD PTR -40[rbp]
	mov	DWORD PTR -16[rbp], edx
	cmp	DWORD PTR -16[rbp], 0
	jns	.L3
	mov	eax, DWORD PTR -40[rbp]
	add	DWORD PTR -16[rbp], eax
.L3:
	mov	eax, DWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	inv_mod, .-inv_mod
	.globl	pow_mod
	.type	pow_mod, @function
pow_mod:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
.L9:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L6
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -28[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
.L6:
	sar	DWORD PTR -24[rbp]
	cmp	DWORD PTR -24[rbp], 0
	je	.L12
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -28[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	jmp	.L9
.L12:
	nop
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pow_mod, .-pow_mod
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB8:
	.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]
	and	eax, 1
	test	eax, eax
	jne	.L14
	mov	eax, 0
	jmp	.L15
.L14:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -20[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 3
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L17
	mov	eax, 0
	jmp	.L15
.L17:
	add	DWORD PTR -8[rbp], 2
.L16:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L18
	mov	eax, 1
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	is_prime, .-is_prime
	.globl	next_prime
	.type	next_prime, @function
next_prime:
.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, 16
	mov	DWORD PTR -4[rbp], edi
.L20:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_prime
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	next_prime, .-next_prime
	.section	.rodata
	.align 8
.LC0:
	.string	"This program computes the n'th octal digit of \\pi\nusage: pi n, where n is the digit you want."
.LC6:
	.string	"%o\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	cmp	DWORD PTR -84[rbp], 1
	jle	.L23
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jg	.L24
.L23:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 512
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -76[rbp], 3
	jmp	.L25
.L38:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, eax
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movq	rax, xmm3
	movq	xmm0, rax
	call	log@PLT
	movq	rbx, xmm0
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, DWORD PTR -76[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	call	log@PLT
	movq	xmm1, rbx
	divsd	xmm1, xmm0
	cvttsd2si	eax, xmm1
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -40[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -80[rbp]
	imul	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -80[rbp], eax
	add	DWORD PTR -40[rbp], 1
.L26:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L27
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], 1
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 1
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -64[rbp], 1
	jmp	.L28
.L37:
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L29
.L30:
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	mov	DWORD PTR -52[rbp], eax
	sub	DWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L30
	mov	DWORD PTR -60[rbp], 0
.L29:
	add	DWORD PTR -60[rbp], 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, eax
	sub	eax, 1
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L31
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jne	.L32
.L33:
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	mov	DWORD PTR -52[rbp], eax
	add	DWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	DWORD PTR -76[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L33
.L32:
	mov	eax, DWORD PTR -76[rbp]
	sub	DWORD PTR -56[rbp], eax
.L31:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -68[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -68[rbp], eax
	add	DWORD PTR -56[rbp], 2
	cmp	DWORD PTR -48[rbp], 0
	jle	.L34
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, edx
	mov	edi, eax
	call	inv_mod
	mov	DWORD PTR -52[rbp], eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -52[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -72[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -52[rbp], eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -52[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -64[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -40[rbp], eax
	jmp	.L35
.L36:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -52[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -52[rbp], eax
	add	DWORD PTR -40[rbp], 1
.L35:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L36
	mov	eax, DWORD PTR -52[rbp]
	add	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L34
	mov	eax, DWORD PTR -80[rbp]
	sub	DWORD PTR -44[rbp], eax
.L34:
	add	DWORD PTR -64[rbp], 1
.L28:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L37
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, eax
	mov	esi, ecx
	mov	edi, 8
	call	pow_mod
	mov	DWORD PTR -52[rbp], eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -44[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -44[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -44[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -80[rbp]
	divsd	xmm0, xmm1
	addsd	xmm0, QWORD PTR -24[rbp]
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	next_prime
	mov	DWORD PTR -76[rbp], eax
.L25:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, eax
	cmp	DWORD PTR -76[rbp], eax
	jle	.L38
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	1060875123
	.long	1073783474
	.align 8
.LC2:
	.long	-17155601
	.long	1072049730
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.align 8
.LC5:
	.long	0
	.long	1097859072
	.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	"486701.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.global	inv_mod
	.syntax unified
	.arm
	.fpu softvfp
	.type	inv_mod, %function
inv_mod:
	@ args = 0, 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
.L2:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L3
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	inv_mod, .-inv_mod
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.global	pow_mod
	.syntax unified
	.arm
	.fpu softvfp
	.type	pow_mod, %function
pow_mod:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
.L6:
	ldr	r3, [fp, #-28]
	asr	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L9
.L12:
	nop
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	pow_mod, .-pow_mod
	.align	2
	.global	is_prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_prime, %function
is_prime:
	@ 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	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #3
	str	r3, [fp, #-12]
	b	.L16
.L18:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
	b	.L15
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-12]
.L16:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L18
	mov	r3, #1
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_prime, .-is_prime
	.align	2
	.global	next_prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	next_prime, %function
next_prime:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	next_prime, .-next_prime
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This program computes the n'th octal digit of \\pi\012"
	.ascii	"usage: pi n, where n is the digit you want.\000"
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"%o\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	ble	.L23
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L24
.L23:
	ldr	r0, .L40
	bl	puts
	mov	r0, #1
	bl	exit
.L24:
	ldr	r3, [fp, #-32]
	add	r3, r3, #512
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L40+4
	ldr	r3, .L40+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L40+12
	ldr	r3, .L40+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #3
	str	r3, [fp, #-72]
	b	.L25
.L38:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L26
.L27:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	mul	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L26:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L27
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L28
.L37:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L29
.L30:
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L30
	mov	r3, #0
	str	r3, [fp, #-56]
.L29:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-68]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L31
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bne	.L32
.L33:
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L33
.L32:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L31:
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-52]
	add	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L34
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-64]
	bl	inv_mod
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-68]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-36]
	b	.L35
.L36:
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L35:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L36
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L34
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
.L34:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L28:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	mov	r1, r3
	mov	r0, #8
	bl	pow_mod
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L40+20
	bl	fmod
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r0, [fp, #-72]
	bl	next_prime
	str	r0, [fp, #-72]
.L25:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	ble	.L38
	mov	r2, #0
	ldr	r3, .L40+24
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L40+28
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC0
	.word	1060875123
	.word	1073783474
	.word	-17155601
	.word	1072049730
	.word	1072693248
	.word	1097859072
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
