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>
#include <math.h>

int main(){
    int h,w,a;
    int i;
    double j;
    while(scanf("%d %d",&h,&w)){
        int mh=0,mw=0;
        if(h==0 && w==0)break;
        a = h*h + w*w;
        for(i=h+1;i<sqrt(a);i++){ 
            j=sqrt(a - i*i);
            if(i<j&&ceil(j) == floor(j)){ 
                mh = i;
                mw = j;
                break;
            }
        }//end of for(i=h+1...)
        
        if(!mh&&!mw){
            while(!mh){
                a++;
                for(i=1;i<sqrt(a);i++){
                    j=sqrt(a - i*i);
                    if(i>=j)continue;
                    if(ceil(j) == floor(j)){
                        mh = i;
                        mw = j;
                        break;
                    }
                }
            }
        }//end_of_if(!mh&&!mw)
        
        printf("%d %d\n",mh,mw);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%d %d"
	.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
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L20:
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	.L26
.L3:
	movl	-56(%rbp), %edx
	movl	-56(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-52(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -48(%rbp)
	movl	-56(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L5
.L10:
	movl	-44(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-44(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L6
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	ceil@PLT
	movq	%xmm0, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	floor@PLT
	movq	%rbx, %xmm3
	ucomisd	%xmm0, %xmm3
	jp	.L6
	movq	%rbx, %xmm4
	ucomisd	%xmm0, %xmm4
	jne	.L6
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L6:
	addl	$1, -44(%rbp)
.L5:
	pxor	%xmm5, %xmm5
	cvtsi2sdl	-44(%rbp), %xmm5
	movsd	%xmm5, -72(%rbp)
	pxor	%xmm6, %xmm6
	cvtsi2sdl	-48(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm7
	comisd	-72(%rbp), %xmm7
	ja	.L10
.L9:
	cmpl	$0, -40(%rbp)
	jne	.L11
	cmpl	$0, -36(%rbp)
	jne	.L11
	jmp	.L12
.L19:
	addl	$1, -48(%rbp)
	movl	$1, -44(%rbp)
	jmp	.L13
.L18:
	movl	-44(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jnb	.L27
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	ceil@PLT
	movq	%xmm0, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	floor@PLT
	movq	%rbx, %xmm2
	ucomisd	%xmm0, %xmm2
	jp	.L16
	movq	%rbx, %xmm3
	ucomisd	%xmm0, %xmm3
	jne	.L16
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -36(%rbp)
	jmp	.L12
.L27:
	nop
.L16:
	addl	$1, -44(%rbp)
.L13:
	pxor	%xmm4, %xmm4
	cvtsi2sdl	-44(%rbp), %xmm4
	movsd	%xmm4, -72(%rbp)
	pxor	%xmm6, %xmm6
	cvtsi2sdl	-48(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm7
	comisd	-72(%rbp), %xmm7
	ja	.L18
.L12:
	cmpl	$0, -40(%rbp)
	je	.L19
.L11:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L20
	jmp	.L4
.L26:
	nop
.L4:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	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
.LC4:
	.string	"%d %d\n"
.LC5:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC5(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %r12
	leaq	32(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %xmm3
	pxor	%xmm4, %xmm4
	testl	%eax, %eax
	je	.L3
	movl	32(%rsp), %edx
	movl	36(%rsp), %eax
	movl	%edx, %edi
	orl	%eax, %edi
	je	.L3
	movl	%edx, %r13d
	imull	%eax, %eax
	pxor	%xmm5, %xmm5
	imull	%edx, %r13d
	addl	$1, %edx
	addl	%eax, %r13d
	cvtsi2sdl	%r13d, %xmm5
	ucomisd	%xmm5, %xmm4
	ja	.L4
	sqrtsd	%xmm5, %xmm5
	movsd	.LC1(%rip), %xmm6
	movsd	.LC3(%rip), %xmm7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%edx, %ecx
	movl	%r13d, %eax
	pxor	%xmm1, %xmm1
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm1
	ucomisd	%xmm1, %xmm4
	ja	.L59
	sqrtsd	%xmm1, %xmm1
.L17:
	comisd	%xmm2, %xmm1
	jbe	.L18
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm9
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm6
	jbe	.L20
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	movapd	%xmm1, %xmm8
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	cmpnlesd	%xmm0, %xmm8
	andpd	%xmm7, %xmm8
	addsd	%xmm8, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm9
.L20:
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm8
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm6
	jbe	.L21
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	movapd	%xmm0, %xmm8
	cmpnlesd	%xmm1, %xmm8
	andpd	%xmm7, %xmm8
	subsd	%xmm8, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm8
.L21:
	ucomisd	%xmm8, %xmm9
	jp	.L18
	je	.L13
.L18:
	addl	$1, %edx
.L6:
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	comisd	%xmm2, %xmm5
	ja	.L25
.L26:
	movsd	.LC1(%rip), %xmm5
	movsd	.LC3(%rip), %xmm7
.L24:
	addl	$1, %r13d
	pxor	%xmm8, %xmm8
	cvtsi2sdl	%r13d, %xmm8
	ucomisd	%xmm8, %xmm4
	ja	.L60
	sqrtsd	%xmm8, %xmm8
	movsd	.LC3(%rip), %xmm6
	movl	$1, %edx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L40:
	addl	$1, %edx
.L29:
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	comisd	%xmm2, %xmm8
	jbe	.L24
	movl	%edx, %ecx
	movl	%r13d, %eax
	pxor	%xmm1, %xmm1
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm1
	ucomisd	%xmm1, %xmm4
	ja	.L61
	sqrtsd	%xmm1, %xmm1
.L39:
	comisd	%xmm1, %xmm2
	jnb	.L40
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm10
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm5
	jbe	.L41
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	movapd	%xmm1, %xmm9
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	cmpnlesd	%xmm0, %xmm9
	andpd	%xmm6, %xmm9
	addsd	%xmm9, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm10
.L41:
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm9
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm5
	jbe	.L42
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	movapd	%xmm0, %xmm9
	cmpnlesd	%xmm1, %xmm9
	andpd	%xmm7, %xmm9
	subsd	%xmm9, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm9
.L42:
	ucomisd	%xmm9, %xmm10
	jp	.L40
	jne	.L40
.L35:
	cvttsd2sil	%xmm1, %ecx
.L23:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	addl	$1, %edx
.L4:
	pxor	%xmm7, %xmm7
	movapd	%xmm5, %xmm0
	movl	%edx, 16(%rsp)
	cvtsi2sdl	%edx, %xmm7
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm7, (%rsp)
	call	sqrt@PLT
	comisd	(%rsp), %xmm0
	pxor	%xmm4, %xmm4
	movq	.LC2(%rip), %xmm3
	jbe	.L26
	movl	16(%rsp), %edx
	movl	%r13d, %eax
	pxor	%xmm0, %xmm0
	movsd	8(%rsp), %xmm5
	movl	%edx, %ecx
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L64
	sqrtsd	%xmm0, %xmm1
.L10:
	comisd	(%rsp), %xmm1
	jbe	.L11
	movapd	%xmm1, %xmm0
	movl	%edx, 28(%rsp)
	movsd	%xmm5, 16(%rsp)
	movsd	%xmm1, (%rsp)
	call	ceil@PLT
	movsd	(%rsp), %xmm1
	movsd	%xmm0, 8(%rsp)
	movapd	%xmm1, %xmm0
	call	floor@PLT
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm5
	pxor	%xmm4, %xmm4
	movl	28(%rsp), %edx
	movq	.LC2(%rip), %xmm3
	ucomisd	%xmm0, %xmm2
	jp	.L11
	movsd	(%rsp), %xmm1
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	cvttsd2sil	%xmm1, %ecx
	movl	%ecx, %eax
	orl	%edx, %eax
	jne	.L23
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	movapd	%xmm1, %xmm0
	movl	%edx, 16(%rsp)
	movsd	%xmm8, 8(%rsp)
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movl	16(%rsp), %edx
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm8
	movq	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm7
	movq	.LC1(%rip), %rax
	movsd	(%rsp), %xmm2
	movapd	%xmm7, %xmm6
	movq	%rax, %xmm5
	jmp	.L39
.L59:
	movapd	%xmm1, %xmm0
	movl	%edx, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movl	16(%rsp), %edx
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm5
	movq	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm7
	movq	.LC1(%rip), %rax
	movsd	(%rsp), %xmm2
	movq	%rax, %xmm6
	jmp	.L17
.L64:
	call	sqrt@PLT
	movsd	8(%rsp), %xmm5
	movl	16(%rsp), %edx
	movapd	%xmm0, %xmm1
	jmp	.L10
.L65:
	call	__stack_chk_fail@PLT
.L60:
	movl	$1, %edx
	jmp	.L27
.L34:
	addl	$1, %edx
.L27:
	pxor	%xmm7, %xmm7
	movapd	%xmm8, %xmm0
	movl	%edx, 16(%rsp)
	cvtsi2sdl	%edx, %xmm7
	movsd	%xmm8, 8(%rsp)
	movsd	%xmm7, (%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rax
	comisd	(%rsp), %xmm0
	pxor	%xmm4, %xmm4
	movq	.LC2(%rip), %xmm3
	movq	%rax, %xmm5
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm7
	jbe	.L24
	movl	16(%rsp), %edx
	movl	%r13d, %eax
	pxor	%xmm0, %xmm0
	movsd	8(%rsp), %xmm8
	movl	%edx, %ecx
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L66
	sqrtsd	%xmm0, %xmm1
.L33:
	movsd	(%rsp), %xmm6
	comisd	%xmm1, %xmm6
	jnb	.L34
	movapd	%xmm1, %xmm0
	movl	%edx, 28(%rsp)
	movsd	%xmm8, 16(%rsp)
	movsd	%xmm1, (%rsp)
	call	ceil@PLT
	movsd	(%rsp), %xmm1
	movsd	%xmm0, 8(%rsp)
	movapd	%xmm1, %xmm0
	call	floor@PLT
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm8
	movl	28(%rsp), %edx
	ucomisd	%xmm0, %xmm2
	jp	.L34
	movsd	(%rsp), %xmm1
	jne	.L34
	jmp	.L35
.L66:
	call	sqrt@PLT
	movsd	8(%rsp), %xmm8
	movl	16(%rsp), %edx
	movapd	%xmm0, %xmm1
	jmp	.L33
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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
.LC4:
	.string	"%d %d\n"
.LC5:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC5(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %r12
	leaq	32(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movq	.LC2(%rip), %xmm3
	pxor	%xmm4, %xmm4
	testl	%eax, %eax
	je	.L3
	movl	32(%rsp), %edx
	movl	36(%rsp), %eax
	movl	%edx, %edi
	orl	%eax, %edi
	je	.L3
	movl	%edx, %r13d
	imull	%eax, %eax
	pxor	%xmm5, %xmm5
	imull	%edx, %r13d
	addl	$1, %edx
	addl	%eax, %r13d
	cvtsi2sdl	%r13d, %xmm5
	ucomisd	%xmm5, %xmm4
	ja	.L4
	sqrtsd	%xmm5, %xmm5
	movsd	.LC1(%rip), %xmm6
	movsd	.LC3(%rip), %xmm7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%edx, %ecx
	movl	%r13d, %eax
	pxor	%xmm1, %xmm1
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm1
	ucomisd	%xmm1, %xmm4
	ja	.L59
	sqrtsd	%xmm1, %xmm1
.L17:
	comisd	%xmm2, %xmm1
	jbe	.L18
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm9
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm6
	jbe	.L20
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	movapd	%xmm1, %xmm8
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	cmpnlesd	%xmm0, %xmm8
	andpd	%xmm7, %xmm8
	addsd	%xmm8, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm9
.L20:
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm8
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm6
	jbe	.L21
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	movapd	%xmm0, %xmm8
	cmpnlesd	%xmm1, %xmm8
	andpd	%xmm7, %xmm8
	subsd	%xmm8, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm8
.L21:
	ucomisd	%xmm8, %xmm9
	jp	.L18
	je	.L13
.L18:
	addl	$1, %edx
.L6:
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	comisd	%xmm2, %xmm5
	ja	.L25
.L26:
	movsd	.LC1(%rip), %xmm5
	movsd	.LC3(%rip), %xmm7
.L24:
	addl	$1, %r13d
	pxor	%xmm8, %xmm8
	cvtsi2sdl	%r13d, %xmm8
	ucomisd	%xmm8, %xmm4
	ja	.L60
	sqrtsd	%xmm8, %xmm8
	movsd	.LC3(%rip), %xmm6
	movl	$1, %edx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L40:
	addl	$1, %edx
.L29:
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%edx, %xmm2
	comisd	%xmm2, %xmm8
	jbe	.L24
	movl	%edx, %ecx
	movl	%r13d, %eax
	pxor	%xmm1, %xmm1
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm1
	ucomisd	%xmm1, %xmm4
	ja	.L61
	sqrtsd	%xmm1, %xmm1
.L39:
	comisd	%xmm1, %xmm2
	jnb	.L40
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm10
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm5
	jbe	.L41
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	movapd	%xmm1, %xmm9
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	cmpnlesd	%xmm0, %xmm9
	andpd	%xmm6, %xmm9
	addsd	%xmm9, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm10
.L41:
	movapd	%xmm1, %xmm0
	movapd	%xmm1, %xmm9
	movapd	%xmm3, %xmm2
	andpd	%xmm3, %xmm0
	ucomisd	%xmm0, %xmm5
	jbe	.L42
	cvttsd2siq	%xmm1, %rax
	pxor	%xmm0, %xmm0
	andnpd	%xmm1, %xmm2
	cvtsi2sdq	%rax, %xmm0
	movapd	%xmm0, %xmm9
	cmpnlesd	%xmm1, %xmm9
	andpd	%xmm7, %xmm9
	subsd	%xmm9, %xmm0
	orpd	%xmm2, %xmm0
	movapd	%xmm0, %xmm9
.L42:
	ucomisd	%xmm9, %xmm10
	jp	.L40
	jne	.L40
.L35:
	cvttsd2sil	%xmm1, %ecx
.L23:
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	addl	$1, %edx
.L4:
	pxor	%xmm7, %xmm7
	movapd	%xmm5, %xmm0
	movl	%edx, 16(%rsp)
	cvtsi2sdl	%edx, %xmm7
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm7, (%rsp)
	call	sqrt@PLT
	comisd	(%rsp), %xmm0
	pxor	%xmm4, %xmm4
	movq	.LC2(%rip), %xmm3
	jbe	.L26
	movl	16(%rsp), %edx
	movl	%r13d, %eax
	pxor	%xmm0, %xmm0
	movsd	8(%rsp), %xmm5
	movl	%edx, %ecx
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L64
	sqrtsd	%xmm0, %xmm1
.L10:
	comisd	(%rsp), %xmm1
	jbe	.L11
	movapd	%xmm1, %xmm0
	movl	%edx, 28(%rsp)
	movsd	%xmm5, 16(%rsp)
	movsd	%xmm1, (%rsp)
	call	ceil@PLT
	movsd	(%rsp), %xmm1
	movsd	%xmm0, 8(%rsp)
	movapd	%xmm1, %xmm0
	call	floor@PLT
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm5
	pxor	%xmm4, %xmm4
	movl	28(%rsp), %edx
	movq	.LC2(%rip), %xmm3
	ucomisd	%xmm0, %xmm2
	jp	.L11
	movsd	(%rsp), %xmm1
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	cvttsd2sil	%xmm1, %ecx
	movl	%ecx, %eax
	orl	%edx, %eax
	jne	.L23
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L3:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	movapd	%xmm1, %xmm0
	movl	%edx, 16(%rsp)
	movsd	%xmm8, 8(%rsp)
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movl	16(%rsp), %edx
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm8
	movq	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm7
	movq	.LC1(%rip), %rax
	movsd	(%rsp), %xmm2
	movapd	%xmm7, %xmm6
	movq	%rax, %xmm5
	jmp	.L39
.L59:
	movapd	%xmm1, %xmm0
	movl	%edx, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movq	.LC3(%rip), %rax
	movl	16(%rsp), %edx
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm5
	movq	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm7
	movq	.LC1(%rip), %rax
	movsd	(%rsp), %xmm2
	movq	%rax, %xmm6
	jmp	.L17
.L64:
	call	sqrt@PLT
	movsd	8(%rsp), %xmm5
	movl	16(%rsp), %edx
	movapd	%xmm0, %xmm1
	jmp	.L10
.L65:
	call	__stack_chk_fail@PLT
.L60:
	movl	$1, %edx
	jmp	.L27
.L34:
	addl	$1, %edx
.L27:
	pxor	%xmm7, %xmm7
	movapd	%xmm8, %xmm0
	movl	%edx, 16(%rsp)
	cvtsi2sdl	%edx, %xmm7
	movsd	%xmm8, 8(%rsp)
	movsd	%xmm7, (%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rax
	comisd	(%rsp), %xmm0
	pxor	%xmm4, %xmm4
	movq	.LC2(%rip), %xmm3
	movq	%rax, %xmm5
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm7
	jbe	.L24
	movl	16(%rsp), %edx
	movl	%r13d, %eax
	pxor	%xmm0, %xmm0
	movsd	8(%rsp), %xmm8
	movl	%edx, %ecx
	imull	%edx, %ecx
	subl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L66
	sqrtsd	%xmm0, %xmm1
.L33:
	movsd	(%rsp), %xmm6
	comisd	%xmm1, %xmm6
	jnb	.L34
	movapd	%xmm1, %xmm0
	movl	%edx, 28(%rsp)
	movsd	%xmm8, 16(%rsp)
	movsd	%xmm1, (%rsp)
	call	ceil@PLT
	movsd	(%rsp), %xmm1
	movsd	%xmm0, 8(%rsp)
	movapd	%xmm1, %xmm0
	call	floor@PLT
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm8
	movl	28(%rsp), %edx
	ucomisd	%xmm0, %xmm2
	jp	.L34
	movsd	(%rsp), %xmm1
	jne	.L34
	jmp	.L35
.L66:
	call	sqrt@PLT
	movsd	8(%rsp), %xmm8
	movl	16(%rsp), %edx
	movapd	%xmm0, %xmm1
	jmp	.L33
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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>
#include <math.h>

int main(){
    int h,w,a;
    int i;
    double j;
    while(scanf("%d %d",&h,&w)){
        int mh=0,mw=0;
        if(h==0 && w==0)break;
        a = h*h + w*w;
        for(i=h+1;i<sqrt(a);i++){ 
            j=sqrt(a - i*i);
            if(i<j&&ceil(j) == floor(j)){ 
                mh = i;
                mw = j;
                break;
            }
        }//end of for(i=h+1...)
        
        if(!mh&&!mw){
            while(!mh){
                a++;
                for(i=1;i<sqrt(a);i++){
                    j=sqrt(a - i*i);
                    if(i>=j)continue;
                    if(ceil(j) == floor(j)){
                        mh = i;
                        mw = j;
                        break;
                    }
                }
            }
        }//end_of_if(!mh&&!mw)
        
        printf("%d %d\n",mh,mw);
    }
    return 0;
}
1 2
1 3
2 3
1 4
2 4
5 6
1 8
4 7
98 100
99 100
0 0

1 3
2 3
1 4
2 4
3 4
1 8
4 7
2 8
3 140
89 109

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>
#include <math.h>

int main(){
    int h,w,a;
    int i;
    double j;
    while(scanf("%d %d",&h,&w)){
        int mh=0,mw=0;
        if(h==0 && w==0)break;
        a = h*h + w*w;
        for(i=h+1;i<sqrt(a);i++){ 
            j=sqrt(a - i*i);
            if(i<j&&ceil(j) == floor(j)){ 
                mh = i;
                mw = j;
                break;
            }
        }//end of for(i=h+1...)
        
        if(!mh&&!mw){
            while(!mh){
                a++;
                for(i=1;i<sqrt(a);i++){
                    j=sqrt(a - i*i);
                    if(i>=j)continue;
                    if(ceil(j) == floor(j)){
                        mh = i;
                        mw = j;
                        break;
                    }
                }
            }
        }//end_of_if(!mh&&!mw)
        
        printf("%d %d\n",mh,mw);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%d %d"
	.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
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L20:
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	.L26
.L3:
	movl	-56(%rbp), %edx
	movl	-56(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-52(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -48(%rbp)
	movl	-56(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L5
.L10:
	movl	-44(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-44(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L6
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	ceil@PLT
	movq	%xmm0, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	floor@PLT
	movq	%rbx, %xmm3
	ucomisd	%xmm0, %xmm3
	jp	.L6
	movq	%rbx, %xmm4
	ucomisd	%xmm0, %xmm4
	jne	.L6
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L6:
	addl	$1, -44(%rbp)
.L5:
	pxor	%xmm5, %xmm5
	cvtsi2sdl	-44(%rbp), %xmm5
	movsd	%xmm5, -72(%rbp)
	pxor	%xmm6, %xmm6
	cvtsi2sdl	-48(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm7
	comisd	-72(%rbp), %xmm7
	ja	.L10
.L9:
	cmpl	$0, -40(%rbp)
	jne	.L11
	cmpl	$0, -36(%rbp)
	jne	.L11
	jmp	.L12
.L19:
	addl	$1, -48(%rbp)
	movl	$1, -44(%rbp)
	jmp	.L13
.L18:
	movl	-44(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jnb	.L27
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	ceil@PLT
	movq	%xmm0, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	floor@PLT
	movq	%rbx, %xmm2
	ucomisd	%xmm0, %xmm2
	jp	.L16
	movq	%rbx, %xmm3
	ucomisd	%xmm0, %xmm3
	jne	.L16
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -36(%rbp)
	jmp	.L12
.L27:
	nop
.L16:
	addl	$1, -44(%rbp)
.L13:
	pxor	%xmm4, %xmm4
	cvtsi2sdl	-44(%rbp), %xmm4
	movsd	%xmm4, -72(%rbp)
	pxor	%xmm6, %xmm6
	cvtsi2sdl	-48(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm7
	comisd	-72(%rbp), %xmm7
	ja	.L18
.L12:
	cmpl	$0, -40(%rbp)
	je	.L19
.L11:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L20
	jmp	.L4
.L26:
	nop
.L4:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%d %d"
	.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
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L20:
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	.L26
.L3:
	movl	-56(%rbp), %edx
	movl	-56(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-52(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -48(%rbp)
	movl	-56(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L5
.L10:
	movl	-44(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-44(%rbp), %xmm1
	movsd	-32(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L6
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	ceil@PLT
	movq	%xmm0, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	floor@PLT
	movq	%rbx, %xmm3
	ucomisd	%xmm0, %xmm3
	jp	.L6
	movq	%rbx, %xmm4
	ucomisd	%xmm0, %xmm4
	jne	.L6
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L6:
	addl	$1, -44(%rbp)
.L5:
	pxor	%xmm5, %xmm5
	cvtsi2sdl	-44(%rbp), %xmm5
	movsd	%xmm5, -72(%rbp)
	pxor	%xmm6, %xmm6
	cvtsi2sdl	-48(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm7
	comisd	-72(%rbp), %xmm7
	ja	.L10
.L9:
	cmpl	$0, -40(%rbp)
	jne	.L11
	cmpl	$0, -36(%rbp)
	jne	.L11
	jmp	.L12
.L19:
	addl	$1, -48(%rbp)
	movl	$1, -44(%rbp)
	jmp	.L13
.L18:
	movl	-44(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-44(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jnb	.L27
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	ceil@PLT
	movq	%xmm0, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	floor@PLT
	movq	%rbx, %xmm2
	ucomisd	%xmm0, %xmm2
	jp	.L16
	movq	%rbx, %xmm3
	ucomisd	%xmm0, %xmm3
	jne	.L16
	movl	-44(%rbp), %eax
	movl	%eax, -40(%rbp)
	movsd	-32(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -36(%rbp)
	jmp	.L12
.L27:
	nop
.L16:
	addl	$1, -44(%rbp)
.L13:
	pxor	%xmm4, %xmm4
	cvtsi2sdl	-44(%rbp), %xmm4
	movsd	%xmm4, -72(%rbp)
	pxor	%xmm6, %xmm6
	cvtsi2sdl	-48(%rbp), %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm7
	comisd	-72(%rbp), %xmm7
	ja	.L18
.L12:
	cmpl	$0, -40(%rbp)
	je	.L19
.L11:
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L20
	jmp	.L4
.L26:
	nop
.L4:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	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:
