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

#define llong long long
#define fr(i,l,r) for(i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))




int main(void)
{
	//変数の宣言
	int q;
	llong int a[110];
	llong int b[110];
	
	//よく使う変数
	int i,j,k,l;
	int flag=0;
	llong int ans=0;
	int count=0;
	int sum=0;
	long int temp,temp1,temp2;
	int max,min;
	int len;
	//データの読み込み
	
	scanf("%d",&q);
	
	for(i=0;i<q;i++){
		scanf("%lld %lld",&a[i],&b[i]);
	}
	
//	for(i=0;i<q;i++){
//		printf("%lld %lld\n",a[i],b[i]);
//	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	for(i=0;i<q;i++){
//		printf("i=%d q=%d\n",i,q);
		if(a[i]==b[i]){
			printf("%lld\n",2*a[i]-2);
		}else if(abs(a[i]-b[i])==1){
			printf("%lld\n",a[i]+b[i]-3);
		}else{
			temp=(long int)sqrt(a[i]*b[i]);
			if(temp*(temp+1)<a[i]*b[i]){
				printf("%ld\n",temp*2-1);
			}else if(temp*(temp+1)==a[i]*b[i]){
				printf("%ld\n",temp*2-2);
			}else if(temp*temp==a[i]*b[i]){
				printf("%ld\n",temp*2-3);
			}else{
				printf("%ld\n",temp*2-2);
			}
		}
	}
//	printf("計算部分終了\n");
	//出力
	
	
