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 n,m;
  scanf("%ld %ld", &n, &m);
  if (m%2 == 1) {
  	for (long i = 1; i <= m/2; i++) {
  		printf("%ld %ld\n", i, m+1-i);
  	}
		for (long i = 1; i <= (m+1)/2; i++) {
  		printf("%ld %ld\n", m+i, (m+1)*2-i);
  	}
  } else {
		for (long i = 1; i <= m/2; i++) {
			printf("%ld %ld\n", i, m+2-i);
		}
		for (long i = 1; i <= (m+1)/2; i++) {
			printf("%ld %ld\n", m+1+i, (m+1)*2-i);
		}
	}

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld"
.LC1:
	.string	"%ld %ld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	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	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	leaq	(%rcx,%rax), %rbp
	andl	$1, %ebp
	subq	%rax, %rbp
	cmpq	$1, %rbp
	je	.L2
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	cmpq	$1, %rcx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$2, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L3
.L4:
	leaq	1(%rcx), %rdx
	cmpq	$1, %rdx
	jle	.L7
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	(%rdx,%rdx), %rcx
	movq	%rbx, %rsi
	addq	%rbp, %rdx
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L9
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	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
.L2:
	.cfi_restore_state
	cmpq	$1, %rcx
	jle	.L5
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%r12, %rcx
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%r12, %rax
	jge	.L6
.L5:
	movq	%rcx, %rdx
	leaq	1(%rcx), %rcx
	cmpq	$1, %rcx
	jle	.L7
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addq	%rcx, %rcx
	addq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L8
	jmp	.L7
.L19:
	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 %ld"
.LC1:
	.string	"%ld %ld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	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	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	leaq	(%rcx,%rax), %rbp
	andl	$1, %ebp
	subq	%rax, %rbp
	cmpq	$1, %rbp
	je	.L2
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	cmpq	$1, %rcx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$2, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L3
.L4:
	leaq	1(%rcx), %rdx
	cmpq	$1, %rdx
	jle	.L7
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	(%rdx,%rdx), %rcx
	movq	%rbx, %rsi
	addq	%rbp, %rdx
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L9
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	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
.L2:
	.cfi_restore_state
	cmpq	$1, %rcx
	jle	.L5
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%r12, %rcx
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%r12, %rax
	jge	.L6
.L5:
	movq	%rcx, %rdx
	leaq	1(%rcx), %rcx
	cmpq	$1, %rcx
	jle	.L7
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addq	%rcx, %rcx
	addq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L8
	jmp	.L7
.L19:
	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 %ld"
.LC1:
	.string	"%ld %ld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	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	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	leaq	(%rcx,%rax), %rbp
	andl	$1, %ebp
	subq	%rax, %rbp
	cmpq	$1, %rbp
	je	.L2
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	cmpq	$1, %rcx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$2, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L3
.L4:
	leaq	1(%rcx), %rdx
	cmpq	$1, %rdx
	jle	.L7
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	(%rdx,%rdx), %rcx
	movq	%rbx, %rsi
	addq	%rbp, %rdx
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L9
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	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
.L2:
	.cfi_restore_state
	cmpq	$1, %rcx
	jle	.L5
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%r12, %rcx
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%r12, %rax
	jge	.L6
.L5:
	movq	%rcx, %rdx
	leaq	1(%rcx), %rcx
	cmpq	$1, %rcx
	jle	.L7
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addq	%rcx, %rcx
	addq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L8
	jmp	.L7
.L19:
	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 n,m;
  scanf("%ld %ld", &n, &m);
  if (m%2 == 1) {
  	for (long i = 1; i <= m/2; i++) {
  		printf("%ld %ld\n", i, m+1-i);
  	}
		for (long i = 1; i <= (m+1)/2; i++) {
  		printf("%ld %ld\n", m+i, (m+1)*2-i);
  	}
  } else {
		for (long i = 1; i <= m/2; i++) {
			printf("%ld %ld\n", i, m+2-i);
		}
		for (long i = 1; i <= (m+1)/2; i++) {
			printf("%ld %ld\n", m+1+i, (m+1)*2-i);
		}
	}

  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 n,m;
  scanf("%ld %ld", &n, &m);
  if (m%2 == 1) {
  	for (long i = 1; i <= m/2; i++) {
  		printf("%ld %ld\n", i, m+1-i);
  	}
		for (long i = 1; i <= (m+1)/2; i++) {
  		printf("%ld %ld\n", m+i, (m+1)*2-i);
  	}
  } else {
		for (long i = 1; i <= m/2; i++) {
			printf("%ld %ld\n", i, m+2-i);
		}
		for (long i = 1; i <= (m+1)/2; i++) {
			printf("%ld %ld\n", m+1+i, (m+1)*2-i);
		}
	}

  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:

3 1
 8 3
 11 5
 20 9
 15 7
 24 11
 6 1
 5 1
 12 5
 19 9

2 3
 1 3
4 7
5 6
 1 5
2 4
6 11
7 10
8 9
 1 9
2 8
3 7
4 6
10 19
11 18
12 17
13 16
14 15
 1 7
2 6
3 5
8 15
9 14
10 13
11 12
 1 11
2 10
3 9
4 8
5 7
12 23
13 22
14 21
15 20
16 19
17 18
 2 3
 2 3
 1 5
2 4
6 11
7 10
8 9
 1 9
2 8
3 7
4 6
10 19
11 18
12 17
13 16
14 15

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 n,m;
  scanf("%ld %ld", &n, &m);
  if (m%2 == 1) {
  	for (long i = 1; i <= m/2; i++) {
  		printf("%ld %ld\n", i, m+1-i);
  	}
		for (long i = 1; i <= (m+1)/2; i++) {
  		printf("%ld %ld\n", m+i, (m+1)*2-i);
  	}
  } else {
		for (long i = 1; i <= m/2; i++) {
			printf("%ld %ld\n", i, m+2-i);
		}
		for (long i = 1; i <= (m+1)/2; i++) {
			printf("%ld %ld\n", m+1+i, (m+1)*2-i);
		}
	}

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld"
.LC1:
	.string	"%ld %ld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	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	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	leaq	(%rcx,%rax), %rbp
	andl	$1, %ebp
	subq	%rax, %rbp
	cmpq	$1, %rbp
	je	.L2
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	cmpq	$1, %rcx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$2, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L3
.L4:
	leaq	1(%rcx), %rdx
	cmpq	$1, %rdx
	jle	.L7
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	(%rdx,%rdx), %rcx
	movq	%rbx, %rsi
	addq	%rbp, %rdx
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L9
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	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
.L2:
	.cfi_restore_state
	cmpq	$1, %rcx
	jle	.L5
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%r12, %rcx
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%r12, %rax
	jge	.L6
.L5:
	movq	%rcx, %rdx
	leaq	1(%rcx), %rcx
	cmpq	$1, %rcx
	jle	.L7
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addq	%rcx, %rcx
	addq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L8
	jmp	.L7
.L19:
	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 %ld"
.LC1:
	.string	"%ld %ld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	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	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	leaq	(%rcx,%rax), %rbp
	andl	$1, %ebp
	subq	%rax, %rbp
	cmpq	$1, %rbp
	je	.L2
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	cmpq	$1, %rcx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$2, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L3
.L4:
	leaq	1(%rcx), %rdx
	cmpq	$1, %rdx
	jle	.L7
	movl	$1, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	(%rdx,%rdx), %rcx
	movq	%rbx, %rsi
	addq	%rbp, %rdx
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L9
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	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
.L2:
	.cfi_restore_state
	cmpq	$1, %rcx
	jle	.L5
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%r12, %rcx
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movq	16(%rsp), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%r12, %rax
	jge	.L6
.L5:
	movq	%rcx, %rdx
	leaq	1(%rcx), %rcx
	cmpq	$1, %rcx
	jle	.L7
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addq	%rcx, %rcx
	addq	%rbp, %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	subq	%rbp, %rcx
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movq	16(%rsp), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rbp, %rax
	jge	.L8
	jmp	.L7
.L19:
	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:
```