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>
int main(){
    int n;
    int i;
    unsigned long long x, y;
    int t, a;
    unsigned long long p, q;
    scanf("%d %lld %lld",&n,&x,&y);
    for (i=1;i<n;i++){
        scanf("%d %d",&t,&a);
        if (x%t>0) x+=t-(x%t);
        if (y%a>0) y+=a-(y%a);
        p=x/t;
        q=y/a;
        if(p<q) p=q;
        x=p*t;
        y=p*a;
    }
    printf("%lld\n",x+y);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %lld %lld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L2
	movl	$1, %r13d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movslq	16(%rsp), %rsi
	xorl	%edx, %edx
	movq	32(%rsp), %rdi
	movslq	20(%rsp), %r8
	movq	%rcx, %rax
	divq	%rsi
	leaq	(%rcx,%rsi), %rax
	subq	%rdx, %rax
	testq	%rdx, %rdx
	cmovne	%rax, %rcx
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r9
	testq	%rdx, %rdx
	je	.L4
	addq	%r8, %rdi
	subq	%rdx, %rdi
	xorl	%edx, %edx
	movq	%rdi, %rax
	divq	%r8
	xorl	%edx, %edx
	movq	%rax, %rdi
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%rax, %rdi
	cmovb	%rax, %rdi
	addl	$1, %r13d
	imulq	%rdi, %rsi
	imulq	%rdi, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L6:
	leaq	(%rsi,%r8), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%edx, %edx
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	addl	$1, %r13d
	imulq	%rax, %rsi
	imulq	%rax, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
	jmp	.L6
.L2:
	movq	24(%rsp), %rsi
	movq	32(%rsp), %r8
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %lld %lld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L2
	movl	$1, %r13d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movslq	16(%rsp), %rsi
	xorl	%edx, %edx
	movq	32(%rsp), %rdi
	movslq	20(%rsp), %r8
	movq	%rcx, %rax
	divq	%rsi
	leaq	(%rcx,%rsi), %rax
	subq	%rdx, %rax
	testq	%rdx, %rdx
	cmovne	%rax, %rcx
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r9
	testq	%rdx, %rdx
	je	.L4
	addq	%r8, %rdi
	subq	%rdx, %rdi
	xorl	%edx, %edx
	movq	%rdi, %rax
	divq	%r8
	xorl	%edx, %edx
	movq	%rax, %rdi
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%rax, %rdi
	cmovb	%rax, %rdi
	addl	$1, %r13d
	imulq	%rdi, %rsi
	imulq	%rdi, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L6:
	leaq	(%rsi,%r8), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%edx, %edx
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	addl	$1, %r13d
	imulq	%rax, %rsi
	imulq	%rax, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
	jmp	.L6
.L2:
	movq	24(%rsp), %rsi
	movq	32(%rsp), %r8
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %lld %lld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L2
	movl	$1, %r13d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movslq	16(%rsp), %rsi
	xorl	%edx, %edx
	movq	32(%rsp), %rdi
	movslq	20(%rsp), %r8
	movq	%rcx, %rax
	divq	%rsi
	leaq	(%rcx,%rsi), %rax
	subq	%rdx, %rax
	testq	%rdx, %rdx
	cmovne	%rax, %rcx
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r9
	testq	%rdx, %rdx
	je	.L4
	addq	%r8, %rdi
	subq	%rdx, %rdi
	xorl	%edx, %edx
	movq	%rdi, %rax
	divq	%r8
	xorl	%edx, %edx
	movq	%rax, %rdi
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%rax, %rdi
	cmovb	%rax, %rdi
	addl	$1, %r13d
	imulq	%rdi, %rsi
	imulq	%rdi, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L6:
	leaq	(%rsi,%r8), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%edx, %edx
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	addl	$1, %r13d
	imulq	%rax, %rsi
	imulq	%rax, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
	jmp	.L6
.L2:
	movq	24(%rsp), %rsi
	movq	32(%rsp), %r8
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
int main(){
    int n;
    int i;
    unsigned long long x, y;
    int t, a;
    unsigned long long p, q;
    scanf("%d %lld %lld",&n,&x,&y);
    for (i=1;i<n;i++){
        scanf("%d %d",&t,&a);
        if (x%t>0) x+=t-(x%t);
        if (y%a>0) y+=a-(y%a);
        p=x/t;
        q=y/a;
        if(p<q) p=q;
        x=p*t;
        y=p*a;
    }
    printf("%lld\n",x+y);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(){
    int n;
    int i;
    unsigned long long x, y;
    int t, a;
    unsigned long long p, q;
    scanf("%d %lld %lld",&n,&x,&y);
    for (i=1;i<n;i++){
        scanf("%d %d",&t,&a);
        if (x%t>0) x+=t-(x%t);
        if (y%a>0) y+=a-(y%a);
        p=x/t;
        q=y/a;
        if(p<q) p=q;
        x=p*t;
        y=p*a;
    }
    printf("%lld\n",x+y);
    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
3 1
48 17
31 199
231 23
3 2
 4
1 1
1 1
1 9
1 100
 3
3 3
1 1
3 2
 3
4 3
1 1
3 1
 3
4 3
1 2
3 1
 3
2 3
1 1
1 2
 4
1 2
1 1
1 9
1 100
 5
3 10
48 28
31 199
319 23
3 2
 3
4 3
1 1
1 2
 5
3 10
48 28
31 199
300 23
3 2

6930
 101
 10
 16
 32
 9
 202
 9570
 12
 9000

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>
int main(){
    int n;
    int i;
    unsigned long long x, y;
    int t, a;
    unsigned long long p, q;
    scanf("%d %lld %lld",&n,&x,&y);
    for (i=1;i<n;i++){
        scanf("%d %d",&t,&a);
        if (x%t>0) x+=t-(x%t);
        if (y%a>0) y+=a-(y%a);
        p=x/t;
        q=y/a;
        if(p<q) p=q;
        x=p*t;
        y=p*a;
    }
    printf("%lld\n",x+y);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %lld %lld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L2
	movl	$1, %r13d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movslq	16(%rsp), %rsi
	xorl	%edx, %edx
	movq	32(%rsp), %rdi
	movslq	20(%rsp), %r8
	movq	%rcx, %rax
	divq	%rsi
	leaq	(%rcx,%rsi), %rax
	subq	%rdx, %rax
	testq	%rdx, %rdx
	cmovne	%rax, %rcx
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r9
	testq	%rdx, %rdx
	je	.L4
	addq	%r8, %rdi
	subq	%rdx, %rdi
	xorl	%edx, %edx
	movq	%rdi, %rax
	divq	%r8
	xorl	%edx, %edx
	movq	%rax, %rdi
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%rax, %rdi
	cmovb	%rax, %rdi
	addl	$1, %r13d
	imulq	%rdi, %rsi
	imulq	%rdi, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L6:
	leaq	(%rsi,%r8), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%edx, %edx
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	addl	$1, %r13d
	imulq	%rax, %rsi
	imulq	%rax, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
	jmp	.L6
.L2:
	movq	24(%rsp), %rsi
	movq	32(%rsp), %r8
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %lld %lld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L2
	movl	$1, %r13d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rcx
	movslq	16(%rsp), %rsi
	xorl	%edx, %edx
	movq	32(%rsp), %rdi
	movslq	20(%rsp), %r8
	movq	%rcx, %rax
	divq	%rsi
	leaq	(%rcx,%rsi), %rax
	subq	%rdx, %rax
	testq	%rdx, %rdx
	cmovne	%rax, %rcx
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r9
	testq	%rdx, %rdx
	je	.L4
	addq	%r8, %rdi
	subq	%rdx, %rdi
	xorl	%edx, %edx
	movq	%rdi, %rax
	divq	%r8
	xorl	%edx, %edx
	movq	%rax, %rdi
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%rax, %rdi
	cmovb	%rax, %rdi
	addl	$1, %r13d
	imulq	%rdi, %rsi
	imulq	%rdi, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L6:
	leaq	(%rsi,%r8), %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%edx, %edx
	movq	%rcx, %rax
	divq	%rsi
	cmpq	%r9, %rax
	cmovb	%r9, %rax
	addl	$1, %r13d
	imulq	%rax, %rsi
	imulq	%rax, %r8
	movq	%rsi, 24(%rsp)
	movq	%r8, 32(%rsp)
	cmpl	%r13d, 12(%rsp)
	jg	.L7
	jmp	.L6
.L2:
	movq	24(%rsp), %rsi
	movq	32(%rsp), %r8
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```