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

int main()
{
	int i, Q;
	long long A, B, C, ans;
	scanf("%d", &Q);
	for (i = 1; i <= Q; i++) {
		scanf("%lld %lld", &A, &B);
		C = (long long)sqrt(A * B);
		ans = (C - 1) * 2;
		if (C * (C + 1) < A * B) ans++;
		else if (C * C == A * B) ans--;
		if (A != B) printf("%lld\n", ans);
		else printf("%lld\n", A + B - 2);
	}

	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$1, %ebx
	leaq	32(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC3(%rip), %r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
.L7:
	movq	%r8, %rdx
	cmpq	%rsi, %rcx
	jne	.L15
	leaq	-2(%rcx,%rcx), %rdx
.L15:
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jl	.L2
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rcx, %r15
	imulq	%rsi, %r15
	cvtsi2sdq	%r15, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
.L5:
	cvttsd2siq	%xmm0, %rax
	leaq	1(%rax), %rdx
	leaq	-2(%rax,%rax), %r8
	imulq	%rax, %rdx
	cmpq	%rdx, %r15
	jg	.L17
	imulq	%rax, %rax
	cmpq	%rax, %r15
	sete	%al
	movzbl	%al, %eax
	subq	%rax, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rsi, 8(%rsp)
	movq	%rcx, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rsi
	movq	(%rsp), %rcx
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$1, %ebx
	leaq	32(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC3(%rip), %r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
.L7:
	movq	%r8, %rdx
	cmpq	%rsi, %rcx
	jne	.L15
	leaq	-2(%rcx,%rcx), %rdx
.L15:
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jl	.L2
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rcx, %r15
	imulq	%rsi, %r15
	cvtsi2sdq	%r15, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
.L5:
	cvttsd2siq	%xmm0, %rax
	leaq	1(%rax), %rdx
	leaq	-2(%rax,%rax), %r8
	imulq	%rax, %rdx
	cmpq	%rdx, %r15
	jg	.L17
	imulq	%rax, %rax
	cmpq	%rax, %r15
	sete	%al
	movzbl	%al, %eax
	subq	%rax, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rsi, 8(%rsp)
	movq	%rcx, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rsi
	movq	(%rsp), %rcx
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$1, %ebx
	leaq	32(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC3(%rip), %r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
.L7:
	movq	%r8, %rdx
	cmpq	%rsi, %rcx
	jne	.L15
	leaq	-2(%rcx,%rcx), %rdx
.L15:
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jl	.L2
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rcx, %r15
	imulq	%rsi, %r15
	cvtsi2sdq	%r15, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
.L5:
	cvttsd2siq	%xmm0, %rax
	leaq	1(%rax), %rdx
	leaq	-2(%rax,%rax), %r8
	imulq	%rax, %rdx
	cmpq	%rdx, %r15
	jg	.L17
	imulq	%rax, %rax
	cmpq	%rax, %r15
	sete	%al
	movzbl	%al, %eax
	subq	%rax, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rsi, 8(%rsp)
	movq	%rcx, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rsi
	movq	(%rsp), %rcx
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>
#include <math.h>

int main()
{
	int i, Q;
	long long A, B, C, ans;
	scanf("%d", &Q);
	for (i = 1; i <= Q; i++) {
		scanf("%lld %lld", &A, &B);
		C = (long long)sqrt(A * B);
		ans = (C - 1) * 2;
		if (C * (C + 1) < A * B) ans++;
		else if (C * C == A * B) ans--;
		if (A != B) printf("%lld\n", ans);
		else printf("%lld\n", A + B - 2);
	}

	fflush(stdout);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <math.h>

int main()
{
	int i, Q;
	long long A, B, C, ans;
	scanf("%d", &Q);
	for (i = 1; i <= Q; i++) {
		scanf("%lld %lld", &A, &B);
		C = (long long)sqrt(A * B);
		ans = (C - 1) * 2;
		if (C * (C + 1) < A * B) ans++;
		else if (C * C == A * B) ans--;
		if (A != B) printf("%lld\n", ans);
		else printf("%lld\n", A + B - 2);
	}

	fflush(stdout);
	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:

8
1 4
10 5
3 3
4 11
8 9
22 11
8 36
314159265 358979323
 8
1 4
10 5
3 3
4 11
8 9
22 3
8 36
314159265 358979323
 8
1 4
10 5
3 3
4 11
8 9
22 3
8 36
314159265 541984339
 8
1 4
10 5
3 3
4 11
8 9
22 3
7 36
314159265 541984339
 8
1 4
10 5
3 3
5 11
8 9
22 3
7 36
314159265 541984339
 8
2 4
10 5
3 3
5 11
8 9
22 3
7 36
314159265 541984339
 8
2 4
10 5
3 6
5 11
8 9
22 3
7 36
314159265 541984339
 8
2 4
10 5
3 6
5 11
8 9
22 3
3 36
314159265 541984339
 8
2 4
10 5
3 7
5 11
8 9
22 3
3 36
314159265 541984339
 8
2 4
10 5
3 7
5 11
8 9
22 1
3 36
314159265 541984339

1
12
4
11
14
29
31
671644785
 1
12
4
11
14
14
31
671644785
 1
12
4
11
14
14
31
825274259
 1
12
4
11
14
14
29
825274259
 1
12
4
12
14
14
29
825274259
 3
12
4
12
14
14
29
825274259
 3
12
6
12
14
14
29
825274259
 3
12
6
12
14
14
18
825274259
 3
12
7
12
14
14
18
825274259
 3
12
7
12
14
7
18
825274259

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

int main()
{
	int i, Q;
	long long A, B, C, ans;
	scanf("%d", &Q);
	for (i = 1; i <= Q; i++) {
		scanf("%lld %lld", &A, &B);
		C = (long long)sqrt(A * B);
		ans = (C - 1) * 2;
		if (C * (C + 1) < A * B) ans++;
		else if (C * C == A * B) ans--;
		if (A != B) printf("%lld\n", ans);
		else printf("%lld\n", A + B - 2);
	}

	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$1, %ebx
	leaq	32(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC3(%rip), %r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
.L7:
	movq	%r8, %rdx
	cmpq	%rsi, %rcx
	jne	.L15
	leaq	-2(%rcx,%rcx), %rdx
.L15:
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jl	.L2
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rcx, %r15
	imulq	%rsi, %r15
	cvtsi2sdq	%r15, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
.L5:
	cvttsd2siq	%xmm0, %rax
	leaq	1(%rax), %rdx
	leaq	-2(%rax,%rax), %r8
	imulq	%rax, %rdx
	cmpq	%rdx, %r15
	jg	.L17
	imulq	%rax, %rax
	cmpq	%rax, %r15
	sete	%al
	movzbl	%al, %eax
	subq	%rax, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rsi, 8(%rsp)
	movq	%rcx, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rsi
	movq	(%rsp), %rcx
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$1, %ebx
	leaq	32(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC3(%rip), %r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
.L7:
	movq	%r8, %rdx
	cmpq	%rsi, %rcx
	jne	.L15
	leaq	-2(%rcx,%rcx), %rdx
.L15:
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jl	.L2
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movq	%rcx, %r15
	imulq	%rsi, %r15
	cvtsi2sdq	%r15, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L13
	sqrtsd	%xmm0, %xmm0
.L5:
	cvttsd2siq	%xmm0, %rax
	leaq	1(%rax), %rdx
	leaq	-2(%rax,%rax), %r8
	imulq	%rax, %rdx
	cmpq	%rdx, %r15
	jg	.L17
	imulq	%rax, %rax
	cmpq	%rax, %r15
	sete	%al
	movzbl	%al, %eax
	subq	%rax, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rsi, 8(%rsp)
	movq	%rcx, (%rsp)
	call	sqrt@PLT
	movq	8(%rsp), %rsi
	movq	(%rsp), %rcx
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```