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 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;
}```

Assembly Code:

```assembly
	.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:
```

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
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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
	.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:
```