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 int getlcm(long long int,long long int);
long long int getgcd(long long int,long long int);

int main(void)
{
    int n;
    long long int lcm=1,num=0;
    scanf("%d",&n);
    while(n>0)
    {
        scanf("%lld",&num);
        lcm=getlcm(lcm,num);
        n--;
    }
    printf("%lld",lcm);
    return 0;
}

long long int getlcm(long long int a,long long int b)
{
    return a/getgcd(a,b)*b;
}

long long int getgcd(long long int m,long long int n)
{
    if(n==0) return m;
    return getgcd(n,m%n);
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L3
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdx, %rcx
.L3:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L9
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	imulq	%rsi, %r12
.L5:
	movl	12(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jg	.L4
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %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
.L14:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	getlcm
	.type	getlcm, @function
getlcm:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L17
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rdx, %rcx
.L17:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L20
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	getlcm, .-getlcm
	.p2align 4
	.globl	getgcd
	.type	getgcd, @function
getgcd:
.LFB25:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L24
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r8
.L24:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L32
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	getgcd, .-getgcd
	.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
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L3
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdx, %rcx
.L3:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L9
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	imulq	%rsi, %r12
.L5:
	movl	12(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jg	.L4
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %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
.L14:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	getlcm
	.type	getlcm, @function
getlcm:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L17
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rdx, %rcx
.L17:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L20
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	getlcm, .-getlcm
	.p2align 4
	.globl	getgcd
	.type	getgcd, @function
getgcd:
.LFB25:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L24
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r8
.L24:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L32
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	getgcd, .-getgcd
	.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
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L3
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdx, %rcx
.L3:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L9
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	imulq	%rsi, %r12
.L5:
	movl	12(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jg	.L4
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %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
.L14:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	getlcm
	.type	getlcm, @function
getlcm:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L17
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rdx, %rcx
.L17:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L20
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	getlcm, .-getlcm
	.p2align 4
	.globl	getgcd
	.type	getgcd, @function
getgcd:
.LFB25:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L24
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r8
.L24:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L32
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	getgcd, .-getgcd
	.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 int getlcm(long long int,long long int);
long long int getgcd(long long int,long long int);

int main(void)
{
    int n;
    long long int lcm=1,num=0;
    scanf("%d",&n);
    while(n>0)
    {
        scanf("%lld",&num);
        lcm=getlcm(lcm,num);
        n--;
    }
    printf("%lld",lcm);
    return 0;
}

long long int getlcm(long long int a,long long int b)
{
    return a/getgcd(a,b)*b;
}

long long int getgcd(long long int m,long long int n)
{
    if(n==0) return m;
    return getgcd(n,m%n);
}

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

```c
#include <stdio.h>

long long int getlcm(long long int,long long int);
long long int getgcd(long long int,long long int);

int main(void)
{
    int n;
    long long int lcm=1,num=0;
    scanf("%d",&n);
    while(n>0)
    {
        scanf("%lld",&num);
        lcm=getlcm(lcm,num);
        n--;
    }
    printf("%lld",lcm);
    return 0;
}

long long int getlcm(long long int a,long long int b)
{
    return a/getgcd(a,b)*b;
}

long long int getgcd(long long int m,long long int n)
{
    if(n==0) return m;
    return getgcd(n,m%n);
}

```

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 int getlcm(long long int,long long int);
long long int getgcd(long long int,long long int);

int main(void)
{
    int n;
    long long int lcm=1,num=0;
    scanf("%d",&n);
    while(n>0)
    {
        scanf("%lld",&num);
        lcm=getlcm(lcm,num);
        n--;
    }
    printf("%lld",lcm);
    return 0;
}

long long int getlcm(long long int a,long long int b)
{
    return a/getgcd(a,b)*b;
}

long long int getgcd(long long int m,long long int n)
{
    if(n==0) return m;
    return getgcd(n,m%n);
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L3
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdx, %rcx
.L3:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L9
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	imulq	%rsi, %r12
.L5:
	movl	12(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jg	.L4
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %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
.L14:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	getlcm
	.type	getlcm, @function
getlcm:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L17
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rdx, %rcx
.L17:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L20
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	getlcm, .-getlcm
	.p2align 4
	.globl	getgcd
	.type	getgcd, @function
getgcd:
.LFB25:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L24
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r8
.L24:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L32
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	getgcd, .-getgcd
	.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
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movq	$0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L3
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdx, %rcx
.L3:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L9
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	imulq	%rsi, %r12
.L5:
	movl	12(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jg	.L4
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %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
.L14:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	getlcm
	.type	getlcm, @function
getlcm:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jne	.L17
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rdx, %rcx
.L17:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L20
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	getlcm, .-getlcm
	.p2align 4
	.globl	getgcd
	.type	getgcd, @function
getgcd:
.LFB25:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L24
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r8
.L24:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L32
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	getgcd, .-getgcd
	.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:
```