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

```c
#include <math.h>

int main(void){
  long x;
  scanf("%ld",&x);
  
  for(long i = -118;i <= 119;i ++){
    for(long j = -118;j <= i;j ++){
      if(((long)pow(i,5) - pow(j,5)) == x){
        printf("%d  %d",i,j);
        return 0;
      }
    }
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC2:
	.string	"%d  %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	$-118, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	scanf@PLT
	pxor	%xmm5, %xmm5
	cvtsi2sdq	16(%rsp), %xmm5
	movsd	%xmm5, 8(%rsp)
.L2:
	pxor	%xmm4, %xmm4
	movq	$-118, %r12
	cvtsi2sdq	%rbp, %xmm4
	movq	%xmm4, %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	.LC1(%rip), %rax
	movq	%rbx, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movq	.LC1(%rip), %rax
	movsd	%xmm0, (%rsp)
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r12, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movsd	(%rsp), %xmm2
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	cvttsd2siq	%xmm2, %rax
	cvtsi2sdq	%rax, %xmm0
	subsd	%xmm1, %xmm0
	ucomisd	8(%rsp), %xmm0
	jp	.L3
	je	.L15
.L3:
	addq	$1, %r12
	cmpq	%rbp, %r12
	jle	.L6
	addq	$1, %rbp
	cmpq	$120, %rbp
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075052544
	.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	"%ld"
.LC2:
	.string	"%d  %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	$-118, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	scanf@PLT
	pxor	%xmm5, %xmm5
	cvtsi2sdq	16(%rsp), %xmm5
	movsd	%xmm5, 8(%rsp)
.L2:
	pxor	%xmm4, %xmm4
	movq	$-118, %r12
	cvtsi2sdq	%rbp, %xmm4
	movq	%xmm4, %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	.LC1(%rip), %rax
	movq	%rbx, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movq	.LC1(%rip), %rax
	movsd	%xmm0, (%rsp)
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r12, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movsd	(%rsp), %xmm2
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	cvttsd2siq	%xmm2, %rax
	cvtsi2sdq	%rax, %xmm0
	subsd	%xmm1, %xmm0
	ucomisd	8(%rsp), %xmm0
	jp	.L3
	je	.L15
.L3:
	addq	$1, %r12
	cmpq	%rbp, %r12
	jle	.L6
	addq	$1, %rbp
	cmpq	$120, %rbp
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075052544
	.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	"%ld"
.LC2:
	.string	"%d  %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	$-118, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	scanf@PLT
	pxor	%xmm5, %xmm5
	cvtsi2sdq	16(%rsp), %xmm5
	movsd	%xmm5, 8(%rsp)
.L2:
	pxor	%xmm4, %xmm4
	movq	$-118, %r12
	cvtsi2sdq	%rbp, %xmm4
	movq	%xmm4, %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	.LC1(%rip), %rax
	movq	%rbx, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movq	.LC1(%rip), %rax
	movsd	%xmm0, (%rsp)
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r12, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movsd	(%rsp), %xmm2
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	cvttsd2siq	%xmm2, %rax
	cvtsi2sdq	%rax, %xmm0
	subsd	%xmm1, %xmm0
	ucomisd	8(%rsp), %xmm0
	jp	.L3
	je	.L15
.L3:
	addq	$1, %r12
	cmpq	%rbp, %r12
	jle	.L6
	addq	$1, %rbp
	cmpq	$120, %rbp
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075052544
	.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 <math.h>

int main(void){
  long x;
  scanf("%ld",&x);
  
  for(long i = -118;i <= 119;i ++){
    for(long j = -118;j <= i;j ++){
      if(((long)pow(i,5) - pow(j,5)) == x){
        printf("%d  %d",i,j);
        return 0;
      }
    }
  }
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>

int main(void){
  long x;
  scanf("%ld",&x);
  
  for(long i = -118;i <= 119;i ++){
    for(long j = -118;j <= i;j ++){
      if(((long)pow(i,5) - pow(j,5)) == x){
        printf("%d  %d",i,j);
        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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>

int main(void){
  long x;
  scanf("%ld",&x);
  
  for(long i = -118;i <= 119;i ++){
    for(long j = -118;j <= i;j ++){
      if(((long)pow(i,5) - pow(j,5)) == x){
        printf("%d  %d",i,j);
        return 0;
      }
    }
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC2:
	.string	"%d  %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	$-118, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	scanf@PLT
	pxor	%xmm5, %xmm5
	cvtsi2sdq	16(%rsp), %xmm5
	movsd	%xmm5, 8(%rsp)
.L2:
	pxor	%xmm4, %xmm4
	movq	$-118, %r12
	cvtsi2sdq	%rbp, %xmm4
	movq	%xmm4, %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	.LC1(%rip), %rax
	movq	%rbx, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movq	.LC1(%rip), %rax
	movsd	%xmm0, (%rsp)
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r12, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movsd	(%rsp), %xmm2
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	cvttsd2siq	%xmm2, %rax
	cvtsi2sdq	%rax, %xmm0
	subsd	%xmm1, %xmm0
	ucomisd	8(%rsp), %xmm0
	jp	.L3
	je	.L15
.L3:
	addq	$1, %r12
	cmpq	%rbp, %r12
	jle	.L6
	addq	$1, %rbp
	cmpq	$120, %rbp
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075052544
	.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	"%ld"
.LC2:
	.string	"%d  %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	$-118, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	scanf@PLT
	pxor	%xmm5, %xmm5
	cvtsi2sdq	16(%rsp), %xmm5
	movsd	%xmm5, 8(%rsp)
.L2:
	pxor	%xmm4, %xmm4
	movq	$-118, %r12
	cvtsi2sdq	%rbp, %xmm4
	movq	%xmm4, %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	.LC1(%rip), %rax
	movq	%rbx, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movq	.LC1(%rip), %rax
	movsd	%xmm0, (%rsp)
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r12, %xmm0
	movq	%rax, %xmm1
	call	pow@PLT
	movsd	(%rsp), %xmm2
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	cvttsd2siq	%xmm2, %rax
	cvtsi2sdq	%rax, %xmm0
	subsd	%xmm1, %xmm0
	ucomisd	8(%rsp), %xmm0
	jp	.L3
	je	.L15
.L3:
	addq	$1, %r12
	cmpq	%rbp, %r12
	jle	.L6
	addq	$1, %rbp
	cmpq	$120, %rbp
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075052544
	.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:
```