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

```c
// AOJ 1386 Starting a Scenic Railroad Service
// 2018.2.6 bal4u

#include <stdio.h>

int a[200002], b[200002];
int imos[200002], imos1[200002], imos2[200002];

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int n, i, s1, s2, t, max;

	n = in();
	max = 0;
	for (i = 0; i < n; i++) {
		int _a, _b;
		a[i] = _a = in(), b[i] = _b = in();
		if (_b > max) max = _b;
		imos [_a]++, imos [_b]--;
		imos1[_a]++, imos2[_b]++;
	}

	s1 = s2 = 0;
    for (i = 1; i <= max; i++) {
        imos [i] += imos [i-1];
		if (imos[i] > s2) s2 = imos[i];
        imos1[i] += imos1[i-1];
        imos2[i] += imos2[i-1];
    }
    for (i = 0; i < n; i++) {
		t = imos1[b[i]-1] - imos2[a[i]];
		if (t > s1) s1 = t;
    }
    printf("%d %d\n", s1, s2);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800008
imos:
	.zero	800008
	.globl	imos1
	.align 32
	.type	imos1, @object
	.size	imos1, 800008
imos1:
	.zero	800008
	.globl	imos2
	.align 32
	.type	imos2, @object
	.size	imos2, 800008
imos2:
	.zero	800008
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L5
.L7:
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L6
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L7
	movl	$0, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$1, -32(%rbp)
	jmp	.L8
.L10:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L9
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L8:
	movl	-32(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	$0, -32(%rbp)
	jmp	.L11
.L13:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	imos2(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L12
	movl	-12(%rbp), %eax
	movl	%eax, -28(%rbp)
.L12:
	addl	$1, -32(%rbp)
.L11:
	movl	-32(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L13
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	in
	.type	in, @function
in:
.LFB23:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	in, .-in
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, 28(%rsp)
	testl	%eax, %eax
	jle	.L30
	leaq	b(%rip), %rbx
	subl	$1, %eax
	leaq	a(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	4(%rbx), %rdx
	movq	%rsi, (%rsp)
	leaq	imos(%rip), %r15
	leaq	(%rdx,%rax,4), %rax
	leaq	imos1(%rip), %rbp
	movq	%rax, 16(%rsp)
	leaq	imos2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L26:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %r8
	cmpq	%r8, %rax
	jnb	.L41
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %eax
.L15:
	xorl	%r13d, %r13d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rcx), %r9
	movq	%r9, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L18
.L17:
	movq	%r9, %rcx
.L19:
	leal	0(%r13,%r13,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r13d
	cmpq	%r8, %rcx
	jb	.L16
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r9
	movq	16(%rdi), %r8
	cmpl	$47, %eax
	jg	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	movq	(%rsp), %rax
	movl	%r13d, (%rax)
	cmpq	%r9, %r8
	jbe	.L42
	leaq	1(%r9), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%r9), %eax
.L21:
	xorl	%ecx, %ecx
	movq	%rbx, 8(%rsp)
	movl	%ecx, %ebx
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L24
.L23:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %r8
.L25:
	leal	(%rbx,%rbx,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %ebx
	cmpq	%r8, %rsi
	jb	.L22
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L24
	movq	stdin(%rip), %rdi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%ebx, %rcx
	movq	8(%rsp), %rbx
	movslq	%r13d, %rdx
	cmpl	%ecx, %r14d
	cmovl	%ecx, %r14d
	movl	%ecx, (%rbx)
	addq	$4, %rbx
	addl	$1, (%r15,%rdx,4)
	addl	$1, 0(%rbp,%rdx,4)
	subl	$1, (%r15,%rcx,4)
	addl	$1, (%r12,%rcx,4)
	addq	$4, (%rsp)
	cmpq	%rbx, 16(%rsp)
	jne	.L26
	testl	%r14d, %r14d
	je	.L27
	leaq	4+imos(%rip), %rax
	leal	-1(%r14), %r10d
	movl	(%r12), %r9d
	movl	0(%rbp), %r8d
	leaq	4(%rax), %rcx
	movl	(%r15), %edx
	xorl	%r14d, %r14d
	leaq	4+imos1(%rip), %rdi
	leaq	4+imos2(%rip), %rsi
	leaq	(%rcx,%r10,4), %r10
	.p2align 4,,10
	.p2align 3
.L28:
	addl	(%rax), %edx
	cmpl	%edx, %r14d
	movl	%edx, (%rax)
	cmovl	%edx, %r14d
	addl	(%rdi), %r8d
	addl	(%rsi), %r9d
	addq	$4, %rax
	movl	%r8d, (%rdi)
	addq	$4, %rsi
	addq	$4, %rdi
	movl	%r9d, -4(%rsi)
	cmpq	%rax, %r10
	jne	.L28
.L27:
	movl	28(%rsp), %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L29:
	leaq	b(%rip), %rax
	leaq	a(%rip), %rbx
	movl	(%rax,%rdx,4), %eax
	movslq	(%rbx,%rdx,4), %rcx
	movl	%eax, (%rsp)
	subl	$1, %eax
	cltq
	movl	0(%rbp,%rax,4), %eax
	subl	(%r12,%rcx,4), %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	jne	.L29
.L13:
	movl	%r14d, %ecx
	movl	%r8d, %edx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	addq	$40, %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
.L42:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %r8
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L41:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %r8
	jmp	.L15
.L30:
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	jmp	.L13
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	imos2
	.bss
	.align 32
	.type	imos2, @object
	.size	imos2, 800008
imos2:
	.zero	800008
	.globl	imos1
	.align 32
	.type	imos1, @object
	.size	imos1, 800008
imos1:
	.zero	800008
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800008
imos:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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	in
	.type	in, @function
in:
.LFB23:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	in, .-in
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, 28(%rsp)
	testl	%eax, %eax
	jle	.L30
	leaq	b(%rip), %rbx
	subl	$1, %eax
	leaq	a(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	4(%rbx), %rdx
	movq	%rsi, (%rsp)
	leaq	imos(%rip), %r15
	leaq	(%rdx,%rax,4), %rax
	leaq	imos1(%rip), %rbp
	movq	%rax, 16(%rsp)
	leaq	imos2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L26:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %r8
	cmpq	%r8, %rax
	jnb	.L41
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %eax
.L15:
	xorl	%r13d, %r13d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rcx), %r9
	movq	%r9, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L18
.L17:
	movq	%r9, %rcx
.L19:
	leal	0(%r13,%r13,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r13d
	cmpq	%r8, %rcx
	jb	.L16
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r9
	movq	16(%rdi), %r8
	cmpl	$47, %eax
	jg	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	movq	(%rsp), %rax
	movl	%r13d, (%rax)
	cmpq	%r9, %r8
	jbe	.L42
	leaq	1(%r9), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%r9), %eax
.L21:
	xorl	%ecx, %ecx
	movq	%rbx, 8(%rsp)
	movl	%ecx, %ebx
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L24
.L23:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %r8
.L25:
	leal	(%rbx,%rbx,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %ebx
	cmpq	%r8, %rsi
	jb	.L22
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L24
	movq	stdin(%rip), %rdi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%ebx, %rcx
	movq	8(%rsp), %rbx
	movslq	%r13d, %rdx
	cmpl	%ecx, %r14d
	cmovl	%ecx, %r14d
	movl	%ecx, (%rbx)
	addq	$4, %rbx
	addl	$1, (%r15,%rdx,4)
	addl	$1, 0(%rbp,%rdx,4)
	subl	$1, (%r15,%rcx,4)
	addl	$1, (%r12,%rcx,4)
	addq	$4, (%rsp)
	cmpq	%rbx, 16(%rsp)
	jne	.L26
	testl	%r14d, %r14d
	je	.L27
	leaq	4+imos(%rip), %rax
	leal	-1(%r14), %r10d
	movl	(%r12), %r9d
	movl	0(%rbp), %r8d
	leaq	4(%rax), %rcx
	movl	(%r15), %edx
	xorl	%r14d, %r14d
	leaq	4+imos1(%rip), %rdi
	leaq	4+imos2(%rip), %rsi
	leaq	(%rcx,%r10,4), %r10
	.p2align 4,,10
	.p2align 3
.L28:
	addl	(%rax), %edx
	cmpl	%edx, %r14d
	movl	%edx, (%rax)
	cmovl	%edx, %r14d
	addl	(%rdi), %r8d
	addl	(%rsi), %r9d
	addq	$4, %rax
	movl	%r8d, (%rdi)
	addq	$4, %rsi
	addq	$4, %rdi
	movl	%r9d, -4(%rsi)
	cmpq	%rax, %r10
	jne	.L28
.L27:
	movl	28(%rsp), %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L29:
	leaq	b(%rip), %rax
	leaq	a(%rip), %rbx
	movl	(%rax,%rdx,4), %eax
	movslq	(%rbx,%rdx,4), %rcx
	movl	%eax, (%rsp)
	subl	$1, %eax
	cltq
	movl	0(%rbp,%rax,4), %eax
	subl	(%r12,%rcx,4), %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	jne	.L29
.L13:
	movl	%r14d, %ecx
	movl	%r8d, %edx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	addq	$40, %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
.L42:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %r8
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L41:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %r8
	jmp	.L15
.L30:
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	jmp	.L13
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	imos2
	.bss
	.align 32
	.type	imos2, @object
	.size	imos2, 800008
imos2:
	.zero	800008
	.globl	imos1
	.align 32
	.type	imos1, @object
	.size	imos1, 800008
imos1:
	.zero	800008
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800008
imos:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.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:

// AOJ 1386 Starting a Scenic Railroad Service
// 2018.2.6 bal4u

#include <stdio.h>

int a[200002], b[200002];
int imos[200002], imos1[200002], imos2[200002];

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int n, i, s1, s2, t, max;

	n = in();
	max = 0;
	for (i = 0; i < n; i++) {
		int _a, _b;
		a[i] = _a = in(), b[i] = _b = in();
		if (_b > max) max = _b;
		imos [_a]++, imos [_b]--;
		imos1[_a]++, imos2[_b]++;
	}

	s1 = s2 = 0;
    for (i = 1; i <= max; i++) {
        imos [i] += imos [i-1];
		if (imos[i] > s2) s2 = imos[i];
        imos1[i] += imos1[i-1];
        imos2[i] += imos2[i-1];
    }
    for (i = 0; i < n; i++) {
		t = imos1[b[i]-1] - imos2[a[i]];
		if (t > s1) s1 = t;
    }
    printf("%d %d\n", s1, s2);
	return 0;
}

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

2 2
 4 2
 4 1
 3 1
 1 0
 2 0
 4 3
 3 2
 2 1
 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
// AOJ 1386 Starting a Scenic Railroad Service
// 2018.2.6 bal4u

#include <stdio.h>

int a[200002], b[200002];
int imos[200002], imos1[200002], imos2[200002];

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int n, i, s1, s2, t, max;

	n = in();
	max = 0;
	for (i = 0; i < n; i++) {
		int _a, _b;
		a[i] = _a = in(), b[i] = _b = in();
		if (_b > max) max = _b;
		imos [_a]++, imos [_b]--;
		imos1[_a]++, imos2[_b]++;
	}

	s1 = s2 = 0;
    for (i = 1; i <= max; i++) {
        imos [i] += imos [i-1];
		if (imos[i] > s2) s2 = imos[i];
        imos1[i] += imos1[i-1];
        imos2[i] += imos2[i-1];
    }
    for (i = 0; i < n; i++) {
		t = imos1[b[i]-1] - imos2[a[i]];
		if (t > s1) s1 = t;
    }
    printf("%d %d\n", s1, s2);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800008
imos:
	.zero	800008
	.globl	imos1
	.align 32
	.type	imos1, @object
	.size	imos1, 800008
imos1:
	.zero	800008
	.globl	imos2
	.align 32
	.type	imos2, @object
	.size	imos2, 800008
imos2:
	.zero	800008
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L5
.L7:
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L6
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L7
	movl	$0, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$1, -32(%rbp)
	jmp	.L8
.L10:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L9
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L8:
	movl	-32(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	$0, -32(%rbp)
	jmp	.L11
.L13:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	imos2(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L12
	movl	-12(%rbp), %eax
	movl	%eax, -28(%rbp)
.L12:
	addl	$1, -32(%rbp)
.L11:
	movl	-32(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L13
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 800008
a:
	.zero	800008
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 800008
b:
	.zero	800008
	.globl	imos
	.align 32
	.type	imos, @object
	.size	imos, 800008
imos:
	.zero	800008
	.globl	imos1
	.align 32
	.type	imos1, @object
	.size	imos1, 800008
imos1:
	.zero	800008
	.globl	imos2
	.align 32
	.type	imos2, @object
	.size	imos2, 800008
imos2:
	.zero	800008
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L5
.L7:
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L6
	movl	-4(%rbp), %eax
	movl	%eax, -20(%rbp)
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L7
	movl	$0, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$1, -32(%rbp)
	jmp	.L8
.L10:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L9
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L8:
	movl	-32(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	$0, -32(%rbp)
	jmp	.L11
.L13:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	imos1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	imos2(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L12
	movl	-12(%rbp), %eax
	movl	%eax, -28(%rbp)
.L12:
	addl	$1, -32(%rbp)
.L11:
	movl	-32(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L13
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
