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()
{
	long N,x;
	scanf("%ld",&N);
	scanf("%ld",&x);
	long a[N],i;
	for(i=0;i<N;i++) 	scanf("%ld",&a[i]);
	long eat = 0;
	if(a[0]>x){ eat=a[0]-x; a[0]=x;}
	for(i=0;i<N-1;i++){
		if(a[i]+a[i+1]>x){
		eat += a[i+1]+a[i]-x;
		a[i+1]=x-a[i];}
	}
	printf("%ld\n",eat);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-72(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L21
.L4:
	leaq	7(%rsp), %r15
	movq	%r15, %r14
	andq	$-8, %r15
	shrq	$3, %r14
	testq	%rax, %rax
	jle	.L5
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	addq	$8, %r12
	cmpq	%rbx, %rax
	jg	.L6
.L5:
	movq	0(,%r14,8), %rdx
	movq	-64(%rbp), %rdi
	xorl	%r8d, %r8d
	cmpq	%rdi, %rdx
	jle	.L7
	movq	%rdi, 0(,%r14,8)
	subq	%rdi, %rdx
	movq	%rdx, %r8
.L7:
	leaq	-1(%rax), %rdx
	testq	%rdx, %rdx
	jle	.L8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movq	(%r15,%rax,8), %rsi
	addq	$1, %rax
	movq	(%r15,%rax,8), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L9
	subq	%rdi, %rcx
	addq	%rcx, %r8
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%r15,%rax,8)
.L9:
	cmpq	%rdx, %rax
	jne	.L10
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L22:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-72(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L21
.L4:
	leaq	7(%rsp), %r15
	movq	%r15, %r14
	andq	$-8, %r15
	shrq	$3, %r14
	testq	%rax, %rax
	jle	.L5
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	addq	$8, %r12
	cmpq	%rbx, %rax
	jg	.L6
.L5:
	movq	0(,%r14,8), %rdx
	movq	-64(%rbp), %rdi
	xorl	%r8d, %r8d
	cmpq	%rdi, %rdx
	jle	.L7
	movq	%rdi, 0(,%r14,8)
	subq	%rdi, %rdx
	movq	%rdx, %r8
.L7:
	leaq	-1(%rax), %rdx
	testq	%rdx, %rdx
	jle	.L8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movq	(%r15,%rax,8), %rsi
	addq	$1, %rax
	movq	(%r15,%rax,8), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L9
	subq	%rdi, %rcx
	addq	%rcx, %r8
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%r15,%rax,8)
.L9:
	cmpq	%rdx, %rax
	jne	.L10
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L22:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-72(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L21
.L4:
	leaq	7(%rsp), %r15
	movq	%r15, %r14
	andq	$-8, %r15
	shrq	$3, %r14
	testq	%rax, %rax
	jle	.L5
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	addq	$8, %r12
	cmpq	%rbx, %rax
	jg	.L6
.L5:
	movq	0(,%r14,8), %rdx
	movq	-64(%rbp), %rdi
	xorl	%r8d, %r8d
	cmpq	%rdi, %rdx
	jle	.L7
	movq	%rdi, 0(,%r14,8)
	subq	%rdi, %rdx
	movq	%rdx, %r8
.L7:
	leaq	-1(%rax), %rdx
	testq	%rdx, %rdx
	jle	.L8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movq	(%r15,%rax,8), %rsi
	addq	$1, %rax
	movq	(%r15,%rax,8), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L9
	subq	%rdi, %rcx
	addq	%rcx, %r8
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%r15,%rax,8)
.L9:
	cmpq	%rdx, %rax
	jne	.L10
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L22:
	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()
{
	long N,x;
	scanf("%ld",&N);
	scanf("%ld",&x);
	long a[N],i;
	for(i=0;i<N;i++) 	scanf("%ld",&a[i]);
	long eat = 0;
	if(a[0]>x){ eat=a[0]-x; a[0]=x;}
	for(i=0;i<N-1;i++){
		if(a[i]+a[i+1]>x){
		eat += a[i+1]+a[i]-x;
		a[i+1]=x-a[i];}
	}
	printf("%ld\n",eat);
	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()
{
	long N,x;
	scanf("%ld",&N);
	scanf("%ld",&x);
	long a[N],i;
	for(i=0;i<N;i++) 	scanf("%ld",&a[i]);
	long eat = 0;
	if(a[0]>x){ eat=a[0]-x; a[0]=x;}
	for(i=0;i<N-1;i++){
		if(a[i]+a[i+1]>x){
		eat += a[i+1]+a[i]-x;
		a[i+1]=x-a[i];}
	}
	printf("%ld\n",eat);
	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 3
2 2 2

1

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()
{
	long N,x;
	scanf("%ld",&N);
	scanf("%ld",&x);
	long a[N],i;
	for(i=0;i<N;i++) 	scanf("%ld",&a[i]);
	long eat = 0;
	if(a[0]>x){ eat=a[0]-x; a[0]=x;}
	for(i=0;i<N-1;i++){
		if(a[i]+a[i+1]>x){
		eat += a[i+1]+a[i]-x;
		a[i+1]=x-a[i];}
	}
	printf("%ld\n",eat);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-72(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L21
.L4:
	leaq	7(%rsp), %r15
	movq	%r15, %r14
	andq	$-8, %r15
	shrq	$3, %r14
	testq	%rax, %rax
	jle	.L5
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	addq	$8, %r12
	cmpq	%rbx, %rax
	jg	.L6
.L5:
	movq	0(,%r14,8), %rdx
	movq	-64(%rbp), %rdi
	xorl	%r8d, %r8d
	cmpq	%rdi, %rdx
	jle	.L7
	movq	%rdi, 0(,%r14,8)
	subq	%rdi, %rdx
	movq	%rdx, %r8
.L7:
	leaq	-1(%rax), %rdx
	testq	%rdx, %rdx
	jle	.L8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movq	(%r15,%rax,8), %rsi
	addq	$1, %rax
	movq	(%r15,%rax,8), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L9
	subq	%rdi, %rcx
	addq	%rcx, %r8
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%r15,%rax,8)
.L9:
	cmpq	%rdx, %rax
	jne	.L10
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L22:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-72(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	movq	%rsp, %rsi
	leaq	15(,%rax,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L20
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L21
.L4:
	leaq	7(%rsp), %r15
	movq	%r15, %r14
	andq	$-8, %r15
	shrq	$3, %r14
	testq	%rax, %rax
	jle	.L5
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rax
	addq	$8, %r12
	cmpq	%rbx, %rax
	jg	.L6
.L5:
	movq	0(,%r14,8), %rdx
	movq	-64(%rbp), %rdi
	xorl	%r8d, %r8d
	cmpq	%rdi, %rdx
	jle	.L7
	movq	%rdi, 0(,%r14,8)
	subq	%rdi, %rdx
	movq	%rdx, %r8
.L7:
	leaq	-1(%rax), %rdx
	testq	%rdx, %rdx
	jle	.L8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movq	(%r15,%rax,8), %rsi
	addq	$1, %rax
	movq	(%r15,%rax,8), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rdi
	jge	.L9
	subq	%rdi, %rcx
	addq	%rcx, %r8
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%r15,%rax,8)
.L9:
	cmpq	%rdx, %rax
	jne	.L10
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L22:
	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:
```