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

Assembly Code:

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

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

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:

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

Assembly Code:

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

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