	.file	"849755.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Couldn't find the largest factor with %lu primes.\n"
.LC1:
	.string	"factors: [ "
.LC2:
	.string	"%lu "
.LC3:
	.string	"]"
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	movabs	rax, 600851475143
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 2000
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	r8, rax
	mov	r9d, 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -32[rbp], rax
	lea	rcx, -64[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	find_factors
	mov	BYTE PTR -69[rbp], al
	movzx	eax, BYTE PTR -69[rbp]
	xor	eax, 1
	test	al, al
	je	.L5
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -68[rbp], 1
.L7:
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -64[rbp]
	cmp	rdx, rax
	jb	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L6:
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	find_factors, @function
find_factors:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], 2
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 4
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 3
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 9
	mov	DWORD PTR -52[rbp], 2
	mov	DWORD PTR -48[rbp], 5
	jmp	.L12
.L26:
	mov	eax, DWORD PTR -48[rbp]
	test	rax, rax
	js	.L13
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movq	rax, xmm2
	jmp	.L14
.L13:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L14:
	movq	xmm0, rax
	call	sqrt@PLT
	movsd	xmm1, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC5[rip]
	jnb	.L15
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	jmp	.L16
.L15:
	movsd	xmm1, QWORD PTR .LC5[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -16[rbp], rax
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	BYTE PTR -53[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	jmp	.L17
.L23:
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	ja	.L27
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -40[rbp], rax
.L20:
	mov	eax, DWORD PTR -48[rbp]
	cmp	QWORD PTR -40[rbp], rax
	jb	.L21
	mov	eax, DWORD PTR -48[rbp]
	cmp	QWORD PTR -40[rbp], rax
	jne	.L22
	mov	BYTE PTR -53[rbp], 0
	jmp	.L19
.L22:
	add	DWORD PTR -44[rbp], 1
.L17:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jb	.L23
	jmp	.L19
.L27:
	nop
.L19:
	cmp	BYTE PTR -53[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	edx, edx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -52[rbp], 1
	mov	ecx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L24
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 0
	div	rsi
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR [rax], rdx
	cmp	QWORD PTR -72[rbp], 1
	jne	.L24
	mov	eax, 1
	jmp	.L25
.L24:
	add	DWORD PTR -48[rbp], 1
.L12:
	mov	eax, DWORD PTR -52[rbp]
	cmp	QWORD PTR -80[rbp], rax
	ja	.L26
	mov	eax, 0
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find_factors, .-find_factors
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.align 8
.LC5:
	.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	"849755.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Couldn't find the largest factor with %lu primes.\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"factors: [ \000"
	.align	2
.LC2:
	.ascii	"%lu \000"
	.align	2
.LC3:
	.ascii	"]\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	ldr	r3, .L8+8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	adr	r3, .L8
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #2000
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-28]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	r3, [fp, #-28]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-48]
	sub	r3, fp, #44
	str	r3, [sp, #4]
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	find_factors
	mov	r3, r0
	strb	r3, [fp, #-57]
	ldrb	r3, [fp, #-57]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+12
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L8+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L4
.L5:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+20
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L4:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L5
	ldr	r0, .L8+24
	bl	puts
.L3:
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L8+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	3
.L8:
	.word	-443946297
	.word	139
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.global	__aeabi_ui2d
	.global	__aeabi_dadd
	.global	__aeabi_d2ulz
	.global	__aeabi_uldivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_factors, %function
find_factors:
	@ args = 8, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r1, [fp, #8]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	mov	r2, #2
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-48]
	mov	r2, #4
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	add	r1, r3, #8
	mov	r2, #3
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-48]
	add	r1, r3, #8
	mov	r2, #9
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r3, #2
	str	r3, [fp, #-64]
	mov	r3, #5
	str	r3, [fp, #-60]
	b	.L11
.L21:
	ldr	r0, [fp, #-60]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, #0
	ldr	r3, .L23
	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, #-36]
	str	r3, [fp, #-32]
	mov	r3, #1
	strb	r3, [fp, #-65]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L12
.L18:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L22
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L15
.L16:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
.L15:
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L16
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L17
	mov	r3, #0
	strb	r3, [fp, #-65]
	b	.L14
.L17:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L12:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bcc	.L18
	b	.L14
.L22:
	nop
.L14:
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-52]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-64]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-48]
	add	r1, r1, r2
	mov	r2, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L19
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #8]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #4]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #8]
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, [fp, #8]
	stm	r3, {r4-r5}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bne	.L19
	mov	r3, #1
	b	.L20
.L19:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L11:
	ldr	r3, [fp, #-64]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L21
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L24:
	.align	2
.L23:
	.word	1072693248
	.size	find_factors, .-find_factors
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
