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(void)
{
	long i, N, k, small, x, y;
	
	scanf("%ld", &N);
	scanf("%ld", &k);
	
	for (i = 0; i < k; i++){
		scanf("%ld %ld", &x, &y);
		
		small = x - 1;
		if (small > N - x){
			small = N - x;
		}
		if (small > y - 1){
			small = y - 1;
		}
		if (small > N - y){
			small = N - y;
		} 
		
		printf("%ld\n", small % 3 + 1);
	}
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 16(%rsp)
	jle	.L2
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	24(%rsp), %r14
	movabsq	$6148914691236517206, %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	movq	%rdx, %rax
	subq	%rcx, %rax
	subq	$1, %rcx
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rsi, %rax
	jl	.L3
	subq	%rsi, %rdx
	leaq	-1(%rsi), %rcx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rdx, %rcx
	cmovg	%rdx, %rcx
	addq	$1, %rbx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	16(%rsp), %rbx
	jl	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subq	%rsi, %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	addq	$1, %rbx
	movq	%rax, %rcx
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, 16(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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	"%ld"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 16(%rsp)
	jle	.L2
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	24(%rsp), %r14
	movabsq	$6148914691236517206, %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	movq	%rdx, %rax
	subq	%rcx, %rax
	subq	$1, %rcx
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rsi, %rax
	jl	.L3
	subq	%rsi, %rdx
	leaq	-1(%rsi), %rcx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rdx, %rcx
	cmovg	%rdx, %rcx
	addq	$1, %rbx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	16(%rsp), %rbx
	jl	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subq	%rsi, %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	addq	$1, %rbx
	movq	%rax, %rcx
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, 16(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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	"%ld"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 16(%rsp)
	jle	.L2
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	24(%rsp), %r14
	movabsq	$6148914691236517206, %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	movq	%rdx, %rax
	subq	%rcx, %rax
	subq	$1, %rcx
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rsi, %rax
	jl	.L3
	subq	%rsi, %rdx
	leaq	-1(%rsi), %rcx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rdx, %rcx
	cmovg	%rdx, %rcx
	addq	$1, %rbx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	16(%rsp), %rbx
	jl	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subq	%rsi, %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	addq	$1, %rbx
	movq	%rax, %rcx
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, 16(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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(void)
{
	long i, N, k, small, x, y;
	
	scanf("%ld", &N);
	scanf("%ld", &k);
	
	for (i = 0; i < k; i++){
		scanf("%ld %ld", &x, &y);
		
		small = x - 1;
		if (small > N - x){
			small = N - x;
		}
		if (small > y - 1){
			small = y - 1;
		}
		if (small > N - y){
			small = N - y;
		} 
		
		printf("%ld\n", small % 3 + 1);
	}
	
	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(void)
{
	long i, N, k, small, x, y;
	
	scanf("%ld", &N);
	scanf("%ld", &k);
	
	for (i = 0; i < k; i++){
		scanf("%ld %ld", &x, &y);
		
		small = x - 1;
		if (small > N - x){
			small = N - x;
		}
		if (small > y - 1){
			small = y - 1;
		}
		if (small > N - y){
			small = N - y;
		} 
		
		printf("%ld\n", small % 3 + 1);
	}
	
	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:

11
4
5 2
9 7
4 4
3 9

2
3
1
3

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(void)
{
	long i, N, k, small, x, y;
	
	scanf("%ld", &N);
	scanf("%ld", &k);
	
	for (i = 0; i < k; i++){
		scanf("%ld %ld", &x, &y);
		
		small = x - 1;
		if (small > N - x){
			small = N - x;
		}
		if (small > y - 1){
			small = y - 1;
		}
		if (small > N - y){
			small = N - y;
		} 
		
		printf("%ld\n", small % 3 + 1);
	}
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 16(%rsp)
	jle	.L2
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	24(%rsp), %r14
	movabsq	$6148914691236517206, %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	movq	%rdx, %rax
	subq	%rcx, %rax
	subq	$1, %rcx
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rsi, %rax
	jl	.L3
	subq	%rsi, %rdx
	leaq	-1(%rsi), %rcx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rdx, %rcx
	cmovg	%rdx, %rcx
	addq	$1, %rbx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	16(%rsp), %rbx
	jl	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subq	%rsi, %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	addq	$1, %rbx
	movq	%rax, %rcx
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, 16(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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	"%ld"
.LC1:
	.string	"%ld %ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 16(%rsp)
	jle	.L2
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	24(%rsp), %r14
	movabsq	$6148914691236517206, %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rsi
	movq	%rdx, %rax
	subq	%rcx, %rax
	subq	$1, %rcx
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rsi, %rax
	jl	.L3
	subq	%rsi, %rdx
	leaq	-1(%rsi), %rcx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rdx, %rcx
	cmovg	%rdx, %rcx
	addq	$1, %rbx
	movq	%rcx, %rax
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	16(%rsp), %rbx
	jl	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subq	%rsi, %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	addq	$1, %rbx
	movq	%rax, %rcx
	imulq	%rbp
	movq	%rcx, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,2), %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	leaq	1(%rcx), %rdx
	call	__printf_chk@PLT
	cmpq	%rbx, 16(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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:
```