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 n,p,i,j,k,ftl[8],d,e,a[2],m;
  ftl[0]=1;
  for(i=1;i<8;i++){
    ftl[i]=ftl[i-1]*i;
  }
  scanf("%d",&n);
  for(i=0;i<2;i++){
    d=(1<<n)-1;
    a[i]=0;
    for(j=n-1;j>=0;j--){
      scanf("%d",&p);
      e=0;
      for(k=0;k<p;k++){
        e+=(d>>k)&1;
      }
      a[i]+=e*ftl[j];
      d^=1<<(p-1);
    }
  }
  m=a[0]-a[1];
  if(m<0) m*=-1;
  printf("%d",m);
  return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	24(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	$0, 12(%rsp)
.L8:
	movl	16(%rsp), %ecx
	movl	$1, %r14d
	movl	$0, (%r12)
	sall	%cl, %r14d
	subl	$1, %r14d
	subl	$1, %ecx
	js	.L2
	movslq	%ecx, %r15
	leaq	20(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	xorl	%esi, %esi
	testl	%edi, %edi
	jle	.L3
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r14d, %eax
	sarl	%cl, %eax
	addl	$1, %ecx
	andl	$1, %eax
	addl	%eax, %esi
	cmpl	%ecx, %edi
	jne	.L4
.L3:
	imull	(%rbx,%r15,4), %esi
	subl	$1, %edi
	subq	$1, %r15
	addl	%esi, (%r12)
	btcl	%edi, %r14d
	testl	%r15d, %r15d
	jns	.L5
	cmpl	$1, 12(%rsp)
	jne	.L20
.L10:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	subl	%edx, %ecx
	subl	%eax, %edx
	cmovs	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addq	$4, %r12
	jmp	.L8
.L2:
	cmpl	$0, 12(%rsp)
	jne	.L10
	movl	$0, 28(%rsp)
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	2
	.long	6
	.align 16
.LC1:
	.long	24
	.long	120
	.long	720
	.long	5040
	.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
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	24(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	$0, 12(%rsp)
.L8:
	movl	16(%rsp), %ecx
	movl	$1, %r14d
	movl	$0, (%r12)
	sall	%cl, %r14d
	subl	$1, %r14d
	subl	$1, %ecx
	js	.L2
	movslq	%ecx, %r15
	leaq	20(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	xorl	%esi, %esi
	testl	%edi, %edi
	jle	.L3
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r14d, %eax
	sarl	%cl, %eax
	addl	$1, %ecx
	andl	$1, %eax
	addl	%eax, %esi
	cmpl	%ecx, %edi
	jne	.L4
.L3:
	imull	(%rbx,%r15,4), %esi
	subl	$1, %edi
	subq	$1, %r15
	addl	%esi, (%r12)
	btcl	%edi, %r14d
	testl	%r15d, %r15d
	jns	.L5
	cmpl	$1, 12(%rsp)
	jne	.L20
.L10:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	subl	%edx, %ecx
	subl	%eax, %edx
	cmovs	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addq	$4, %r12
	jmp	.L8
.L2:
	cmpl	$0, 12(%rsp)
	jne	.L10
	movl	$0, 28(%rsp)
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	2
	.long	6
	.align 16
.LC1:
	.long	24
	.long	120
	.long	720
	.long	5040
	.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
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	24(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	$0, 12(%rsp)
.L8:
	movl	16(%rsp), %ecx
	movl	$1, %r14d
	movl	$0, (%r12)
	sall	%cl, %r14d
	subl	$1, %r14d
	subl	$1, %ecx
	js	.L2
	movslq	%ecx, %r15
	leaq	20(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	xorl	%esi, %esi
	testl	%edi, %edi
	jle	.L3
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r14d, %eax
	sarl	%cl, %eax
	addl	$1, %ecx
	andl	$1, %eax
	addl	%eax, %esi
	cmpl	%ecx, %edi
	jne	.L4
.L3:
	imull	(%rbx,%r15,4), %esi
	subl	$1, %edi
	subq	$1, %r15
	addl	%esi, (%r12)
	btcl	%edi, %r14d
	testl	%r15d, %r15d
	jns	.L5
	cmpl	$1, 12(%rsp)
	jne	.L20
.L10:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	subl	%edx, %ecx
	subl	%eax, %edx
	cmovs	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addq	$4, %r12
	jmp	.L8
.L2:
	cmpl	$0, 12(%rsp)
	jne	.L10
	movl	$0, 28(%rsp)
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	2
	.long	6
	.align 16
.LC1:
	.long	24
	.long	120
	.long	720
	.long	5040
	.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 n,p,i,j,k,ftl[8],d,e,a[2],m;
  ftl[0]=1;
  for(i=1;i<8;i++){
    ftl[i]=ftl[i-1]*i;
  }
  scanf("%d",&n);
  for(i=0;i<2;i++){
    d=(1<<n)-1;
    a[i]=0;
    for(j=n-1;j>=0;j--){
      scanf("%d",&p);
      e=0;
      for(k=0;k<p;k++){
        e+=(d>>k)&1;
      }
      a[i]+=e*ftl[j];
      d^=1<<(p-1);
    }
  }
  m=a[0]-a[1];
  if(m<0) m*=-1;
  printf("%d",m);
  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 n,p,i,j,k,ftl[8],d,e,a[2],m;
  ftl[0]=1;
  for(i=1;i<8;i++){
    ftl[i]=ftl[i-1]*i;
  }
  scanf("%d",&n);
  for(i=0;i<2;i++){
    d=(1<<n)-1;
    a[i]=0;
    for(j=n-1;j>=0;j--){
      scanf("%d",&p);
      e=0;
      for(k=0;k<p;k++){
        e+=(d>>k)&1;
      }
      a[i]+=e*ftl[j];
      d^=1<<(p-1);
    }
  }
  m=a[0]-a[1];
  if(m<0) m*=-1;
  printf("%d",m);
  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 3 2
3 1 2

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>

int main(){
  int n,p,i,j,k,ftl[8],d,e,a[2],m;
  ftl[0]=1;
  for(i=1;i<8;i++){
    ftl[i]=ftl[i-1]*i;
  }
  scanf("%d",&n);
  for(i=0;i<2;i++){
    d=(1<<n)-1;
    a[i]=0;
    for(j=n-1;j>=0;j--){
      scanf("%d",&p);
      e=0;
      for(k=0;k<p;k++){
        e+=(d>>k)&1;
      }
      a[i]+=e*ftl[j];
      d^=1<<(p-1);
    }
  }
  m=a[0]-a[1];
  if(m<0) m*=-1;
  printf("%d",m);
  return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	24(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	$0, 12(%rsp)
.L8:
	movl	16(%rsp), %ecx
	movl	$1, %r14d
	movl	$0, (%r12)
	sall	%cl, %r14d
	subl	$1, %r14d
	subl	$1, %ecx
	js	.L2
	movslq	%ecx, %r15
	leaq	20(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	xorl	%esi, %esi
	testl	%edi, %edi
	jle	.L3
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r14d, %eax
	sarl	%cl, %eax
	addl	$1, %ecx
	andl	$1, %eax
	addl	%eax, %esi
	cmpl	%ecx, %edi
	jne	.L4
.L3:
	imull	(%rbx,%r15,4), %esi
	subl	$1, %edi
	subq	$1, %r15
	addl	%esi, (%r12)
	btcl	%edi, %r14d
	testl	%r15d, %r15d
	jns	.L5
	cmpl	$1, 12(%rsp)
	jne	.L20
.L10:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	subl	%edx, %ecx
	subl	%eax, %edx
	cmovs	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addq	$4, %r12
	jmp	.L8
.L2:
	cmpl	$0, 12(%rsp)
	jne	.L10
	movl	$0, 28(%rsp)
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	2
	.long	6
	.align 16
.LC1:
	.long	24
	.long	120
	.long	720
	.long	5040
	.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
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	24(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	$0, 12(%rsp)
.L8:
	movl	16(%rsp), %ecx
	movl	$1, %r14d
	movl	$0, (%r12)
	sall	%cl, %r14d
	subl	$1, %r14d
	subl	$1, %ecx
	js	.L2
	movslq	%ecx, %r15
	leaq	20(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edi
	xorl	%esi, %esi
	testl	%edi, %edi
	jle	.L3
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r14d, %eax
	sarl	%cl, %eax
	addl	$1, %ecx
	andl	$1, %eax
	addl	%eax, %esi
	cmpl	%ecx, %edi
	jne	.L4
.L3:
	imull	(%rbx,%r15,4), %esi
	subl	$1, %edi
	subq	$1, %r15
	addl	%esi, (%r12)
	btcl	%edi, %r14d
	testl	%r15d, %r15d
	jns	.L5
	cmpl	$1, 12(%rsp)
	jne	.L20
.L10:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	subl	%edx, %ecx
	subl	%eax, %edx
	cmovs	%ecx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addq	$4, %r12
	jmp	.L8
.L2:
	cmpl	$0, 12(%rsp)
	jne	.L10
	movl	$0, 28(%rsp)
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	2
	.long	6
	.align 16
.LC1:
	.long	24
	.long	120
	.long	720
	.long	5040
	.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:
```