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

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

typedef long long int int64;

typedef struct indexVal{
  int64 val;
  int index;
} node;

typedef node dequeval;

typedef struct deque {
  dequeval *array;
  size_t front;
  size_t last;
  size_t mask;
} deque;

deque* newDeque(void){
  const int len=2;
  deque *d=(deque *)calloc(len,sizeof(dequeval));
  d->array=(dequeval *)calloc(len,sizeof(dequeval));
  d->front=d->last=0;
  d->mask=len-1;
  return d;
}

void initDeque(deque *d){
  d->front=d->last=0;
}

void freeDeque(deque *d){
  free(d->array);
  free(d);
}

int isEmpty(deque *d){
  return d->front==d->last;
}

void deque_realloc(deque *d){
  dequeval *array=(dequeval *)calloc(2*(d->mask+1),sizeof(dequeval));
  size_t k=0;
  for(size_t i=d->front;i!=d->last;i=(i+1)&d->mask) array[k++]=d->array[i];
  free(d->array);
  d->array=array;
  d->front=0;
  d->last=k;
  d->mask=2*d->mask+1;
}

dequeval pop_front(deque *d){
  dequeval res=d->array[d->front];
  d->front=(d->front+1)&d->mask;
  return res;
}

dequeval pop_back(deque *d){
  d->last=(d->last+d->mask)&d->mask;
  return d->array[d->last];
}

dequeval get_front(deque *d){
  return d->array[d->front];
}

dequeval get_back(deque *d){
  return d->array[(d->last+d->mask)&d->mask];
}

void push_front(deque *d,dequeval v){
  if(((d->last+1)&d->mask)==d->front){
    deque_realloc(d);
  }
  d->front=(d->front+d->mask)&d->mask;
  d->array[d->front]=v;
}

void push_back(deque *d,dequeval v){
  if(((d->last+1)&d->mask)==d->front){
    deque_realloc(d);
  }
  d->array[d->last]=v;
  d->last=(d->last+1)&d->mask;
}

void run(void){
  int n,m,k;
  scanf("%d%d%d",&n,&m,&k);
  int *a=(int *)calloc(n+1,sizeof(int));
  int i;
  for(i=1;i<=n;i++) scanf("%d",a+i);
  int64 *dp=(int64 *)calloc(n+1,sizeof(int64));
  deque *deq=newDeque();
  for(i=1;i<=k;i++){
    initDeque(deq);
    push_back(deq,(node){dp[i-1],i-1});
    for(int j=i;j<=n;j++){
      node t=get_front(deq);
      while(t.index<j-m){
	pop_front(deq);
	t=get_front(deq);
      }
      int64 local=(int64)i*a[j]+t.val;
      while(!isEmpty(deq)){
	t=get_back(deq);
	if(t.val>dp[j]) break;
	pop_back(deq);
      }
      push_back(deq,(node){dp[j],j});
      dp[j]=local;
    }
  }
  int64 ans=0;
  for(i=k;i<=n;i++) if(ans<dp[i]) ans=dp[i];
  printf("%lld\n",ans);
}

