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

```c
#include <stdio.h>

int main()
{
	long long N;
	long long n, h, w;
	long long r;

	scanf("%lld", &N);
	for (n = 1; n <= 3500ll; n++) {
		for (h = 1; h <= 3500ll; h++) {

			if (4 * h * n - N * n - N * h != 0) {
				w = (h * n * N) / (4 * h * n - N * n - N * h);
				r = (h * n * N) % (4 * h * n - N * n - N * h);

				if (w > 0 && r == 0) {
					printf("%lld %lld %lld\n", h, n, w);
					return 0;
				}
			}
		}
	}

	return 0;
}
```

Assembly Code:

```assembly
	.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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	movl	$4, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$1, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$2, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	subq	%r8, %r14
	subq	%r8, %r12
	movq	%r8, %r11
	addq	%r12, %r12
	movq	%r14, %rbx
.L2:
	leaq	(%r8,%r12), %r9
	movq	%r12, %rsi
	movq	%r11, %rcx
	movq	%r8, %rdi
	leaq	0(,%r13,4), %rbp
	movl	$1, %r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r10
	addq	%rbp, %r9
	addq	%r8, %rdi
	addq	%r11, %rcx
	addq	%rbx, %rsi
	cmpq	$3501, %r10
	je	.L19
.L5:
	cmpq	%r9, %rdi
	je	.L3
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rax, %rax
	jle	.L3
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r13, %rcx
	movq	%r10, %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	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	addq	$1, %r13
	addq	%r8, %r11
	addq	$4, %rbx
	addq	%r14, %r12
	cmpq	$3501, %r13
	jne	.L2
	jmp	.L4
.L20:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	movl	$4, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$1, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$2, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	subq	%r8, %r14
	subq	%r8, %r12
	movq	%r8, %r11
	addq	%r12, %r12
	movq	%r14, %rbx
.L2:
	leaq	(%r8,%r12), %r9
	movq	%r12, %rsi
	movq	%r11, %rcx
	movq	%r8, %rdi
	leaq	0(,%r13,4), %rbp
	movl	$1, %r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r10
	addq	%rbp, %r9
	addq	%r8, %rdi
	addq	%r11, %rcx
	addq	%rbx, %rsi
	cmpq	$3501, %r10
	je	.L19
.L5:
	cmpq	%r9, %rdi
	je	.L3
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rax, %rax
	jle	.L3
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r13, %rcx
	movq	%r10, %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	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	addq	$1, %r13
	addq	%r8, %r11
	addq	$4, %rbx
	addq	%r14, %r12
	cmpq	$3501, %r13
	jne	.L2
	jmp	.L4
.L20:
	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
```assembly
	.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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	movl	$4, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$1, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$2, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	subq	%r8, %r14
	subq	%r8, %r12
	movq	%r8, %r11
	addq	%r12, %r12
	movq	%r14, %rbx
.L2:
	leaq	(%r8,%r12), %r9
	movq	%r12, %rsi
	movq	%r11, %rcx
	movq	%r8, %rdi
	leaq	0(,%r13,4), %rbp
	movl	$1, %r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r10
	addq	%rbp, %r9
	addq	%r8, %rdi
	addq	%r11, %rcx
	addq	%rbx, %rsi
	cmpq	$3501, %r10
	je	.L19
.L5:
	cmpq	%r9, %rdi
	je	.L3
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rax, %rax
	jle	.L3
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r13, %rcx
	movq	%r10, %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	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	addq	$1, %r13
	addq	%r8, %r11
	addq	$4, %rbx
	addq	%r14, %r12
	cmpq	$3501, %r13
	jne	.L2
	jmp	.L4
.L20:
	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:
```
```c
#include <stdio.h>

int main()
{
	long long N;
	long long n, h, w;
	long long r;

	scanf("%lld", &N);
	for (n = 1; n <= 3500ll; n++) {
		for (h = 1; h <= 3500ll; h++) {

			if (4 * h * n - N * n - N * h != 0) {
				w = (h * n * N) / (4 * h * n - N * n - N * h);
				r = (h * n * N) % (4 * h * n - N * n - N * h);

				if (w > 0 && r == 0) {
					printf("%lld %lld %lld\n", h, n, w);
					return 0;
				}
			}
		}
	}

	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main()
{
	long long N;
	long long n, h, w;
	long long r;

	scanf("%lld", &N);
	for (n = 1; n <= 3500ll; n++) {
		for (h = 1; h <= 3500ll; h++) {

			if (4 * h * n - N * n - N * h != 0) {
				w = (h * n * N) / (4 * h * n - N * n - N * h);
				r = (h * n * N) % (4 * h * n - N * n - N * h);

				if (w > 0 && r == 0) {
					printf("%lld %lld %lld\n", h, n, w);
					return 0;
				}
			}
		}
	}

	return 0;
}
```

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.
Optimized Assembly Code:

3
 3492
 6
 3999
 10
 12
 4
 4141
 8
 7

4 1 12
 3493 1164 12197556
 7 2 42
 3500 1400 3999000
 16 3 240
 13 4 156
 3 2 6
 3468 1476 10770741
 7 3 42
 15 2 210

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

```c
#include <stdio.h>

int main()
{
	long long N;
	long long n, h, w;
	long long r;

	scanf("%lld", &N);
	for (n = 1; n <= 3500ll; n++) {
		for (h = 1; h <= 3500ll; h++) {

			if (4 * h * n - N * n - N * h != 0) {
				w = (h * n * N) / (4 * h * n - N * n - N * h);
				r = (h * n * N) % (4 * h * n - N * n - N * h);

				if (w > 0 && r == 0) {
					printf("%lld %lld %lld\n", h, n, w);
					return 0;
				}
			}
		}
	}

	return 0;
}
```

Assembly Code:

```assembly
	.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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	movl	$4, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$1, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$2, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	subq	%r8, %r14
	subq	%r8, %r12
	movq	%r8, %r11
	addq	%r12, %r12
	movq	%r14, %rbx
.L2:
	leaq	(%r8,%r12), %r9
	movq	%r12, %rsi
	movq	%r11, %rcx
	movq	%r8, %rdi
	leaq	0(,%r13,4), %rbp
	movl	$1, %r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r10
	addq	%rbp, %r9
	addq	%r8, %rdi
	addq	%r11, %rcx
	addq	%rbx, %rsi
	cmpq	$3501, %r10
	je	.L19
.L5:
	cmpq	%r9, %rdi
	je	.L3
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rax, %rax
	jle	.L3
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r13, %rcx
	movq	%r10, %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	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	addq	$1, %r13
	addq	%r8, %r11
	addq	$4, %rbx
	addq	%r14, %r12
	cmpq	$3501, %r13
	jne	.L2
	jmp	.L4
.L20:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	movl	$4, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$1, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$2, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r8
	subq	%r8, %r14
	subq	%r8, %r12
	movq	%r8, %r11
	addq	%r12, %r12
	movq	%r14, %rbx
.L2:
	leaq	(%r8,%r12), %r9
	movq	%r12, %rsi
	movq	%r11, %rcx
	movq	%r8, %rdi
	leaq	0(,%r13,4), %rbp
	movl	$1, %r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r10
	addq	%rbp, %r9
	addq	%r8, %rdi
	addq	%r11, %rcx
	addq	%rbx, %rsi
	cmpq	$3501, %r10
	je	.L19
.L5:
	cmpq	%r9, %rdi
	je	.L3
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rax, %rax
	jle	.L3
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, %r8
	movq	%r13, %rcx
	movq	%r10, %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	.L20
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	addq	$1, %r13
	addq	%r8, %r11
	addq	$4, %rbx
	addq	%r14, %r12
	cmpq	$3501, %r13
	jne	.L2
	jmp	.L4
.L20:
	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:
```