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 struct range{
  int l,r;
} range;

int cmp(const void *a,const void *b){
  range *p=(range *)a;
  range *q=(range *)b;
  return (p->r-p->l)-(q->r-q->l);
}

void add(int *bit,int x,int v){
  int n=bit[0];
  for(int i=x;i<=n;i+=i&-i) bit[i]+=v;
}

int sum(int *bit,int x){
  int res=0;
  for(int i=x;i>0;i-=i&-i) res+=bit[i];
  return res;
}

void run(void){
  int n,m;
  scanf("%d%d",&n,&m);
  range *p=(range *)calloc(n,sizeof(range));
  int i;
  for(i=0;i<n;i++) scanf("%d%d",&p[i].l,&p[i].r);
  qsort(p,n,sizeof(range),cmp);
  int *bit=(int *)calloc(m+2,sizeof(int));
  bit[0]=m+1;
  int j=0;
  for(i=1;i<=m;i++){
    while(j<n && p[j].r-p[j].l+1<i){
      add(bit,p[j].l,1);
      add(bit,p[j].r+1,-1);
      j++;
    }
    int cnt=n-j;
    for(int k=i;k<=m;k+=i){
      cnt+=sum(bit,k);
    }
    printf("%d\n",cnt);
  }
}

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.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	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	subl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.globl	add
	.type	add, @function
add:
.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-32(%rbp), %edx
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-8(%rbp), %eax
	negl	%eax
	andl	-8(%rbp), %eax
	addl	%eax, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L5
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add, .-add
	.globl	sum
	.type	sum, @function
sum:
.LFB8:
	.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)
	movl	%esi, -28(%rbp)
	movl	$0, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	subl	$1, %eax
	andl	%eax, -4(%rbp)
