	.file	"181392434.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"\347\254\254%8ld\345\200\213\350\263\252\346\225\270\346\230\257%10ld\357\274\214\351\233\242\345\256\203\346\234\200\350\277\221\344\270\224\344\270\215\350\203\275\350\242\2534\346\225\264\351\231\244\347\232\204\345\201\266\346\225\270\346\230\257%10ld\357\274\214\344\274\260\347\256\227\347\232\204Pi/2=%.8lf\357\274\214\344\274\260\347\256\227\347\232\204Pi\345\200\274=%.11lf\n"
.LC3:
	.string	"\nCPU time = %.3lf sec.\n\n"
.LC4:
	.string	"pause"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	call	clock@PLT
	mov	QWORD PTR -40[rbp], rax
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	mov	QWORD PTR -56[rbp], 2
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	prime
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	find_k
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -48[rbp]
	movapd	xmm2, xmm0
	addsd	xmm2, xmm0
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	js	.L3
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L4
.L3:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L4:
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	js	.L5
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	jmp	.L6
.L5:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rdx
	addsd	xmm1, xmm1
.L6:
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -48[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	mov	rsi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	movapd	xmm1, xmm2
	movq	xmm0, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 2
	call	printf@PLT
	add	QWORD PTR -56[rbp], 1
.L2:
	cmp	QWORD PTR -56[rbp], 10000
	jbe	.L7
	call	clock@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -40[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	system@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	prime
	.type	prime, @function
prime:
.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	QWORD PTR -24[rbp], rdi
	jmp	.L10
.L19:
	mov	rax, QWORD PTR j.1[rip]
	add	rax, 1
	mov	QWORD PTR j.1[rip], rax
	mov	QWORD PTR -8[rbp], 1
	jmp	.L11
.L18:
	mov	rax, QWORD PTR j.1[rip]
	mov	edx, 0
	div	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L12
	cmp	QWORD PTR -8[rbp], 1
	jne	.L10
.L12:
	mov	rax, QWORD PTR j.1[rip]
	cmp	rax, 1
	je	.L13
	mov	rax, QWORD PTR j.1[rip]
	test	rax, rax
	js	.L14
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movq	rax, xmm2
	jmp	.L15
.L14:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L15:
	movsd	xmm0, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jne	.L13
	mov	rax, QWORD PTR cont.0[rip]
	add	rax, 1
	mov	QWORD PTR cont.0[rip], rax
.L13:
	add	QWORD PTR -8[rbp], 1
.L11:
	mov	rax, QWORD PTR j.1[rip]
	test	rax, rax
	js	.L16
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, rax
	movq	rax, xmm3
	jmp	.L17
.L16:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L17:
	movsd	xmm0, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L18
.L10:
	mov	rax, QWORD PTR cont.0[rip]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L19
	mov	rax, QWORD PTR j.1[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	prime, .-prime
	.globl	find_k
	.type	find_k, @function
find_k:
.LFB8:
	.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	rax, QWORD PTR -24[rbp]
	sub	rax, 2
	shr	rax, 2
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, ecx
	sub	eax, edx
	sub	eax, 2
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	lea	ecx, 0[0+rax*4]
	mov	eax, esi
	sub	eax, ecx
	sub	eax, 2
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L22
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, 2
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	sal	rax, 2
	add	rax, 2
.L23:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_k, .-find_k
	.local	j.1
	.comm	j.1,8,8
	.local	cont.0
	.comm	cont.0,8,8
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1093567616
	.align 8
.LC5:
	.long	0
	.long	1071644672
	.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	"181392434.c"
	.text
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\347\254\254%8ld\345\200\213\350\263\252\346\225\270"
	.ascii	"\346\230\257%10ld\357\274\214\351\233\242\345\256\203"
	.ascii	"\346\234\200\350\277\221\344\270\224\344\270\215\350"
	.ascii	"\203\275\350\242\2534\346\225\264\351\231\244\347\232"
	.ascii	"\204\345\201\266\346\225\270\346\230\257%10ld\357\274"
	.ascii	"\214\344\274\260\347\256\227\347\232\204Pi/2=%.8lf\357"
	.ascii	"\274\214\344\274\260\347\256\227\347\232\204Pi\345\200"
	.ascii	"\274=%.11lf\012\000"
	.global	__aeabi_i2d
	.align	2
.LC1:
	.ascii	"\012CPU time = %.3lf sec.\012\012\000"
	.align	2
.LC2:
	.ascii	"pause\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	bl	clock
	str	r0, [fp, #-44]
	mov	r2, #0
	ldr	r3, .L5
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #2
	str	r3, [fp, #-48]
	b	.L2
.L3:
	ldr	r0, [fp, #-48]
	bl	prime
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	find_k
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-32]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-48]
	ldr	r0, .L5+4
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r3, [fp, #-48]
	ldr	r2, .L5+8
	cmp	r3, r2
	bls	.L3
	bl	clock
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L5+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L5+16
	bl	printf
	ldr	r0, .L5+20
	bl	system
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	.align	2
.L5:
	.word	1072693248
	.word	.LC0
	.word	10000
	.word	1093567616
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.global	__aeabi_uidivmod
	.global	__aeabi_d2iz
	.align	2
	.global	prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime, %function
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]
	b	.L8
.L13:
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L9
.L12:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L8
.L10:
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L11
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L15+4
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L11
	ldr	r3, .L15+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+8
	str	r3, [r2]
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L15+4
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bls	.L12
.L8:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L13
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	j.6291
	.word	1071644672
	.word	cont.6292
	.size	prime, .-prime
	.align	2
	.global	find_k
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_k, %function
find_k:
	@ 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, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	lsr	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #2
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	sub	r3, r1, r3
	sub	r3, r3, #2
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L18
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r3, #2
	b	.L19
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r3, #2
.L19:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	find_k, .-find_k
	.local	j.6291
	.comm	j.6291,4,4
	.local	cont.6292
	.comm	cont.6292,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
