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>
long long N[400010],L[400010],T;
long long  hyouka(long long a,long long b){return a+b;}
void lsset(int n,int *d){
  int i;
  for(T=1;T<n;T*=2);
  for(i=0;i<T;i++)N[T+i]=i<n?d[i]:0;
  for(i=T-1;i;i--)N[i]=hyouka(N[i*2],N[i*2+1]);
}
void lasy(int i,int l,int r){
  if(L[i]==0)return;
  N[i]+=L[i]*(r-l);
  if(r-l>1){
    L[i*2  ]+=L[i];
    L[i*2+1]+=L[i];
  }
  L[i]=0;
}
void lsadd(int a,int b,int c,int i,int l,int r){//printf("%d %d %d\n",i,l,r);
  lasy(i,l,r);
  if(r<=a||b<=l)return;
  if(a<=l&&r<=b){
    L[i]+=c;
    lasy(i,l,r);
  }
  else{
    lsadd(a,b,c,i*2  ,l,(l+r)/2);
    lsadd(a,b,c,i*2+1,(l+r)/2,r);
    N[i]=hyouka(N[i*2],N[i*2+1]);
  }
}
long long lsget(int a,int b,int i,int l,int r){
  lasy(i,l,r);
  if(b<=l||r<=a)return 0;
  if(a<=l&&r<=b)return N[i];
  return hyouka(lsget(a,b,i*2,l,(l+r)/2),lsget(a,b,i*2+1,(l+r)/2,r));
}
int main(){
  int n,m,i,a,b,c,q,d[100010]={};
  scanf("%d %d",&n,&m);
  lsset(n,d);
  for(i=0;i<m;i++){
    scanf("%d %d %d",&q,&a,&b);
    if(q)printf("%lld\n",lsget(a-1,b,1,0,T));
    else{
      scanf("%d",&c);
      lsadd(a-1,b,c,1,0,T);
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 32
	.type	N, @object
	.size	N, 3200080
N:
	.zero	3200080
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 3200080
L:
	.zero	3200080
	.globl	T
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.text
	.globl	hyouka
	.type	hyouka, @function
hyouka:
.LFB0:
	.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	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hyouka, .-hyouka
	.globl	lsset
	.type	lsset, @function
lsset:
.LFB1:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, T(%rip)
	jmp	.L4
.L5:
	movq	T(%rip), %rax
	addq	%rax, %rax
	movq	%rax, T(%rip)
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	T(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L9:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	T(%rip), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	T(%rip), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	T(%rip), %rax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	N(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	hyouka
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	subl	$1, -4(%rbp)
.L10:
	cmpl	$0, -4(%rbp)
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	lsset, .-lsset
	.globl	lasy
	.type	lasy, @function
lasy:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	$1, %eax
	jle	.L15
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L12
.L16:
	nop
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	lasy, .-lasy
	.globl	lsadd
	.type	lsadd, @function
lsadd:
.LFB3:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	movl	-24(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L22
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L22
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jg	.L21
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L21
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	jmp	.L17
.L21:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %r8d
	movl	-16(%rbp), %eax
	leal	(%rax,%rax), %ecx
	movl	-20(%rbp), %edi
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%r8d, %r9d
	movl	%edi, %r8d
	movl	%eax, %edi
	call	lsadd
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %r8d
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %edi
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%edi, %r9d
	movl	%eax, %edi
	call	lsadd
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	N(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	hyouka
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L17
.L22:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	lsadd, .-lsadd
	.globl	lsget
	.type	lsget, @function
lsget:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jle	.L24
	movl	-36(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jg	.L25
.L24:
	movl	$0, %eax
	jmp	.L26
.L25:
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L27
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jg	.L27
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L26
.L27:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %ecx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edi, %ecx
	movl	%eax, %edi
	call	lsget
	movq	%rax, %rbx
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	leal	(%rax,%rax), %edi
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	lsget
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	hyouka
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	lsget, .-lsget
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400072(%rbp), %rdx
	leaq	-400076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400076(%rbp), %eax
	leaq	-400048(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	lsset
	movl	$0, -400052(%rbp)
	jmp	.L29
.L32:
	leaq	-400064(%rbp), %rcx
	leaq	-400068(%rbp), %rdx
	leaq	-400056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400056(%rbp), %eax
	testl	%eax, %eax
	je	.L30
	movq	T(%rip), %rax
	movl	%eax, %ecx
	movl	-400064(%rbp), %eax
	movl	-400068(%rbp), %edx
	leal	-1(%rdx), %edi
	movl	%ecx, %r8d
	movl	$0, %ecx
	movl	$1, %edx
	movl	%eax, %esi
	call	lsget
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L30:
	leaq	-400060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	T(%rip), %rax
	movl	%eax, %esi
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	-400068(%rbp), %ecx
	leal	-1(%rcx), %edi
	movl	%esi, %r9d
	movl	$0, %r8d
	movl	$1, %ecx
	movl	%eax, %esi
	call	lsadd
.L31:
	addl	$1, -400052(%rbp)
.L29:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jl	.L32
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	hyouka
	.type	hyouka, @function
hyouka:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	(%rdi,%rsi), %rax
	ret
	.cfi_endproc
.LFE23:
	.size	hyouka, .-hyouka
	.p2align 4
	.globl	lsset
	.type	lsset, @function
lsset:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%edi, %rcx
	movq	$1, T(%rip)
	cmpl	$1, %edi
	jle	.L4
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	addq	%rdx, %rdx
	cmpq	%rcx, %rdx
	jl	.L5
	cmpl	%edx, %edi
	movl	%edx, %r10d
	movq	%rdx, T(%rip)
	leal	-1(%rdx), %r9d
	cmovle	%edi, %r10d
	movl	$1, %ebx
	testl	%r10d, %r10d
	cmovg	%r10d, %ebx
	cmpl	$3, %r10d
	jle	.L19
	movl	%ebx, %edi
	movdqa	.LC0(%rip), %xmm2
	pxor	%xmm4, %xmm4
	xorl	%eax, %eax
	leaq	N(%rip), %r8
	shrl	$2, %edi
	movdqa	.LC1(%rip), %xmm7
	movdqa	.LC2(%rip), %xmm6
	leaq	(%r8,%rdx,8), %rcx
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rsi,%rax), %xmm0
	movdqa	%xmm4, %xmm3
	movdqa	%xmm2, %xmm1
	paddd	%xmm7, %xmm2
	paddd	%xmm6, %xmm1
	pcmpgtd	%xmm0, %xmm3
	movdqa	%xmm0, %xmm5
	punpckldq	%xmm3, %xmm5
	punpckhdq	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtd	%xmm1, %xmm3
	movups	%xmm5, (%rcx,%rax,2)
	movdqa	%xmm1, %xmm5
	movups	%xmm0, 16(%rcx,%rax,2)
	addq	$16, %rax
	punpckhdq	%xmm3, %xmm5
	cmpq	%rdi, %rax
	jne	.L7
	movl	%ebx, %r11d
	movhlps	%xmm5, %xmm6
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %r11d
	movq	%xmm6, %rax
	movd	%xmm1, %edi
	movl	%r11d, %ecx
	cmpl	%ebx, %r11d
	je	.L28
.L6:
	movslq	%r11d, %rax
	addq	%rdx, %rcx
	leal	1(%r11), %edi
	leaq	0(,%rax,4), %rbx
	movslq	(%rsi,%rax,4), %rax
	movq	%rax, (%r8,%rcx,8)
	movslq	%edi, %rcx
	movq	%rcx, %rax
	cmpl	%r10d, %edi
	jge	.L10
	movslq	4(%rsi,%rbx), %rax
	addq	%rdx, %rcx
	leal	2(%r11), %edi
	movq	%rax, (%r8,%rcx,8)
	movslq	%edi, %rcx
	movq	%rcx, %rax
	cmpl	%edi, %r10d
	jle	.L10
	movslq	8(%rsi,%rbx), %rax
	addq	%rdx, %rcx
	leal	3(%r11), %edi
	movq	%rax, (%r8,%rcx,8)
	movslq	%edi, %rcx
	movq	%rcx, %rax
.L10:
	leaq	N(%rip), %r8
	cmpq	%rdx, %rax
	jge	.L12
.L18:
	addq	$1, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	addq	%rdx, %rax
	movq	$0, (%r8,%rax,8)
	movq	%rcx, %rax
	addq	$1, %rcx
	cmpq	%rdx, %rax
	jl	.L11
.L12:
	leaq	N(%rip), %r8
	testl	%r9d, %r9d
	je	.L3
.L14:
	movslq	%r9d, %rsi
	leal	-1(%r9), %edx
	movq	%rsi, %rax
	leaq	(%r8,%rsi,8), %rcx
	subq	%rdx, %rsi
	salq	$4, %rax
	salq	$4, %rsi
	leaq	-16+N(%rip), %rdx
	addq	%r8, %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%rax), %rdx
	subq	$16, %rax
	addq	24(%rax), %rdx
	subq	$8, %rcx
	movq	%rdx, 8(%rcx)
	cmpq	%rsi, %rax
	jne	.L15
.L3:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	movslq	%edi, %rcx
	cmpq	%rax, %rdx
	jg	.L18
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	je	.L17
	xorl	%r9d, %r9d
	movl	$1, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	N(%rip), %r8
	jmp	.L18
.L17:
	movslq	(%rsi), %rax
	movl	$1, %edx
	xorl	%r9d, %r9d
	movq	%rax, 8+N(%rip)
	movl	$1, %eax
	jmp	.L10
.L19:
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	leaq	N(%rip), %r8
	jmp	.L6
	.cfi_endproc
.LFE24:
	.size	lsset, .-lsset
	.p2align 4
	.globl	lasy
	.type	lasy, @function
lasy:
.LFB25:
	.cfi_startproc
	endbr64
	leaq	L(%rip), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %r8
	testq	%r8, %r8
	je	.L29
	subl	%esi, %edx
	leaq	N(%rip), %r9
	movslq	%edx, %rsi
	imulq	%r8, %rsi
	addq	%rsi, (%r9,%rcx,8)
	cmpl	$1, %edx
	jle	.L31
	addl	%edi, %edi
	movslq	%edi, %rdx
	addl	$1, %edi
	movslq	%edi, %rdi
	addq	%r8, (%rax,%rdx,8)
	movq	(%rax,%rcx,8), %rdx
	addq	%rdx, (%rax,%rdi,8)
.L31:
	movq	$0, (%rax,%rcx,8)
.L29:
	ret
	.cfi_endproc
.LFE25:
	.size	lasy, .-lasy
	.p2align 4
	.globl	lsadd
	.type	lsadd, @function
lsadd:
.LFB26:
	.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
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edx, %r12
	leaq	L(%rip), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%ecx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rax
	movl	%r9d, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	(%rdx,%rbp,8), %rsi
	testq	%rsi, %rsi
	je	.L36
	movl	%r9d, %edi
	leaq	N(%rip), %r9
	subl	%r8d, %edi
	movslq	%edi, %rcx
	imulq	%rsi, %rcx
	addq	%rcx, (%r9,%rbp,8)
	cmpl	$1, %edi
	jle	.L37
	leal	(%rbp,%rbp), %ecx
	movslq	%ecx, %rdi
	addl	$1, %ecx
	movslq	%ecx, %rcx
	addq	%rsi, (%rdx,%rdi,8)
	movq	(%rdx,%rbp,8), %rsi
	addq	%rsi, (%rdx,%rcx,8)
.L37:
	movq	$0, (%rdx,%rbp,8)
.L36:
	cmpl	%r13d, %ebx
	jle	.L35
	cmpl	%r14d, %r8d
	jge	.L35
	cmpl	%r13d, %r8d
	jl	.L41
	cmpl	%r14d, %ebx
	jg	.L41
	movq	%r12, (%rdx,%rbp,8)
	testq	%r12, %r12
	je	.L35
	subl	%r8d, %ebx
	leaq	N(%rip), %rsi
	movslq	%ebx, %rcx
	imulq	%r12, %rcx
	addq	%rcx, (%rsi,%rbp,8)
	cmpl	$1, %ebx
	jle	.L43
	addl	%eax, %eax
	movslq	%eax, %rcx
	addl	$1, %eax
	cltq
	addq	%r12, (%rdx,%rcx,8)
	movq	(%rdx,%rbp,8), %rcx
	addq	%rcx, (%rdx,%rax,8)
.L43:
	movq	$0, (%rdx,%rbp,8)
.L35:
	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
.L41:
	.cfi_restore_state
	leal	(%r8,%rbx), %edx
	addl	%eax, %eax
	movl	%r14d, %esi
	movl	%r13d, %edi
	movl	%edx, %r15d
	movl	%eax, %ecx
	movl	%eax, 8(%rsp)
	shrl	$31, %r15d
	addl	%edx, %r15d
	movl	%r12d, %edx
	sarl	%r15d
	movl	%r15d, %r9d
	call	lsadd
	movl	8(%rsp), %eax
	movl	%r12d, %edx
	movl	%ebx, %r9d
	movl	%r15d, %r8d
	movl	%r14d, %esi
	movl	%r13d, %edi
	leal	1(%rax), %ecx
	movl	%eax, 12(%rsp)
	movl	%ecx, 8(%rsp)
	call	lsadd
	movslq	8(%rsp), %rcx
	movslq	12(%rsp), %rax
	leaq	N(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	addq	(%rdx,%rcx,8), %rax
	movq	%rax, (%rdx,%rbp,8)
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE26:
	.size	lsadd, .-lsadd
	.p2align 4
	.globl	lsget
	.type	lsget, @function
lsget:
.LFB27:
	.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
	leaq	N(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%r12d, %rax
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	L(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%esi, %ecx
	movq	(%rbx,%rax,8), %rcx
	setge	%r15b
	xorl	%r9d, %r9d
	testq	%rcx, %rcx
	je	.L58
.L75:
	movl	%r8d, %edi
	subl	%r13d, %edi
	movslq	%edi, %rdx
	imulq	%rcx, %rdx
	addq	%rdx, (%r14,%rax,8)
	cmpl	$1, %edi
	jle	.L59
	leal	(%r12,%r12), %edx
	movslq	%edx, %rdi
	addl	$1, %edx
	movslq	%edx, %rdx
	addq	%rcx, (%rbx,%rdi,8)
	movq	(%rbx,%rax,8), %rcx
	addq	%rcx, (%rbx,%rdx,8)
.L59:
	movq	$0, (%rbx,%rax,8)
.L58:
	cmpl	%ebp, %r8d
	jle	.L57
.L76:
	testb	%r15b, %r15b
	jne	.L57
	cmpl	%ebp, %r13d
	jl	.L61
	cmpl	%esi, %r8d
	jle	.L74
.L61:
	leal	0(%r13,%r8), %eax
	addl	%r12d, %r12d
	movl	%ebp, %edi
	movq	%r9, 8(%rsp)
	movl	%eax, %ecx
	leal	1(%r12), %edx
	movl	%esi, (%rsp)
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 4(%rsp)
	call	lsget
	movq	8(%rsp), %r9
	movl	4(%rsp), %r8d
	movl	(%rsp), %esi
	addq	%rax, %r9
	movslq	%r12d, %rax
	movq	(%rbx,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	.L75
	cmpl	%ebp, %r8d
	jg	.L76
.L57:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r9, %rax
	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
.L74:
	.cfi_restore_state
	leaq	N(%rip), %rdx
	addq	(%rdx,%rax,8), %r9
	jmp	.L57
	.cfi_endproc
.LFE27:
	.size	lsget, .-lsget
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d %d"
.LC4:
	.string	"%d %d %d"
.LC5:
	.string	"%lld\n"
.LC6:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2808, %rsp
	.cfi_def_cfa_offset 400176
	movl	$400040, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 400104(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbp
	movq	%rbp, %rdi
	call	memset@PLT
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %edi
	movq	%rbp, %rsi
	call	lsset
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L86
	leaq	52(%rsp), %rax
	xorl	%r12d, %r12d
	leaq	L(%rip), %rbx
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	leaq	N(%rip), %rbp
	movq	%rax, 8(%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L78:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	movq	(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %eax
	testl	%eax, %eax
	je	.L79
	movl	52(%rsp), %r14d
	movl	48(%rsp), %eax
	movl	$1, %r10d
	movl	T(%rip), %r8d
	testl	%r14d, %r14d
	leal	-1(%rax), %r11d
	setle	28(%rsp)
	movzbl	28(%rsp), %eax
	xorl	%r13d, %r13d
	movl	%r12d, 28(%rsp)
	movl	%r14d, %r12d
	movl	%eax, %r14d
	movslq	%r10d, %rax
	movq	(%rbx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	.L80
.L105:
	movslq	%r8d, %rdx
	imulq	%rcx, %rdx
	addq	%rdx, 0(%rbp,%rax,8)
	cmpl	$1, %r8d
	jle	.L81
	leal	(%r10,%r10), %edx
	movslq	%edx, %rdi
	addl	$1, %edx
	movslq	%edx, %rdx
	addq	%rcx, (%rbx,%rdi,8)
	movq	(%rbx,%rax,8), %rcx
	addq	%rcx, (%rbx,%rdx,8)
.L81:
	movq	$0, (%rbx,%rax,8)
.L80:
	cmpl	%r8d, %r11d
	jge	.L101
.L106:
	testb	%r14b, %r14b
	jne	.L101
	testl	%r11d, %r11d
	jg	.L83
	cmpl	%r8d, %r12d
	jge	.L104
.L83:
	movl	%r8d, %r15d
	addl	%r10d, %r10d
	movl	%r12d, %esi
	movl	%r11d, %edi
	shrl	$31, %r15d
	leal	1(%r10), %edx
	addl	%r8d, %r15d
	sarl	%r15d
	movl	%r15d, %ecx
	call	lsget
	movl	%r15d, %r8d
	addq	%rax, %r13
	movslq	%r10d, %rax
	movq	(%rbx,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	.L105
	cmpl	%r8d, %r11d
	jl	.L106
	.p2align 4,,10
	.p2align 3
.L101:
	movl	28(%rsp), %r12d
.L82:
	movq	%r13, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 44(%rsp)
	jg	.L78
.L86:
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L107
	addq	$400120, %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
	.p2align 4,,10
	.p2align 3
.L79:
	.cfi_restore_state
	leaq	56(%rsp), %rsi
	leaq	.LC6(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	48(%rsp), %eax
	movl	56(%rsp), %edx
	xorl	%r8d, %r8d
	movl	T(%rip), %r9d
	movl	52(%rsp), %esi
	movl	$1, %ecx
	leal	-1(%rax), %edi
	call	lsadd
	cmpl	%r12d, 44(%rsp)
	jg	.L78
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L104:
	movl	28(%rsp), %r12d
	addq	0(%rbp,%rax,8), %r13
	jmp	.L82
.L107:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.globl	T
	.bss
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 3200080
L:
	.zero	3200080
	.globl	N
	.align 32
	.type	N, @object
	.size	N, 3200080
N:
	.zero	3200080
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	hyouka
	.type	hyouka, @function
hyouka:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	(%rdi,%rsi), %rax
	ret
	.cfi_endproc
.LFE23:
	.size	hyouka, .-hyouka
	.p2align 4
	.globl	lsset
	.type	lsset, @function
lsset:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%edi, %rcx
	movq	$1, T(%rip)
	cmpl	$1, %edi
	jle	.L4
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	addq	%rdx, %rdx
	cmpq	%rcx, %rdx
	jl	.L5
	cmpl	%edx, %edi
	movl	%edx, %r10d
	movq	%rdx, T(%rip)
	leal	-1(%rdx), %r9d
	cmovle	%edi, %r10d
	movl	$1, %ebx
	testl	%r10d, %r10d
	cmovg	%r10d, %ebx
	cmpl	$3, %r10d
	jle	.L19
	movl	%ebx, %edi
	movdqa	.LC0(%rip), %xmm2
	pxor	%xmm4, %xmm4
	xorl	%eax, %eax
	leaq	N(%rip), %r8
	shrl	$2, %edi
	movdqa	.LC1(%rip), %xmm7
	movdqa	.LC2(%rip), %xmm6
	leaq	(%r8,%rdx,8), %rcx
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqu	(%rsi,%rax), %xmm0
	movdqa	%xmm4, %xmm3
	movdqa	%xmm2, %xmm1
	paddd	%xmm7, %xmm2
	paddd	%xmm6, %xmm1
	pcmpgtd	%xmm0, %xmm3
	movdqa	%xmm0, %xmm5
	punpckldq	%xmm3, %xmm5
	punpckhdq	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtd	%xmm1, %xmm3
	movups	%xmm5, (%rcx,%rax,2)
	movdqa	%xmm1, %xmm5
	movups	%xmm0, 16(%rcx,%rax,2)
	addq	$16, %rax
	punpckhdq	%xmm3, %xmm5
	cmpq	%rdi, %rax
	jne	.L7
	movl	%ebx, %r11d
	movhlps	%xmm5, %xmm6
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %r11d
	movq	%xmm6, %rax
	movd	%xmm1, %edi
	movl	%r11d, %ecx
	cmpl	%ebx, %r11d
	je	.L28
.L6:
	movslq	%r11d, %rax
	addq	%rdx, %rcx
	leal	1(%r11), %edi
	leaq	0(,%rax,4), %rbx
	movslq	(%rsi,%rax,4), %rax
	movq	%rax, (%r8,%rcx,8)
	movslq	%edi, %rcx
	movq	%rcx, %rax
	cmpl	%r10d, %edi
	jge	.L10
	movslq	4(%rsi,%rbx), %rax
	addq	%rdx, %rcx
	leal	2(%r11), %edi
	movq	%rax, (%r8,%rcx,8)
	movslq	%edi, %rcx
	movq	%rcx, %rax
	cmpl	%edi, %r10d
	jle	.L10
	movslq	8(%rsi,%rbx), %rax
	addq	%rdx, %rcx
	leal	3(%r11), %edi
	movq	%rax, (%r8,%rcx,8)
	movslq	%edi, %rcx
	movq	%rcx, %rax
.L10:
	leaq	N(%rip), %r8
	cmpq	%rdx, %rax
	jge	.L12
.L18:
	addq	$1, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	addq	%rdx, %rax
	movq	$0, (%r8,%rax,8)
	movq	%rcx, %rax
	addq	$1, %rcx
	cmpq	%rdx, %rax
	jl	.L11
.L12:
	leaq	N(%rip), %r8
	testl	%r9d, %r9d
	je	.L3
.L14:
	movslq	%r9d, %rsi
	leal	-1(%r9), %edx
	movq	%rsi, %rax
	leaq	(%r8,%rsi,8), %rcx
	subq	%rdx, %rsi
	salq	$4, %rax
	salq	$4, %rsi
	leaq	-16+N(%rip), %rdx
	addq	%r8, %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%rax), %rdx
	subq	$16, %rax
	addq	24(%rax), %rdx
	subq	$8, %rcx
	movq	%rdx, 8(%rcx)
	cmpq	%rsi, %rax
	jne	.L15
.L3:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	movslq	%edi, %rcx
	cmpq	%rax, %rdx
	jg	.L18
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	je	.L17
	xorl	%r9d, %r9d
	movl	$1, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	N(%rip), %r8
	jmp	.L18
.L17:
	movslq	(%rsi), %rax
	movl	$1, %edx
	xorl	%r9d, %r9d
	movq	%rax, 8+N(%rip)
	movl	$1, %eax
	jmp	.L10
.L19:
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	leaq	N(%rip), %r8
	jmp	.L6
	.cfi_endproc
.LFE24:
	.size	lsset, .-lsset
	.p2align 4
	.globl	lasy
	.type	lasy, @function
lasy:
.LFB25:
	.cfi_startproc
	endbr64
	leaq	L(%rip), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %r8
	testq	%r8, %r8
	je	.L29
	subl	%esi, %edx
	leaq	N(%rip), %r9
	movslq	%edx, %rsi
	imulq	%r8, %rsi
	addq	%rsi, (%r9,%rcx,8)
	cmpl	$1, %edx
	jle	.L31
	addl	%edi, %edi
	movslq	%edi, %rdx
	addl	$1, %edi
	movslq	%edi, %rdi
	addq	%r8, (%rax,%rdx,8)
	movq	(%rax,%rcx,8), %rdx
	addq	%rdx, (%rax,%rdi,8)
.L31:
	movq	$0, (%rax,%rcx,8)
.L29:
	ret
	.cfi_endproc
.LFE25:
	.size	lasy, .-lasy
	.p2align 4
	.globl	lsadd
	.type	lsadd, @function
lsadd:
.LFB26:
	.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
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edx, %r12
	leaq	L(%rip), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%ecx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rax
	movl	%r9d, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	(%rdx,%rbp,8), %rsi
	testq	%rsi, %rsi
	je	.L36
	movl	%r9d, %edi
	leaq	N(%rip), %r9
	subl	%r8d, %edi
	movslq	%edi, %rcx
	imulq	%rsi, %rcx
	addq	%rcx, (%r9,%rbp,8)
	cmpl	$1, %edi
	jle	.L37
	leal	(%rbp,%rbp), %ecx
	movslq	%ecx, %rdi
	addl	$1, %ecx
	movslq	%ecx, %rcx
	addq	%rsi, (%rdx,%rdi,8)
	movq	(%rdx,%rbp,8), %rsi
	addq	%rsi, (%rdx,%rcx,8)
.L37:
	movq	$0, (%rdx,%rbp,8)
.L36:
	cmpl	%r13d, %ebx
	jle	.L35
	cmpl	%r14d, %r8d
	jge	.L35
	cmpl	%r13d, %r8d
	jl	.L41
	cmpl	%r14d, %ebx
	jg	.L41
	movq	%r12, (%rdx,%rbp,8)
	testq	%r12, %r12
	je	.L35
	subl	%r8d, %ebx
	leaq	N(%rip), %rsi
	movslq	%ebx, %rcx
	imulq	%r12, %rcx
	addq	%rcx, (%rsi,%rbp,8)
	cmpl	$1, %ebx
	jle	.L43
	addl	%eax, %eax
	movslq	%eax, %rcx
	addl	$1, %eax
	cltq
	addq	%r12, (%rdx,%rcx,8)
	movq	(%rdx,%rbp,8), %rcx
	addq	%rcx, (%rdx,%rax,8)
.L43:
	movq	$0, (%rdx,%rbp,8)
.L35:
	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
.L41:
	.cfi_restore_state
	leal	(%r8,%rbx), %edx
	addl	%eax, %eax
	movl	%r14d, %esi
	movl	%r13d, %edi
	movl	%edx, %r15d
	movl	%eax, %ecx
	movl	%eax, 8(%rsp)
	shrl	$31, %r15d
	addl	%edx, %r15d
	movl	%r12d, %edx
	sarl	%r15d
	movl	%r15d, %r9d
	call	lsadd
	movl	8(%rsp), %eax
	movl	%r12d, %edx
	movl	%ebx, %r9d
	movl	%r15d, %r8d
	movl	%r14d, %esi
	movl	%r13d, %edi
	leal	1(%rax), %ecx
	movl	%eax, 12(%rsp)
	movl	%ecx, 8(%rsp)
	call	lsadd
	movslq	8(%rsp), %rcx
	movslq	12(%rsp), %rax
	leaq	N(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	addq	(%rdx,%rcx,8), %rax
	movq	%rax, (%rdx,%rbp,8)
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE26:
	.size	lsadd, .-lsadd
	.p2align 4
	.globl	lsget
	.type	lsget, @function
lsget:
.LFB27:
	.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
	leaq	N(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%r12d, %rax
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	L(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%esi, %ecx
	movq	(%rbx,%rax,8), %rcx
	setge	%r15b
	xorl	%r9d, %r9d
	testq	%rcx, %rcx
	je	.L58
.L75:
	movl	%r8d, %edi
	subl	%r13d, %edi
	movslq	%edi, %rdx
	imulq	%rcx, %rdx
	addq	%rdx, (%r14,%rax,8)
	cmpl	$1, %edi
	jle	.L59
	leal	(%r12,%r12), %edx
	movslq	%edx, %rdi
	addl	$1, %edx
	movslq	%edx, %rdx
	addq	%rcx, (%rbx,%rdi,8)
	movq	(%rbx,%rax,8), %rcx
	addq	%rcx, (%rbx,%rdx,8)
.L59:
	movq	$0, (%rbx,%rax,8)
.L58:
	cmpl	%ebp, %r8d
	jle	.L57
.L76:
	testb	%r15b, %r15b
	jne	.L57
	cmpl	%ebp, %r13d
	jl	.L61
	cmpl	%esi, %r8d
	jle	.L74
.L61:
	leal	0(%r13,%r8), %eax
	addl	%r12d, %r12d
	movl	%ebp, %edi
	movq	%r9, 8(%rsp)
	movl	%eax, %ecx
	leal	1(%r12), %edx
	movl	%esi, (%rsp)
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 4(%rsp)
	call	lsget
	movq	8(%rsp), %r9
	movl	4(%rsp), %r8d
	movl	(%rsp), %esi
	addq	%rax, %r9
	movslq	%r12d, %rax
	movq	(%rbx,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	.L75
	cmpl	%ebp, %r8d
	jg	.L76
.L57:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r9, %rax
	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
.L74:
	.cfi_restore_state
	leaq	N(%rip), %rdx
	addq	(%rdx,%rax,8), %r9
	jmp	.L57
	.cfi_endproc
.LFE27:
	.size	lsget, .-lsget
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d %d"
.LC4:
	.string	"%d %d %d"
.LC5:
	.string	"%lld\n"
.LC6:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2808, %rsp
	.cfi_def_cfa_offset 400176
	movl	$400040, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 400104(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbp
	movq	%rbp, %rdi
	call	memset@PLT
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %edi
	movq	%rbp, %rsi
	call	lsset
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L86
	leaq	52(%rsp), %rax
	xorl	%r12d, %r12d
	leaq	L(%rip), %rbx
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	leaq	N(%rip), %rbp
	movq	%rax, 8(%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L78:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	movq	(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %eax
	testl	%eax, %eax
	je	.L79
	movl	52(%rsp), %r14d
	movl	48(%rsp), %eax
	movl	$1, %r10d
	movl	T(%rip), %r8d
	testl	%r14d, %r14d
	leal	-1(%rax), %r11d
	setle	28(%rsp)
	movzbl	28(%rsp), %eax
	xorl	%r13d, %r13d
	movl	%r12d, 28(%rsp)
	movl	%r14d, %r12d
	movl	%eax, %r14d
	movslq	%r10d, %rax
	movq	(%rbx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	.L80
.L105:
	movslq	%r8d, %rdx
	imulq	%rcx, %rdx
	addq	%rdx, 0(%rbp,%rax,8)
	cmpl	$1, %r8d
	jle	.L81
	leal	(%r10,%r10), %edx
	movslq	%edx, %rdi
	addl	$1, %edx
	movslq	%edx, %rdx
	addq	%rcx, (%rbx,%rdi,8)
	movq	(%rbx,%rax,8), %rcx
	addq	%rcx, (%rbx,%rdx,8)
.L81:
	movq	$0, (%rbx,%rax,8)
.L80:
	cmpl	%r8d, %r11d
	jge	.L101
.L106:
	testb	%r14b, %r14b
	jne	.L101
	testl	%r11d, %r11d
	jg	.L83
	cmpl	%r8d, %r12d
	jge	.L104
.L83:
	movl	%r8d, %r15d
	addl	%r10d, %r10d
	movl	%r12d, %esi
	movl	%r11d, %edi
	shrl	$31, %r15d
	leal	1(%r10), %edx
	addl	%r8d, %r15d
	sarl	%r15d
	movl	%r15d, %ecx
	call	lsget
	movl	%r15d, %r8d
	addq	%rax, %r13
	movslq	%r10d, %rax
	movq	(%rbx,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	.L105
	cmpl	%r8d, %r11d
	jl	.L106
	.p2align 4,,10
	.p2align 3
.L101:
	movl	28(%rsp), %r12d
.L82:
	movq	%r13, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%r12d, 44(%rsp)
	jg	.L78
.L86:
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L107
	addq	$400120, %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
	.p2align 4,,10
	.p2align 3
.L79:
	.cfi_restore_state
	leaq	56(%rsp), %rsi
	leaq	.LC6(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	48(%rsp), %eax
	movl	56(%rsp), %edx
	xorl	%r8d, %r8d
	movl	T(%rip), %r9d
	movl	52(%rsp), %esi
	movl	$1, %ecx
	leal	-1(%rax), %edi
	call	lsadd
	cmpl	%r12d, 44(%rsp)
	jg	.L78
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L104:
	movl	28(%rsp), %r12d
	addq	0(%rbp,%rax,8), %r13
	jmp	.L82
.L107:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.globl	T
	.bss
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 3200080
L:
	.zero	3200080
	.globl	N
	.align 32
	.type	N, @object
	.size	N, 3200080
N:
	.zero	3200080
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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>
long long N[400010],L[400010],T;
long long  hyouka(long long a,long long b){return a+b;}
void lsset(int n,int *d){
  int i;
  for(T=1;T<n;T*=2);
  for(i=0;i<T;i++)N[T+i]=i<n?d[i]:0;
  for(i=T-1;i;i--)N[i]=hyouka(N[i*2],N[i*2+1]);
}
void lasy(int i,int l,int r){
  if(L[i]==0)return;
  N[i]+=L[i]*(r-l);
  if(r-l>1){
    L[i*2  ]+=L[i];
    L[i*2+1]+=L[i];
  }
  L[i]=0;
}
void lsadd(int a,int b,int c,int i,int l,int r){//printf("%d %d %d\n",i,l,r);
  lasy(i,l,r);
  if(r<=a||b<=l)return;
  if(a<=l&&r<=b){
    L[i]+=c;
    lasy(i,l,r);
  }
  else{
    lsadd(a,b,c,i*2  ,l,(l+r)/2);
    lsadd(a,b,c,i*2+1,(l+r)/2,r);
    N[i]=hyouka(N[i*2],N[i*2+1]);
  }
}
long long lsget(int a,int b,int i,int l,int r){
  lasy(i,l,r);
  if(b<=l||r<=a)return 0;
  if(a<=l&&r<=b)return N[i];
  return hyouka(lsget(a,b,i*2,l,(l+r)/2),lsget(a,b,i*2+1,(l+r)/2,r));
}
int main(){
  int n,m,i,a,b,c,q,d[100010]={};
  scanf("%d %d",&n,&m);
  lsset(n,d);
  for(i=0;i<m;i++){
    scanf("%d %d %d",&q,&a,&b);
    if(q)printf("%lld\n",lsget(a-1,b,1,0,T));
    else{
      scanf("%d",&c);
      lsadd(a-1,b,c,1,0,T);
    }
  }
  return 0;
}
4 3
1 1 4
1 1 4 1
1 1 4
 4 3
1 1 2
0 1 4 1
1 1 4
 3 5
0 1 2 1
0 2 3 2
0 2 3 3
1 1 2
1 2 3
 4 2
1 1 4
1 1 4 1
1 1 0
 3 5
0 1 1 1
0 2 3 2
0 2 3 3
1 1 2
1 2 3
 3 5
0 1 1 1
0 2 3 2
0 2 3 3
1 1 2
0 2 3
 4 3
1 1 4
0 1 6 0
0 2 0
 3 5
0 1 2 1
0 2 3 2
0 2 3 3
1 1 2
0 3 3
 3 5
0 1 2 1
0 2 3 2
0 3 3 5
1 1 2
1 2 3
 7 3
1 1 2
0 1 1 1
1 1 4

0
0
0
 0
4
 7
11
 0
0
 6
10
 6
 0
 7
 4
10
 0
1

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>
long long N[400010],L[400010],T;
long long  hyouka(long long a,long long b){return a+b;}
void lsset(int n,int *d){
  int i;
  for(T=1;T<n;T*=2);
  for(i=0;i<T;i++)N[T+i]=i<n?d[i]:0;
  for(i=T-1;i;i--)N[i]=hyouka(N[i*2],N[i*2+1]);
}
void lasy(int i,int l,int r){
  if(L[i]==0)return;
  N[i]+=L[i]*(r-l);
  if(r-l>1){
    L[i*2  ]+=L[i];
    L[i*2+1]+=L[i];
  }
  L[i]=0;
}
void lsadd(int a,int b,int c,int i,int l,int r){//printf("%d %d %d\n",i,l,r);
  lasy(i,l,r);
  if(r<=a||b<=l)return;
  if(a<=l&&r<=b){
    L[i]+=c;
    lasy(i,l,r);
  }
  else{
    lsadd(a,b,c,i*2  ,l,(l+r)/2);
    lsadd(a,b,c,i*2+1,(l+r)/2,r);
    N[i]=hyouka(N[i*2],N[i*2+1]);
  }
}
long long lsget(int a,int b,int i,int l,int r){
  lasy(i,l,r);
  if(b<=l||r<=a)return 0;
  if(a<=l&&r<=b)return N[i];
  return hyouka(lsget(a,b,i*2,l,(l+r)/2),lsget(a,b,i*2+1,(l+r)/2,r));
}
int main(){
  int n,m,i,a,b,c,q,d[100010]={};
  scanf("%d %d",&n,&m);
  lsset(n,d);
  for(i=0;i<m;i++){
    scanf("%d %d %d",&q,&a,&b);
    if(q)printf("%lld\n",lsget(a-1,b,1,0,T));
    else{
      scanf("%d",&c);
      lsadd(a-1,b,c,1,0,T);
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 32
	.type	N, @object
	.size	N, 3200080
N:
	.zero	3200080
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 3200080
L:
	.zero	3200080
	.globl	T
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.text
	.globl	hyouka
	.type	hyouka, @function
hyouka:
.LFB0:
	.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	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hyouka, .-hyouka
	.globl	lsset
	.type	lsset, @function
lsset:
.LFB1:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, T(%rip)
	jmp	.L4
.L5:
	movq	T(%rip), %rax
	addq	%rax, %rax
	movq	%rax, T(%rip)
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	T(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L9:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	T(%rip), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	T(%rip), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	T(%rip), %rax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	N(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	hyouka
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	subl	$1, -4(%rbp)
.L10:
	cmpl	$0, -4(%rbp)
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	lsset, .-lsset
	.globl	lasy
	.type	lasy, @function
lasy:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	$1, %eax
	jle	.L15
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L12
.L16:
	nop
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	lasy, .-lasy
	.globl	lsadd
	.type	lsadd, @function
lsadd:
.LFB3:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	movl	-24(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L22
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L22
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jg	.L21
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L21
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	jmp	.L17
.L21:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %r8d
	movl	-16(%rbp), %eax
	leal	(%rax,%rax), %ecx
	movl	-20(%rbp), %edi
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%r8d, %r9d
	movl	%edi, %r8d
	movl	%eax, %edi
	call	lsadd
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %r8d
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %edi
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%edi, %r9d
	movl	%eax, %edi
	call	lsadd
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	N(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	hyouka
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L17
.L22:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	lsadd, .-lsadd
	.globl	lsget
	.type	lsget, @function
lsget:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jle	.L24
	movl	-36(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jg	.L25
.L24:
	movl	$0, %eax
	jmp	.L26
.L25:
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L27
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jg	.L27
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L26
.L27:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %ecx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edi, %ecx
	movl	%eax, %edi
	call	lsget
	movq	%rax, %rbx
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	leal	(%rax,%rax), %edi
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	lsget
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	hyouka
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	lsget, .-lsget
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400072(%rbp), %rdx
	leaq	-400076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400076(%rbp), %eax
	leaq	-400048(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	lsset
	movl	$0, -400052(%rbp)
	jmp	.L29
.L32:
	leaq	-400064(%rbp), %rcx
	leaq	-400068(%rbp), %rdx
	leaq	-400056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400056(%rbp), %eax
	testl	%eax, %eax
	je	.L30
	movq	T(%rip), %rax
	movl	%eax, %ecx
	movl	-400064(%rbp), %eax
	movl	-400068(%rbp), %edx
	leal	-1(%rdx), %edi
	movl	%ecx, %r8d
	movl	$0, %ecx
	movl	$1, %edx
	movl	%eax, %esi
	call	lsget
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L30:
	leaq	-400060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	T(%rip), %rax
	movl	%eax, %esi
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	-400068(%rbp), %ecx
	leal	-1(%rcx), %edi
	movl	%esi, %r9d
	movl	$0, %r8d
	movl	$1, %ecx
	movl	%eax, %esi
	call	lsadd
.L31:
	addl	$1, -400052(%rbp)
.L29:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jl	.L32
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	N
	.bss
	.align 32
	.type	N, @object
	.size	N, 3200080
N:
	.zero	3200080
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 3200080
L:
	.zero	3200080
	.globl	T
	.align 8
	.type	T, @object
	.size	T, 8
T:
	.zero	8
	.text
	.globl	hyouka
	.type	hyouka, @function
hyouka:
.LFB0:
	.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	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hyouka, .-hyouka
	.globl	lsset
	.type	lsset, @function
lsset:
.LFB1:
	.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
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, T(%rip)
	jmp	.L4
.L5:
	movq	T(%rip), %rax
	addq	%rax, %rax
	movq	%rax, T(%rip)
.L4:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	T(%rip), %rax
	cmpq	%rax, %rdx
	jg	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L9:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L7
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	T(%rip), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	T(%rip), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	T(%rip), %rax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	N(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	hyouka
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	subl	$1, -4(%rbp)
.L10:
	cmpl	$0, -4(%rbp)
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	lsset, .-lsset
	.globl	lasy
	.type	lasy, @function
lasy:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	$1, %eax
	jle	.L15
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L12
.L16:
	nop
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	lasy, .-lasy
	.globl	lsadd
	.type	lsadd, @function
lsadd:
.LFB3:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	movl	-24(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L22
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L22
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jg	.L21
	movl	-24(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L21
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	L(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	jmp	.L17
.L21:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %r8d
	movl	-16(%rbp), %eax
	leal	(%rax,%rax), %ecx
	movl	-20(%rbp), %edi
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%r8d, %r9d
	movl	%edi, %r8d
	movl	%eax, %edi
	call	lsadd
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %r8d
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %edi
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %eax
	movl	%edi, %r9d
	movl	%eax, %edi
	call	lsadd
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	addl	%eax, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	N(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	hyouka
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	N(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L17
.L22:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	lsadd, .-lsadd
	.globl	lsget
	.type	lsget, @function
lsget:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	lasy
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jle	.L24
	movl	-36(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jg	.L25
.L24:
	movl	$0, %eax
	jmp	.L26
.L25:
	movl	-20(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jg	.L27
	movl	-36(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jg	.L27
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	N(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L26
.L27:
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %ecx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edi, %ecx
	movl	%eax, %edi
	call	lsget
	movq	%rax, %rbx
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-28(%rbp), %eax
	leal	(%rax,%rax), %edi
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %esi
	movl	-20(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	lsget
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	hyouka
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	lsget, .-lsget
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rax
	movl	$400040, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400072(%rbp), %rdx
	leaq	-400076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400076(%rbp), %eax
	leaq	-400048(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	lsset
	movl	$0, -400052(%rbp)
	jmp	.L29
.L32:
	leaq	-400064(%rbp), %rcx
	leaq	-400068(%rbp), %rdx
	leaq	-400056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400056(%rbp), %eax
	testl	%eax, %eax
	je	.L30
	movq	T(%rip), %rax
	movl	%eax, %ecx
	movl	-400064(%rbp), %eax
	movl	-400068(%rbp), %edx
	leal	-1(%rdx), %edi
	movl	%ecx, %r8d
	movl	$0, %ecx
	movl	$1, %edx
	movl	%eax, %esi
	call	lsget
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L30:
	leaq	-400060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	T(%rip), %rax
	movl	%eax, %esi
	movl	-400060(%rbp), %edx
	movl	-400064(%rbp), %eax
	movl	-400068(%rbp), %ecx
	leal	-1(%rcx), %edi
	movl	%esi, %r9d
	movl	$0, %r8d
	movl	$1, %ecx
	movl	%eax, %esi
	call	lsadd
.L31:
	addl	$1, -400052(%rbp)
.L29:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400052(%rbp)
	jl	.L32
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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:
