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>
#include<stdlib.h>

int main(){
	
	int N,i,ans=1,k=0,A[100010];
	
	scanf("%d",&N);
	
	for(i=1;i<=N;i++){
		scanf("%d",&A[i]);
	}
	
	for(i=1;i<=N-1;i++){
		if(k==0&&A[i+1]!=A[i]){
			k=(A[i+1]-A[i])/abs(A[i+1]-A[i]); //符号//
		}
		
		if(k*(A[i+1]-A[i])<0){
			ans++;
			k=0;
		}
		
		
	}
	
	printf("\n%d\n\n",ans);
	
	
	
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%d\n\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2752, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	cmpl	$1, %eax
	jle	.L12
	movl	20(%rsp), %esi
	xorl	%r9d, %r9d
	leaq	16(%rsp), %r11
	movl	$1, %r10d
	movl	$1, %r8d
.L8:
	leal	1(%r8), %edx
	movslq	%edx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	testl	%r9d, %r9d
	je	.L13
	movl	%edi, %ecx
	subl	%esi, %ecx
.L5:
	imull	%r9d, %ecx
	testl	%ecx, %ecx
	jns	.L15
	addl	$1, %r10d
	cmpl	%edx, %eax
	jle	.L2
.L4:
	movslq	%edx, %rcx
	leaq	(%r11,%rcx,4), %rcx
.L9:
	movl	4(%rcx), %esi
	leal	1(%rdx), %r8d
	cmpl	%edi, %esi
	je	.L6
	movl	%esi, %ecx
	movl	$1, %r9d
	subl	%edi, %ecx
	js	.L22
.L7:
	cmpl	%r8d, %eax
	jg	.L8
.L2:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$400064, %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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%edi, %esi
	movl	%edx, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rcx
	cmpl	%r8d, %eax
	jle	.L2
	movl	%r8d, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %edi
	movl	%r8d, %edx
	movl	$-1, %r9d
	jmp	.L5
.L13:
	movl	%esi, %edi
	movl	%r8d, %edx
	jmp	.L4
.L12:
	movl	$1, %r10d
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"\n%d\n\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2752, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	cmpl	$1, %eax
	jle	.L12
	movl	20(%rsp), %esi
	xorl	%r9d, %r9d
	leaq	16(%rsp), %r11
	movl	$1, %r10d
	movl	$1, %r8d
.L8:
	leal	1(%r8), %edx
	movslq	%edx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	testl	%r9d, %r9d
	je	.L13
	movl	%edi, %ecx
	subl	%esi, %ecx
.L5:
	imull	%r9d, %ecx
	testl	%ecx, %ecx
	jns	.L15
	addl	$1, %r10d
	cmpl	%edx, %eax
	jle	.L2
.L4:
	movslq	%edx, %rcx
	leaq	(%r11,%rcx,4), %rcx
.L9:
	movl	4(%rcx), %esi
	leal	1(%rdx), %r8d
	cmpl	%edi, %esi
	je	.L6
	movl	%esi, %ecx
	movl	$1, %r9d
	subl	%edi, %ecx
	js	.L22
.L7:
	cmpl	%r8d, %eax
	jg	.L8
.L2:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$400064, %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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%edi, %esi
	movl	%edx, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rcx
	cmpl	%r8d, %eax
	jle	.L2
	movl	%r8d, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %edi
	movl	%r8d, %edx
	movl	$-1, %r9d
	jmp	.L5
.L13:
	movl	%esi, %edi
	movl	%r8d, %edx
	jmp	.L4
.L12:
	movl	$1, %r10d
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"\n%d\n\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2752, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	cmpl	$1, %eax
	jle	.L12
	movl	20(%rsp), %esi
	xorl	%r9d, %r9d
	leaq	16(%rsp), %r11
	movl	$1, %r10d
	movl	$1, %r8d
.L8:
	leal	1(%r8), %edx
	movslq	%edx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	testl	%r9d, %r9d
	je	.L13
	movl	%edi, %ecx
	subl	%esi, %ecx
.L5:
	imull	%r9d, %ecx
	testl	%ecx, %ecx
	jns	.L15
	addl	$1, %r10d
	cmpl	%edx, %eax
	jle	.L2
.L4:
	movslq	%edx, %rcx
	leaq	(%r11,%rcx,4), %rcx
.L9:
	movl	4(%rcx), %esi
	leal	1(%rdx), %r8d
	cmpl	%edi, %esi
	je	.L6
	movl	%esi, %ecx
	movl	$1, %r9d
	subl	%edi, %ecx
	js	.L22
.L7:
	cmpl	%r8d, %eax
	jg	.L8
.L2:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$400064, %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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%edi, %esi
	movl	%edx, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rcx
	cmpl	%r8d, %eax
	jle	.L2
	movl	%r8d, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %edi
	movl	%r8d, %edx
	movl	$-1, %r9d
	jmp	.L5
.L13:
	movl	%esi, %edi
	movl	%r8d, %edx
	jmp	.L4
.L12:
	movl	$1, %r10d
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include<stdlib.h>

int main(){
	
	int N,i,ans=1,k=0,A[100010];
	
	scanf("%d",&N);
	
	for(i=1;i<=N;i++){
		scanf("%d",&A[i]);
	}
	
	for(i=1;i<=N-1;i++){
		if(k==0&&A[i+1]!=A[i]){
			k=(A[i+1]-A[i])/abs(A[i+1]-A[i]); //符号//
		}
		
		if(k*(A[i+1]-A[i])<0){
			ans++;
			k=0;
		}
		
		
	}
	
	printf("\n%d\n\n",ans);
	
	
	
	
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>

int main(){
	
	int N,i,ans=1,k=0,A[100010];
	
	scanf("%d",&N);
	
	for(i=1;i<=N;i++){
		scanf("%d",&A[i]);
	}
	
	for(i=1;i<=N-1;i++){
		if(k==0&&A[i+1]!=A[i]){
			k=(A[i+1]-A[i])/abs(A[i+1]-A[i]); //符号//
		}
		
		if(k*(A[i+1]-A[i])<0){
			ans++;
			k=0;
		}
		
		
	}
	
	printf("\n%d\n\n",ans);
	
	
	
	
	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:

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<stdio.h>
#include<stdlib.h>

int main(){
	
	int N,i,ans=1,k=0,A[100010];
	
	scanf("%d",&N);
	
	for(i=1;i<=N;i++){
		scanf("%d",&A[i]);
	}
	
	for(i=1;i<=N-1;i++){
		if(k==0&&A[i+1]!=A[i]){
			k=(A[i+1]-A[i])/abs(A[i+1]-A[i]); //符号//
		}
		
		if(k*(A[i+1]-A[i])<0){
			ans++;
			k=0;
		}
		
		
	}
	
	printf("\n%d\n\n",ans);
	
	
	
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%d\n\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2752, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	cmpl	$1, %eax
	jle	.L12
	movl	20(%rsp), %esi
	xorl	%r9d, %r9d
	leaq	16(%rsp), %r11
	movl	$1, %r10d
	movl	$1, %r8d
.L8:
	leal	1(%r8), %edx
	movslq	%edx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	testl	%r9d, %r9d
	je	.L13
	movl	%edi, %ecx
	subl	%esi, %ecx
.L5:
	imull	%r9d, %ecx
	testl	%ecx, %ecx
	jns	.L15
	addl	$1, %r10d
	cmpl	%edx, %eax
	jle	.L2
.L4:
	movslq	%edx, %rcx
	leaq	(%r11,%rcx,4), %rcx
.L9:
	movl	4(%rcx), %esi
	leal	1(%rdx), %r8d
	cmpl	%edi, %esi
	je	.L6
	movl	%esi, %ecx
	movl	$1, %r9d
	subl	%edi, %ecx
	js	.L22
.L7:
	cmpl	%r8d, %eax
	jg	.L8
.L2:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$400064, %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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%edi, %esi
	movl	%edx, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rcx
	cmpl	%r8d, %eax
	jle	.L2
	movl	%r8d, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %edi
	movl	%r8d, %edx
	movl	$-1, %r9d
	jmp	.L5
.L13:
	movl	%esi, %edi
	movl	%r8d, %edx
	jmp	.L4
.L12:
	movl	$1, %r10d
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"\n%d\n\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2752, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
	cmpl	$1, %eax
	jle	.L12
	movl	20(%rsp), %esi
	xorl	%r9d, %r9d
	leaq	16(%rsp), %r11
	movl	$1, %r10d
	movl	$1, %r8d
.L8:
	leal	1(%r8), %edx
	movslq	%edx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	testl	%r9d, %r9d
	je	.L13
	movl	%edi, %ecx
	subl	%esi, %ecx
.L5:
	imull	%r9d, %ecx
	testl	%ecx, %ecx
	jns	.L15
	addl	$1, %r10d
	cmpl	%edx, %eax
	jle	.L2
.L4:
	movslq	%edx, %rcx
	leaq	(%r11,%rcx,4), %rcx
.L9:
	movl	4(%rcx), %esi
	leal	1(%rdx), %r8d
	cmpl	%edi, %esi
	je	.L6
	movl	%esi, %ecx
	movl	$1, %r9d
	subl	%edi, %ecx
	js	.L22
.L7:
	cmpl	%r8d, %eax
	jg	.L8
.L2:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$400064, %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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%edi, %esi
	movl	%edx, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$4, %rcx
	cmpl	%r8d, %eax
	jle	.L2
	movl	%r8d, %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %edi
	movl	%r8d, %edx
	movl	$-1, %r9d
	jmp	.L5
.L13:
	movl	%esi, %edi
	movl	%r8d, %edx
	jmp	.L4
.L12:
	movl	$1, %r10d
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```