int main(void){
  run();
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	newDeque
	.type	newDeque, @function
newDeque:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$2, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 24(%rax)
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	newDeque, .-newDeque
	.globl	initDeque
	.type	initDeque, @function
initDeque:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initDeque, .-initDeque
	.globl	freeDeque
	.type	freeDeque, @function
freeDeque:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	freeDeque, .-freeDeque
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	cmpq	%rax, %rdx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isEmpty, .-isEmpty
	.globl	deque_realloc
	.type	deque_realloc, @function
deque_realloc:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	addq	$1, %rax
	addq	%rax, %rax
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movq	$0, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L9:
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rsi
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rdx, %rax
	movq	%rax, -16(%rbp)
.L8:
	movq	-40(%rbp), %rax
	movq	16(%rax), %rax
	cmpq	%rax, -16(%rbp)
	jne	.L9
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-40(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-40(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-40(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, 24(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deque_realloc, .-deque_realloc
	.globl	pop_front
	.type	pop_front, @function
pop_front:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pop_front, .-pop_front
	.globl	pop_back
	.type	pop_back, @function
pop_back:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pop_back, .-pop_back
	.globl	get_front
	.type	get_front, @function
get_front:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_front, .-get_front
	.globl	get_back
	.type	get_back, @function
get_back:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rcx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rcx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rcx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_back, .-get_back
	.globl	push_front
	.type	push_front, @function
push_front:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L19
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	deque_realloc
.L19:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	push_front, .-push_front
	.globl	push_back
	.type	push_back, @function
push_back:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L21
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	deque_realloc
.L21:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 16(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	push_back, .-push_back
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB17:
	.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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-132(%rbp), %rcx
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -112(%rbp)
	movl	$1, -128(%rbp)
	jmp	.L23
.L24:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L23:
	movl	-140(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L24
	movl	-140(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -104(%rbp)
	call	newDeque
	movq	%rax, -96(%rbp)
	movl	$1, -128(%rbp)
	jmp	.L25
.L34:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	initDeque
	movl	-128(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %r12
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	%r13, %rcx
	movabsq	$-4294967296, %rax
	andq	%rcx, %rax
	orq	%rdx, %rax
	movq	%rax, %r13
	movq	%r12, %rcx
	movq	%r13, %rbx
	movq	%r12, %rax
	movq	%r13, %rdx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	push_back
	movl	-128(%rbp), %eax
	movl	%eax, -124(%rbp)
	jmp	.L26
.L33:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_front
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	jmp	.L27
.L28:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	pop_front
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_front
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
.L27:
	movl	-72(%rbp), %eax
	movl	-136(%rbp), %ecx
	movl	-124(%rbp), %edx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	.L28
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-112(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rax, %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -88(%rbp)
	jmp	.L29
.L32:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_back
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movq	-80(%rbp), %rdx
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jg	.L39
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	pop_back
.L29:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	isEmpty
	testl	%eax, %eax
	je	.L32
	jmp	.L31
.L39:
	nop
.L31:
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %r14
	movl	-124(%rbp), %eax
	movq	%r15, %rcx
	movabsq	$-4294967296, %rdx
	andq	%rcx, %rdx
	orq	%rdx, %rax
	movq	%rax, %r15
	movq	%r14, %rcx
	movq	%r15, %rbx
	movq	%r14, %rax
	movq	%r15, %rdx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	push_back
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rdx)
	addl	$1, -124(%rbp)
.L26:
	movl	-140(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L33
	addl	$1, -128(%rbp)
.L25:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L34
	movq	$0, -120(%rbp)
	movl	-132(%rbp), %eax
	movl	%eax, -128(%rbp)
	jmp	.L35
.L37:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -120(%rbp)
	jge	.L36
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
.L36:
	addl	$1, -128(%rbp)
.L35:
	movl	-140(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L37
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB18:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	newDeque
	.type	newDeque, @function
newDeque:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %esi
	movl	$2, %edi
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, %r12
	call	calloc@PLT
	pxor	%xmm0, %xmm0
	movq	$1, 24(%r12)
	movq	%rax, (%r12)
	movq	%r12, %rax
	movups	%xmm0, 8(%r12)
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	newDeque, .-newDeque
	.p2align 4
	.globl	initDeque
	.type	initDeque, @function
initDeque:
.LFB40:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	ret
	.cfi_endproc
.LFE40:
	.size	initDeque, .-initDeque
	.p2align 4
	.globl	freeDeque
	.type	freeDeque, @function
freeDeque:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	movq	(%rdi), %rdi
	call	free@PLT
	movq	%rbp, %rdi
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.cfi_endproc
.LFE41:
	.size	freeDeque, .-freeDeque
	.p2align 4
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB42:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rax
	cmpq	%rax, 8(%rdi)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE42:
	.size	isEmpty, .-isEmpty
	.p2align 4
	.globl	deque_realloc
	.type	deque_realloc, @function
deque_realloc:
.LFB43:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$16, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	24(%rdi), %r13
	leaq	2(%r13,%r13), %rdi
	call	calloc@PLT
	movq	8(%r12), %rdx
	movq	(%r12), %rdi
	movq	%rax, %rbp
	movq	16(%r12), %rax
	cmpq	%rax, %rdx
	je	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rsi
	addq	$1, %rbx
	addq	$1, %rdx
	salq	$4, %rsi
	movq	%rbx, %rcx
	andq	%r13, %rdx
	movdqu	(%rdi,%rsi), %xmm0
	salq	$4, %rcx
	movups	%xmm0, -16(%rbp,%rcx)
	cmpq	%rax, %rdx
	jne	.L10
.L11:
	call	free@PLT
	movq	24(%r12), %rax
	movq	%rbp, (%r12)
	movq	%rbx, 16(%r12)
	movq	$0, 8(%r12)
	leaq	1(%rax,%rax), %rax
	movq	%rax, 24(%r12)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE43:
	.size	deque_realloc, .-deque_realloc
	.p2align 4
	.globl	pop_front
	.type	pop_front, @function
pop_front:
.LFB44:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	movq	%rax, %rdx
	addq	$1, %rax
	andq	24(%rdi), %rax
	salq	$4, %rdx
	addq	(%rdi), %rdx
	movq	(%rdx), %r8
	movl	8(%rdx), %edx
	movq	%rax, 8(%rdi)
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE44:
	.size	pop_front, .-pop_front
	.p2align 4
	.globl	pop_back
	.type	pop_back, @function
pop_back:
.LFB45:
	.cfi_startproc
	endbr64
	movq	24(%rdi), %rdx
	movq	16(%rdi), %rax
	addq	%rdx, %rax
	andq	%rdx, %rax
	movq	%rax, 16(%rdi)
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	ret
	.cfi_endproc
.LFE45:
	.size	pop_back, .-pop_back
	.p2align 4
	.globl	get_front
	.type	get_front, @function
get_front:
.LFB46:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	ret
	.cfi_endproc
.LFE46:
	.size	get_front, .-get_front
	.p2align 4
	.globl	get_back
	.type	get_back, @function
get_back:
.LFB47:
	.cfi_startproc
	endbr64
	movq	24(%rdi), %rdx
	movq	16(%rdi), %rax
	addq	%rdx, %rax
	andq	%rdx, %rax
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	ret
	.cfi_endproc
.LFE47:
	.size	get_back, .-get_back
	.p2align 4
	.globl	push_front
	.type	push_front, @function
push_front:
.LFB48:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	16(%rdi), %rcx
	movq	24(%rdi), %rdx
	movq	8(%rdi), %rbx
	leaq	1(%rcx), %rax
	andq	%rdx, %rax
	cmpq	%rbx, %rax
	je	.L19
	addq	%rdx, %rbx
	movq	(%rdi), %rbp
	andq	%rdx, %rbx
.L20:
	movq	%rbx, 8(%r15)
	salq	$4, %rbx
	addq	%rbx, %rbp
	movq	%r13, 0(%rbp)
	movq	%r14, 8(%rbp)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	leaq	2(%rdx,%rdx), %rdi
	movl	$16, %esi
	movq	%rcx, (%rsp)
	xorl	%r12d, %r12d
	movq	%rdx, 8(%rsp)
	call	calloc@PLT
	movq	(%rsp), %rcx
	movq	(%r15), %rdi
	movq	%rax, %rbp
	cmpq	%rbx, %rcx
	je	.L23
	movq	8(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rbx, %rsi
	addq	$1, %r12
	addq	$1, %rbx
	salq	$4, %rsi
	movq	%r12, %rax
	andq	%rdx, %rbx
	movdqu	(%rdi,%rsi), %xmm0
	salq	$4, %rax
	movups	%xmm0, -16(%rbp,%rax)
	cmpq	%rbx, %rcx
	jne	.L22
.L23:
	call	free@PLT
	movq	24(%r15), %rax
	movq	%rbp, (%r15)
	movq	%r12, 16(%r15)
	leaq	1(%rax,%rax), %rbx
	movq	%rbx, 24(%r15)
	jmp	.L20
	.cfi_endproc
.LFE48:
	.size	push_front, .-push_front
	.p2align 4
	.globl	push_back
	.type	push_back, @function
push_back:
.LFB49:
	.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
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	16(%rdi), %r14
	movq	24(%rdi), %r15
	movq	8(%rdi), %rbx
	leaq	1(%r14), %rdx
	andq	%r15, %rdx
	cmpq	%rbx, %rdx
	je	.L27
	movq	%r14, %rax
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	%rax, %rbx
.L28:
	movq	%r12, (%rbx)
	movq	%r13, 8(%rbx)
	movq	%rdx, 16(%rbp)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	2(%r15,%r15), %rdi
	movl	$16, %esi
	call	calloc@PLT
	movq	0(%rbp), %rdi
	movq	%rax, %rsi
	cmpq	%rbx, %r14
	je	.L29
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rbx, %rcx
	movq	%rdx, %r8
	addq	$1, %rdx
	addq	$1, %rbx
	salq	$4, %rcx
	movq	%rdx, %rax
	andq	%r15, %rbx
	movdqu	(%rdi,%rcx), %xmm0
	salq	$4, %rax
	movups	%xmm0, -16(%rsi,%rax)
	cmpq	%rbx, %r14
	jne	.L30
	leaq	(%rsi,%rax), %rbx
	leaq	2(%r8), %r14
.L31:
	movq	%rsi, 8(%rsp)
	call	free@PLT
	movq	24(%rbp), %rax
	movq	8(%rsp), %rsi
	movq	$0, 8(%rbp)
	leaq	1(%rax,%rax), %rdx
	movq	%rsi, 0(%rbp)
	movq	%rdx, 24(%rbp)
	andq	%r14, %rdx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rax, %rbx
	movl	$1, %r14d
	jmp	.L31
	.cfi_endproc
.LFE49:
	.size	push_back, .-push_back
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB50:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	132(%rsp), %rcx
	leaq	124(%rsp), %rsi
	leaq	128(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %ebx
	movl	$4, %esi
	leal	1(%rbx), %ebp
	movl	%ebx, 88(%rsp)
	movslq	%ebp, %rbp
	movq	%rbp, %rdi
	call	calloc@PLT
	movq	%rax, 24(%rsp)
	testl	%ebx, %ebx
	jle	.L35
	leaq	4(%rax), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L36:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L36
	leal	1(%rax), %edi
	movl	$8, %esi
	movl	%eax, 88(%rsp)
	movslq	%edi, %rdi
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 8(%rsp)
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 16(%rsp)
	call	calloc@PLT
	movq	16(%rsp), %r9
	pxor	%xmm0, %xmm0
	movq	%rax, (%r9)
	leaq	8(%r9), %rax
	movq	%rax, 96(%rsp)
	movl	132(%rsp), %eax
	movq	$1, 24(%r9)
	movl	%eax, 104(%rsp)
	movups	%xmm0, 8(%r9)
	testl	%eax, %eax
	jle	.L57
	movl	88(%rsp), %eax
	testl	%eax, %eax
	jle	.L40
	movl	104(%rsp), %edi
	movl	$1, %r13d
	movq	%r9, %r15
	movq	$1, 16(%rsp)
	cmpl	%edi, %eax
	cmovle	%eax, %edi
	movl	%edi, 108(%rsp)
	.p2align 4,,10
	.p2align 3
.L53:
	movq	16(%rsp), %rax
	movq	8(%rsp), %rsi
	pxor	%xmm2, %xmm2
	movups	%xmm2, 8(%r15)
	movl	%eax, 92(%rsp)
	movq	-8(%rsi,%rax,8), %r12
	movl	%eax, %edx
	leal	-1(%rax), %r14d
	movq	%r13, %rax
	andl	$1, %eax
	je	.L41
	movq	(%r15), %rbp
.L42:
	movq	%r12, 0(%rbp)
	subl	128(%rsp), %edx
	movl	%r14d, %esi
	xorl	%ebx, %ebx
	movq	%rax, 16(%r15)
	movq	16(%rsp), %r9
	movl	%r14d, 8(%rbp)
	movl	%edx, %r14d
	movl	%esi, %edx
	.p2align 4,,10
	.p2align 3
.L55:
	movl	%r9d, %r10d
	cmpl	%edx, %r14d
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L44:
	addq	$1, %rbx
	andq	%r13, %rbx
	movq	%rbx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	cmpl	8(%rdx), %r14d
	jg	.L44
	movq	%rbx, 8(%r15)
	movq	(%rdx), %r12
.L43:
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	movslq	(%rsi,%r9,4), %r8
	imulq	16(%rsp), %r8
	movq	(%rdi,%r9,8), %rdx
	addq	%r12, %r8
	cmpq	%rbx, %rax
	jne	.L47
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L78:
	movq	%rax, 16(%r15)
	cmpq	%rbx, %rax
	je	.L45
.L47:
	movq	%rax, %r12
	leaq	(%rax,%r13), %rax
	andq	%r13, %rax
	movq	%rax, %rcx
	salq	$4, %rcx
	cmpq	%rdx, 0(%rbp,%rcx)
	jle	.L78
	leaq	1(%r12), %rax
	andq	%r13, %rax
	cmpq	%rbx, %rax
	je	.L48
.L64:
	movq	16(%r15), %rax
	movq	%rax, %rcx
	addq	$1, %rax
	salq	$4, %rcx
	leaq	0(%rbp,%rcx), %r12
.L49:
	movq	8(%rsp), %rsi
	andq	%r13, %rax
	movq	%rdx, (%r12)
	addl	$1, %r14d
	movl	%r10d, 8(%r12)
	movq	%r8, (%rsi,%r9,8)
	addq	$1, %r9
	movq	%rax, 16(%r15)
	cmpl	%r9d, 88(%rsp)
	jl	.L79
	movq	%rbx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	movq	(%rdx), %r12
	movl	8(%rdx), %edx
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L45:
	leaq	1(%rbx), %rax
	andq	%r13, %rax
	cmpq	%rax, %rbx
	jne	.L64
	leaq	2(%r13,%r13), %rax
	movl	$16, %esi
	movq	%r9, 64(%rsp)
	movq	%rax, %rdi
	movq	%rdx, 56(%rsp)
	movl	%r10d, 48(%rsp)
	movq	%r8, 40(%rsp)
	movq	%rax, 32(%rsp)
	call	calloc@PLT
	movq	40(%rsp), %r8
	movl	48(%rsp), %r10d
	movq	56(%rsp), %rdx
	movq	64(%rsp), %r9
	movq	%rax, %r12
	movq	%rax, %r11
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%rbp, %rdi
	movq	%r9, 80(%rsp)
	xorl	%ebx, %ebx
	movq	%rdx, 72(%rsp)
	movq	%rax, 64(%rsp)
	movl	%r10d, 56(%rsp)
	movq	%r11, 48(%rsp)
	movq	%r8, 40(%rsp)
	call	free@PLT
	movq	32(%rsp), %r13
	movq	48(%rsp), %r11
	movq	$0, 8(%r15)
	movq	80(%rsp), %r9
	movq	72(%rsp), %rdx
	subq	$1, %r13
	movq	%r11, (%r15)
	movq	64(%rsp), %rax
	movq	%r11, %rbp
	movl	56(%rsp), %r10d
	movq	40(%rsp), %r8
	movq	%r13, 24(%r15)
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L48:
	leaq	2(%r13,%r13), %rax
	movl	$16, %esi
	movq	%r9, 64(%rsp)
	movq	%rax, %rdi
	movq	%rdx, 56(%rsp)
	movl	%r10d, 48(%rsp)
	movq	%r8, 40(%rsp)
	movq	%rax, 32(%rsp)
	call	calloc@PLT
	cmpq	%rbx, %r12
	movq	40(%rsp), %r8
	movl	48(%rsp), %r10d
	movq	56(%rsp), %rdx
	movq	64(%rsp), %r9
	movq	%rax, %r11
	je	.L67
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L51:
	movq	%rbx, %rdi
	movq	%rsi, %rax
	addq	$1, %rsi
	addq	$1, %rbx
	salq	$4, %rdi
	movq	%rsi, %rcx
	andq	%r13, %rbx
	movdqu	0(%rbp,%rdi), %xmm1
	salq	$4, %rcx
	movups	%xmm1, -16(%r11,%rcx)
	cmpq	%r12, %rbx
	jne	.L51
	leaq	(%r11,%rcx), %r12
	addq	$2, %rax
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L79:
	movl	92(%rsp), %ebx
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	addl	$1, %ebx
	cmpl	%eax, 108(%rsp)
	jge	.L53
	movq	%r15, %r9
	cmpl	104(%rsp), %ebx
	jg	.L57
.L56:
	movslq	%ebx, %rbx
	pxor	%xmm0, %xmm0
	movq	%r9, %rbp
	.p2align 4,,10
	.p2align 3
.L61:
	movq	96(%rsp), %rax
	leal	-1(%rbx), %r12d
	movups	%xmm0, (%rax)
	movq	8(%rsp), %rax
	movq	-8(%rax,%rbx,8), %r14
	testb	$1, %r13b
	je	.L58
	movq	0(%rbp), %rax
	addq	$1, %rbx
	movq	%r14, (%rax)
	movl	%r12d, 8(%rax)
	movq	$1, 16(%rbp)
	cmpl	%ebx, 104(%rsp)
	jge	.L61
.L57:
	movl	104(%rsp), %edi
	xorl	%edx, %edx
	cmpl	%edi, 88(%rsp)
	jl	.L39
	movl	88(%rsp), %edx
	movq	8(%rsp), %rsi
	movslq	%edi, %rcx
	subl	%edi, %edx
	leaq	(%rsi,%rcx,8), %rax
	addq	%rcx, %rdx
	leaq	8(%rsi,%rdx,8), %rsi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L62:
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rsi
	jne	.L62
.L39:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L41:
	.cfi_restore_state
	leaq	2(%r13,%r13), %r13
	movl	$16, %esi
	movl	%edx, 32(%rsp)
	movq	%r13, %rdi
	subq	$1, %r13
	call	calloc@PLT
	movq	(%r15), %rdi
	movq	%rax, %rbp
	call	free@PLT
	movq	%r13, %rax
	movq	%rbp, (%r15)
	movl	32(%rsp), %edx
	movq	%r13, 24(%r15)
	andl	$1, %eax
	jmp	.L42
.L58:
	leaq	2(%r13,%r13), %r13
	movl	$16, %esi
	addq	$1, %rbx
	movq	%r13, %rdi
	subq	$1, %r13
	call	calloc@PLT
	movq	0(%rbp), %rdi
	movq	%rax, %r15
	call	free@PLT
	movq	%r13, %rax
	movq	%r15, 0(%rbp)
	pxor	%xmm0, %xmm0
	andl	$1, %eax
	cmpl	%ebx, 104(%rsp)
	movq	%r13, 24(%rbp)
	movq	%r14, (%r15)
	movl	%r12d, 8(%r15)
	movq	%rax, 16(%rbp)
	jge	.L61
	jmp	.L57
.L35:
	movl	$8, %esi
	movq	%rbp, %rdi
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 8(%rsp)
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 16(%rsp)
	call	calloc@PLT
	movq	16(%rsp), %r9
	pxor	%xmm0, %xmm0
	movq	%rax, (%r9)
	leaq	8(%r9), %rax
	movq	%rax, 96(%rsp)
	movl	132(%rsp), %eax
	movq	$1, 24(%r9)
	movl	%eax, 104(%rsp)
	movups	%xmm0, 8(%r9)
	testl	%eax, %eax
	jle	.L57
.L40:
	movl	$1, %r13d
	movl	$1, %ebx
	jmp	.L56
.L67:
	movq	%rax, %r12
	movl	$1, %eax
	jmp	.L50
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE50:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	newDeque
	.type	newDeque, @function
newDeque:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %esi
	movl	$2, %edi
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, %r12
	call	calloc@PLT
	pxor	%xmm0, %xmm0
	movq	$1, 24(%r12)
	movq	%rax, (%r12)
	movq	%r12, %rax
	movups	%xmm0, 8(%r12)
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	newDeque, .-newDeque
	.p2align 4
	.globl	initDeque
	.type	initDeque, @function
initDeque:
.LFB40:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	ret
	.cfi_endproc
.LFE40:
	.size	initDeque, .-initDeque
	.p2align 4
	.globl	freeDeque
	.type	freeDeque, @function
freeDeque:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	movq	(%rdi), %rdi
	call	free@PLT
	movq	%rbp, %rdi
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.cfi_endproc
.LFE41:
	.size	freeDeque, .-freeDeque
	.p2align 4
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB42:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rax
	cmpq	%rax, 8(%rdi)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE42:
	.size	isEmpty, .-isEmpty
	.p2align 4
	.globl	deque_realloc
	.type	deque_realloc, @function
deque_realloc:
.LFB43:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$16, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	24(%rdi), %r13
	leaq	2(%r13,%r13), %rdi
	call	calloc@PLT
	movq	8(%r12), %rdx
	movq	(%r12), %rdi
	movq	%rax, %rbp
	movq	16(%r12), %rax
	cmpq	%rax, %rdx
	je	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rsi
	addq	$1, %rbx
	addq	$1, %rdx
	salq	$4, %rsi
	movq	%rbx, %rcx
	andq	%r13, %rdx
	movdqu	(%rdi,%rsi), %xmm0
	salq	$4, %rcx
	movups	%xmm0, -16(%rbp,%rcx)
	cmpq	%rax, %rdx
	jne	.L10
.L11:
	call	free@PLT
	movq	24(%r12), %rax
	movq	%rbp, (%r12)
	movq	%rbx, 16(%r12)
	movq	$0, 8(%r12)
	leaq	1(%rax,%rax), %rax
	movq	%rax, 24(%r12)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE43:
	.size	deque_realloc, .-deque_realloc
	.p2align 4
	.globl	pop_front
	.type	pop_front, @function
pop_front:
.LFB44:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	movq	%rax, %rdx
	addq	$1, %rax
	andq	24(%rdi), %rax
	salq	$4, %rdx
	addq	(%rdi), %rdx
	movq	(%rdx), %r8
	movl	8(%rdx), %edx
	movq	%rax, 8(%rdi)
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE44:
	.size	pop_front, .-pop_front
	.p2align 4
	.globl	pop_back
	.type	pop_back, @function
pop_back:
.LFB45:
	.cfi_startproc
	endbr64
	movq	24(%rdi), %rdx
	movq	16(%rdi), %rax
	addq	%rdx, %rax
	andq	%rdx, %rax
	movq	%rax, 16(%rdi)
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	ret
	.cfi_endproc
.LFE45:
	.size	pop_back, .-pop_back
	.p2align 4
	.globl	get_front
	.type	get_front, @function
get_front:
.LFB46:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	ret
	.cfi_endproc
.LFE46:
	.size	get_front, .-get_front
	.p2align 4
	.globl	get_back
	.type	get_back, @function
get_back:
.LFB47:
	.cfi_startproc
	endbr64
	movq	24(%rdi), %rdx
	movq	16(%rdi), %rax
	addq	%rdx, %rax
	andq	%rdx, %rax
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	ret
	.cfi_endproc
.LFE47:
	.size	get_back, .-get_back
	.p2align 4
	.globl	push_front
	.type	push_front, @function
push_front:
.LFB48:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	16(%rdi), %rcx
	movq	24(%rdi), %rdx
	movq	8(%rdi), %rbx
	leaq	1(%rcx), %rax
	andq	%rdx, %rax
	cmpq	%rbx, %rax
	je	.L19
	addq	%rdx, %rbx
	movq	(%rdi), %rbp
	andq	%rdx, %rbx
.L20:
	movq	%rbx, 8(%r15)
	salq	$4, %rbx
	addq	%rbx, %rbp
	movq	%r13, 0(%rbp)
	movq	%r14, 8(%rbp)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	leaq	2(%rdx,%rdx), %rdi
	movl	$16, %esi
	movq	%rcx, (%rsp)
	xorl	%r12d, %r12d
	movq	%rdx, 8(%rsp)
	call	calloc@PLT
	movq	(%rsp), %rcx
	movq	(%r15), %rdi
	movq	%rax, %rbp
	cmpq	%rbx, %rcx
	je	.L23
	movq	8(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rbx, %rsi
	addq	$1, %r12
	addq	$1, %rbx
	salq	$4, %rsi
	movq	%r12, %rax
	andq	%rdx, %rbx
	movdqu	(%rdi,%rsi), %xmm0
	salq	$4, %rax
	movups	%xmm0, -16(%rbp,%rax)
	cmpq	%rbx, %rcx
	jne	.L22
.L23:
	call	free@PLT
	movq	24(%r15), %rax
	movq	%rbp, (%r15)
	movq	%r12, 16(%r15)
	leaq	1(%rax,%rax), %rbx
	movq	%rbx, 24(%r15)
	jmp	.L20
	.cfi_endproc
.LFE48:
	.size	push_front, .-push_front
	.p2align 4
	.globl	push_back
	.type	push_back, @function
push_back:
.LFB49:
	.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
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	16(%rdi), %r14
	movq	24(%rdi), %r15
	movq	8(%rdi), %rbx
	leaq	1(%r14), %rdx
	andq	%r15, %rdx
	cmpq	%rbx, %rdx
	je	.L27
	movq	%r14, %rax
	salq	$4, %rax
	addq	(%rdi), %rax
	movq	%rax, %rbx
.L28:
	movq	%r12, (%rbx)
	movq	%r13, 8(%rbx)
	movq	%rdx, 16(%rbp)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	2(%r15,%r15), %rdi
	movl	$16, %esi
	call	calloc@PLT
	movq	0(%rbp), %rdi
	movq	%rax, %rsi
	cmpq	%rbx, %r14
	je	.L29
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rbx, %rcx
	movq	%rdx, %r8
	addq	$1, %rdx
	addq	$1, %rbx
	salq	$4, %rcx
	movq	%rdx, %rax
	andq	%r15, %rbx
	movdqu	(%rdi,%rcx), %xmm0
	salq	$4, %rax
	movups	%xmm0, -16(%rsi,%rax)
	cmpq	%rbx, %r14
	jne	.L30
	leaq	(%rsi,%rax), %rbx
	leaq	2(%r8), %r14
.L31:
	movq	%rsi, 8(%rsp)
	call	free@PLT
	movq	24(%rbp), %rax
	movq	8(%rsp), %rsi
	movq	$0, 8(%rbp)
	leaq	1(%rax,%rax), %rdx
	movq	%rsi, 0(%rbp)
	movq	%rdx, 24(%rbp)
	andq	%r14, %rdx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rax, %rbx
	movl	$1, %r14d
	jmp	.L31
	.cfi_endproc
.LFE49:
	.size	push_back, .-push_back
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB50:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	132(%rsp), %rcx
	leaq	124(%rsp), %rsi
	leaq	128(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %ebx
	movl	$4, %esi
	leal	1(%rbx), %ebp
	movl	%ebx, 88(%rsp)
	movslq	%ebp, %rbp
	movq	%rbp, %rdi
	call	calloc@PLT
	movq	%rax, 24(%rsp)
	testl	%ebx, %ebx
	jle	.L35
	leaq	4(%rax), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L36:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L36
	leal	1(%rax), %edi
	movl	$8, %esi
	movl	%eax, 88(%rsp)
	movslq	%edi, %rdi
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 8(%rsp)
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 16(%rsp)
	call	calloc@PLT
	movq	16(%rsp), %r9
	pxor	%xmm0, %xmm0
	movq	%rax, (%r9)
	leaq	8(%r9), %rax
	movq	%rax, 96(%rsp)
	movl	132(%rsp), %eax
	movq	$1, 24(%r9)
	movl	%eax, 104(%rsp)
	movups	%xmm0, 8(%r9)
	testl	%eax, %eax
	jle	.L57
	movl	88(%rsp), %eax
	testl	%eax, %eax
	jle	.L40
	movl	104(%rsp), %edi
	movl	$1, %r13d
	movq	%r9, %r15
	movq	$1, 16(%rsp)
	cmpl	%edi, %eax
	cmovle	%eax, %edi
	movl	%edi, 108(%rsp)
	.p2align 4,,10
	.p2align 3
.L53:
	movq	16(%rsp), %rax
	movq	8(%rsp), %rsi
	pxor	%xmm2, %xmm2
	movups	%xmm2, 8(%r15)
	movl	%eax, 92(%rsp)
	movq	-8(%rsi,%rax,8), %r12
	movl	%eax, %edx
	leal	-1(%rax), %r14d
	movq	%r13, %rax
	andl	$1, %eax
	je	.L41
	movq	(%r15), %rbp
.L42:
	movq	%r12, 0(%rbp)
	subl	128(%rsp), %edx
	movl	%r14d, %esi
	xorl	%ebx, %ebx
	movq	%rax, 16(%r15)
	movq	16(%rsp), %r9
	movl	%r14d, 8(%rbp)
	movl	%edx, %r14d
	movl	%esi, %edx
	.p2align 4,,10
	.p2align 3
.L55:
	movl	%r9d, %r10d
	cmpl	%edx, %r14d
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L44:
	addq	$1, %rbx
	andq	%r13, %rbx
	movq	%rbx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	cmpl	8(%rdx), %r14d
	jg	.L44
	movq	%rbx, 8(%r15)
	movq	(%rdx), %r12
.L43:
	movq	24(%rsp), %rsi
	movq	8(%rsp), %rdi
	movslq	(%rsi,%r9,4), %r8
	imulq	16(%rsp), %r8
	movq	(%rdi,%r9,8), %rdx
	addq	%r12, %r8
	cmpq	%rbx, %rax
	jne	.L47
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L78:
	movq	%rax, 16(%r15)
	cmpq	%rbx, %rax
	je	.L45
.L47:
	movq	%rax, %r12
	leaq	(%rax,%r13), %rax
	andq	%r13, %rax
	movq	%rax, %rcx
	salq	$4, %rcx
	cmpq	%rdx, 0(%rbp,%rcx)
	jle	.L78
	leaq	1(%r12), %rax
	andq	%r13, %rax
	cmpq	%rbx, %rax
	je	.L48
.L64:
	movq	16(%r15), %rax
	movq	%rax, %rcx
	addq	$1, %rax
	salq	$4, %rcx
	leaq	0(%rbp,%rcx), %r12
.L49:
	movq	8(%rsp), %rsi
	andq	%r13, %rax
	movq	%rdx, (%r12)
	addl	$1, %r14d
	movl	%r10d, 8(%r12)
	movq	%r8, (%rsi,%r9,8)
	addq	$1, %r9
	movq	%rax, 16(%r15)
	cmpl	%r9d, 88(%rsp)
	jl	.L79
	movq	%rbx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	movq	(%rdx), %r12
	movl	8(%rdx), %edx
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L45:
	leaq	1(%rbx), %rax
	andq	%r13, %rax
	cmpq	%rax, %rbx
	jne	.L64
	leaq	2(%r13,%r13), %rax
	movl	$16, %esi
	movq	%r9, 64(%rsp)
	movq	%rax, %rdi
	movq	%rdx, 56(%rsp)
	movl	%r10d, 48(%rsp)
	movq	%r8, 40(%rsp)
	movq	%rax, 32(%rsp)
	call	calloc@PLT
	movq	40(%rsp), %r8
	movl	48(%rsp), %r10d
	movq	56(%rsp), %rdx
	movq	64(%rsp), %r9
	movq	%rax, %r12
	movq	%rax, %r11
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%rbp, %rdi
	movq	%r9, 80(%rsp)
	xorl	%ebx, %ebx
	movq	%rdx, 72(%rsp)
	movq	%rax, 64(%rsp)
	movl	%r10d, 56(%rsp)
	movq	%r11, 48(%rsp)
	movq	%r8, 40(%rsp)
	call	free@PLT
	movq	32(%rsp), %r13
	movq	48(%rsp), %r11
	movq	$0, 8(%r15)
	movq	80(%rsp), %r9
	movq	72(%rsp), %rdx
	subq	$1, %r13
	movq	%r11, (%r15)
	movq	64(%rsp), %rax
	movq	%r11, %rbp
	movl	56(%rsp), %r10d
	movq	40(%rsp), %r8
	movq	%r13, 24(%r15)
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L48:
	leaq	2(%r13,%r13), %rax
	movl	$16, %esi
	movq	%r9, 64(%rsp)
	movq	%rax, %rdi
	movq	%rdx, 56(%rsp)
	movl	%r10d, 48(%rsp)
	movq	%r8, 40(%rsp)
	movq	%rax, 32(%rsp)
	call	calloc@PLT
	cmpq	%rbx, %r12
	movq	40(%rsp), %r8
	movl	48(%rsp), %r10d
	movq	56(%rsp), %rdx
	movq	64(%rsp), %r9
	movq	%rax, %r11
	je	.L67
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L51:
	movq	%rbx, %rdi
	movq	%rsi, %rax
	addq	$1, %rsi
	addq	$1, %rbx
	salq	$4, %rdi
	movq	%rsi, %rcx
	andq	%r13, %rbx
	movdqu	0(%rbp,%rdi), %xmm1
	salq	$4, %rcx
	movups	%xmm1, -16(%r11,%rcx)
	cmpq	%r12, %rbx
	jne	.L51
	leaq	(%r11,%rcx), %r12
	addq	$2, %rax
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L79:
	movl	92(%rsp), %ebx
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	addl	$1, %ebx
	cmpl	%eax, 108(%rsp)
	jge	.L53
	movq	%r15, %r9
	cmpl	104(%rsp), %ebx
	jg	.L57
.L56:
	movslq	%ebx, %rbx
	pxor	%xmm0, %xmm0
	movq	%r9, %rbp
	.p2align 4,,10
	.p2align 3
.L61:
	movq	96(%rsp), %rax
	leal	-1(%rbx), %r12d
	movups	%xmm0, (%rax)
	movq	8(%rsp), %rax
	movq	-8(%rax,%rbx,8), %r14
	testb	$1, %r13b
	je	.L58
	movq	0(%rbp), %rax
	addq	$1, %rbx
	movq	%r14, (%rax)
	movl	%r12d, 8(%rax)
	movq	$1, 16(%rbp)
	cmpl	%ebx, 104(%rsp)
	jge	.L61
.L57:
	movl	104(%rsp), %edi
	xorl	%edx, %edx
	cmpl	%edi, 88(%rsp)
	jl	.L39
	movl	88(%rsp), %edx
	movq	8(%rsp), %rsi
	movslq	%edi, %rcx
	subl	%edi, %edx
	leaq	(%rsi,%rcx,8), %rax
	addq	%rcx, %rdx
	leaq	8(%rsi,%rdx,8), %rsi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L62:
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rsi
	jne	.L62
.L39:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L41:
	.cfi_restore_state
	leaq	2(%r13,%r13), %r13
	movl	$16, %esi
	movl	%edx, 32(%rsp)
	movq	%r13, %rdi
	subq	$1, %r13
	call	calloc@PLT
	movq	(%r15), %rdi
	movq	%rax, %rbp
	call	free@PLT
	movq	%r13, %rax
	movq	%rbp, (%r15)
	movl	32(%rsp), %edx
	movq	%r13, 24(%r15)
	andl	$1, %eax
	jmp	.L42
.L58:
	leaq	2(%r13,%r13), %r13
	movl	$16, %esi
	addq	$1, %rbx
	movq	%r13, %rdi
	subq	$1, %r13
	call	calloc@PLT
	movq	0(%rbp), %rdi
	movq	%rax, %r15
	call	free@PLT
	movq	%r13, %rax
	movq	%r15, 0(%rbp)
	pxor	%xmm0, %xmm0
	andl	$1, %eax
	cmpl	%ebx, 104(%rsp)
	movq	%r13, 24(%rbp)
	movq	%r14, (%r15)
	movl	%r12d, 8(%r15)
	movq	%rax, 16(%rbp)
	jge	.L61
	jmp	.L57
.L35:
	movl	$8, %esi
	movq	%rbp, %rdi
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 8(%rsp)
	call	calloc@PLT
	movl	$16, %esi
	movl	$2, %edi
	movq	%rax, 16(%rsp)
	call	calloc@PLT
	movq	16(%rsp), %r9
	pxor	%xmm0, %xmm0
	movq	%rax, (%r9)
	leaq	8(%r9), %rax
	movq	%rax, 96(%rsp)
	movl	132(%rsp), %eax
	movq	$1, 24(%r9)
	movl	%eax, 104(%rsp)
	movups	%xmm0, 8(%r9)
	testl	%eax, %eax
	jle	.L57
.L40:
	movl	$1, %r13d
	movl	$1, %ebx
	jmp	.L56
.L67:
	movq	%rax, %r12
	movl	$1, %eax
	jmp	.L50
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE50:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.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:

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

typedef long long int int64;

typedef struct indexVal{
  int64 val;
  int index;
} node;

typedef node dequeval;

typedef struct deque {
  dequeval *array;
  size_t front;
  size_t last;
  size_t mask;
} deque;

deque* newDeque(void){
  const int len=2;
  deque *d=(deque *)calloc(len,sizeof(dequeval));
  d->array=(dequeval *)calloc(len,sizeof(dequeval));
  d->front=d->last=0;
  d->mask=len-1;
  return d;
}

void initDeque(deque *d){
  d->front=d->last=0;
}

void freeDeque(deque *d){
  free(d->array);
  free(d);
}

int isEmpty(deque *d){
  return d->front==d->last;
}

void deque_realloc(deque *d){
  dequeval *array=(dequeval *)calloc(2*(d->mask+1),sizeof(dequeval));
  size_t k=0;
  for(size_t i=d->front;i!=d->last;i=(i+1)&d->mask) array[k++]=d->array[i];
  free(d->array);
  d->array=array;
  d->front=0;
  d->last=k;
  d->mask=2*d->mask+1;
}

dequeval pop_front(deque *d){
  dequeval res=d->array[d->front];
  d->front=(d->front+1)&d->mask;
  return res;
}

dequeval pop_back(deque *d){
  d->last=(d->last+d->mask)&d->mask;
  return d->array[d->last];
}

dequeval get_front(deque *d){
  return d->array[d->front];
}

dequeval get_back(deque *d){
  return d->array[(d->last+d->mask)&d->mask];
}

void push_front(deque *d,dequeval v){
  if(((d->last+1)&d->mask)==d->front){
    deque_realloc(d);
  }
  d->front=(d->front+d->mask)&d->mask;
  d->array[d->front]=v;
}

void push_back(deque *d,dequeval v){
  if(((d->last+1)&d->mask)==d->front){
    deque_realloc(d);
  }
  d->array[d->last]=v;
  d->last=(d->last+1)&d->mask;
}

void run(void){
  int n,m,k;
  scanf("%d%d%d",&n,&m,&k);
  int *a=(int *)calloc(n+1,sizeof(int));
  int i;
  for(i=1;i<=n;i++) scanf("%d",a+i);
  int64 *dp=(int64 *)calloc(n+1,sizeof(int64));
  deque *deq=newDeque();
  for(i=1;i<=k;i++){
    initDeque(deq);
    push_back(deq,(node){dp[i-1],i-1});
    for(int j=i;j<=n;j++){
      node t=get_front(deq);
      while(t.index<j-m){
	pop_front(deq);
	t=get_front(deq);
      }
      int64 local=(int64)i*a[j]+t.val;
      while(!isEmpty(deq)){
	t=get_back(deq);
	if(t.val>dp[j]) break;
	pop_back(deq);
      }
      push_back(deq,(node){dp[j],j});
      dp[j]=local;
    }
  }
  int64 ans=0;
  for(i=k;i<=n;i++) if(ans<dp[i]) ans=dp[i];
  printf("%lld\n",ans);
}

int main(void){
  run();
  return 0;
}

5 2 3
10 2 11 10 2
 10 3 5
0 7 2 6 9 4 8 5 1 1000000000
 5 5 2
1 2 10 5 9
 10 3 5
0 7 2 6 9 4 2 5 1 1000000000
 5 5 2
1 2 5 5 9
 5 2 2
10 2 11 10 1
 5 2 2
5 2 11 10 1
 5 5 2
2 2 5 8 9
 5 2 2
5 2 11 6 1
 5 5 2
2 2 5 8 6

62
 5000000078
 28
 5000000066
 23
 32
 31
 26
 27
 21

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

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

typedef long long int int64;

typedef struct indexVal{
  int64 val;
  int index;
} node;

typedef node dequeval;

typedef struct deque {
  dequeval *array;
  size_t front;
  size_t last;
  size_t mask;
} deque;

deque* newDeque(void){
  const int len=2;
  deque *d=(deque *)calloc(len,sizeof(dequeval));
  d->array=(dequeval *)calloc(len,sizeof(dequeval));
  d->front=d->last=0;
  d->mask=len-1;
  return d;
}

void initDeque(deque *d){
  d->front=d->last=0;
}

void freeDeque(deque *d){
  free(d->array);
  free(d);
}

int isEmpty(deque *d){
  return d->front==d->last;
}

void deque_realloc(deque *d){
  dequeval *array=(dequeval *)calloc(2*(d->mask+1),sizeof(dequeval));
  size_t k=0;
  for(size_t i=d->front;i!=d->last;i=(i+1)&d->mask) array[k++]=d->array[i];
  free(d->array);
  d->array=array;
  d->front=0;
  d->last=k;
  d->mask=2*d->mask+1;
}

dequeval pop_front(deque *d){
  dequeval res=d->array[d->front];
  d->front=(d->front+1)&d->mask;
  return res;
}

dequeval pop_back(deque *d){
  d->last=(d->last+d->mask)&d->mask;
  return d->array[d->last];
}

dequeval get_front(deque *d){
  return d->array[d->front];
}

dequeval get_back(deque *d){
  return d->array[(d->last+d->mask)&d->mask];
}

void push_front(deque *d,dequeval v){
  if(((d->last+1)&d->mask)==d->front){
    deque_realloc(d);
  }
  d->front=(d->front+d->mask)&d->mask;
  d->array[d->front]=v;
}

void push_back(deque *d,dequeval v){
  if(((d->last+1)&d->mask)==d->front){
    deque_realloc(d);
  }
  d->array[d->last]=v;
  d->last=(d->last+1)&d->mask;
}

void run(void){
  int n,m,k;
  scanf("%d%d%d",&n,&m,&k);
  int *a=(int *)calloc(n+1,sizeof(int));
  int i;
  for(i=1;i<=n;i++) scanf("%d",a+i);
  int64 *dp=(int64 *)calloc(n+1,sizeof(int64));
  deque *deq=newDeque();
  for(i=1;i<=k;i++){
    initDeque(deq);
    push_back(deq,(node){dp[i-1],i-1});
    for(int j=i;j<=n;j++){
      node t=get_front(deq);
      while(t.index<j-m){
	pop_front(deq);
	t=get_front(deq);
      }
      int64 local=(int64)i*a[j]+t.val;
      while(!isEmpty(deq)){
	t=get_back(deq);
	if(t.val>dp[j]) break;
	pop_back(deq);
      }
      push_back(deq,(node){dp[j],j});
      dp[j]=local;
    }
  }
  int64 ans=0;
  for(i=k;i<=n;i++) if(ans<dp[i]) ans=dp[i];
  printf("%lld\n",ans);
}

int main(void){
  run();
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	newDeque
	.type	newDeque, @function
newDeque:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$2, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 24(%rax)
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	newDeque, .-newDeque
	.globl	initDeque
	.type	initDeque, @function
initDeque:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initDeque, .-initDeque
	.globl	freeDeque
	.type	freeDeque, @function
freeDeque:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	freeDeque, .-freeDeque
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	cmpq	%rax, %rdx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isEmpty, .-isEmpty
	.globl	deque_realloc
	.type	deque_realloc, @function
deque_realloc:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	addq	$1, %rax
	addq	%rax, %rax
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movq	$0, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L9:
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rsi
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rdx, %rax
	movq	%rax, -16(%rbp)
.L8:
	movq	-40(%rbp), %rax
	movq	16(%rax), %rax
	cmpq	%rax, -16(%rbp)
	jne	.L9
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-40(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-40(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-40(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, 24(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deque_realloc, .-deque_realloc
	.globl	pop_front
	.type	pop_front, @function
pop_front:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pop_front, .-pop_front
	.globl	pop_back
	.type	pop_back, @function
pop_back:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pop_back, .-pop_back
	.globl	get_front
	.type	get_front, @function
get_front:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_front, .-get_front
	.globl	get_back
	.type	get_back, @function
get_back:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rcx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rcx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rcx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_back, .-get_back
	.globl	push_front
	.type	push_front, @function
push_front:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L19
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	deque_realloc
.L19:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	push_front, .-push_front
	.globl	push_back
	.type	push_back, @function
push_back:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L21
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	deque_realloc
.L21:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 16(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	push_back, .-push_back
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB17:
	.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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-132(%rbp), %rcx
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -112(%rbp)
	movl	$1, -128(%rbp)
	jmp	.L23
.L24:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L23:
	movl	-140(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L24
	movl	-140(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -104(%rbp)
	call	newDeque
	movq	%rax, -96(%rbp)
	movl	$1, -128(%rbp)
	jmp	.L25
.L34:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	initDeque
	movl	-128(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %r12
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	%r13, %rcx
	movabsq	$-4294967296, %rax
	andq	%rcx, %rax
	orq	%rdx, %rax
	movq	%rax, %r13
	movq	%r12, %rcx
	movq	%r13, %rbx
	movq	%r12, %rax
	movq	%r13, %rdx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	push_back
	movl	-128(%rbp), %eax
	movl	%eax, -124(%rbp)
	jmp	.L26
.L33:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_front
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	jmp	.L27
.L28:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	pop_front
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_front
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
.L27:
	movl	-72(%rbp), %eax
	movl	-136(%rbp), %ecx
	movl	-124(%rbp), %edx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	.L28
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-112(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rax, %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -88(%rbp)
	jmp	.L29
.L32:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_back
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movq	-80(%rbp), %rdx
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jg	.L39
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	pop_back
.L29:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	isEmpty
	testl	%eax, %eax
	je	.L32
	jmp	.L31
.L39:
	nop
.L31:
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %r14
	movl	-124(%rbp), %eax
	movq	%r15, %rcx
	movabsq	$-4294967296, %rdx
	andq	%rcx, %rdx
	orq	%rdx, %rax
	movq	%rax, %r15
	movq	%r14, %rcx
	movq	%r15, %rbx
	movq	%r14, %rax
	movq	%r15, %rdx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	push_back
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rdx)
	addl	$1, -124(%rbp)
.L26:
	movl	-140(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L33
	addl	$1, -128(%rbp)
.L25:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L34
	movq	$0, -120(%rbp)
	movl	-132(%rbp), %eax
	movl	%eax, -128(%rbp)
	jmp	.L35
.L37:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -120(%rbp)
	jge	.L36
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
.L36:
	addl	$1, -128(%rbp)
.L35:
	movl	-140(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L37
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB18:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.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.
train
	.file	"temp.c"
	.text
	.globl	newDeque
	.type	newDeque, @function
newDeque:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$2, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movl	-12(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 24(%rax)
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	newDeque, .-newDeque
	.globl	initDeque
	.type	initDeque, @function
initDeque:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initDeque, .-initDeque
	.globl	freeDeque
	.type	freeDeque, @function
freeDeque:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	freeDeque, .-freeDeque
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	cmpq	%rax, %rdx
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isEmpty, .-isEmpty
	.globl	deque_realloc
	.type	deque_realloc, @function
deque_realloc:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	addq	$1, %rax
	addq	%rax, %rax
	movl	$16, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movq	$0, -24(%rbp)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L9:
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rsi
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rdx, %rax
	movq	%rax, -16(%rbp)
.L8:
	movq	-40(%rbp), %rax
	movq	16(%rax), %rax
	cmpq	%rax, -16(%rbp)
	jne	.L9
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-40(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-40(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-40(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, 24(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deque_realloc, .-deque_realloc
	.globl	pop_front
	.type	pop_front, @function
pop_front:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pop_front, .-pop_front
	.globl	pop_back
	.type	pop_back, @function
pop_back:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pop_back, .-pop_back
	.globl	get_front
	.type	get_front, @function
get_front:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_front, .-get_front
	.globl	get_back
	.type	get_back, @function
get_back:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rcx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rcx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rcx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movq	(%rax), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_back, .-get_back
	.globl	push_front
	.type	push_front, @function
push_front:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L19
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	deque_realloc
.L19:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	push_front, .-push_front
	.globl	push_back
	.type	push_back, @function
push_back:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rdx, %rcx
	movq	%rsi, %rax
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rax, -32(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jne	.L21
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	deque_realloc
.L21:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	salq	$4, %rax
	leaq	(%rdx,%rax), %rcx
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	leaq	1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	24(%rax), %rax
	andq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 16(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	push_back, .-push_back
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB17:
	.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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-132(%rbp), %rcx
	leaq	-136(%rbp), %rdx
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -112(%rbp)
	movl	$1, -128(%rbp)
	jmp	.L23
.L24:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -128(%rbp)
.L23:
	movl	-140(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L24
	movl	-140(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -104(%rbp)
	call	newDeque
	movq	%rax, -96(%rbp)
	movl	$1, -128(%rbp)
	jmp	.L25
.L34:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	initDeque
	movl	-128(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %r12
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	%r13, %rcx
	movabsq	$-4294967296, %rax
	andq	%rcx, %rax
	orq	%rdx, %rax
	movq	%rax, %r13
	movq	%r12, %rcx
	movq	%r13, %rbx
	movq	%r12, %rax
	movq	%r13, %rdx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	push_back
	movl	-128(%rbp), %eax
	movl	%eax, -124(%rbp)
	jmp	.L26
.L33:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_front
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	jmp	.L27
.L28:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	pop_front
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_front
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
.L27:
	movl	-72(%rbp), %eax
	movl	-136(%rbp), %ecx
	movl	-124(%rbp), %edx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	.L28
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-112(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cltq
	imulq	%rax, %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -88(%rbp)
	jmp	.L29
.L32:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	get_back
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movq	-80(%rbp), %rdx
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jg	.L39
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	pop_back
.L29:
	movq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	isEmpty
	testl	%eax, %eax
	je	.L32
	jmp	.L31
.L39:
	nop
.L31:
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %r14
	movl	-124(%rbp), %eax
	movq	%r15, %rcx
	movabsq	$-4294967296, %rdx
	andq	%rcx, %rdx
	orq	%rdx, %rax
	movq	%rax, %r15
	movq	%r14, %rcx
	movq	%r15, %rbx
	movq	%r14, %rax
	movq	%r15, %rdx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	push_back
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rdx)
	addl	$1, -124(%rbp)
.L26:
	movl	-140(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L33
	addl	$1, -128(%rbp)
.L25:
	movl	-132(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L34
	movq	$0, -120(%rbp)
	movl	-132(%rbp), %eax
	movl	%eax, -128(%rbp)
	jmp	.L35
.L37:
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -120(%rbp)
	jge	.L36
	movl	-128(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
.L36:
	addl	$1, -128(%rbp)
.L35:
	movl	-140(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jle	.L37
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB18:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	call	run
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.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:
