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 <string.h>
#include <math.h>
#pragma warning(disable : 4996)

int fab(long long a, long long b) {

    int ta = 0, tb = 0;
    long long tmp;

    tmp = a;
    while (tmp > 0) {
        tmp /= 10;
        ta++;
    }

    tmp = b;
    while (tmp > 0) {
        tmp /= 10;
        tb++;
    }

    return (ta>=tb) ? ta : tb;
}

int main()
{
    long long N;
    int min = 11;

    scanf("%lld", &N);

    for (long long A = 1; A <= sqrt(N); A++) {
        long long B = N / A;
        if (B * A == N) {
            int p = fab(A, B);
            if (p < min)
                min = p;
        }

    }

    printf("%d", min);

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	fab
	.type	fab, @function
fab:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -16(%rbp)
.L2:
	cmpq	$0, -8(%rbp)
	jg	.L3
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	jmp	.L4
.L5:
	movq	-8(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L4:
	cmpq	$0, -8(%rbp)
	jg	.L5
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fab, .-fab
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$11, -40(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -24(%rbp)
	jmp	.L8
.L10:
	movq	-32(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L9
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	fab
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L9
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
.L9:
	addq	$1, -24(%rbp)
.L8:
	pxor	%xmm1, %xmm1
	cvtsi2sdq	-24(%rbp), %xmm1
	movsd	%xmm1, -56(%rbp)
	movq	-32(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-56(%rbp), %xmm3
	jnb	.L10
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	fab
	.type	fab, @function
fab:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rdx
	xorl	%edi, %edi
	testq	%rdx, %rdx
	jle	.L2
	movabsq	$-3689348814741910323, %r8
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdx, %rax
	movq	%rdx, %rcx
	addl	$1, %edi
	mulq	%r8
	shrq	$3, %rdx
	cmpq	$9, %rcx
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	testq	%rsi, %rsi
	jle	.L4
	movabsq	$-3689348814741910323, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rsi, %rax
	movq	%rsi, %rcx
	addl	$1, %r8d
	mulq	%r9
	movq	%rdx, %rsi
	shrq	$3, %rsi
	cmpq	$9, %rcx
	jg	.L5
.L4:
	cmpl	%r8d, %edi
	movl	%r8d, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	fab, .-fab
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	movl	$11, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movabsq	$-3689348814741910323, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	$1, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbp, %xmm1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rbx
.L12:
	ucomisd	%xmm1, %xmm3
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rbx, %xmm2
	ja	.L26
	movapd	%xmm1, %xmm0
	sqrtsd	%xmm0, %xmm0
.L19:
	comisd	%xmm2, %xmm0
	jb	.L28
	movq	%rbp, %rax
	cqto
	idivq	%rbx
	movq	%rax, %rsi
	movq	%rax, %rcx
	movq	%rbx, %rax
	imulq	%rsi, %rax
	cmpq	%rbp, %rax
	jne	.L13
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdx, %rax
	addl	$1, %r8d
	mulq	%r12
	shrq	$3, %rdx
	jne	.L14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	addl	$1, %edi
	mulq	%r12
	movq	%rdx, %rcx
	shrq	$3, %rcx
	cmpq	$9, %rsi
	jg	.L16
.L15:
	cmpl	%r8d, %edi
	cmovl	%r8d, %edi
	cmpl	%edi, %r13d
	cmovg	%edi, %r13d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %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
.L26:
	.cfi_restore_state
	movapd	%xmm1, %xmm0
	movsd	%xmm2, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movsd	8(%rsp), %xmm2
	movsd	(%rsp), %xmm1
	pxor	%xmm3, %xmm3
	jmp	.L19
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
	.p2align 4
	.globl	fab
	.type	fab, @function
fab:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rdx
	xorl	%edi, %edi
	testq	%rdx, %rdx
	jle	.L2
	movabsq	$-3689348814741910323, %r8
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdx, %rax
	movq	%rdx, %rcx
	addl	$1, %edi
	mulq	%r8
	shrq	$3, %rdx
	cmpq	$9, %rcx
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	testq	%rsi, %rsi
	jle	.L4
	movabsq	$-3689348814741910323, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rsi, %rax
	movq	%rsi, %rcx
	addl	$1, %r8d
	mulq	%r9
	movq	%rdx, %rsi
	shrq	$3, %rsi
	cmpq	$9, %rcx
	jg	.L5
.L4:
	cmpl	%r8d, %edi
	movl	%r8d, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	fab, .-fab
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	movl	$11, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movabsq	$-3689348814741910323, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	$1, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rbp
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	cvtsi2sdq	%rbp, %xmm1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rbx
.L12:
	ucomisd	%xmm1, %xmm3
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rbx, %xmm2
	ja	.L26
	movapd	%xmm1, %xmm0
	sqrtsd	%xmm0, %xmm0
.L19:
	comisd	%xmm2, %xmm0
	jb	.L28
	movq	%rbp, %rax
	cqto
	idivq	%rbx
	movq	%rax, %rsi
	movq	%rax, %rcx
	movq	%rbx, %rax
	imulq	%rsi, %rax
	cmpq	%rbp, %rax
	jne	.L13
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdx, %rax
	addl	$1, %r8d
	mulq	%r12
	shrq	$3, %rdx
	jne	.L14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rcx, %rax
	movq	%rcx, %rsi
	addl	$1, %edi
	mulq	%r12
	movq	%rdx, %rcx
	shrq	$3, %rcx
	cmpq	$9, %rsi
	jg	.L16
.L15:
	cmpl	%r8d, %edi
	cmovl	%r8d, %edi
	cmpl	%edi, %r13d
	cmovg	%edi, %r13d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %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
.L26:
	.cfi_restore_state
	movapd	%xmm1, %xmm0
	movsd	%xmm2, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movsd	8(%rsp), %xmm2
	movsd	(%rsp), %xmm1
	pxor	%xmm3, %xmm3
	jmp	.L19
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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 <string.h>
#include <math.h>
#pragma warning(disable : 4996)

int fab(long long a, long long b) {

    int ta = 0, tb = 0;
    long long tmp;

    tmp = a;
    while (tmp > 0) {
        tmp /= 10;
        ta++;
    }

    tmp = b;
    while (tmp > 0) {
        tmp /= 10;
        tb++;
    }

    return (ta>=tb) ? ta : tb;
}

int main()
{
    long long N;
    int min = 11;

    scanf("%lld", &N);

    for (long long A = 1; A <= sqrt(N); A++) {
        long long B = N / A;
        if (B * A == N) {
            int p = fab(A, B);
            if (p < min)
                min = p;
        }

    }

    printf("%d", min);

    return 0;

}
101914
 17346
 2771679283
 7026
 5110764300
 472
 10211397040
 16034112351
 010
 53937807463

5 3 9 4 7 2 6 8 1 10
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 <string.h>
#include <math.h>
#pragma warning(disable : 4996)

int fab(long long a, long long b) {

    int ta = 0, tb = 0;
    long long tmp;

    tmp = a;
    while (tmp > 0) {
        tmp /= 10;
        ta++;
    }

    tmp = b;
    while (tmp > 0) {
        tmp /= 10;
        tb++;
    }

    return (ta>=tb) ? ta : tb;
}

int main()
{
    long long N;
    int min = 11;

    scanf("%lld", &N);

    for (long long A = 1; A <= sqrt(N); A++) {
        long long B = N / A;
        if (B * A == N) {
            int p = fab(A, B);
            if (p < min)
                min = p;
        }

    }

    printf("%d", min);

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	fab
	.type	fab, @function
fab:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -16(%rbp)
.L2:
	cmpq	$0, -8(%rbp)
	jg	.L3
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	jmp	.L4
.L5:
	movq	-8(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L4:
	cmpq	$0, -8(%rbp)
	jg	.L5
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fab, .-fab
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$11, -40(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -24(%rbp)
	jmp	.L8
.L10:
	movq	-32(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L9
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	fab
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L9
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
.L9:
	addq	$1, -24(%rbp)
.L8:
	pxor	%xmm1, %xmm1
	cvtsi2sdq	-24(%rbp), %xmm1
	movsd	%xmm1, -56(%rbp)
	movq	-32(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-56(%rbp), %xmm3
	jnb	.L10
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	fab
	.type	fab, @function
fab:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -16(%rbp)
.L2:
	cmpq	$0, -8(%rbp)
	jg	.L3
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	jmp	.L4
.L5:
	movq	-8(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L4:
	cmpq	$0, -8(%rbp)
	jg	.L5
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fab, .-fab
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$11, -40(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -24(%rbp)
	jmp	.L8
.L10:
	movq	-32(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L9
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	fab
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L9
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
.L9:
	addq	$1, -24(%rbp)
.L8:
	pxor	%xmm1, %xmm1
	cvtsi2sdq	-24(%rbp), %xmm1
	movsd	%xmm1, -56(%rbp)
	movq	-32(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-56(%rbp), %xmm3
	jnb	.L10
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
