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>
long long gcdf(long long a,long long b){
  long long p = a;
  long long q = b;
  long long c = 0;
  c = p%q;
  while(c != 0){
    p = q;
    q = c;
    c = p%q;
  }
  return q;
}

int main(){
  int n = 0;
  int i = 0;
  long long t[100] = {};
  long long gcd = 0;
  long long lcm = 0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%lld",&t[i]);
  }
  lcm = t[0];
  gcd = t[0];
  for(i=1;i<n;i++){
    gcd = gcdf(lcm,t[i]);
    lcm = lcm / gcd * t[i] ;
  }
  printf("%lld",lcm);
  return 0;
}
  
          
  
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	gcdf
	.type	gcdf, @function
gcdf:
.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, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -16(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -16(%rbp)
.L2:
	cmpq	$0, -16(%rbp)
	jne	.L3
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcdf, .-gcdf
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -840(%rbp)
	movl	$0, -836(%rbp)
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$0, -824(%rbp)
	movq	$0, -832(%rbp)
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -836(%rbp)
	jmp	.L6
.L7:
	leaq	-816(%rbp), %rdx
	movl	-836(%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
	addl	$1, -836(%rbp)
.L6:
	movl	-840(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L7
	movq	-816(%rbp), %rax
	movq	%rax, -832(%rbp)
	movq	-816(%rbp), %rax
	movq	%rax, -824(%rbp)
	movl	$1, -836(%rbp)
	jmp	.L8
.L9:
	movl	-836(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rdx
	movq	-832(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	gcdf
	movq	%rax, -824(%rbp)
	movq	-832(%rbp), %rax
	cqto
	idivq	-824(%rbp)
	movq	%rax, %rdx
	movl	-836(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movq	%rax, -832(%rbp)
	addl	$1, -836(%rbp)
.L8:
	movl	-840(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L9
	movq	-832(%rbp), %rax
	movq	%rax, %rsi
	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	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	gcdf
	.type	gcdf, @function
gcdf:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rsi, %rax
	movq	%rdx, %r8
	cqto
	movq	%r8, %rsi
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rsi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	gcdf, .-gcdf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$832, %rsp
	.cfi_def_cfa_offset 864
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$8, %rbx
	cmpl	%ebp, %eax
	jg	.L9
	movq	16(%rsp), %r8
	cmpl	$1, %eax
	jle	.L10
	subl	$2, %eax
	leaq	24(%rsp), %rdi
	leaq	32(%rsp,%rax,8), %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r8, %rax
	movq	(%rdi), %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L15
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L12
.L11:
	movq	%r8, %rax
	addq	$8, %rdi
	cqto
	idivq	%rcx
	movq	%rax, %r8
	imulq	%rsi, %r8
	cmpq	%rdi, %r9
	jne	.L13
.L10:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%rsi, %rcx
	jmp	.L11
.L8:
	movq	16(%rsp), %r8
	leaq	.LC1(%rip), %r12
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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	gcdf
	.type	gcdf, @function
gcdf:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rsi, %rax
	movq	%rdx, %r8
	cqto
	movq	%r8, %rsi
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rsi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	gcdf, .-gcdf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$832, %rsp
	.cfi_def_cfa_offset 864
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$8, %rbx
	cmpl	%ebp, %eax
	jg	.L9
	movq	16(%rsp), %r8
	cmpl	$1, %eax
	jle	.L10
	subl	$2, %eax
	leaq	24(%rsp), %rdi
	leaq	32(%rsp,%rax,8), %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r8, %rax
	movq	(%rdi), %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L15
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rdx, %rcx
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L12
.L11:
	movq	%r8, %rax
	addq	$8, %rdi
	cqto
	idivq	%rcx
	movq	%rax, %r8
	imulq	%rsi, %r8
	cmpq	%rdi, %r9
	jne	.L13
.L10:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	%rsi, %rcx
	jmp	.L11
.L8:
	movq	16(%rsp), %r8
	leaq	.LC1(%rip), %r12
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>
long long gcdf(long long a,long long b){
  long long p = a;
  long long q = b;
  long long c = 0;
  c = p%q;
  while(c != 0){
    p = q;
    q = c;
    c = p%q;
  }
  return q;
}

int main(){
  int n = 0;
  int i = 0;
  long long t[100] = {};
  long long gcd = 0;
  long long lcm = 0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%lld",&t[i]);
  }
  lcm = t[0];
  gcd = t[0];
  for(i=1;i<n;i++){
    gcd = gcdf(lcm,t[i]);
    lcm = lcm / gcd * t[i] ;
  }
  printf("%lld",lcm);
  return 0;
}
  
          
  
  
5
2
5
10
1000000001000000000
1000000000000000000
 2
2
5
 5
2
6
10
1000000001000000000
1000000000000000000
 2
3
5
 5
2
6
10
1001000001000000000
1000000000000000000
 2
3
3
 5
2
6
10
1001000001000000000
1100000000000000000
 2
3
7
 2
3
9
 2
3
4

-5930898827444486144 10 654047591376093184 15 -3927134622237589504 3 -6164522491832303616 21 9 12
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>
long long gcdf(long long a,long long b){
  long long p = a;
  long long q = b;
  long long c = 0;
  c = p%q;
  while(c != 0){
    p = q;
    q = c;
    c = p%q;
  }
  return q;
}

int main(){
  int n = 0;
  int i = 0;
  long long t[100] = {};
  long long gcd = 0;
  long long lcm = 0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%lld",&t[i]);
  }
  lcm = t[0];
  gcd = t[0];
  for(i=1;i<n;i++){
    gcd = gcdf(lcm,t[i]);
    lcm = lcm / gcd * t[i] ;
  }
  printf("%lld",lcm);
  return 0;
}
  
          
  
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	gcdf
	.type	gcdf, @function
gcdf:
.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, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -16(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -16(%rbp)
.L2:
	cmpq	$0, -16(%rbp)
	jne	.L3
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcdf, .-gcdf
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -840(%rbp)
	movl	$0, -836(%rbp)
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$0, -824(%rbp)
	movq	$0, -832(%rbp)
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -836(%rbp)
	jmp	.L6
.L7:
	leaq	-816(%rbp), %rdx
	movl	-836(%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
	addl	$1, -836(%rbp)
.L6:
	movl	-840(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L7
	movq	-816(%rbp), %rax
	movq	%rax, -832(%rbp)
	movq	-816(%rbp), %rax
	movq	%rax, -824(%rbp)
	movl	$1, -836(%rbp)
	jmp	.L8
.L9:
	movl	-836(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rdx
	movq	-832(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	gcdf
	movq	%rax, -824(%rbp)
	movq	-832(%rbp), %rax
	cqto
	idivq	-824(%rbp)
	movq	%rax, %rdx
	movl	-836(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movq	%rax, -832(%rbp)
	addl	$1, -836(%rbp)
.L8:
	movl	-840(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L9
	movq	-832(%rbp), %rax
	movq	%rax, %rsi
	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	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	gcdf
	.type	gcdf, @function
gcdf:
.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, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -16(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -16(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-24(%rbp)
	movq	%rdx, -16(%rbp)
.L2:
	cmpq	$0, -16(%rbp)
	jne	.L3
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcdf, .-gcdf
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -840(%rbp)
	movl	$0, -836(%rbp)
	leaq	-816(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$0, -824(%rbp)
	movq	$0, -832(%rbp)
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -836(%rbp)
	jmp	.L6
.L7:
	leaq	-816(%rbp), %rdx
	movl	-836(%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
	addl	$1, -836(%rbp)
.L6:
	movl	-840(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L7
	movq	-816(%rbp), %rax
	movq	%rax, -832(%rbp)
	movq	-816(%rbp), %rax
	movq	%rax, -824(%rbp)
	movl	$1, -836(%rbp)
	jmp	.L8
.L9:
	movl	-836(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rdx
	movq	-832(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	gcdf
	movq	%rax, -824(%rbp)
	movq	-832(%rbp), %rax
	cqto
	idivq	-824(%rbp)
	movq	%rax, %rdx
	movl	-836(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movq	%rax, -832(%rbp)
	addl	$1, -836(%rbp)
.L8:
	movl	-840(%rbp), %eax
	cmpl	%eax, -836(%rbp)
	jl	.L9
	movq	-832(%rbp), %rax
	movq	%rax, %rsi
	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	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
