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>

#define M 100000

int pp[M], yy[M];

int compare(const void *a, const void *b) {
	int i = *(int *) a;
	int j = *(int *) b;

	return pp[i] != pp[j] ? pp[i] - pp[j] : yy[i] - yy[j];
}

void initialize(char *s, int p, int x) {
	int i;

	for (i = 11; i >= 0; i--)
		if (i < 6 && p > 0)
			s[i] = (p % 10) + '0', p /= 10;
		else if (i >= 6 && x > 0)
			s[i] = (x % 10) + '0', x /= 10;
		else
			s[i] = '0';
}

int main() {
	static int ii[M];
	static char id[M][13];
	int n, m, i, x;

	scanf("%d%d", &n, &m);
	for (i = 0; i < m; i++) {
		scanf("%d%d", &pp[i], &yy[i]);
		ii[i] = i;
	}
	qsort(ii, m, sizeof *ii, compare);
	for (i = 0, x = 1; i < m; i++, x = i > 0 && pp[ii[i]] != pp[ii[i - 1]] ? 1 : x + 1)
		initialize(id[ii[i]], pp[ii[i]], x);
	for (i = 0; i < m; i++)
		printf("%s\n", id[i]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pp
	.bss
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	yy
	.align 32
	.type	yy, @object
	.size	yy, 400000
yy:
	.zero	400000
	.text
	.globl	compare
	.type	compare, @function
compare:
.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
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L2
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pp(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	jmp	.L4
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	yy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	yy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.globl	initialize
	.type	initialize, @function
initialize:
.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)
	movl	$11, -4(%rbp)
	jmp	.L6
.L10:
	cmpl	$5, -4(%rbp)
	jg	.L7
	cmpl	$0, -28(%rbp)
	jle	.L7
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movb	%dl, (%rax)
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -28(%rbp)
	jmp	.L8
.L7:
	cmpl	$5, -4(%rbp)
	jle	.L9
	cmpl	$0, -32(%rbp)
	jle	.L9
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movb	%dl, (%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -32(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$48, (%rax)
.L8:
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L10
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialize, .-initialize
	.section	.rodata
.LC0:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L12
.L13:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	yy(%rip), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ii.1(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L12:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	ii.1(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L14
.L18:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	id.0(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	call	initialize
	addl	$1, -16(%rbp)
	cmpl	$0, -16(%rbp)
	jle	.L15
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ii.1(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L16
.L15:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	jmp	.L17
.L16:
	movl	$1, %eax
.L17:
	movl	%eax, -12(%rbp)
.L14:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L18
	movl	$0, -16(%rbp)
	jmp	.L19
.L20:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	id.0(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16(%rbp)
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	ii.1
	.comm	ii.1,400000,32
	.local	id.0
	.comm	id.0,1300000,32
	.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	compare
	.type	compare, @function
compare:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rsi, %r8
	movslq	(%rdi), %rsi
	leaq	pp(%rip), %rdx
	movslq	(%r8), %rcx
	movl	(%rdx,%rsi,4), %eax
	movl	(%rdx,%rcx,4), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	yy(%rip), %rdx
	movl	(%rdx,%rsi,4), %eax
	subl	(%rdx,%rcx,4), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare, .-compare
	.p2align 4
	.globl	initialize
	.type	initialize, @function
initialize:
.LFB40:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	testl	%edx, %edx
	jle	.L31
	movslq	%edx, %rcx
	movl	%edx, %edi
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	movl	%edx, %edi
	leal	(%rcx,%rcx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edi
	addl	$48, %edi
	movb	%dil, 11(%rax)
	leaq	10(%rax), %rdi
	cmpl	$9, %edx
	jle	.L7
	movl	%ecx, %edi
	movl	$3435973837, %r8d
	imulq	%r8, %rdi
	shrq	$35, %rdi
	leal	(%rdi,%rdi,4), %r9d
	addl	%r9d, %r9d
	subl	%r9d, %ecx
	addl	$48, %ecx
	movb	%cl, 10(%rax)
	leaq	9(%rax), %rcx
	cmpl	$99, %edx
	jle	.L9
	movl	%edi, %ecx
	imulq	%r8, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	movq	%rcx, %r9
	addl	%r10d, %r10d
	subl	%r10d, %edi
	movl	%edi, %ecx
	addl	$48, %ecx
	movb	%cl, 9(%rax)
	leaq	8(%rax), %rcx
	cmpl	$999, %edx
	jle	.L11
	movl	%r9d, %edi
	movl	%r9d, %ecx
	imulq	%r8, %rdi
	shrq	$35, %rdi
	leal	(%rdi,%rdi,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 8(%rax)
	leaq	7(%rax), %rcx
	cmpl	$9999, %edx
	jle	.L13
	movl	%edi, %ecx
	imulq	%r8, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r9d
	addl	%r9d, %r9d
	subl	%r9d, %edi
	addl	$48, %edi
	movb	%dil, 7(%rax)
	leaq	6(%rax), %rdi
	cmpl	$99999, %edx
	jle	.L15
	movl	%ecx, %edx
	imulq	%r8, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	leal	48(%rcx), %edx
	movb	%dl, 6(%rax)
	testl	%esi, %esi
	jle	.L32
.L18:
	movslq	%esi, %rdx
	movl	%esi, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	movl	%esi, %ecx
	leal	(%rdx,%rdx,4), %edi
	addl	%edi, %edi
	subl	%edi, %ecx
	addl	$48, %ecx
	movb	%cl, 5(%rax)
	leaq	4(%rax), %rcx
	cmpl	$9, %esi
	jle	.L19
	movl	%edx, %ecx
	movl	$3435973837, %edi
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edx
	addl	$48, %edx
	movb	%dl, 4(%rax)
	leaq	3(%rax), %rdx
	cmpl	$99, %esi
	jle	.L21
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %ecx
	addl	$48, %ecx
	movb	%cl, 3(%rax)
	leaq	2(%rax), %rcx
	cmpl	$999, %esi
	jle	.L23
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edx
	addl	$48, %edx
	movb	%dl, 2(%rax)
	leaq	1(%rax), %rdx
	cmpl	$9999, %esi
	jle	.L25
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %ecx
	addl	$48, %ecx
	movb	%cl, 1(%rax)
	cmpl	$99999, %esi
	jle	.L27
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %edx
	addl	$48, %edx
	movb	%dl, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movb	$48, 11(%rdi)
	leaq	10(%rdi), %rdi
.L7:
	movb	$48, (%rdi)
	leaq	9(%rax), %rcx
.L9:
	movb	$48, (%rcx)
	leaq	8(%rax), %rcx
.L11:
	movb	$48, (%rcx)
	leaq	7(%rax), %rcx
.L13:
	movb	$48, (%rcx)
	leaq	6(%rax), %rdi
.L15:
	movb	$48, (%rdi)
	testl	%esi, %esi
	jg	.L18
.L32:
	movb	$48, 5(%rax)
	leaq	4(%rax), %rcx
.L19:
	movb	$48, (%rcx)
	leaq	3(%rax), %rdx
.L21:
	movb	$48, (%rdx)
	leaq	2(%rax), %rcx
.L23:
	movb	$48, (%rcx)
	leaq	1(%rax), %rdx
.L25:
	movb	$48, (%rdx)
.L27:
	movl	$48, %edx
	movb	%dl, (%rax)
	ret
	.cfi_endproc
.LFE40:
	.size	initialize, .-initialize
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	leaq	ii.1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L34
	xorl	%ebp, %ebp
	leaq	yy(%rip), %r14
	leaq	pp(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L35:
	leaq	0(,%rbp,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%r14,%rsi), %rdx
	addq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	%ebp, (%r12,%rbp,4)
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L35
.L34:
	movl	$4, %edx
	movslq	%eax, %rsi
	leaq	compare(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L58
	movslq	ii.1(%rip), %rax
	leal	-1(%rdx), %ecx
	leaq	4+ii.1(%rip), %r9
	movl	$1, %r8d
	leaq	pp(%rip), %rbx
	leaq	4(%r9), %rdx
	movl	$3435973837, %edi
	movl	$1, %r10d
	movl	(%rbx,%rax,4), %esi
	leaq	(%rdx,%rcx,4), %rbp
	leaq	id.0(%rip), %r11
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L71:
	movb	$48, 5(%rax)
.L46:
	movb	$48, 4(%rax)
.L48:
	movb	$48, 3(%rax)
.L50:
	movb	$48, 2(%rax)
.L52:
	movl	$48, %ecx
	movl	$48, %edx
.L54:
	movb	%dl, (%rax)
	addl	$1, %r8d
	movb	%cl, 1(%rax)
	movslq	(%r9), %rax
	movl	(%rbx,%rax,4), %edx
	cmpl	%esi, %edx
	cmovne	%r10d, %r8d
	addq	$4, %r9
	cmpq	%r9, %rbp
	je	.L70
	movl	%edx, %esi
.L56:
	leaq	(%rax,%rax,2), %rdx
	movl	%r8d, %ecx
	leaq	(%rax,%rdx,4), %rax
	movl	%r8d, %edx
	imulq	%rdi, %rdx
	addq	%r11, %rax
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 11(%rax)
	testl	%edx, %edx
	jne	.L37
	movb	$48, 10(%rax)
.L38:
	movb	$48, 9(%rax)
.L40:
	movb	$48, 8(%rax)
.L42:
	movl	$48, %edx
	movl	$48, %r12d
.L44:
	movb	%dl, 7(%rax)
	movb	%r12b, 6(%rax)
	testl	%esi, %esi
	jle	.L71
	movslq	%esi, %rdx
	movl	%esi, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	movl	%esi, %ecx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 5(%rax)
	cmpl	$9, %esi
	jle	.L46
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	addl	$48, %edx
	movb	%dl, 4(%rax)
	cmpl	$99, %esi
	jle	.L48
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 3(%rax)
	cmpl	$999, %esi
	jle	.L50
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	addl	$48, %edx
	movb	%dl, 2(%rax)
	cmpl	$9999, %esi
	jle	.L52
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	cmpl	$99999, %esi
	jle	.L61
	movl	%edx, %r12d
	imulq	%rdi, %r12
	shrq	$35, %r12
	leal	(%r12,%r12,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	addl	$48, %edx
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L37:
	movl	%edx, %r12d
	imulq	%rdi, %r12
	shrq	$35, %r12
	leal	(%r12,%r12,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %edx
	addl	$48, %edx
	movb	%dl, 10(%rax)
	testl	%r12d, %r12d
	je	.L38
	movl	%r12d, %ecx
	movl	%r12d, %edx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r13d
	addl	%r13d, %r13d
	subl	%r13d, %edx
	addl	$48, %edx
	movb	%dl, 9(%rax)
	testl	%ecx, %ecx
	je	.L40
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 8(%rax)
	testl	%edx, %edx
	je	.L42
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	movl	$48, %r12d
	addl	$48, %edx
	testl	%ecx, %ecx
	je	.L44
	movl	%ecx, %r12d
	imulq	%rdi, %r12
	shrq	$35, %r12
	leal	(%r12,%r12,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	leal	48(%rcx), %r12d
	jmp	.L44
.L70:
	leaq	id.0(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%rbp, %rdi
	addl	$1, %ebx
	addq	$13, %rbp
	call	puts@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L57
.L58:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	movl	$48, %edx
	jmp	.L54
.L72:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.local	id.0
	.comm	id.0,1300000,32
	.local	ii.1
	.comm	ii.1,400000,32
	.globl	yy
	.bss
	.align 32
	.type	yy, @object
	.size	yy, 400000
yy:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.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	compare
	.type	compare, @function
compare:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rsi, %r8
	movslq	(%rdi), %rsi
	leaq	pp(%rip), %rdx
	movslq	(%r8), %rcx
	movl	(%rdx,%rsi,4), %eax
	movl	(%rdx,%rcx,4), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	yy(%rip), %rdx
	movl	(%rdx,%rsi,4), %eax
	subl	(%rdx,%rcx,4), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare, .-compare
	.p2align 4
	.globl	initialize
	.type	initialize, @function
initialize:
.LFB40:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	testl	%edx, %edx
	jle	.L31
	movslq	%edx, %rcx
	movl	%edx, %edi
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %edi
	sarq	$34, %rcx
	subl	%edi, %ecx
	movl	%edx, %edi
	leal	(%rcx,%rcx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edi
	addl	$48, %edi
	movb	%dil, 11(%rax)
	leaq	10(%rax), %rdi
	cmpl	$9, %edx
	jle	.L7
	movl	%ecx, %edi
	movl	$3435973837, %r8d
	imulq	%r8, %rdi
	shrq	$35, %rdi
	leal	(%rdi,%rdi,4), %r9d
	addl	%r9d, %r9d
	subl	%r9d, %ecx
	addl	$48, %ecx
	movb	%cl, 10(%rax)
	leaq	9(%rax), %rcx
	cmpl	$99, %edx
	jle	.L9
	movl	%edi, %ecx
	imulq	%r8, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	movq	%rcx, %r9
	addl	%r10d, %r10d
	subl	%r10d, %edi
	movl	%edi, %ecx
	addl	$48, %ecx
	movb	%cl, 9(%rax)
	leaq	8(%rax), %rcx
	cmpl	$999, %edx
	jle	.L11
	movl	%r9d, %edi
	movl	%r9d, %ecx
	imulq	%r8, %rdi
	shrq	$35, %rdi
	leal	(%rdi,%rdi,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 8(%rax)
	leaq	7(%rax), %rcx
	cmpl	$9999, %edx
	jle	.L13
	movl	%edi, %ecx
	imulq	%r8, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r9d
	addl	%r9d, %r9d
	subl	%r9d, %edi
	addl	$48, %edi
	movb	%dil, 7(%rax)
	leaq	6(%rax), %rdi
	cmpl	$99999, %edx
	jle	.L15
	movl	%ecx, %edx
	imulq	%r8, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	leal	48(%rcx), %edx
	movb	%dl, 6(%rax)
	testl	%esi, %esi
	jle	.L32
.L18:
	movslq	%esi, %rdx
	movl	%esi, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	movl	%esi, %ecx
	leal	(%rdx,%rdx,4), %edi
	addl	%edi, %edi
	subl	%edi, %ecx
	addl	$48, %ecx
	movb	%cl, 5(%rax)
	leaq	4(%rax), %rcx
	cmpl	$9, %esi
	jle	.L19
	movl	%edx, %ecx
	movl	$3435973837, %edi
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edx
	addl	$48, %edx
	movb	%dl, 4(%rax)
	leaq	3(%rax), %rdx
	cmpl	$99, %esi
	jle	.L21
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %ecx
	addl	$48, %ecx
	movb	%cl, 3(%rax)
	leaq	2(%rax), %rcx
	cmpl	$999, %esi
	jle	.L23
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %edx
	addl	$48, %edx
	movb	%dl, 2(%rax)
	leaq	1(%rax), %rdx
	cmpl	$9999, %esi
	jle	.L25
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r8d
	addl	%r8d, %r8d
	subl	%r8d, %ecx
	addl	$48, %ecx
	movb	%cl, 1(%rax)
	cmpl	$99999, %esi
	jle	.L27
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %edx
	addl	$48, %edx
	movb	%dl, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	movb	$48, 11(%rdi)
	leaq	10(%rdi), %rdi
.L7:
	movb	$48, (%rdi)
	leaq	9(%rax), %rcx
.L9:
	movb	$48, (%rcx)
	leaq	8(%rax), %rcx
.L11:
	movb	$48, (%rcx)
	leaq	7(%rax), %rcx
.L13:
	movb	$48, (%rcx)
	leaq	6(%rax), %rdi
.L15:
	movb	$48, (%rdi)
	testl	%esi, %esi
	jg	.L18
.L32:
	movb	$48, 5(%rax)
	leaq	4(%rax), %rcx
.L19:
	movb	$48, (%rcx)
	leaq	3(%rax), %rdx
.L21:
	movb	$48, (%rdx)
	leaq	2(%rax), %rcx
.L23:
	movb	$48, (%rcx)
	leaq	1(%rax), %rdx
.L25:
	movb	$48, (%rdx)
.L27:
	movl	$48, %edx
	movb	%dl, (%rax)
	ret
	.cfi_endproc
.LFE40:
	.size	initialize, .-initialize
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	leaq	ii.1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L34
	xorl	%ebp, %ebp
	leaq	yy(%rip), %r14
	leaq	pp(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L35:
	leaq	0(,%rbp,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%r14,%rsi), %rdx
	addq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movl	%ebp, (%r12,%rbp,4)
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L35
.L34:
	movl	$4, %edx
	movslq	%eax, %rsi
	leaq	compare(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L58
	movslq	ii.1(%rip), %rax
	leal	-1(%rdx), %ecx
	leaq	4+ii.1(%rip), %r9
	movl	$1, %r8d
	leaq	pp(%rip), %rbx
	leaq	4(%r9), %rdx
	movl	$3435973837, %edi
	movl	$1, %r10d
	movl	(%rbx,%rax,4), %esi
	leaq	(%rdx,%rcx,4), %rbp
	leaq	id.0(%rip), %r11
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L71:
	movb	$48, 5(%rax)
.L46:
	movb	$48, 4(%rax)
.L48:
	movb	$48, 3(%rax)
.L50:
	movb	$48, 2(%rax)
.L52:
	movl	$48, %ecx
	movl	$48, %edx
.L54:
	movb	%dl, (%rax)
	addl	$1, %r8d
	movb	%cl, 1(%rax)
	movslq	(%r9), %rax
	movl	(%rbx,%rax,4), %edx
	cmpl	%esi, %edx
	cmovne	%r10d, %r8d
	addq	$4, %r9
	cmpq	%r9, %rbp
	je	.L70
	movl	%edx, %esi
.L56:
	leaq	(%rax,%rax,2), %rdx
	movl	%r8d, %ecx
	leaq	(%rax,%rdx,4), %rax
	movl	%r8d, %edx
	imulq	%rdi, %rdx
	addq	%r11, %rax
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 11(%rax)
	testl	%edx, %edx
	jne	.L37
	movb	$48, 10(%rax)
.L38:
	movb	$48, 9(%rax)
.L40:
	movb	$48, 8(%rax)
.L42:
	movl	$48, %edx
	movl	$48, %r12d
.L44:
	movb	%dl, 7(%rax)
	movb	%r12b, 6(%rax)
	testl	%esi, %esi
	jle	.L71
	movslq	%esi, %rdx
	movl	%esi, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	movl	%esi, %ecx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 5(%rax)
	cmpl	$9, %esi
	jle	.L46
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	addl	$48, %edx
	movb	%dl, 4(%rax)
	cmpl	$99, %esi
	jle	.L48
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 3(%rax)
	cmpl	$999, %esi
	jle	.L50
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	addl	$48, %edx
	movb	%dl, 2(%rax)
	cmpl	$9999, %esi
	jle	.L52
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	cmpl	$99999, %esi
	jle	.L61
	movl	%edx, %r12d
	imulq	%rdi, %r12
	shrq	$35, %r12
	leal	(%r12,%r12,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	addl	$48, %edx
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L37:
	movl	%edx, %r12d
	imulq	%rdi, %r12
	shrq	$35, %r12
	leal	(%r12,%r12,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %edx
	addl	$48, %edx
	movb	%dl, 10(%rax)
	testl	%r12d, %r12d
	je	.L38
	movl	%r12d, %ecx
	movl	%r12d, %edx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r13d
	addl	%r13d, %r13d
	subl	%r13d, %edx
	addl	$48, %edx
	movb	%dl, 9(%rax)
	testl	%ecx, %ecx
	je	.L40
	movl	%ecx, %edx
	imulq	%rdi, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	addl	$48, %ecx
	movb	%cl, 8(%rax)
	testl	%edx, %edx
	je	.L42
	movl	%edx, %ecx
	imulq	%rdi, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %edx
	movl	$48, %r12d
	addl	$48, %edx
	testl	%ecx, %ecx
	je	.L44
	movl	%ecx, %r12d
	imulq	%rdi, %r12
	shrq	$35, %r12
	leal	(%r12,%r12,4), %r12d
	addl	%r12d, %r12d
	subl	%r12d, %ecx
	leal	48(%rcx), %r12d
	jmp	.L44
.L70:
	leaq	id.0(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%rbp, %rdi
	addl	$1, %ebx
	addq	$13, %rbp
	call	puts@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L57
.L58:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L72
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	movl	$48, %edx
	jmp	.L54
.L72:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.local	id.0
	.comm	id.0,1300000,32
	.local	ii.1
	.comm	ii.1,400000,32
	.globl	yy
	.bss
	.align 32
	.type	yy, @object
	.size	yy, 400000
yy:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.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>

#define M 100000

int pp[M], yy[M];

int compare(const void *a, const void *b) {
	int i = *(int *) a;
	int j = *(int *) b;

	return pp[i] != pp[j] ? pp[i] - pp[j] : yy[i] - yy[j];
}

void initialize(char *s, int p, int x) {
	int i;

	for (i = 11; i >= 0; i--)
		if (i < 6 && p > 0)
			s[i] = (p % 10) + '0', p /= 10;
		else if (i >= 6 && x > 0)
			s[i] = (x % 10) + '0', x /= 10;
		else
			s[i] = '0';
}

int main() {
	static int ii[M];
	static char id[M][13];
	int n, m, i, x;

	scanf("%d%d", &n, &m);
	for (i = 0; i < m; i++) {
		scanf("%d%d", &pp[i], &yy[i]);
		ii[i] = i;
	}
	qsort(ii, m, sizeof *ii, compare);
	for (i = 0, x = 1; i < m; i++, x = i > 0 && pp[ii[i]] != pp[ii[i - 1]] ? 1 : x + 1)
		initialize(id[ii[i]], pp[ii[i]], x);
	for (i = 0; i < m; i++)
		printf("%s\n", id[i]);
	return 0;
}

2 3
1 55
2 77
2 99
 2 3
2 32
2 63
1 12
 2 1
2 55
2 77
2 99
 2 2
2 55
2 77
2 99
 2 3
2 55
2 77
2 195
 2 3
1 32
2 63
1 6
 2 3
2 39
2 16
1 12
 2 2
2 55
2 29
2 195
 2 3
2 96
2 77
2 195
 2 1
1 16
2 77
2 195

000001000001
000002000001
000002000002
 000002000001
000002000002
000001000001
 000002000001
 000002000001
000002000002
 000002000001
000002000002
000002000003
 000001000002
000002000001
000001000001
 000002000002
000002000001
000001000001
 000002000002
000002000001
 000002000002
000002000001
000002000003
 000001000001

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>

#define M 100000

int pp[M], yy[M];

int compare(const void *a, const void *b) {
	int i = *(int *) a;
	int j = *(int *) b;

	return pp[i] != pp[j] ? pp[i] - pp[j] : yy[i] - yy[j];
}

void initialize(char *s, int p, int x) {
	int i;

	for (i = 11; i >= 0; i--)
		if (i < 6 && p > 0)
			s[i] = (p % 10) + '0', p /= 10;
		else if (i >= 6 && x > 0)
			s[i] = (x % 10) + '0', x /= 10;
		else
			s[i] = '0';
}

int main() {
	static int ii[M];
	static char id[M][13];
	int n, m, i, x;

	scanf("%d%d", &n, &m);
	for (i = 0; i < m; i++) {
		scanf("%d%d", &pp[i], &yy[i]);
		ii[i] = i;
	}
	qsort(ii, m, sizeof *ii, compare);
	for (i = 0, x = 1; i < m; i++, x = i > 0 && pp[ii[i]] != pp[ii[i - 1]] ? 1 : x + 1)
		initialize(id[ii[i]], pp[ii[i]], x);
	for (i = 0; i < m; i++)
		printf("%s\n", id[i]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pp
	.bss
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	yy
	.align 32
	.type	yy, @object
	.size	yy, 400000
yy:
	.zero	400000
	.text
	.globl	compare
	.type	compare, @function
compare:
.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
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L2
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pp(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	jmp	.L4
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	yy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	yy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.globl	initialize
	.type	initialize, @function
initialize:
.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)
	movl	$11, -4(%rbp)
	jmp	.L6
.L10:
	cmpl	$5, -4(%rbp)
	jg	.L7
	cmpl	$0, -28(%rbp)
	jle	.L7
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movb	%dl, (%rax)
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -28(%rbp)
	jmp	.L8
.L7:
	cmpl	$5, -4(%rbp)
	jle	.L9
	cmpl	$0, -32(%rbp)
	jle	.L9
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movb	%dl, (%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -32(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$48, (%rax)
.L8:
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L10
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialize, .-initialize
	.section	.rodata
.LC0:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L12
.L13:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	yy(%rip), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ii.1(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L12:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	ii.1(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L14
.L18:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	id.0(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	call	initialize
	addl	$1, -16(%rbp)
	cmpl	$0, -16(%rbp)
	jle	.L15
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ii.1(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L16
.L15:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	jmp	.L17
.L16:
	movl	$1, %eax
.L17:
	movl	%eax, -12(%rbp)
.L14:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L18
	movl	$0, -16(%rbp)
	jmp	.L19
.L20:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	id.0(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16(%rbp)
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	ii.1
	.comm	ii.1,400000,32
	.local	id.0
	.comm	id.0,1300000,32
	.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	pp
	.bss
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	yy
	.align 32
	.type	yy, @object
	.size	yy, 400000
yy:
	.zero	400000
	.text
	.globl	compare
	.type	compare, @function
compare:
.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
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L2
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	pp(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	jmp	.L4
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	yy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	yy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.globl	initialize
	.type	initialize, @function
initialize:
.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)
	movl	$11, -4(%rbp)
	jmp	.L6
.L10:
	cmpl	$5, -4(%rbp)
	jg	.L7
	cmpl	$0, -28(%rbp)
	jle	.L7
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movb	%dl, (%rax)
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -28(%rbp)
	jmp	.L8
.L7:
	cmpl	$5, -4(%rbp)
	jle	.L9
	cmpl	$0, -32(%rbp)
	jle	.L9
	movl	-32(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	%ecx, %edx
	movb	%dl, (%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -32(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$48, (%rax)
.L8:
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L10
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialize, .-initialize
	.section	.rodata
.LC0:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L12
.L13:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	yy(%rip), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ii.1(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -16(%rbp)
.L12:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	ii.1(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -16(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L14
.L18:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	id.0(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	movl	-12(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	call	initialize
	addl	$1, -16(%rbp)
	cmpl	$0, -16(%rbp)
	jle	.L15
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ii.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ii.1(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L16
.L15:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	jmp	.L17
.L16:
	movl	$1, %eax
.L17:
	movl	%eax, -12(%rbp)
.L14:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L18
	movl	$0, -16(%rbp)
	jmp	.L19
.L20:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	id.0(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16(%rbp)
.L19:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	ii.1
	.comm	ii.1,400000,32
	.local	id.0
	.comm	id.0,1300000,32
	.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:
