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 n;
	scanf("%lld", &n);
	for(long long i=-1003; i<=1003; i++)
		for(long long j=-1003; j<=1003; j++)
			if(i * i * i * i * i - j * j * j * j * j == n)
			{
				printf("%lld %lld", i, j);
				return 0;
			}
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld"
	.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	$-1003, -24(%rbp)
	jmp	.L2
.L7:
	movq	$-1003, -16(%rbp)
	jmp	.L3
.L6:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	imulq	-24(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	imulq	-16(%rbp), %rax
	imulq	-16(%rbp), %rax
	imulq	-16(%rbp), %rax
	subq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L4
	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	$1003, -16(%rbp)
	jle	.L6
	addq	$1, -24(%rbp)
.L2:
	cmpq	$1003, -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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	$-1003, %r8
.L2:
	movq	%r8, %rsi
	movq	$-1003, %rcx
	imulq	%r8, %rsi
	imulq	%rsi, %rsi
	imulq	%r8, %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rcx
	cmpq	$1004, %rcx
	je	.L13
.L5:
	movq	%rcx, %rax
	movq	%rsi, %rdx
	imulq	%rcx, %rax
	imulq	%rax, %rax
	imulq	%rcx, %rax
	subq	%rax, %rdx
	cmpq	%rdi, %rdx
	jne	.L3
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	addq	$1, %r8
	cmpq	$1004, %r8
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	$-1003, %r8
.L2:
	movq	%r8, %rsi
	movq	$-1003, %rcx
	imulq	%r8, %rsi
	imulq	%rsi, %rsi
	imulq	%r8, %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rcx
	cmpq	$1004, %rcx
	je	.L13
.L5:
	movq	%rcx, %rax
	movq	%rsi, %rdx
	imulq	%rcx, %rax
	imulq	%rax, %rax
	imulq	%rcx, %rax
	subq	%rax, %rdx
	cmpq	%rdi, %rdx
	jne	.L3
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	addq	$1, %r8
	cmpq	$1004, %r8
	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 n;
	scanf("%lld", &n);
	for(long long i=-1003; i<=1003; i++)
		for(long long j=-1003; j<=1003; j++)
			if(i * i * i * i * i - j * j * j * j * j == n)
			{
				printf("%lld %lld", i, j);
				return 0;
			}
    return 0;
}
2
 64
 32
 001
 275
 243
 244
 2
 32
 64

1 -1 2 -2 0 -2 0 -1 2 -3 0 -3 1 -3 1 -1 0 -2 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 n;
	scanf("%lld", &n);
	for(long long i=-1003; i<=1003; i++)
		for(long long j=-1003; j<=1003; j++)
			if(i * i * i * i * i - j * j * j * j * j == n)
			{
				printf("%lld %lld", i, j);
				return 0;
			}
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld"
	.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	$-1003, -24(%rbp)
	jmp	.L2
.L7:
	movq	$-1003, -16(%rbp)
	jmp	.L3
.L6:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	imulq	-24(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	imulq	-16(%rbp), %rax
	imulq	-16(%rbp), %rax
	imulq	-16(%rbp), %rax
	subq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L4
	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	$1003, -16(%rbp)
	jle	.L6
	addq	$1, -24(%rbp)
.L2:
	cmpq	$1003, -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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld"
	.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	$-1003, -24(%rbp)
	jmp	.L2
.L7:
	movq	$-1003, -16(%rbp)
	jmp	.L3
.L6:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	imulq	-24(%rbp), %rax
	imulq	-24(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	imulq	-16(%rbp), %rax
	imulq	-16(%rbp), %rax
	imulq	-16(%rbp), %rax
	subq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L4
	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	$1003, -16(%rbp)
	jle	.L6
	addq	$1, -24(%rbp)
.L2:
	cmpq	$1003, -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:
