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>
int main()
{
	long long int N;
	scanf("%lld", &N);
	long long int h, n;
	for (h = 1; h <= 3500; h++)
	{
		for (n = 1; n <= 3500; n++)
		{
			if (4 * h*n - N*n - N*h > 0)
			{
				if ((N*h*n) % (4 * h*n - N*n - N*h) == 0)
				{
					printf("%lld %lld %lld\n", h, n, (N*h*n) / (4 * h*n - N*n - N*h));
					return 0;
				}
			}
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld %lld\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -24(%rbp)
	jmp	.L2
.L7:
	movq	$1, -16(%rbp)
	jmp	.L3
.L6:
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	imulq	-16(%rbp), %rax
	subq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L4
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	-24(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	subq	%rdx, %rcx
	movq	-32(%rbp), %rdx
	imulq	-24(%rbp), %rdx
	subq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L4
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	-24(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	subq	%rdx, %rcx
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	imulq	-24(%rbp), %rsi
	subq	%rsi, %rcx
	movq	%rcx, %rdi
	cqto
	idivq	%rdi
	movq	%rax, %rcx
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L8
.L4:
	addq	$1, -16(%rbp)
.L3:
	cmpq	$3500, -16(%rbp)
	jle	.L6
	addq	$1, -24(%rbp)
.L2:
	cmpq	$3500, -24(%rbp)
	jle	.L7
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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"
.LC1:
	.string	"%lld %lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r11
	movl	$4, %r8d
	subq	%r11, %r8
	movq	%r11, %rdi
	movq	%r8, %rbx
	movq	%r8, %r10
	subq	%r11, %rbx
.L2:
	movq	%rdi, %rsi
	movq	%rbx, %rcx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r9
	addq	%r10, %rcx
	addq	%rdi, %rsi
	cmpq	$3501, %r9
	je	.L13
.L5:
	testq	%rcx, %rcx
	jle	.L3
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r9, %rcx
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	addq	$1, %r12
	addq	$4, %r10
	addq	%r11, %rdi
	addq	%r8, %rbx
	cmpq	$3501, %r12
	jne	.L2
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r11
	movl	$4, %r8d
	subq	%r11, %r8
	movq	%r11, %rdi
	movq	%r8, %rbx
	movq	%r8, %r10
	subq	%r11, %rbx
.L2:
	movq	%rdi, %rsi
	movq	%rbx, %rcx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r9
	addq	%r10, %rcx
	addq	%rdi, %rsi
	cmpq	$3501, %r9
	je	.L13
.L5:
	testq	%rcx, %rcx
	jle	.L3
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r9, %rcx
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	addq	$1, %r12
	addq	$4, %r10
	addq	%r11, %rdi
	addq	%r8, %rbx
	cmpq	$3501, %r12
	jne	.L2
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include<stdio.h>
int main()
{
	long long int N;
	scanf("%lld", &N);
	long long int h, n;
	for (h = 1; h <= 3500; h++)
	{
		for (n = 1; n <= 3500; n++)
		{
			if (4 * h*n - N*n - N*h > 0)
			{
				if ((N*h*n) % (4 * h*n - N*n - N*h) == 0)
				{
					printf("%lld %lld %lld\n", h, n, (N*h*n) / (4 * h*n - N*n - N*h));
					return 0;
				}
			}
		}
	}
	return 0;
}
2

1 2 2

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>
int main()
{
	long long int N;
	scanf("%lld", &N);
	long long int h, n;
	for (h = 1; h <= 3500; h++)
	{
		for (n = 1; n <= 3500; n++)
		{
			if (4 * h*n - N*n - N*h > 0)
			{
				if ((N*h*n) % (4 * h*n - N*n - N*h) == 0)
				{
					printf("%lld %lld %lld\n", h, n, (N*h*n) / (4 * h*n - N*n - N*h));
					return 0;
				}
			}
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld %lld\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -24(%rbp)
	jmp	.L2
.L7:
	movq	$1, -16(%rbp)
	jmp	.L3
.L6:
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	imulq	-16(%rbp), %rax
	subq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L4
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	-24(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	subq	%rdx, %rcx
	movq	-32(%rbp), %rdx
	imulq	-24(%rbp), %rdx
	subq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L4
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	-24(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	subq	%rdx, %rcx
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	imulq	-24(%rbp), %rsi
	subq	%rsi, %rcx
	movq	%rcx, %rdi
	cqto
	idivq	%rdi
	movq	%rax, %rcx
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L8
.L4:
	addq	$1, -16(%rbp)
.L3:
	cmpq	$3500, -16(%rbp)
	jle	.L6
	addq	$1, -24(%rbp)
.L2:
	cmpq	$3500, -24(%rbp)
	jle	.L7
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld %lld\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -24(%rbp)
	jmp	.L2
.L7:
	movq	$1, -16(%rbp)
	jmp	.L3
.L6:
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	imulq	-16(%rbp), %rax
	subq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L4
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	-24(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	subq	%rdx, %rcx
	movq	-32(%rbp), %rdx
	imulq	-24(%rbp), %rdx
	subq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L4
	movq	-32(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	-24(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	imulq	-16(%rbp), %rdx
	subq	%rdx, %rcx
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	imulq	-24(%rbp), %rsi
	subq	%rsi, %rcx
	movq	%rcx, %rdi
	cqto
	idivq	%rdi
	movq	%rax, %rcx
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L8
.L4:
	addq	$1, -16(%rbp)
.L3:
	cmpq	$3500, -16(%rbp)
	jle	.L6
	addq	$1, -24(%rbp)
.L2:
	cmpq	$3500, -24(%rbp)
	jle	.L7
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
