Given the following C code and 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);
}
```

Assembly Code:

```assembly
	.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:
```

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
	.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
```assembly
	.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:
```
```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);
}
```
Given the following C 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);
}
```

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:

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 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);
}
```

Assembly Code:

```assembly
	.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:
```

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
	.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:
```