Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#define N 100010
typedef long long ll;
char c[N];
ll p[N], pc;
int main(void)
{
    int i, j, m, a, b;
    for(i=2;i<N;++i) if (!c[i]) {
        p[pc++]=i;
        for(j=i+i;j<N;j+=i) c[j]=1;
    }

    while (scanf("%d%d%d", &m, &a, &b), m) {
        ll s=0, h, w;
        for(i=0;i<pc&&p[i]*2<=m;++i) {
            for(j=i;j<pc&&p[i]*p[j]<=m;++j) {
                if (p[i]*b<p[j]*a) continue;
                if (s<p[i]*p[j]) {
                    s=p[i]*p[j];
                    h=p[i], w=p[j];
                }
                else if (s==p[i]*p[j] && p[i]*w<p[j]*h) {
                    h=p[i], w=p[j];
                }
            }
        }
        printf("%lld %lld\n", h, w);
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 100010
c:
	.zero	100010
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800080
p:
	.zero	800080
	.globl	pc
	.align 8
	.type	pc, @object
	.size	pc, 8
pc:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lld %lld\n"
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, -40(%rbp)
	jmp	.L2
.L6:
	movl	-40(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L3
	movq	pc(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, pc(%rip)
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	%rdx, (%rcx,%rax)
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -36(%rbp)
	jmp	.L4
.L5:
	movl	-36(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-40(%rbp), %eax
	addl	%eax, -36(%rbp)
.L4:
	cmpl	$100009, -36(%rbp)
	jle	.L5
.L3:
	addl	$1, -40(%rbp)
.L2:
	cmpl	$100009, -40(%rbp)
	jle	.L6
	jmp	.L7
.L17:
	movq	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L8
.L16:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L14:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	%rax, %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rcx
	movl	-48(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jl	.L20
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L12
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L11
.L20:
	nop
.L11:
	addl	$1, -36(%rbp)
.L9:
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	pc(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L13
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rax, %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jle	.L14
.L13:
	addl	$1, -40(%rbp)
.L8:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	pc(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L15
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rax,%rax), %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jle	.L16
.L15:
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld\n"
.LC1:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$4, %esi
	movl	$2, %edx
	xorl	%edi, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	c(%rip), %rcx
	leaq	p(%rip), %r8
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	movq	pc(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	addq	$2, %rsi
	cmpq	$100010, %rdx
	je	.L30
.L4:
	cmpb	$0, (%rcx,%rdx)
	jne	.L2
	movq	%rdx, (%r8,%rax,8)
	leaq	1(%rax), %rdi
	cmpq	$100009, %rsi
	ja	.L15
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movb	$1, (%rcx,%rax)
	addq	%rdx, %rax
	cmpl	$100009, %eax
	jle	.L3
.L15:
	movq	%rdi, %rax
	movl	$1, %edi
	jmp	.L2
.L30:
	testb	%dil, %dil
	je	.L5
	movq	%rax, pc(%rip)
.L5:
	leaq	52(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r10
	testl	%r10d, %r10d
	je	.L12
	movq	pc(%rip), %r14
	testq	%r14, %r14
	jle	.L10
	movslq	48(%rsp), %r13
	movslq	52(%rsp), %r15
	movq	%r14, %r8
	xorl	%r12d, %r12d
	leaq	p(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	(%r9), %rdi
	leaq	(%rdi,%rdi), %rax
	cmpq	%r10, %rax
	jg	.L10
	movq	%r14, %rax
	subq	%r8, %rax
	cmpq	%rax, %r14
	jle	.L8
	movq	%r15, %r11
	xorl	%eax, %eax
	imulq	%rdi, %r11
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	jne	.L7
	movq	%rdi, %rsi
	movq	%rdx, %rcx
	imulq	%rbp, %rsi
	imulq	%rbx, %rcx
	cmpq	%rcx, %rsi
	cmovl	%rdx, %rbp
	cmovl	%rdi, %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%r8, %rax
	je	.L8
.L11:
	movq	(%r9,%rax,8), %rdx
	movq	%rdx, %rcx
	imulq	%rdi, %rcx
	cmpq	%r10, %rcx
	jg	.L8
	movq	%r13, %rsi
	imulq	%rdx, %rsi
	cmpq	%rsi, %r11
	jl	.L7
	cmpq	%r12, %rcx
	jle	.L31
	addq	$1, %rax
	movq	%rdx, %rbp
	movq	%rdi, %rbx
	movq	%rcx, %r12
	cmpq	%r8, %rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$8, %r9
	subq	$1, %r8
	jne	.L13
.L10:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L6
.L12:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	pc
	.bss
	.align 8
	.type	pc, @object
	.size	pc, 8
pc:
	.zero	8
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800080
p:
	.zero	800080
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 100010
c:
	.zero	100010
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld\n"
.LC1:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$4, %esi
	movl	$2, %edx
	xorl	%edi, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	c(%rip), %rcx
	leaq	p(%rip), %r8
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	movq	pc(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	addq	$2, %rsi
	cmpq	$100010, %rdx
	je	.L30
.L4:
	cmpb	$0, (%rcx,%rdx)
	jne	.L2
	movq	%rdx, (%r8,%rax,8)
	leaq	1(%rax), %rdi
	cmpq	$100009, %rsi
	ja	.L15
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movb	$1, (%rcx,%rax)
	addq	%rdx, %rax
	cmpl	$100009, %eax
	jle	.L3
.L15:
	movq	%rdi, %rax
	movl	$1, %edi
	jmp	.L2
.L30:
	testb	%dil, %dil
	je	.L5
	movq	%rax, pc(%rip)
.L5:
	leaq	52(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r10
	testl	%r10d, %r10d
	je	.L12
	movq	pc(%rip), %r14
	testq	%r14, %r14
	jle	.L10
	movslq	48(%rsp), %r13
	movslq	52(%rsp), %r15
	movq	%r14, %r8
	xorl	%r12d, %r12d
	leaq	p(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	(%r9), %rdi
	leaq	(%rdi,%rdi), %rax
	cmpq	%r10, %rax
	jg	.L10
	movq	%r14, %rax
	subq	%r8, %rax
	cmpq	%rax, %r14
	jle	.L8
	movq	%r15, %r11
	xorl	%eax, %eax
	imulq	%rdi, %r11
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	jne	.L7
	movq	%rdi, %rsi
	movq	%rdx, %rcx
	imulq	%rbp, %rsi
	imulq	%rbx, %rcx
	cmpq	%rcx, %rsi
	cmovl	%rdx, %rbp
	cmovl	%rdi, %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%r8, %rax
	je	.L8
.L11:
	movq	(%r9,%rax,8), %rdx
	movq	%rdx, %rcx
	imulq	%rdi, %rcx
	cmpq	%r10, %rcx
	jg	.L8
	movq	%r13, %rsi
	imulq	%rdx, %rsi
	cmpq	%rsi, %r11
	jl	.L7
	cmpq	%r12, %rcx
	jle	.L31
	addq	$1, %rax
	movq	%rdx, %rbp
	movq	%rdi, %rbx
	movq	%rcx, %r12
	cmpq	%r8, %rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$8, %r9
	subq	$1, %r8
	jne	.L13
.L10:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L6
.L12:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	pc
	.bss
	.align 8
	.type	pc, @object
	.size	pc, 8
pc:
	.zero	8
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800080
p:
	.zero	800080
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 100010
c:
	.zero	100010
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <stdio.h>
#define N 100010
typedef long long ll;
char c[N];
ll p[N], pc;
int main(void)
{
    int i, j, m, a, b;
    for(i=2;i<N;++i) if (!c[i]) {
        p[pc++]=i;
        for(j=i+i;j<N;j+=i) c[j]=1;
    }

    while (scanf("%d%d%d", &m, &a, &b), m) {
        ll s=0, h, w;
        for(i=0;i<pc&&p[i]*2<=m;++i) {
            for(j=i;j<pc&&p[i]*p[j]<=m;++j) {
                if (p[i]*b<p[j]*a) continue;
                if (s<p[i]*p[j]) {
                    s=p[i]*p[j];
                    h=p[i], w=p[j];
                }
                else if (s==p[i]*p[j] && p[i]*w<p[j]*h) {
                    h=p[i], w=p[j];
                }
            }
        }
        printf("%lld %lld\n", h, w);
    }

    return 0;
}
5 1 2
99999 999 999
1680 5 16
1970 1 2
2002 4 11
0 0 0
 5 1 2
99999 999 999
2566 5 16
1970 1 1
2002 4 11
0 0 0
 5 1 2
99999 999 999
1680 5 16
973 1 2
2002 4 11
0 0 0
 5 1 2
99999 999 999
1680 5 16
1970 1 1
2886 4 11
0 0 0
 5 1 2
90868 999 999
1680 5 16
1970 1 2
2002 4 11
0 0 0
 5 1 2
99999 999 999
107 5 16
973 1 2
2002 4 11
0 0 0
 5 1 4
99999 999 999
1680 5 16
973 1 2
3406 4 11
0 0 0
 5 1 2
99999 999 999
107 5 16
1284 1 2
2002 4 11
0 0 0
 5 1 2
10985 999 999
2566 8 16
1970 1 1
2002 3 11
0 0 0
 5 1 2
99999 999 999
1680 5 16
973 1 2
2365 4 11
0 0 0

2 2
313 313
23 73
37 53
37 53
 2 2
313 313
43 59
43 43
37 53
 2 2
313 313
23 73
31 31
37 53
 2 2
313 313
23 73
43 43
43 67
 2 2
293 293
23 73
37 53
37 53
 2 2
313 313
7 13
31 31
37 53
 2 2
313 313
23 73
31 31
41 83
 2 2
313 313
7 13
31 41
37 53
 2 2
103 103
43 59
43 43
37 53
 2 2
313 313
23 73
31 31
29 79

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#define N 100010
typedef long long ll;
char c[N];
ll p[N], pc;
int main(void)
{
    int i, j, m, a, b;
    for(i=2;i<N;++i) if (!c[i]) {
        p[pc++]=i;
        for(j=i+i;j<N;j+=i) c[j]=1;
    }

    while (scanf("%d%d%d", &m, &a, &b), m) {
        ll s=0, h, w;
        for(i=0;i<pc&&p[i]*2<=m;++i) {
            for(j=i;j<pc&&p[i]*p[j]<=m;++j) {
                if (p[i]*b<p[j]*a) continue;
                if (s<p[i]*p[j]) {
                    s=p[i]*p[j];
                    h=p[i], w=p[j];
                }
                else if (s==p[i]*p[j] && p[i]*w<p[j]*h) {
                    h=p[i], w=p[j];
                }
            }
        }
        printf("%lld %lld\n", h, w);
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 100010
c:
	.zero	100010
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800080
p:
	.zero	800080
	.globl	pc
	.align 8
	.type	pc, @object
	.size	pc, 8
pc:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lld %lld\n"
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, -40(%rbp)
	jmp	.L2
.L6:
	movl	-40(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L3
	movq	pc(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, pc(%rip)
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	%rdx, (%rcx,%rax)
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -36(%rbp)
	jmp	.L4
.L5:
	movl	-36(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-40(%rbp), %eax
	addl	%eax, -36(%rbp)
.L4:
	cmpl	$100009, -36(%rbp)
	jle	.L5
.L3:
	addl	$1, -40(%rbp)
.L2:
	cmpl	$100009, -40(%rbp)
	jle	.L6
	jmp	.L7
.L17:
	movq	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L8
.L16:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L14:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	%rax, %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rcx
	movl	-48(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jl	.L20
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L12
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L11
.L20:
	nop
.L11:
	addl	$1, -36(%rbp)
.L9:
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	pc(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L13
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rax, %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jle	.L14
.L13:
	addl	$1, -40(%rbp)
.L8:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	pc(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L15
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rax,%rax), %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jle	.L16
.L15:
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 100010
c:
	.zero	100010
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800080
p:
	.zero	800080
	.globl	pc
	.align 8
	.type	pc, @object
	.size	pc, 8
pc:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%lld %lld\n"
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2, -40(%rbp)
	jmp	.L2
.L6:
	movl	-40(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L3
	movq	pc(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, pc(%rip)
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	%rdx, (%rcx,%rax)
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -36(%rbp)
	jmp	.L4
.L5:
	movl	-36(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-40(%rbp), %eax
	addl	%eax, -36(%rbp)
.L4:
	cmpl	$100009, -36(%rbp)
	jle	.L5
.L3:
	addl	$1, -40(%rbp)
.L2:
	cmpl	$100009, -40(%rbp)
	jle	.L6
	jmp	.L7
.L17:
	movq	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L8
.L16:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L14:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-44(%rbp), %eax
	cltq
	imulq	%rax, %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rcx
	movl	-48(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jl	.L20
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L12
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	cmpq	%rax, -32(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L11
.L20:
	nop
.L11:
	addl	$1, -36(%rbp)
.L9:
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	pc(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L13
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	p(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rax, %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jle	.L14
.L13:
	addl	$1, -40(%rbp)
.L8:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	pc(%rip), %rax
	cmpq	%rax, %rdx
	jge	.L15
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	p(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rax,%rax), %rdx
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jle	.L16
.L15:
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