//	printf("結果の出力終了\n");
	
	return 0;
	
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1824, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1804(%rbp)
	movq	$0, -1792(%rbp)
	movl	$0, -1800(%rbp)
	movl	$0, -1796(%rbp)
	leaq	-1812(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1808(%rbp)
	jmp	.L2
.L3:
	leaq	-896(%rbp), %rdx
	movl	-1808(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1776(%rbp), %rcx
	movl	-1808(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1808(%rbp)
.L2:
	movl	-1812(%rbp), %eax
	cmpl	%eax, -1808(%rbp)
	jl	.L3
	movl	$0, -1808(%rbp)
	jmp	.L4
.L11:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jne	.L5
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L5:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	movl	%eax, %edx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	subq	$3, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L7:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	pxor	%xmm1, %xmm1
	cvtsi2sdq	%rax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2siq	%xmm0, %rax
	movq	%rax, -1784(%rbp)
	movq	-1784(%rbp), %rax
	addq	$1, %rax
	imulq	-1784(%rbp), %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jge	.L8
	movq	-1784(%rbp), %rax
	addq	%rax, %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L8:
	movq	-1784(%rbp), %rax
	addq	$1, %rax
	imulq	-1784(%rbp), %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jne	.L9
	movq	-1784(%rbp), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L9:
	movq	-1784(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jne	.L10
	movq	-1784(%rbp), %rax
	addq	%rax, %rax
	subq	$3, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L10:
	movq	-1784(%rbp), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L6:
	addl	$1, -1808(%rbp)
.L4:
	movl	-1812(%rbp), %eax
	cmpl	%eax, -1808(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%d"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1808, %rsp
	.cfi_def_cfa_offset 1856
	movq	%fs:40, %rax
	movq	%rax, 1800(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	32(%rsp), %rbp
	xorl	%r12d, %r12d
	leaq	912(%rsp), %rbx
	movq	%rbp, %r13
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%rbx,%r12,8), %rdx
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addq	$1, %r12
	addq	$8, %r13
	cmpl	%r12d, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	.LC4(%rip), %r12
	leaq	.LC2(%rip), %r13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdq	%rax, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L20
	sqrtsd	%xmm0, %xmm0
.L10:
	cvttsd2siq	%xmm0, %rdx
	leaq	1(%rdx), %rcx
	imulq	%rdx, %rcx
	cmpq	%rcx, %rax
	jg	.L23
	je	.L24
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	cmpq	%rcx, %rax
	je	.L25
	leaq	-2(%rdx,%rdx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	addq	$1, %r14
	cmpl	%r14d, 28(%rsp)
	jle	.L4
.L14:
	movq	0(%rbp,%r14,8), %rax
	movq	(%rbx,%r14,8), %rdx
	cmpq	%rdx, %rax
	je	.L26
	movl	%eax, %esi
	subl	%edx, %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovs	%esi, %ecx
	cmpl	$1, %ecx
	jne	.L7
	leaq	-3(%rax,%rdx), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$1, %r14
	cmpl	%r14d, 28(%rsp)
	jg	.L14
.L4:
	movq	1800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	leaq	-2(%rax,%rax), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	-1(%rdx,%rdx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	leaq	-3(%rdx,%rdx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L24:
	subq	$1, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	%rdx, %rdx
	call	__printf_chk@PLT
	jmp	.L6
.L20:
	movq	%rax, 8(%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rax
	jmp	.L10
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%d"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1808, %rsp
	.cfi_def_cfa_offset 1856
	movq	%fs:40, %rax
	movq	%rax, 1800(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	32(%rsp), %rbp
	xorl	%r12d, %r12d
	leaq	912(%rsp), %rbx
	movq	%rbp, %r13
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%rbx,%r12,8), %rdx
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addq	$1, %r12
	addq	$8, %r13
	cmpl	%r12d, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	.LC4(%rip), %r12
	leaq	.LC2(%rip), %r13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	imulq	%rdx, %rax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdq	%rax, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L20
	sqrtsd	%xmm0, %xmm0
.L10:
	cvttsd2siq	%xmm0, %rdx
	leaq	1(%rdx), %rcx
	imulq	%rdx, %rcx
	cmpq	%rcx, %rax
	jg	.L23
	je	.L24
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	cmpq	%rcx, %rax
	je	.L25
	leaq	-2(%rdx,%rdx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	addq	$1, %r14
	cmpl	%r14d, 28(%rsp)
	jle	.L4
.L14:
	movq	0(%rbp,%r14,8), %rax
	movq	(%rbx,%r14,8), %rdx
	cmpq	%rdx, %rax
	je	.L26
	movl	%eax, %esi
	subl	%edx, %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovs	%esi, %ecx
	cmpl	$1, %ecx
	jne	.L7
	leaq	-3(%rax,%rdx), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$1, %r14
	cmpl	%r14d, 28(%rsp)
	jg	.L14
.L4:
	movq	1800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1808, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	leaq	-2(%rax,%rax), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	-1(%rdx,%rdx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	leaq	-3(%rdx,%rdx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L24:
	subq	$1, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	%rdx, %rdx
	call	__printf_chk@PLT
	jmp	.L6
.L20:
	movq	%rax, 8(%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rax
	jmp	.L10
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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>
#include <math.h>
#include <string.h>
#include <stdlib.h>

#define llong long long
#define fr(i,l,r) for(i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))




int main(void)
{
	//変数の宣言
	int q;
	llong int a[110];
	llong int b[110];
	
	//よく使う変数
	int i,j,k,l;
	int flag=0;
	llong int ans=0;
	int count=0;
	int sum=0;
	long int temp,temp1,temp2;
	int max,min;
	int len;
	//データの読み込み
	
	scanf("%d",&q);
	
	for(i=0;i<q;i++){
		scanf("%lld %lld",&a[i],&b[i]);
	}
	
//	for(i=0;i<q;i++){
//		printf("%lld %lld\n",a[i],b[i]);
//	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	for(i=0;i<q;i++){
//		printf("i=%d q=%d\n",i,q);
		if(a[i]==b[i]){
			printf("%lld\n",2*a[i]-2);
		}else if(abs(a[i]-b[i])==1){
			printf("%lld\n",a[i]+b[i]-3);
		}else{
			temp=(long int)sqrt(a[i]*b[i]);
			if(temp*(temp+1)<a[i]*b[i]){
				printf("%ld\n",temp*2-1);
			}else if(temp*(temp+1)==a[i]*b[i]){
				printf("%ld\n",temp*2-2);
			}else if(temp*temp==a[i]*b[i]){
				printf("%ld\n",temp*2-3);
			}else{
				printf("%ld\n",temp*2-2);
			}
		}
	}
//	printf("計算部分終了\n");
	//出力
	
	
//	printf("結果の出力終了\n");
	
	return 0;
	
}


8
1 4
10 5
3 3
4 11
8 9
22 40
8 36
314159265 358979323

1
12
4
11
14
57
31
671644785

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

#define llong long long
#define fr(i,l,r) for(i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))




int main(void)
{
	//変数の宣言
	int q;
	llong int a[110];
	llong int b[110];
	
	//よく使う変数
	int i,j,k,l;
	int flag=0;
	llong int ans=0;
	int count=0;
	int sum=0;
	long int temp,temp1,temp2;
	int max,min;
	int len;
	//データの読み込み
	
	scanf("%d",&q);
	
	for(i=0;i<q;i++){
		scanf("%lld %lld",&a[i],&b[i]);
	}
	
//	for(i=0;i<q;i++){
//		printf("%lld %lld\n",a[i],b[i]);
//	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	for(i=0;i<q;i++){
//		printf("i=%d q=%d\n",i,q);
		if(a[i]==b[i]){
			printf("%lld\n",2*a[i]-2);
		}else if(abs(a[i]-b[i])==1){
			printf("%lld\n",a[i]+b[i]-3);
		}else{
			temp=(long int)sqrt(a[i]*b[i]);
			if(temp*(temp+1)<a[i]*b[i]){
				printf("%ld\n",temp*2-1);
			}else if(temp*(temp+1)==a[i]*b[i]){
				printf("%ld\n",temp*2-2);
			}else if(temp*temp==a[i]*b[i]){
				printf("%ld\n",temp*2-3);
			}else{
				printf("%ld\n",temp*2-2);
			}
		}
	}
//	printf("計算部分終了\n");
	//出力
	
	
//	printf("結果の出力終了\n");
	
	return 0;
	
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1824, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1804(%rbp)
	movq	$0, -1792(%rbp)
	movl	$0, -1800(%rbp)
	movl	$0, -1796(%rbp)
	leaq	-1812(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1808(%rbp)
	jmp	.L2
.L3:
	leaq	-896(%rbp), %rdx
	movl	-1808(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1776(%rbp), %rcx
	movl	-1808(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1808(%rbp)
.L2:
	movl	-1812(%rbp), %eax
	cmpl	%eax, -1808(%rbp)
	jl	.L3
	movl	$0, -1808(%rbp)
	jmp	.L4
.L11:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jne	.L5
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L5:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	movl	%eax, %edx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	subq	$3, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L7:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	pxor	%xmm1, %xmm1
	cvtsi2sdq	%rax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2siq	%xmm0, %rax
	movq	%rax, -1784(%rbp)
	movq	-1784(%rbp), %rax
	addq	$1, %rax
	imulq	-1784(%rbp), %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jge	.L8
	movq	-1784(%rbp), %rax
	addq	%rax, %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L8:
	movq	-1784(%rbp), %rax
	addq	$1, %rax
	imulq	-1784(%rbp), %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jne	.L9
	movq	-1784(%rbp), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L9:
	movq	-1784(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jne	.L10
	movq	-1784(%rbp), %rax
	addq	%rax, %rax
	subq	$3, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L10:
	movq	-1784(%rbp), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L6:
	addl	$1, -1808(%rbp)
.L4:
	movl	-1812(%rbp), %eax
	cmpl	%eax, -1808(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1824, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1804(%rbp)
	movq	$0, -1792(%rbp)
	movl	$0, -1800(%rbp)
	movl	$0, -1796(%rbp)
	leaq	-1812(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1808(%rbp)
	jmp	.L2
.L3:
	leaq	-896(%rbp), %rdx
	movl	-1808(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1776(%rbp), %rcx
	movl	-1808(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1808(%rbp)
.L2:
	movl	-1812(%rbp), %eax
	cmpl	%eax, -1808(%rbp)
	jl	.L3
	movl	$0, -1808(%rbp)
	jmp	.L4
.L11:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jne	.L5
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L5:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	movl	%eax, %edx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	subq	$3, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L7:
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	pxor	%xmm1, %xmm1
	cvtsi2sdq	%rax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2siq	%xmm0, %rax
	movq	%rax, -1784(%rbp)
	movq	-1784(%rbp), %rax
	addq	$1, %rax
	imulq	-1784(%rbp), %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jge	.L8
	movq	-1784(%rbp), %rax
	addq	%rax, %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L8:
	movq	-1784(%rbp), %rax
	addq	$1, %rax
	imulq	-1784(%rbp), %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jne	.L9
	movq	-1784(%rbp), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L9:
	movq	-1784(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movl	-1808(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1808(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jne	.L10
	movq	-1784(%rbp), %rax
	addq	%rax, %rax
	subq	$3, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L10:
	movq	-1784(%rbp), %rax
	subq	$1, %rax
	addq	%rax, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L6:
	addl	$1, -1808(%rbp)
.L4:
	movl	-1812(%rbp), %eax
	cmpl	%eax, -1808(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