.L7:
	cmpl	$0, -4(%rbp)
	jg	.L8
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sum, .-sum
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB9:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	addq	$4, %rax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L11:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L12
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movq	-24(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movl	-44(%rbp), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
	movl	$0, -36(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L13
.L16:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	$1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	add
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	leal	1(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	$-1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	add
	addl	$1, -36(%rbp)
.L14:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L15
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	addl	$1, %eax
	cmpl	%eax, -40(%rbp)
	jg	.L16
.L15:
	movl	-48(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	.L17
.L18:
	movl	-28(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	sum
	addl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -28(%rbp)
.L17:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L18
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L14
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.LFE10:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	subl	(%rdi), %eax
	subl	4(%rsi), %eax
	addl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.p2align 4
	.globl	add
	.type	add, @function
add:
.LFB40:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	cmpl	%esi, %ecx
	jl	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%esi, %rax
	addl	%edx, (%rdi,%rax,4)
	movl	%esi, %eax
	negl	%eax
	andl	%esi, %eax
	addl	%eax, %esi
	cmpl	%esi, %ecx
	jge	.L5
.L3:
	ret
	.cfi_endproc
.LFE40:
	.size	add, .-add
	.p2align 4
	.globl	sum
	.type	sum, @function
sum:
.LFB41:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%esi, %rax
	addl	(%rdi,%rax,4), %r8d
	leal	-1(%rsi), %eax
	andl	%eax, %esi
	jne	.L9
.L7:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE41:
	.size	sum, .-sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %r12
	movl	$8, %esi
	movq	%r12, %rdi
	call	calloc@PLT
	movq	%rax, %rbp
	testl	%r12d, %r12d
	jle	.L13
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, %eax
	jg	.L14
	movslq	%eax, %r12
.L13:
	movq	%r12, %rsi
	leaq	cmp(%rip), %rcx
	movq	%rbp, %rdi
	xorl	%r13d, %r13d
	movl	$8, %edx
	movl	$1, %r14d
	leaq	.LC1(%rip), %r12
	call	qsort@PLT
	movl	4(%rsp), %r15d
	movl	$4, %esi
	leal	2(%r15), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rbx
	leal	1(%r15), %eax
	movl	%eax, (%rbx)
	testl	%r15d, %r15d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rsp), %r8d
	movslq	%r13d, %rax
	leaq	0(%rbp,%rax,8), %rdi
	cmpl	%r8d, %r13d
	jge	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	movl	4(%rdi), %edx
	movl	(%rdi), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	$1, %ecx
	cmpl	%r14d, %ecx
	jge	.L21
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	jg	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%eax, %rcx
	addl	$1, (%rbx,%rcx,4)
	movl	%eax, %ecx
	negl	%ecx
	andl	%eax, %ecx
	addl	%ecx, %eax
	cmpl	%eax, %esi
	jge	.L18
	movl	(%rbx), %esi
.L17:
	leal	1(%rdx), %eax
	cmpl	%esi, %eax
	jg	.L22
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%eax, %rdx
	subl	$1, (%rbx,%rdx,4)
	movl	%eax, %edx
	negl	%edx
	andl	%eax, %edx
	addl	%edx, %eax
	cmpl	%esi, %eax
	jle	.L19
.L22:
	addl	$1, %r13d
	addq	$8, %rdi
	cmpl	%r8d, %r13d
	jne	.L20
.L21:
	subl	%r13d, %r8d
	movl	%r14d, %esi
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%eax, %rdx
	addl	(%rbx,%rdx,4), %ecx
	leal	-1(%rax), %edx
	andl	%edx, %eax
	jne	.L25
	addl	%r14d, %esi
	addl	%ecx, %r8d
	cmpl	%r15d, %esi
	jle	.L24
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %r15d
	addl	$1, %r14d
	cmpl	%r14d, %r15d
	jge	.L15
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	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
.L39:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE42:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB43:
	.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
.LFE43:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	subl	(%rdi), %eax
	subl	4(%rsi), %eax
	addl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.p2align 4
	.globl	add
	.type	add, @function
add:
.LFB40:
	.cfi_startproc
	endbr64
	movl	(%rdi), %ecx
	cmpl	%esi, %ecx
	jl	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%esi, %rax
	addl	%edx, (%rdi,%rax,4)
	movl	%esi, %eax
	negl	%eax
	andl	%esi, %eax
	addl	%eax, %esi
	cmpl	%esi, %ecx
	jge	.L5
.L3:
	ret
	.cfi_endproc
.LFE40:
	.size	add, .-add
	.p2align 4
	.globl	sum
	.type	sum, @function
sum:
.LFB41:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%esi, %rax
	addl	(%rdi,%rax,4), %r8d
	leal	-1(%rsi), %eax
	andl	%eax, %esi
	jne	.L9
.L7:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE41:
	.size	sum, .-sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %r12
	movl	$8, %esi
	movq	%r12, %rdi
	call	calloc@PLT
	movq	%rax, %rbp
	testl	%r12d, %r12d
	jle	.L13
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, %eax
	jg	.L14
	movslq	%eax, %r12
.L13:
	movq	%r12, %rsi
	leaq	cmp(%rip), %rcx
	movq	%rbp, %rdi
	xorl	%r13d, %r13d
	movl	$8, %edx
	movl	$1, %r14d
	leaq	.LC1(%rip), %r12
	call	qsort@PLT
	movl	4(%rsp), %r15d
	movl	$4, %esi
	leal	2(%r15), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rbx
	leal	1(%r15), %eax
	movl	%eax, (%rbx)
	testl	%r15d, %r15d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rsp), %r8d
	movslq	%r13d, %rax
	leaq	0(%rbp,%rax,8), %rdi
	cmpl	%r8d, %r13d
	jge	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	movl	4(%rdi), %edx
	movl	(%rdi), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	$1, %ecx
	cmpl	%r14d, %ecx
	jge	.L21
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	jg	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%eax, %rcx
	addl	$1, (%rbx,%rcx,4)
	movl	%eax, %ecx
	negl	%ecx
	andl	%eax, %ecx
	addl	%ecx, %eax
	cmpl	%eax, %esi
	jge	.L18
	movl	(%rbx), %esi
.L17:
	leal	1(%rdx), %eax
	cmpl	%esi, %eax
	jg	.L22
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%eax, %rdx
	subl	$1, (%rbx,%rdx,4)
	movl	%eax, %edx
	negl	%edx
	andl	%eax, %edx
	addl	%edx, %eax
	cmpl	%esi, %eax
	jle	.L19
.L22:
	addl	$1, %r13d
	addq	$8, %rdi
	cmpl	%r8d, %r13d
	jne	.L20
.L21:
	subl	%r13d, %r8d
	movl	%r14d, %esi
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%eax, %rdx
	addl	(%rbx,%rdx,4), %ecx
	leal	-1(%rax), %edx
	andl	%edx, %eax
	jne	.L25
	addl	%r14d, %esi
	addl	%ecx, %r8d
	cmpl	%r15d, %esi
	jle	.L24
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %r15d
	addl	$1, %r14d
	cmpl	%r14d, %r15d
	jge	.L15
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	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
.L39:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE42:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB43:
	.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
.LFE43:
	.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 struct range{
  int l,r;
} range;

int cmp(const void *a,const void *b){
  range *p=(range *)a;
  range *q=(range *)b;
  return (p->r-p->l)-(q->r-q->l);
}

void add(int *bit,int x,int v){
  int n=bit[0];
  for(int i=x;i<=n;i+=i&-i) bit[i]+=v;
}

int sum(int *bit,int x){
  int res=0;
  for(int i=x;i>0;i-=i&-i) res+=bit[i];
  return res;
}

void run(void){
  int n,m;
  scanf("%d%d",&n,&m);
  range *p=(range *)calloc(n,sizeof(range));
  int i;
  for(i=0;i<n;i++) scanf("%d%d",&p[i].l,&p[i].r);
  qsort(p,n,sizeof(range),cmp);
  int *bit=(int *)calloc(m+2,sizeof(int));
  bit[0]=m+1;
  int j=0;
  for(i=1;i<=m;i++){
    while(j<n && p[j].r-p[j].l+1<i){
      add(bit,p[j].l,1);
      add(bit,p[j].r+1,-1);
      j++;
    }
    int cnt=n-j;
    for(int k=i;k<=m;k+=i){
      cnt+=sum(bit,k);
    }
    printf("%d\n",cnt);
  }
}

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

7 9
1 9
5 9
5 7
5 9
1 1
6 8
3 4
 7 9
1 9
9 9
5 7
5 9
1 1
6 8
3 4
 7 11
1 9
5 9
5 7
5 9
1 1
6 8
3 4
 7 9
1 9
9 9
5 7
5 9
1 1
8 8
3 4
 7 9
1 6
5 13
5 7
5 9
1 1
6 8
3 4
 7 11
1 2
5 9
5 7
5 9
1 1
6 8
3 4
 7 9
1 9
9 9
5 5
5 9
1 1
8 8
3 4
 7 11
1 2
5 9
5 8
5 9
1 1
6 8
3 4
 7 11
1 2
5 9
5 8
5 9
1 1
7 8
3 4
 7 11
1 2
5 9
7 8
5 9
1 1
7 8
3 4

7
6
6
5
4
5
5
4
3
 7
5
6
4
3
4
4
3
3
 7
6
6
5
4
5
5
4
3
0
0
 7
5
5
4
3
3
3
3
3
 7
6
6
5
4
5
4
3
2
 7
6
5
4
3
4
4
3
2
0
0
 7
4
4
4
3
2
2
3
3
 7
6
5
5
3
4
4
4
2
0
0
 7
6
4
5
3
3
4
4
2
0
0
 7
6
3
5
2
2
4
4
2
0
0

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 struct range{
  int l,r;
} range;

int cmp(const void *a,const void *b){
  range *p=(range *)a;
  range *q=(range *)b;
  return (p->r-p->l)-(q->r-q->l);
}

void add(int *bit,int x,int v){
  int n=bit[0];
  for(int i=x;i<=n;i+=i&-i) bit[i]+=v;
}

int sum(int *bit,int x){
  int res=0;
  for(int i=x;i>0;i-=i&-i) res+=bit[i];
  return res;
}

void run(void){
  int n,m;
  scanf("%d%d",&n,&m);
  range *p=(range *)calloc(n,sizeof(range));
  int i;
  for(i=0;i<n;i++) scanf("%d%d",&p[i].l,&p[i].r);
  qsort(p,n,sizeof(range),cmp);
  int *bit=(int *)calloc(m+2,sizeof(int));
  bit[0]=m+1;
  int j=0;
  for(i=1;i<=m;i++){
    while(j<n && p[j].r-p[j].l+1<i){
      add(bit,p[j].l,1);
      add(bit,p[j].r+1,-1);
      j++;
    }
    int cnt=n-j;
    for(int k=i;k<=m;k+=i){
      cnt+=sum(bit,k);
    }
    printf("%d\n",cnt);
  }
}

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.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	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	subl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.globl	add
	.type	add, @function
add:
.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-32(%rbp), %edx
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-8(%rbp), %eax
	negl	%eax
	andl	-8(%rbp), %eax
	addl	%eax, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L5
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add, .-add
	.globl	sum
	.type	sum, @function
sum:
.LFB8:
	.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)
	movl	%esi, -28(%rbp)
	movl	$0, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	subl	$1, %eax
	andl	%eax, -4(%rbp)
.L7:
	cmpl	$0, -4(%rbp)
	jg	.L8
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sum, .-sum
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB9:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	addq	$4, %rax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L11:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L12
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movq	-24(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movl	-44(%rbp), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
	movl	$0, -36(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L13
.L16:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	$1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	add
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	leal	1(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	$-1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	add
	addl	$1, -36(%rbp)
.L14:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L15
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	addl	$1, %eax
	cmpl	%eax, -40(%rbp)
	jg	.L16
.L15:
	movl	-48(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	.L17
.L18:
	movl	-28(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	sum
	addl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -28(%rbp)
.L17:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L18
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L14
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.LFE10:
	.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.
val
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.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	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	subl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.globl	add
	.type	add, @function
add:
.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, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-32(%rbp), %edx
	addl	%ecx, %edx
	movl	%edx, (%rax)
	movl	-8(%rbp), %eax
	negl	%eax
	andl	-8(%rbp), %eax
	addl	%eax, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L5
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add, .-add
	.globl	sum
	.type	sum, @function
sum:
.LFB8:
	.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)
	movl	%esi, -28(%rbp)
	movl	$0, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	%eax, -8(%rbp)
	movl	-4(%rbp), %eax
	subl	$1, %eax
	andl	%eax, -4(%rbp)
.L7:
	cmpl	$0, -4(%rbp)
	jg	.L8
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sum, .-sum
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB9:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	cltq
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -24(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	addq	$4, %rax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L11:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L12
	movl	-48(%rbp), %eax
	movslq	%eax, %rsi
	movq	-24(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movl	-44(%rbp), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
	movl	$0, -36(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L13
.L16:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	$1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	add
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	leal	1(%rax), %ecx
	movq	-16(%rbp), %rax
	movl	$-1, %edx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	add
	addl	$1, -36(%rbp)
.L14:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L15
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	addl	$1, %eax
	cmpl	%eax, -40(%rbp)
	jg	.L16
.L15:
	movl	-48(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	.L17
.L18:
	movl	-28(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	sum
	addl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -28(%rbp)
.L17:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L18
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L14
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.LFE10:
	.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:
