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

int main(void){
    long long int a,b,c,d,s,x,y,z;

    scanf("%lld %lld %lld %lld",&a,&b,&c,&d);

    s = LCM(c,d);
    x = b / c - a / c;
    if(a % c == 0)x++;
    y = b / d - a / d;
    if(a % d == 0)y++;
    z = b / s - a / s;
    if(a % s == 0)z++;

    printf("%lld",b - a + 1 - x - y + z);

    return 0;
}

long long int LCM(long long int a,long long int b)
{
 
  long long int r, x, tmp;
 
  x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return x / b;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r8
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%r8, %rdi
	imulq	%r9, %rdi
	cmpq	%r9, %r8
	jle	.L9
	movq	%r9, %rcx
	movq	%r8, %rax
.L2:
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rdx, %rcx
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L4
.L3:
	movq	%rdi, %rax
	movq	16(%rsp), %rcx
	cqto
	idivq	%rsi
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%r9
	movq	%rax, %r10
	movq	%rsi, %rax
	cqto
	idivq	%r9
	subq	%rax, %r10
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r10
	cqto
	idivq	%r8
	movq	%rax, %r9
	movq	%rsi, %rax
	cqto
	idivq	%r8
	subq	%rax, %r9
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r9
	cqto
	subq	%rsi, %rcx
	idivq	%rdi
	addq	$1, %rcx
	subq	%r10, %rcx
	subq	%r9, %rcx
	movq	%rax, %r8
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rsi
	cqto
	idivq	%rdi
	movl	$1, %edi
	subq	%rax, %r8
	cmpq	$1, %rdx
	movq	%r8, %rdx
	adcq	%rcx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movq	%r8, %rcx
	movq	%r9, %rax
	jmp	.L2
.L10:
	movq	%rcx, %rsi
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	LCM
	.type	LCM, @function
LCM:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	imulq	%rsi, %r8
	cmpq	%rsi, %rdi
	jge	.L16
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
.L16:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%rsi, %rax
	movq	%rdx, %rcx
	cqto
	movq	%rcx, %rsi
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L18
	movq	%r8, %rax
	cqto
	idivq	%rcx
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	LCM, .-LCM
	.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	"%lld %lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r8
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%r8, %rdi
	imulq	%r9, %rdi
	cmpq	%r9, %r8
	jle	.L9
	movq	%r9, %rcx
	movq	%r8, %rax
.L2:
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rdx, %rcx
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L4
.L3:
	movq	%rdi, %rax
	movq	16(%rsp), %rcx
	cqto
	idivq	%rsi
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%r9
	movq	%rax, %r10
	movq	%rsi, %rax
	cqto
	idivq	%r9
	subq	%rax, %r10
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r10
	cqto
	idivq	%r8
	movq	%rax, %r9
	movq	%rsi, %rax
	cqto
	idivq	%r8
	subq	%rax, %r9
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r9
	cqto
	subq	%rsi, %rcx
	idivq	%rdi
	addq	$1, %rcx
	subq	%r10, %rcx
	subq	%r9, %rcx
	movq	%rax, %r8
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rsi
	cqto
	idivq	%rdi
	movl	$1, %edi
	subq	%rax, %r8
	cmpq	$1, %rdx
	movq	%r8, %rdx
	adcq	%rcx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movq	%r8, %rcx
	movq	%r9, %rax
	jmp	.L2
.L10:
	movq	%rcx, %rsi
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	LCM
	.type	LCM, @function
LCM:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	imulq	%rsi, %r8
	cmpq	%rsi, %rdi
	jge	.L16
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
.L16:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%rsi, %rax
	movq	%rdx, %rcx
	cqto
	movq	%rcx, %rsi
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L18
	movq	%r8, %rax
	cqto
	idivq	%rcx
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	LCM, .-LCM
	.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	"%lld %lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r8
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%r8, %rdi
	imulq	%r9, %rdi
	cmpq	%r9, %r8
	jle	.L9
	movq	%r9, %rcx
	movq	%r8, %rax
.L2:
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rdx, %rcx
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L4
.L3:
	movq	%rdi, %rax
	movq	16(%rsp), %rcx
	cqto
	idivq	%rsi
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%r9
	movq	%rax, %r10
	movq	%rsi, %rax
	cqto
	idivq	%r9
	subq	%rax, %r10
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r10
	cqto
	idivq	%r8
	movq	%rax, %r9
	movq	%rsi, %rax
	cqto
	idivq	%r8
	subq	%rax, %r9
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r9
	cqto
	subq	%rsi, %rcx
	idivq	%rdi
	addq	$1, %rcx
	subq	%r10, %rcx
	subq	%r9, %rcx
	movq	%rax, %r8
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rsi
	cqto
	idivq	%rdi
	movl	$1, %edi
	subq	%rax, %r8
	cmpq	$1, %rdx
	movq	%r8, %rdx
	adcq	%rcx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movq	%r8, %rcx
	movq	%r9, %rax
	jmp	.L2
.L10:
	movq	%rcx, %rsi
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	LCM
	.type	LCM, @function
LCM:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	imulq	%rsi, %r8
	cmpq	%rsi, %rdi
	jge	.L16
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
.L16:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%rsi, %rax
	movq	%rdx, %rcx
	cqto
	movq	%rcx, %rsi
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L18
	movq	%r8, %rax
	cqto
	idivq	%rcx
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	LCM, .-LCM
	.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 LCM(long long int,long long int );

int main(void){
    long long int a,b,c,d,s,x,y,z;

    scanf("%lld %lld %lld %lld",&a,&b,&c,&d);

    s = LCM(c,d);
    x = b / c - a / c;
    if(a % c == 0)x++;
    y = b / d - a / d;
    if(a % d == 0)y++;
    z = b / s - a / s;
    if(a % s == 0)z++;

    printf("%lld",b - a + 1 - x - y + z);

    return 0;
}

long long int LCM(long long int a,long long int b)
{
 
  long long int r, x, tmp;
 
  x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return x / b;
}
```
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 LCM(long long int,long long int );

int main(void){
    long long int a,b,c,d,s,x,y,z;

    scanf("%lld %lld %lld %lld",&a,&b,&c,&d);

    s = LCM(c,d);
    x = b / c - a / c;
    if(a % c == 0)x++;
    y = b / d - a / d;
    if(a % d == 0)y++;
    z = b / s - a / s;
    if(a % s == 0)z++;

    printf("%lld",b - a + 1 - x - y + z);

    return 0;
}

long long int LCM(long long int a,long long int b)
{
 
  long long int r, x, tmp;
 
  x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return x / b;
}
```

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:

314159265358979323 84117665769283334 419716939 937510582
 10 40 10 8
 4 5 2 3
 314159265358979323 84117665769283334 419716939 1839634861
 4 40 10 8
 1 5 2 3
 314159265358979323 84117665769283334 103998089 1839634861
 4 40 14 8
 1 5 2 6
 314159265358979323 84117665769283334 5369186 1839634861

-230041598796233572 24 1 -230041598916561084 29 2 -230041597252669462 30 3 -230041556619867350
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 LCM(long long int,long long int );

int main(void){
    long long int a,b,c,d,s,x,y,z;

    scanf("%lld %lld %lld %lld",&a,&b,&c,&d);

    s = LCM(c,d);
    x = b / c - a / c;
    if(a % c == 0)x++;
    y = b / d - a / d;
    if(a % d == 0)y++;
    z = b / s - a / s;
    if(a % s == 0)z++;

    printf("%lld",b - a + 1 - x - y + z);

    return 0;
}

long long int LCM(long long int a,long long int b)
{
 
  long long int r, x, tmp;
 
  x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return x / b;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r8
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%r8, %rdi
	imulq	%r9, %rdi
	cmpq	%r9, %r8
	jle	.L9
	movq	%r9, %rcx
	movq	%r8, %rax
.L2:
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rdx, %rcx
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L4
.L3:
	movq	%rdi, %rax
	movq	16(%rsp), %rcx
	cqto
	idivq	%rsi
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%r9
	movq	%rax, %r10
	movq	%rsi, %rax
	cqto
	idivq	%r9
	subq	%rax, %r10
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r10
	cqto
	idivq	%r8
	movq	%rax, %r9
	movq	%rsi, %rax
	cqto
	idivq	%r8
	subq	%rax, %r9
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r9
	cqto
	subq	%rsi, %rcx
	idivq	%rdi
	addq	$1, %rcx
	subq	%r10, %rcx
	subq	%r9, %rcx
	movq	%rax, %r8
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rsi
	cqto
	idivq	%rdi
	movl	$1, %edi
	subq	%rax, %r8
	cmpq	$1, %rdx
	movq	%r8, %rdx
	adcq	%rcx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movq	%r8, %rcx
	movq	%r9, %rax
	jmp	.L2
.L10:
	movq	%rcx, %rsi
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	LCM
	.type	LCM, @function
LCM:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	imulq	%rsi, %r8
	cmpq	%rsi, %rdi
	jge	.L16
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
.L16:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%rsi, %rax
	movq	%rdx, %rcx
	cqto
	movq	%rcx, %rsi
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L18
	movq	%r8, %rax
	cqto
	idivq	%rcx
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	LCM, .-LCM
	.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	"%lld %lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r8
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%r8, %rdi
	imulq	%r9, %rdi
	cmpq	%r9, %r8
	jle	.L9
	movq	%r9, %rcx
	movq	%r8, %rax
.L2:
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rdx, %rcx
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L4
.L3:
	movq	%rdi, %rax
	movq	16(%rsp), %rcx
	cqto
	idivq	%rsi
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%r9
	movq	%rax, %r10
	movq	%rsi, %rax
	cqto
	idivq	%r9
	subq	%rax, %r10
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r10
	cqto
	idivq	%r8
	movq	%rax, %r9
	movq	%rsi, %rax
	cqto
	idivq	%r8
	subq	%rax, %r9
	cmpq	$1, %rdx
	movq	%rcx, %rax
	adcq	$0, %r9
	cqto
	subq	%rsi, %rcx
	idivq	%rdi
	addq	$1, %rcx
	subq	%r10, %rcx
	subq	%r9, %rcx
	movq	%rax, %r8
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rsi
	cqto
	idivq	%rdi
	movl	$1, %edi
	subq	%rax, %r8
	cmpq	$1, %rdx
	movq	%r8, %rdx
	adcq	%rcx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movq	%r8, %rcx
	movq	%r9, %rax
	jmp	.L2
.L10:
	movq	%rcx, %rsi
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	LCM
	.type	LCM, @function
LCM:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdi, %r8
	imulq	%rsi, %r8
	cmpq	%rsi, %rdi
	jge	.L16
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
.L16:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%rsi, %rax
	movq	%rdx, %rcx
	cqto
	movq	%rcx, %rsi
	idivq	%rcx
	testq	%rdx, %rdx
	jne	.L18
	movq	%r8, %rax
	cqto
	idivq	%rcx
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	LCM, .-LCM
	.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:
```