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>

int gcd(int a, int b) {
	while (b > 0) {
		int r = a % b;
		a = b;
		b = r;
	}
	return a;
}

int N, X;
int x[114514];

int asumisu[114514];

int main(void) {
	int i;
	int mikakosi;
	if (scanf("%d%d", &N, &X) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &x[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		asumisu[i] = x[i] - X;
		if (asumisu[i] < 0) asumisu[i] = -asumisu[i];
	}
	mikakosi = asumisu[0];
	for (i = 1; i < N; i++) {
		mikakosi = gcd(mikakosi, asumisu[i]);
	}
	printf("%d\n", mikakosi);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	jmp	.L2
.L3:
	movl	-20(%rbp), %eax
	cltd
	idivl	-24(%rbp)
	movl	%edx, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L2:
	cmpl	$0, -24(%rbp)
	jg	.L3
	movl	-20(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd, .-gcd
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 458056
x:
	.zero	458056
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	$16, %rsp
	leaq	X(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L7
.L6:
	movl	$0, -8(%rbp)
	jmp	.L8
.L10:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L9
	movl	$1, %eax
	jmp	.L7
.L9:
	addl	$1, -8(%rbp)
.L8:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	$0, -8(%rbp)
	jmp	.L11
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	X(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L12
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L12:
	addl	$1, -8(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L13
	movl	asumisu(%rip), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L14
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L15
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L7:
	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	gcd
	.type	gcd, @function
gcd:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %edx
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %r8d
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jg	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	leaq	X(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %rdi
	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
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L11
	cmpl	$0, N(%rip)
	jle	.L10
	leaq	x(%rip), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%r12, %r14
	movq	%r12, %rbx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	movl	N(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L37
.L12:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L38
.L11:
	movl	$1, %eax
.L7:
	popq	%rbx
	.cfi_remember_state
	.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
.L37:
	.cfi_restore_state
	testl	%eax, %eax
	jle	.L10
	leal	-1(%rax), %edx
	movl	X(%rip), %esi
	cmpl	$2, %edx
	jbe	.L30
	movl	%eax, %ecx
	movd	%esi, %xmm6
	pxor	%xmm5, %xmm5
	shrl	$2, %ecx
	leaq	asumisu(%rip), %rdi
	pshufd	$0, %xmm6, %xmm4
	subl	$1, %ecx
	leaq	16+x(%rip), %r8
	movq	%rdi, %rdx
	salq	$4, %rcx
	addq	%r8, %rcx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	addq	$16, %r12
	addq	$16, %rdx
	movdqa	-16(%r12), %xmm3
	psubd	-16(%r12), %xmm2
	psubd	%xmm4, %xmm3
	pcmpgtd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pandn	-16(%rdx), %xmm1
	pand	%xmm0, %xmm2
	por	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, -16(%rdx)
	cmpq	%rcx, %r12
	jne	.L14
	movl	%eax, %edx
	andl	$-4, %edx
	testb	$3, %al
	je	.L18
.L13:
	movslq	%edx, %r8
	movl	%esi, %r9d
	movl	(%r14,%r8,4), %ecx
	subl	%ecx, %r9d
	subl	%esi, %ecx
	cmovs	%r9d, %ecx
	movl	%ecx, (%rdi,%r8,4)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %r8
	movl	%esi, %r9d
	movl	(%r14,%r8,4), %ecx
	subl	%ecx, %r9d
	subl	%esi, %ecx
	cmovs	%r9d, %ecx
	addl	$2, %edx
	movl	%ecx, (%rdi,%r8,4)
	cmpl	%edx, %eax
	jle	.L18
	movslq	%edx, %rdx
	movl	%esi, %r8d
	movl	(%r14,%rdx,4), %ecx
	subl	%ecx, %r8d
	subl	%esi, %ecx
	cmovs	%r8d, %ecx
	movl	%ecx, (%rdi,%rdx,4)
.L18:
	movl	asumisu(%rip), %r8d
.L16:
	leaq	4+asumisu(%rip), %rcx
	leal	-2(%rax), %edx
	leaq	4(%rcx), %rax
	leaq	(%rax,%rdx,4), %rsi
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	.L27
	movl	%r8d, %eax
	.p2align 4,,10
	.p2align 3
.L28:
	movl	%edx, %r8d
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jg	.L28
.L27:
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	jne	.L29
.L17:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L7
.L10:
	movl	asumisu(%rip), %r8d
	jmp	.L17
.L21:
	movl	asumisu(%rip), %r8d
	cmpl	$1, %eax
	jg	.L16
	jmp	.L17
.L30:
	xorl	%edx, %edx
	leaq	asumisu(%rip), %rdi
	jmp	.L13
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	asumisu
	.bss
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 458056
x:
	.zero	458056
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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	gcd
	.type	gcd, @function
gcd:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %edx
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %r8d
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jg	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	leaq	X(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %rdi
	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
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L11
	cmpl	$0, N(%rip)
	jle	.L10
	leaq	x(%rip), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%r12, %r14
	movq	%r12, %rbx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	movl	N(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L37
.L12:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L38
.L11:
	movl	$1, %eax
.L7:
	popq	%rbx
	.cfi_remember_state
	.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
.L37:
	.cfi_restore_state
	testl	%eax, %eax
	jle	.L10
	leal	-1(%rax), %edx
	movl	X(%rip), %esi
	cmpl	$2, %edx
	jbe	.L30
	movl	%eax, %ecx
	movd	%esi, %xmm6
	pxor	%xmm5, %xmm5
	shrl	$2, %ecx
	leaq	asumisu(%rip), %rdi
	pshufd	$0, %xmm6, %xmm4
	subl	$1, %ecx
	leaq	16+x(%rip), %r8
	movq	%rdi, %rdx
	salq	$4, %rcx
	addq	%r8, %rcx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	addq	$16, %r12
	addq	$16, %rdx
	movdqa	-16(%r12), %xmm3
	psubd	-16(%r12), %xmm2
	psubd	%xmm4, %xmm3
	pcmpgtd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pandn	-16(%rdx), %xmm1
	pand	%xmm0, %xmm2
	por	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, -16(%rdx)
	cmpq	%rcx, %r12
	jne	.L14
	movl	%eax, %edx
	andl	$-4, %edx
	testb	$3, %al
	je	.L18
.L13:
	movslq	%edx, %r8
	movl	%esi, %r9d
	movl	(%r14,%r8,4), %ecx
	subl	%ecx, %r9d
	subl	%esi, %ecx
	cmovs	%r9d, %ecx
	movl	%ecx, (%rdi,%r8,4)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %r8
	movl	%esi, %r9d
	movl	(%r14,%r8,4), %ecx
	subl	%ecx, %r9d
	subl	%esi, %ecx
	cmovs	%r9d, %ecx
	addl	$2, %edx
	movl	%ecx, (%rdi,%r8,4)
	cmpl	%edx, %eax
	jle	.L18
	movslq	%edx, %rdx
	movl	%esi, %r8d
	movl	(%r14,%rdx,4), %ecx
	subl	%ecx, %r8d
	subl	%esi, %ecx
	cmovs	%r8d, %ecx
	movl	%ecx, (%rdi,%rdx,4)
.L18:
	movl	asumisu(%rip), %r8d
.L16:
	leaq	4+asumisu(%rip), %rcx
	leal	-2(%rax), %edx
	leaq	4(%rcx), %rax
	leaq	(%rax,%rdx,4), %rsi
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	.L27
	movl	%r8d, %eax
	.p2align 4,,10
	.p2align 3
.L28:
	movl	%edx, %r8d
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jg	.L28
.L27:
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	jne	.L29
.L17:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L7
.L10:
	movl	asumisu(%rip), %r8d
	jmp	.L17
.L21:
	movl	asumisu(%rip), %r8d
	cmpl	$1, %eax
	jg	.L16
	jmp	.L17
.L30:
	xorl	%edx, %edx
	leaq	asumisu(%rip), %rdi
	jmp	.L13
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	asumisu
	.bss
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 458056
x:
	.zero	458056
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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>

int gcd(int a, int b) {
	while (b > 0) {
		int r = a % b;
		a = b;
		b = r;
	}
	return a;
}

int N, X;
int x[114514];

int asumisu[114514];

int main(void) {
	int i;
	int mikakosi;
	if (scanf("%d%d", &N, &X) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &x[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		asumisu[i] = x[i] - X;
		if (asumisu[i] < 0) asumisu[i] = -asumisu[i];
	}
	mikakosi = asumisu[0];
	for (i = 1; i < N; i++) {
		mikakosi = gcd(mikakosi, asumisu[i]);
	}
	printf("%d\n", mikakosi);
	return 0;
}

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 <stdio.h>

int gcd(int a, int b) {
	while (b > 0) {
		int r = a % b;
		a = b;
		b = r;
	}
	return a;
}

int N, X;
int x[114514];

int asumisu[114514];

int main(void) {
	int i;
	int mikakosi;
	if (scanf("%d%d", &N, &X) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &x[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		asumisu[i] = x[i] - X;
		if (asumisu[i] < 0) asumisu[i] = -asumisu[i];
	}
	mikakosi = asumisu[0];
	for (i = 1; i < N; i++) {
		mikakosi = gcd(mikakosi, asumisu[i]);
	}
	printf("%d\n", mikakosi);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	jmp	.L2
.L3:
	movl	-20(%rbp), %eax
	cltd
	idivl	-24(%rbp)
	movl	%edx, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L2:
	cmpl	$0, -24(%rbp)
	jg	.L3
	movl	-20(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd, .-gcd
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 458056
x:
	.zero	458056
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	$16, %rsp
	leaq	X(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L7
.L6:
	movl	$0, -8(%rbp)
	jmp	.L8
.L10:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L9
	movl	$1, %eax
	jmp	.L7
.L9:
	addl	$1, -8(%rbp)
.L8:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	$0, -8(%rbp)
	jmp	.L11
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	X(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L12
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L12:
	addl	$1, -8(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L13
	movl	asumisu(%rip), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L14
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L15
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L7:
	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	gcd
	.type	gcd, @function
gcd:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	jmp	.L2
.L3:
	movl	-20(%rbp), %eax
	cltd
	idivl	-24(%rbp)
	movl	%edx, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L2:
	cmpl	$0, -24(%rbp)
	jg	.L3
	movl	-20(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd, .-gcd
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 458056
x:
	.zero	458056
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	$16, %rsp
	leaq	X(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L7
.L6:
	movl	$0, -8(%rbp)
	jmp	.L8
.L10:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L9
	movl	$1, %eax
	jmp	.L7
.L9:
	addl	$1, -8(%rbp)
.L8:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	$0, -8(%rbp)
	jmp	.L11
.L13:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	X(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L12
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	negl	%eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L12:
	addl	$1, -8(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L13
	movl	asumisu(%rip), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L14
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L15
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L7:
	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:
