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 e;

int xy(int ee){
	if(ee==0){
		return 0;
	}
	int min=ee;
	int x,y;
	for(y=0;y*y<=ee;y++){
		x=ee-y*y;
		if(min>x+y){
			min=x+y;
		}
	}
	return min;
}

void solve(){
	int x,y,z;
	for(z=0;z*z*z<=e;z++);
	int min=e;
	for(z--;z>=0;z--){
		if(min>(z+xy(e-z*z*z))){
			min=z+xy(e-z*z*z);
		}
	}
	printf("%d\n",min);
}

int main(void){
	while(scanf("%d",&e),e){
		solve();
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	e
	.bss
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.text
	.globl	xy
	.type	xy, @function
xy:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L4
.L6:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jle	.L5
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L6
	movl	-12(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	xy, .-xy
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	jmp	.L8
.L9:
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	e(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	e(%rip), %eax
	movl	%eax, -4(%rbp)
	subl	$1, -8(%rbp)
	jmp	.L10
.L12:
	movl	e(%rip), %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	xy
	movl	-8(%rbp), %edx
	addl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jle	.L11
	movl	e(%rip), %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	xy
	movl	-8(%rbp), %edx
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
.L11:
	subl	$1, -8(%rbp)
.L10:
	cmpl	$0, -8(%rbp)
	jns	.L12
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L14
.L15:
	movl	$0, %eax
	call	solve
.L14:
	leaq	e(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	e(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.globl	xy
	.type	xy, @function
xy:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	je	.L1
	movl	%edi, %r8d
	js	.L1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addl	$1, %eax
	movl	%eax, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edi
	jge	.L3
.L1:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	xy, .-xy
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	movl	e(%rip), %r9d
	testl	%r9d, %r9d
	js	.L15
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	leal	1(%rax), %eax
	movl	%eax, %edx
	imull	%eax, %edx
	imull	%eax, %edx
	cmpl	%r9d, %edx
	jle	.L11
	movl	%r9d, %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%r8d, %eax
	movl	%r9d, %edi
	movl	%r8d, %ecx
	imull	%r8d, %eax
	imull	%r8d, %eax
	subl	%eax, %edi
	je	.L12
	movl	%edi, %ecx
	movl	$0, %eax
	movl	$0, %esi
	js	.L23
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%edi, %edx
	subl	%esi, %edx
	addl	%eax, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addl	$1, %eax
	movl	%eax, %esi
	imull	%eax, %esi
	cmpl	%esi, %edi
	jge	.L13
	addl	%r8d, %ecx
.L12:
	cmpl	%ecx, %r10d
	cmovg	%ecx, %r10d
	subl	$1, %r8d
	jnb	.L14
.L10:
	movl	%r10d, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	leal	(%rdi,%r8), %ecx
	jmp	.L12
.L15:
	movl	%r9d, %r10d
	jmp	.L10
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	e(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	e(%rip), %r9d
	xorl	%eax, %eax
	testl	%r9d, %r9d
	je	.L30
	movl	%r9d, %r10d
	js	.L31
	.p2align 4,,10
	.p2align 3
.L26:
	movl	%eax, %r8d
	leal	1(%rax), %eax
	movl	%eax, %edx
	imull	%eax, %edx
	imull	%eax, %edx
	cmpl	%edx, %r9d
	jge	.L26
	movl	%r9d, %r10d
	.p2align 4,,10
	.p2align 3
.L29:
	movl	%r8d, %eax
	movl	%r9d, %edi
	movl	%r8d, %ecx
	imull	%r8d, %eax
	imull	%r8d, %eax
	subl	%eax, %edi
	je	.L27
	movl	%edi, %ecx
	movl	$0, %eax
	movl	$0, %esi
	js	.L42
	.p2align 4,,10
	.p2align 3
.L28:
	movl	%edi, %edx
	subl	%esi, %edx
	addl	%eax, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addl	$1, %eax
	movl	%eax, %esi
	imull	%eax, %esi
	cmpl	%esi, %edi
	jge	.L28
	addl	%r8d, %ecx
.L27:
	cmpl	%ecx, %r10d
	cmovg	%ecx, %r10d
	subl	$1, %r8d
	jnb	.L29
.L31:
	movl	%r10d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L42:
	leal	(%rdi,%r8), %ecx
	jmp	.L27
.L30:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	e
	.bss
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.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
	.p2align 4
	.globl	xy
	.type	xy, @function
xy:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	je	.L1
	movl	%edi, %r8d
	js	.L1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addl	$1, %eax
	movl	%eax, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edi
	jge	.L3
.L1:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	xy, .-xy
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB24:
	.cfi_startproc
	endbr64
	movl	e(%rip), %r9d
	testl	%r9d, %r9d
	js	.L15
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%eax, %r8d
	leal	1(%rax), %eax
	movl	%eax, %edx
	imull	%eax, %edx
	imull	%eax, %edx
	cmpl	%r9d, %edx
	jle	.L11
	movl	%r9d, %r10d
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%r8d, %eax
	movl	%r9d, %edi
	movl	%r8d, %ecx
	imull	%r8d, %eax
	imull	%r8d, %eax
	subl	%eax, %edi
	je	.L12
	movl	%edi, %ecx
	movl	$0, %eax
	movl	$0, %esi
	js	.L23
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%edi, %edx
	subl	%esi, %edx
	addl	%eax, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addl	$1, %eax
	movl	%eax, %esi
	imull	%eax, %esi
	cmpl	%esi, %edi
	jge	.L13
	addl	%r8d, %ecx
.L12:
	cmpl	%ecx, %r10d
	cmovg	%ecx, %r10d
	subl	$1, %r8d
	jnb	.L14
.L10:
	movl	%r10d, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	leal	(%rdi,%r8), %ecx
	jmp	.L12
.L15:
	movl	%r9d, %r10d
	jmp	.L10
	.cfi_endproc
.LFE24:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	e(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	e(%rip), %r9d
	xorl	%eax, %eax
	testl	%r9d, %r9d
	je	.L30
	movl	%r9d, %r10d
	js	.L31
	.p2align 4,,10
	.p2align 3
.L26:
	movl	%eax, %r8d
	leal	1(%rax), %eax
	movl	%eax, %edx
	imull	%eax, %edx
	imull	%eax, %edx
	cmpl	%edx, %r9d
	jge	.L26
	movl	%r9d, %r10d
	.p2align 4,,10
	.p2align 3
.L29:
	movl	%r8d, %eax
	movl	%r9d, %edi
	movl	%r8d, %ecx
	imull	%r8d, %eax
	imull	%r8d, %eax
	subl	%eax, %edi
	je	.L27
	movl	%edi, %ecx
	movl	$0, %eax
	movl	$0, %esi
	js	.L42
	.p2align 4,,10
	.p2align 3
.L28:
	movl	%edi, %edx
	subl	%esi, %edx
	addl	%eax, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addl	$1, %eax
	movl	%eax, %esi
	imull	%eax, %esi
	cmpl	%esi, %edi
	jge	.L28
	addl	%r8d, %ecx
.L27:
	cmpl	%ecx, %r10d
	cmovg	%ecx, %r10d
	subl	$1, %r8d
	jnb	.L29
.L31:
	movl	%r10d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L42:
	leal	(%rdi,%r8), %ecx
	jmp	.L27
.L30:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	e
	.bss
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.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 e;

int xy(int ee){
	if(ee==0){
		return 0;
	}
	int min=ee;
	int x,y;
	for(y=0;y*y<=ee;y++){
		x=ee-y*y;
		if(min>x+y){
			min=x+y;
		}
	}
	return min;
}

void solve(){
	int x,y,z;
	for(z=0;z*z*z<=e;z++);
	int min=e;
	for(z--;z>=0;z--){
		if(min>(z+xy(e-z*z*z))){
			min=z+xy(e-z*z*z);
		}
	}
	printf("%d\n",min);
}

int main(void){
	while(scanf("%d",&e),e){
		solve();
	}
	return 0;
}
1
2
4
6
300
1250
0
 1
2
4
2
300
1250
0
 1
2
4
3
300
1250
0
 1
2
4
3
76
1250
0
 1
2
4
27
557
1250
0
 1
2
4
6
300
1687
0
 1
1
4
2
300
1250
0
 1
2
5
3
300
1250
0
 1
2
3
3
76
1250
0
 1
2
4
27
266
1250
0

1
2
2
4
18
44
 1
2
2
2
18
44
 1
2
2
3
18
44
 1
2
2
3
10
44
 1
2
2
3
23
44
 1
2
2
4
18
47
 1
1
2
2
18
44
 1
2
3
3
18
44
 1
2
3
3
10
44
 1
2
2
3
14
44

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 e;

int xy(int ee){
	if(ee==0){
		return 0;
	}
	int min=ee;
	int x,y;
	for(y=0;y*y<=ee;y++){
		x=ee-y*y;
		if(min>x+y){
			min=x+y;
		}
	}
	return min;
}

void solve(){
	int x,y,z;
	for(z=0;z*z*z<=e;z++);
	int min=e;
	for(z--;z>=0;z--){
		if(min>(z+xy(e-z*z*z))){
			min=z+xy(e-z*z*z);
		}
	}
	printf("%d\n",min);
}

int main(void){
	while(scanf("%d",&e),e){
		solve();
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	e
	.bss
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.text
	.globl	xy
	.type	xy, @function
xy:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L4
.L6:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jle	.L5
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L6
	movl	-12(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	xy, .-xy
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	jmp	.L8
.L9:
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	e(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	e(%rip), %eax
	movl	%eax, -4(%rbp)
	subl	$1, -8(%rbp)
	jmp	.L10
.L12:
	movl	e(%rip), %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	xy
	movl	-8(%rbp), %edx
	addl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jle	.L11
	movl	e(%rip), %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	xy
	movl	-8(%rbp), %edx
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
.L11:
	subl	$1, -8(%rbp)
.L10:
	cmpl	$0, -8(%rbp)
	jns	.L12
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L14
.L15:
	movl	$0, %eax
	call	solve
.L14:
	leaq	e(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	e(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	e
	.bss
	.align 4
	.type	e, @object
	.size	e, 4
e:
	.zero	4
	.text
	.globl	xy
	.type	xy, @function
xy:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L4
.L6:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jle	.L5
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L6
	movl	-12(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	xy, .-xy
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	jmp	.L8
.L9:
	addl	$1, -8(%rbp)
.L8:
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	e(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	e(%rip), %eax
	movl	%eax, -4(%rbp)
	subl	$1, -8(%rbp)
	jmp	.L10
.L12:
	movl	e(%rip), %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	xy
	movl	-8(%rbp), %edx
	addl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jle	.L11
	movl	e(%rip), %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	imull	-8(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	xy
	movl	-8(%rbp), %edx
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
.L11:
	subl	$1, -8(%rbp)
.L10:
	cmpl	$0, -8(%rbp)
	jns	.L12
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L14
.L15:
	movl	$0, %eax
	call	solve
.L14:
	leaq	e(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	e(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
