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

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i;
	int b;
	scanf("%d", &n);
	int ans=1;
	int f=0;
	scanf("%d", &b);
	for(i=1; i<n; i++){
		int a;
		scanf("%d", &a);
		if(f>0){
			if(b>a){
				ans++;
				f=0;
			}
		}else if(f<0){
			if(b<a){
				ans++;
				f=0;
			}
		}else{
			if(b<a){
				f=1;
			}else if(b>a){
				f=-1;
			}
		}
		b=a;
	}
	printf("%d\n", ans);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L10
	xorl	%ebx, %ebx
	movl	$1, %r13d
	movl	$1, %r14d
	leaq	20(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L6
.L15:
	addl	$1, %r13d
	xorl	%ebx, %ebx
.L6:
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebx
	je	.L17
	movl	16(%rsp), %edx
	movl	20(%rsp), %eax
	testl	%ebx, %ebx
	je	.L7
	movl	$-1, %ebx
	cmpl	%edx, %eax
	jg	.L15
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	cmpl	%edx, %eax
	setl	%bl
	negl	%ebx
	cmpl	%edx, %eax
	movl	$1, %edx
	cmovg	%edx, %ebx
	jmp	.L6
.L10:
	movl	$1, %r13d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L10
	xorl	%ebx, %ebx
	movl	$1, %r13d
	movl	$1, %r14d
	leaq	20(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L6
.L15:
	addl	$1, %r13d
	xorl	%ebx, %ebx
.L6:
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebx
	je	.L17
	movl	16(%rsp), %edx
	movl	20(%rsp), %eax
	testl	%ebx, %ebx
	je	.L7
	movl	$-1, %ebx
	cmpl	%edx, %eax
	jg	.L15
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	cmpl	%edx, %eax
	setl	%bl
	negl	%ebx
	cmpl	%edx, %eax
	movl	$1, %edx
	cmovg	%edx, %ebx
	jmp	.L6
.L10:
	movl	$1, %r13d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L10
	xorl	%ebx, %ebx
	movl	$1, %r13d
	movl	$1, %r14d
	leaq	20(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L6
.L15:
	addl	$1, %r13d
	xorl	%ebx, %ebx
.L6:
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebx
	je	.L17
	movl	16(%rsp), %edx
	movl	20(%rsp), %eax
	testl	%ebx, %ebx
	je	.L7
	movl	$-1, %ebx
	cmpl	%edx, %eax
	jg	.L15
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	cmpl	%edx, %eax
	setl	%bl
	negl	%ebx
	cmpl	%edx, %eax
	movl	$1, %edx
	cmovg	%edx, %ebx
	jmp	.L6
.L10:
	movl	$1, %r13d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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 <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i;
	int b;
	scanf("%d", &n);
	int ans=1;
	int f=0;
	scanf("%d", &b);
	for(i=1; i<n; i++){
		int a;
		scanf("%d", &a);
		if(f>0){
			if(b>a){
				ans++;
				f=0;
			}
		}else if(f<0){
			if(b<a){
				ans++;
				f=0;
			}
		}else{
			if(b<a){
				f=1;
			}else if(b>a){
				f=-1;
			}
		}
		b=a;
	}
	printf("%d\n", ans);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i;
	int b;
	scanf("%d", &n);
	int ans=1;
	int f=0;
	scanf("%d", &b);
	for(i=1; i<n; i++){
		int a;
		scanf("%d", &a);
		if(f>0){
			if(b>a){
				ans++;
				f=0;
			}
		}else if(f<0){
			if(b<a){
				ans++;
				f=0;
			}
		}else{
			if(b<a){
				f=1;
			}else if(b>a){
				f=-1;
			}
		}
		b=a;
	}
	printf("%d\n", ans);
}
```

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:

6
1 2 3 2 0 1
 9
1 2 1 2 2 2 1 2 1
 6
1 2 3 2 0 0
 9
0 1 0 -1 2 7 2 -1 0
 7
1 2 3 2 1 999999999 1000000100
 9
1 2 1 2 2 2 2 2 1
 7
1 4 3 2 1 999999999 1000000100
 6
0 2 3 2 0 0
 9
1 2 0 2 2 2 2 2 1
 7
1 4 3 4 1 999999999 1000000100

3
 4
 2
 5
 3
 3
 3
 2
 3
 3

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

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i;
	int b;
	scanf("%d", &n);
	int ans=1;
	int f=0;
	scanf("%d", &b);
	for(i=1; i<n; i++){
		int a;
		scanf("%d", &a);
		if(f>0){
			if(b>a){
				ans++;
				f=0;
			}
		}else if(f<0){
			if(b<a){
				ans++;
				f=0;
			}
		}else{
			if(b<a){
				f=1;
			}else if(b>a){
				f=-1;
			}
		}
		b=a;
	}
	printf("%d\n", ans);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L10
	xorl	%ebx, %ebx
	movl	$1, %r13d
	movl	$1, %r14d
	leaq	20(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L6
.L15:
	addl	$1, %r13d
	xorl	%ebx, %ebx
.L6:
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebx
	je	.L17
	movl	16(%rsp), %edx
	movl	20(%rsp), %eax
	testl	%ebx, %ebx
	je	.L7
	movl	$-1, %ebx
	cmpl	%edx, %eax
	jg	.L15
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	cmpl	%edx, %eax
	setl	%bl
	negl	%ebx
	cmpl	%edx, %eax
	movl	$1, %edx
	cmovg	%edx, %ebx
	jmp	.L6
.L10:
	movl	$1, %r13d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L10
	xorl	%ebx, %ebx
	movl	$1, %r13d
	movl	$1, %r14d
	leaq	20(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jle	.L6
.L15:
	addl	$1, %r13d
	xorl	%ebx, %ebx
.L6:
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jle	.L4
.L8:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %ebx
	je	.L17
	movl	16(%rsp), %edx
	movl	20(%rsp), %eax
	testl	%ebx, %ebx
	je	.L7
	movl	$-1, %ebx
	cmpl	%edx, %eax
	jg	.L15
	movl	%eax, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r14d, 12(%rsp)
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	cmpl	%edx, %eax
	setl	%bl
	negl	%ebx
	cmpl	%edx, %eax
	movl	$1, %edx
	cmovg	%edx, %ebx
	jmp	.L6
.L10:
	movl	$1, %r13d
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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:
```