Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <inttypes.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

intmax_t get_gcd(intmax_t b, intmax_t a)
{
    while (b != 0) {
        intmax_t r = a % b;
        a = b;
        b = r;
    }

    return a;
}

int main(int argc, char const* argv[])
{
    int64_t N, X, x[(int)1e5];
    int64_t gcd, d[(int)1e5];

    scanf("%" PRId64 "%" PRId64, &N, &X);
    for (int i = 0; i < N; i++) {
        scanf("%" PRId64, &x[i]);
        d[i] = llabs(x[i] - X);
    }

    gcd = d[0];
    for (int i = 1; i < N; i++) {
        gcd = get_gcd(gcd, d[i]);
    }

    printf("%" PRId64 "\n", gcd);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	get_gcd
	.type	get_gcd, @function
get_gcd:
.LFB6:
	.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)
	jmp	.L2
.L3:
	movq	-32(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L2:
	cmpq	$0, -24(%rbp)
	jne	.L3
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_gcd, .-get_gcd
	.section	.rodata
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2624, %rsp
	movl	%edi, -1600052(%rbp)
	movq	%rsi, -1600064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600032(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600048(%rbp)
	jmp	.L6
.L7:
	leaq	-1600016(%rbp), %rdx
	movl	-1600048(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	movq	-1600032(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movl	-1600048(%rbp), %eax
	cltq
	movq	%rdx, -800016(%rbp,%rax,8)
	addl	$1, -1600048(%rbp)
.L6:
	movl	-1600048(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L7
	movq	-800016(%rbp), %rax
	movq	%rax, -1600024(%rbp)
	movl	$1, -1600044(%rbp)
	jmp	.L8
.L9:
	movl	-1600044(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-1600024(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_gcd
	movq	%rax, -1600024(%rbp)
	addl	$1, -1600044(%rbp)
.L8:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-1600024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	get_gcd
	.type	get_gcd, @function
get_gcd:
.LFB51:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	movq	%rsi, %rax
	testq	%rdi, %rdi
	jne	.L3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rdx, %r8
.L3:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L5
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rsi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	get_gcd, .-get_gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L9
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	leaq	800016(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	(%r12), %rax
	subq	8(%rsp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	$8, %r12
	movq	%rax, 0(%rbp,%rbx,8)
	movq	(%rsp), %rax
	addq	$1, %rbx
	cmpq	%rbx, %rax
	jg	.L10
	movq	800016(%rsp), %rdx
	cmpq	$1, %rax
	jle	.L11
	leaq	800024(%rsp), %rsi
	leaq	0(%rbp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L14:
	movq	(%rsi), %rax
	testq	%rdx, %rdx
	je	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L13
.L16:
	addq	$8, %rsi
	movq	%rax, %rdx
	cmpq	%rdi, %rsi
	jne	.L14
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1600040, %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
.L9:
	.cfi_restore_state
	movq	800016(%rsp), %rdx
	jmp	.L11
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	get_gcd
	.type	get_gcd, @function
get_gcd:
.LFB51:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	movq	%rsi, %rax
	testq	%rdi, %rdi
	jne	.L3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rdx, %r8
.L3:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L5
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rsi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	get_gcd, .-get_gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L9
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	leaq	800016(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	(%r12), %rax
	subq	8(%rsp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	$8, %r12
	movq	%rax, 0(%rbp,%rbx,8)
	movq	(%rsp), %rax
	addq	$1, %rbx
	cmpq	%rbx, %rax
	jg	.L10
	movq	800016(%rsp), %rdx
	cmpq	$1, %rax
	jle	.L11
	leaq	800024(%rsp), %rsi
	leaq	0(%rbp,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L14:
	movq	(%rsi), %rax
	testq	%rdx, %rdx
	je	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L13
.L16:
	addq	$8, %rsi
	movq	%rax, %rdx
	cmpq	%rdi, %rsi
	jne	.L14
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1600040, %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
.L9:
	.cfi_restore_state
	movq	800016(%rsp), %rdx
	jmp	.L11
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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 <inttypes.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

intmax_t get_gcd(intmax_t b, intmax_t a)
{
    while (b != 0) {
        intmax_t r = a % b;
        a = b;
        b = r;
    }

    return a;
}

int main(int argc, char const* argv[])
{
    int64_t N, X, x[(int)1e5];
    int64_t gcd, d[(int)1e5];

    scanf("%" PRId64 "%" PRId64, &N, &X);
    for (int i = 0; i < N; i++) {
        scanf("%" PRId64, &x[i]);
        d[i] = llabs(x[i] - X);
    }

    gcd = d[0];
    for (int i = 1; i < N; i++) {
        gcd = get_gcd(gcd, d[i]);
    }

    printf("%" PRId64 "\n", gcd);
}

3 81
33 79 57
 1 1
1010000000
 3 81
33 70 57
 1 1
1010000100
 3 81
33 42 57
 1 0
1010000100
 1 0
1010010100
 1 1
1010010100
 1 1
1000000100
 1 0
1010000000

2
 1009999999
 1
 1010000099
 3
 1010000100
 1010010100
 1010010099
 1000000099
 1010000000

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <inttypes.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

intmax_t get_gcd(intmax_t b, intmax_t a)
{
    while (b != 0) {
        intmax_t r = a % b;
        a = b;
        b = r;
    }

    return a;
}

int main(int argc, char const* argv[])
{
    int64_t N, X, x[(int)1e5];
    int64_t gcd, d[(int)1e5];

    scanf("%" PRId64 "%" PRId64, &N, &X);
    for (int i = 0; i < N; i++) {
        scanf("%" PRId64, &x[i]);
        d[i] = llabs(x[i] - X);
    }

    gcd = d[0];
    for (int i = 1; i < N; i++) {
        gcd = get_gcd(gcd, d[i]);
    }

    printf("%" PRId64 "\n", gcd);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	get_gcd
	.type	get_gcd, @function
get_gcd:
.LFB6:
	.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)
	jmp	.L2
.L3:
	movq	-32(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L2:
	cmpq	$0, -24(%rbp)
	jne	.L3
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_gcd, .-get_gcd
	.section	.rodata
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2624, %rsp
	movl	%edi, -1600052(%rbp)
	movq	%rsi, -1600064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600032(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600048(%rbp)
	jmp	.L6
.L7:
	leaq	-1600016(%rbp), %rdx
	movl	-1600048(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	movq	-1600032(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movl	-1600048(%rbp), %eax
	cltq
	movq	%rdx, -800016(%rbp,%rax,8)
	addl	$1, -1600048(%rbp)
.L6:
	movl	-1600048(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L7
	movq	-800016(%rbp), %rax
	movq	%rax, -1600024(%rbp)
	movl	$1, -1600044(%rbp)
	jmp	.L8
.L9:
	movl	-1600044(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-1600024(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_gcd
	movq	%rax, -1600024(%rbp)
	addl	$1, -1600044(%rbp)
.L8:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-1600024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	get_gcd
	.type	get_gcd, @function
get_gcd:
.LFB6:
	.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)
	jmp	.L2
.L3:
	movq	-32(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L2:
	cmpq	$0, -24(%rbp)
	jne	.L3
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_gcd, .-get_gcd
	.section	.rodata
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2624, %rsp
	movl	%edi, -1600052(%rbp)
	movq	%rsi, -1600064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600032(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600048(%rbp)
	jmp	.L6
.L7:
	leaq	-1600016(%rbp), %rdx
	movl	-1600048(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1600048(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rax
	movq	-1600032(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movl	-1600048(%rbp), %eax
	cltq
	movq	%rdx, -800016(%rbp,%rax,8)
	addl	$1, -1600048(%rbp)
.L6:
	movl	-1600048(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L7
	movq	-800016(%rbp), %rax
	movq	%rax, -1600024(%rbp)
	movl	$1, -1600044(%rbp)
	jmp	.L8
.L9:
	movl	-1600044(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-1600024(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_gcd
	movq	%rax, -1600024(%rbp)
	addl	$1, -1600044(%rbp)
.L8:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-1600024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
