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(){
 int k,s,p=0;
  scanf("%d %d",&k,&s);
  for(int x=k;x>=0;x--){
    for(int y=k;y>=0;y--){
      if(s-x-y<=k&&s-x-y>=0) p++;
    }
  }
  printf("%d\n",p);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	testl	%esi, %esi
	js	.L16
	movl	4(%rsp), %edi
	leal	1(%rsi), %r9d
	cmpl	$2, %esi
	jle	.L26
	movd	%esi, %xmm7
	movd	%edi, %xmm4
	movl	%r9d, %ecx
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm5
	shrl	$2, %ecx
	movdqa	.LC1(%rip), %xmm8
	pshufd	$0, %xmm4, %xmm10
	movdqa	.LC2(%rip), %xmm9
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm7, %xmm7
	paddd	%xmm5, %xmm8
	movdqa	%xmm4, %xmm3
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm8, %xmm0
	movdqa	%xmm10, %xmm6
	movdqa	%xmm5, %xmm2
	movl	%esi, %eax
	paddd	%xmm9, %xmm8
	psubd	%xmm0, %xmm6
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm6, %xmm0
	paddd	%xmm7, %xmm2
	psubd	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pcmpgtd	%xmm5, %xmm0
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm4
	subl	$1, %eax
	jnb	.L5
	addl	$1, %edx
	cmpl	%ecx, %edx
	jne	.L6
	movdqa	%xmm4, %xmm0
	movl	%r9d, %eax
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm4, %xmm0
	subl	%eax, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%eax, %r9d
	je	.L2
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	js	.L12
	cmpl	%esi, %eax
	setle	%cl
	cmpb	$1, %cl
	sbbl	$-1, %r8d
.L12:
	addl	$1, %eax
	cmpl	%eax, %edx
	jne	.L9
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	js	.L2
	movl	%eax, %edx
	jmp	.L10
.L16:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC2:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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 %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	testl	%esi, %esi
	js	.L16
	movl	4(%rsp), %edi
	leal	1(%rsi), %r9d
	cmpl	$2, %esi
	jle	.L26
	movd	%esi, %xmm7
	movd	%edi, %xmm4
	movl	%r9d, %ecx
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm5
	shrl	$2, %ecx
	movdqa	.LC1(%rip), %xmm8
	pshufd	$0, %xmm4, %xmm10
	movdqa	.LC2(%rip), %xmm9
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm7, %xmm7
	paddd	%xmm5, %xmm8
	movdqa	%xmm4, %xmm3
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm8, %xmm0
	movdqa	%xmm10, %xmm6
	movdqa	%xmm5, %xmm2
	movl	%esi, %eax
	paddd	%xmm9, %xmm8
	psubd	%xmm0, %xmm6
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm6, %xmm0
	paddd	%xmm7, %xmm2
	psubd	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pcmpgtd	%xmm5, %xmm0
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm4
	subl	$1, %eax
	jnb	.L5
	addl	$1, %edx
	cmpl	%ecx, %edx
	jne	.L6
	movdqa	%xmm4, %xmm0
	movl	%r9d, %eax
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm4, %xmm0
	subl	%eax, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%eax, %r9d
	je	.L2
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	js	.L12
	cmpl	%esi, %eax
	setle	%cl
	cmpb	$1, %cl
	sbbl	$-1, %r8d
.L12:
	addl	$1, %eax
	cmpl	%eax, %edx
	jne	.L9
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	js	.L2
	movl	%eax, %edx
	jmp	.L10
.L16:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC2:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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 %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	testl	%esi, %esi
	js	.L16
	movl	4(%rsp), %edi
	leal	1(%rsi), %r9d
	cmpl	$2, %esi
	jle	.L26
	movd	%esi, %xmm7
	movd	%edi, %xmm4
	movl	%r9d, %ecx
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm5
	shrl	$2, %ecx
	movdqa	.LC1(%rip), %xmm8
	pshufd	$0, %xmm4, %xmm10
	movdqa	.LC2(%rip), %xmm9
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm7, %xmm7
	paddd	%xmm5, %xmm8
	movdqa	%xmm4, %xmm3
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm8, %xmm0
	movdqa	%xmm10, %xmm6
	movdqa	%xmm5, %xmm2
	movl	%esi, %eax
	paddd	%xmm9, %xmm8
	psubd	%xmm0, %xmm6
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm6, %xmm0
	paddd	%xmm7, %xmm2
	psubd	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pcmpgtd	%xmm5, %xmm0
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm4
	subl	$1, %eax
	jnb	.L5
	addl	$1, %edx
	cmpl	%ecx, %edx
	jne	.L6
	movdqa	%xmm4, %xmm0
	movl	%r9d, %eax
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm4, %xmm0
	subl	%eax, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%eax, %r9d
	je	.L2
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	js	.L12
	cmpl	%esi, %eax
	setle	%cl
	cmpb	$1, %cl
	sbbl	$-1, %r8d
.L12:
	addl	$1, %eax
	cmpl	%eax, %edx
	jne	.L9
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	js	.L2
	movl	%eax, %edx
	jmp	.L10
.L16:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC2:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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(){
 int k,s,p=0;
  scanf("%d %d",&k,&s);
  for(int x=k;x>=0;x--){
    for(int y=k;y>=0;y--){
      if(s-x-y<=k&&s-x-y>=0) p++;
    }
  }
  printf("%d\n",p);
  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(){
 int k,s,p=0;
  scanf("%d %d",&k,&s);
  for(int x=k;x>=0;x--){
    for(int y=k;y>=0;y--){
      if(s-x-y<=k&&s-x-y>=0) p++;
    }
  }
  printf("%d\n",p);
  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 2
 5 7
 3 3
 4 7
 3 4
 1 7
 2 5
 4 0
 6 7
 17 4

6
 27
 10
 18
 12
 0
 3
 1
 33
 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(){
 int k,s,p=0;
  scanf("%d %d",&k,&s);
  for(int x=k;x>=0;x--){
    for(int y=k;y>=0;y--){
      if(s-x-y<=k&&s-x-y>=0) p++;
    }
  }
  printf("%d\n",p);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	testl	%esi, %esi
	js	.L16
	movl	4(%rsp), %edi
	leal	1(%rsi), %r9d
	cmpl	$2, %esi
	jle	.L26
	movd	%esi, %xmm7
	movd	%edi, %xmm4
	movl	%r9d, %ecx
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm5
	shrl	$2, %ecx
	movdqa	.LC1(%rip), %xmm8
	pshufd	$0, %xmm4, %xmm10
	movdqa	.LC2(%rip), %xmm9
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm7, %xmm7
	paddd	%xmm5, %xmm8
	movdqa	%xmm4, %xmm3
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm8, %xmm0
	movdqa	%xmm10, %xmm6
	movdqa	%xmm5, %xmm2
	movl	%esi, %eax
	paddd	%xmm9, %xmm8
	psubd	%xmm0, %xmm6
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm6, %xmm0
	paddd	%xmm7, %xmm2
	psubd	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pcmpgtd	%xmm5, %xmm0
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm4
	subl	$1, %eax
	jnb	.L5
	addl	$1, %edx
	cmpl	%ecx, %edx
	jne	.L6
	movdqa	%xmm4, %xmm0
	movl	%r9d, %eax
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm4, %xmm0
	subl	%eax, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%eax, %r9d
	je	.L2
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	js	.L12
	cmpl	%esi, %eax
	setle	%cl
	cmpb	$1, %cl
	sbbl	$-1, %r8d
.L12:
	addl	$1, %eax
	cmpl	%eax, %edx
	jne	.L9
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	js	.L2
	movl	%eax, %edx
	jmp	.L10
.L16:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC2:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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 %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	testl	%esi, %esi
	js	.L16
	movl	4(%rsp), %edi
	leal	1(%rsi), %r9d
	cmpl	$2, %esi
	jle	.L26
	movd	%esi, %xmm7
	movd	%edi, %xmm4
	movl	%r9d, %ecx
	xorl	%edx, %edx
	pshufd	$0, %xmm7, %xmm5
	shrl	$2, %ecx
	movdqa	.LC1(%rip), %xmm8
	pshufd	$0, %xmm4, %xmm10
	movdqa	.LC2(%rip), %xmm9
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm7, %xmm7
	paddd	%xmm5, %xmm8
	movdqa	%xmm4, %xmm3
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm8, %xmm0
	movdqa	%xmm10, %xmm6
	movdqa	%xmm5, %xmm2
	movl	%esi, %eax
	paddd	%xmm9, %xmm8
	psubd	%xmm0, %xmm6
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm6, %xmm0
	paddd	%xmm7, %xmm2
	psubd	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pcmpgtd	%xmm5, %xmm0
	pcmpeqd	%xmm3, %xmm1
	pcmpeqd	%xmm3, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm4
	subl	$1, %eax
	jnb	.L5
	addl	$1, %edx
	cmpl	%ecx, %edx
	jne	.L6
	movdqa	%xmm4, %xmm0
	movl	%r9d, %eax
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm4, %xmm0
	subl	%eax, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%eax, %r9d
	je	.L2
.L3:
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%edx, %eax
	subl	%esi, %eax
	subl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	js	.L12
	cmpl	%esi, %eax
	setle	%cl
	cmpb	$1, %cl
	sbbl	$-1, %r8d
.L12:
	addl	$1, %eax
	cmpl	%eax, %edx
	jne	.L9
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	js	.L2
	movl	%eax, %edx
	jmp	.L10
.L16:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC2:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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:
```