	.file	"873018.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC2:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movabs	rax, 600851475143
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	js	.L2
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movq	rax, xmm2
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L3:
	movq	xmm0, rax
	call	sqrt@PLT
	movsd	xmm1, QWORD PTR .LC0[rip]
	addsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC1[rip]
	jnb	.L4
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L4:
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -8[rbp], rax
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -32[rbp], 3
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	isPrime
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	QWORD PTR -32[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	add	QWORD PTR -32[rbp], 2
.L6:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L8
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	isPrime
	.type	isPrime, @function
isPrime:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	js	.L11
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movq	rax, xmm2
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L12:
	movq	xmm0, rax
	call	sqrt@PLT
	comisd	xmm0, QWORD PTR .LC1[rip]
	jnb	.L13
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	jmp	.L14
.L13:
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -8[rbp], rax
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L16
	mov	eax, 0
	jmp	.L17
.L16:
	sub	QWORD PTR -8[rbp], 1
.L15:
	cmp	QWORD PTR -8[rbp], 1
	ja	.L18
	mov	eax, 1
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isPrime, .-isPrime
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1138753536
	.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	"873018.c"
	.text
	.global	__aeabi_ul2d
	.global	__aeabi_dadd
	.global	__aeabi_d2ulz
	.global	__aeabi_uldivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%llu\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	adr	r3, .L6
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, #0
	ldr	r3, .L6+8
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2ulz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #3
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L2
.L4:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	isPrime
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L6+12
	bl	printf
.L3:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r2, #2
	adc	r5, r3, #0
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
.L2:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L4
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	.align	3
.L6:
	.word	-443946297
	.word	139
	.word	1072693248
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	isPrime
	.syntax unified
	.arm
	.fpu softvfp
	.type	isPrime, %function
isPrime:
	@ 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, #-28]
	str	r1, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	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_d2ulz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L9
.L12:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L10
	mov	r3, #0
	b	.L11
.L10:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
.L9:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bhi	.L12
	mov	r3, #1
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	isPrime, .-isPrime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
