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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

char stribuf[2200010];
uint32_t stribufl;

#define getchar_unlocked() stribuf[stribufl++]
uint32_t nextpint(void){ char c=getchar_unlocked(); while(c<'0'||'9'<c) c=getchar_unlocked(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return x; }
void printint(uint32_t x){ if(x<0){x=-x; putchar_unlocked('-');}else if(x==0){putchar_unlocked('0');} int d=0; char s[10]; while(x){ s[d]='0'+x%10; x/=10; d++; } for (int i=d-1; i>=0; i--) putchar_unlocked(s[i]); putchar_unlocked('\n'); }
void rsort_str(void *base, const int count, const int size);

char str[200000][11];

int main(void){
	read(0, stribuf, sizeof(stribuf));
	uint32_t n=nextpint();
	for(uint32_t i=0; i<n; i++){
		char *s=str[i];
		char c=getchar_unlocked();
		while(c!=' '&&c!='\n'){ *s++=c; c=getchar_unlocked(); }
		*s='\0';
	}
	rsort_str(str, n, 11);
	uint32_t ans=1;
	for(uint32_t i=1; i<n; i++){
		if(strcmp(str[i], str[i-1])) ans++;
	}
	printint(ans);
}

void rsort_str(void *base, const int count, const int size){
	char (*a)[size]=base;
	char (*b)[size]=malloc(count*size);
	int c[0x100];
	for(int j=9; j>=0; j--){
		memset(c, 0, sizeof(c)); for(int i=0; i<count; i++){ c[a[i][j]]++; } for(int i=1; i<0x100; i++) c[i]+=c[i-1]; for(int i=count-1; i>=0; i--){ memcpy(&b[--c[a[i][j]]], a[i], size); }{void *t=a; a=b; b=t;}
	}
	free(b);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	stribuf
	.bss
	.align 32
	.type	stribuf, @object
	.size	stribuf, 2200010
stribuf:
	.zero	2200010
	.globl	stribufl
	.align 4
	.type	stribufl, @object
	.size	stribufl, 4
stribufl:
	.zero	4
	.text
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
	jmp	.L2
.L3:
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
.L2:
	cmpb	$47, -5(%rbp)
	jle	.L3
	cmpb	$57, -5(%rbp)
	jg	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L6:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
.L4:
	cmpb	$47, -5(%rbp)
	jle	.L5
	cmpb	$57, -5(%rbp)
	jle	.L6
.L5:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextpint, .-nextpint
	.globl	printint
	.type	printint, @function
printint:
.LFB7:
	.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
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	.L9
	movl	$48, %edi
	call	putchar_unlocked@PLT
.L9:
	movl	$0, -28(%rbp)
	jmp	.L10
.L11:
	movl	-36(%rbp), %ecx
	movl	%ecx, %edx
	movl	$3435973837, %eax
	imulq	%rdx, %rax
	shrq	$32, %rax
	movl	%eax, %edx
	shrl	$3, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movl	%eax, %edx
	movl	$3435973837, %eax
	imulq	%rdx, %rax
	shrq	$32, %rax
	shrl	$3, %eax
	movl	%eax, -36(%rbp)
	addl	$1, -28(%rbp)
.L10:
	cmpl	$0, -36(%rbp)
	jne	.L11
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	.L12
.L13:
	movl	-24(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	subl	$1, -24(%rbp)
.L12:
	cmpl	$0, -24(%rbp)
	jns	.L13
	movl	$10, %edi
	call	putchar_unlocked@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printint, .-printint
	.globl	str
	.bss
	.align 32
	.type	str, @object
	.size	str, 2200000
str:
	.zero	2200000
	.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
	movl	$2200010, %edx
	leaq	stribuf(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	read@PLT
	call	nextpint
	movl	%eax, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L16
.L20:
	movl	-24(%rbp), %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -25(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -8(%rbp)
	movzbl	-25(%rbp), %edx
	movb	%dl, (%rax)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -25(%rbp)
.L17:
	cmpb	$32, -25(%rbp)
	je	.L18
	cmpb	$10, -25(%rbp)
	jne	.L19
.L18:
	movq	-8(%rbp), %rax
	movb	$0, (%rax)
	addl	$1, -24(%rbp)
.L16:
	movl	-24(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jb	.L20
	movl	-12(%rbp), %eax
	movl	$11, %edx
	movl	%eax, %esi
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	rsort_str
	movl	$1, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L21
.L23:
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-16(%rbp), %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L22
	addl	$1, -20(%rbp)
.L22:
	addl	$1, -16(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jb	.L23
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	printint
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.globl	rsort_str
	.type	rsort_str, @function
rsort_str:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$1128, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -1128(%rbp)
	movl	%esi, -1132(%rbp)
	movl	%edx, -1136(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	-1136(%rbp), %eax
	cltq
	subq	$1, %rax
	movq	%rax, -1080(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	movq	%rax, %r8
	movl	$0, %r9d
	movq	-1128(%rbp), %rax
	movq	%rax, -1096(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	subq	$1, %rax
	movq	%rax, -1072(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	movq	%rax, %rcx
	movl	$0, %ebx
	movl	-1132(%rbp), %eax
	imull	-1136(%rbp), %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -1088(%rbp)
	movl	$9, -1112(%rbp)
	jmp	.L26
.L33:
	leaq	-1056(%rbp), %rax
	movl	$1024, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1108(%rbp)
	jmp	.L27
.L28:
	movl	-1108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rdx
	movq	-1096(%rbp), %rax
	addq	%rax, %rdx
	movl	-1112(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-1056(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1108(%rbp)
.L27:
	movl	-1108(%rbp), %eax
	cmpl	-1132(%rbp), %eax
	jl	.L28
	movl	$1, -1104(%rbp)
	jmp	.L29
.L30:
	movl	-1104(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %edx
	movl	-1104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1104(%rbp), %eax
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1104(%rbp)
.L29:
	cmpl	$255, -1104(%rbp)
	jle	.L30
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -1100(%rbp)
	jmp	.L31
.L32:
	movl	-1136(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1100(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	-1096(%rbp), %rax
	addq	%rax, %rcx
	movl	-1100(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rsi
	movq	-1096(%rbp), %rax
	addq	%rax, %rsi
	movl	-1112(%rbp), %eax
	cltq
	movzbl	(%rsi,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rsi
	movl	-1056(%rbp,%rsi,4), %esi
	leal	-1(%rsi), %edi
	movslq	%eax, %rsi
	movl	%edi, -1056(%rbp,%rsi,4)
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movslq	%eax, %rsi
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rsi
	movq	-1088(%rbp), %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	subl	$1, -1100(%rbp)
.L31:
	cmpl	$0, -1100(%rbp)
	jns	.L32
	movq	-1096(%rbp), %rax
	movq	%rax, -1064(%rbp)
	movq	-1088(%rbp), %rax
	movq	%rax, -1096(%rbp)
	movq	-1064(%rbp), %rax
	movq	%rax, -1088(%rbp)
	subl	$1, -1112(%rbp)
.L26:
	cmpl	$0, -1112(%rbp)
	jns	.L33
	movq	-1088(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rsort_str, .-rsort_str
	.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	nextpint
	.type	nextpint, @function
nextpint:
.LFB63:
	.cfi_startproc
	endbr64
	movl	stribufl(%rip), %eax
	leaq	stribuf(%rip), %rcx
	leal	1(%rax), %edx
	movsbl	(%rcx,%rax), %eax
	leal	-48(%rax), %esi
	cmpb	$9, %sil
	jbe	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	addl	$1, %edx
	movsbl	(%rcx,%rax), %eax
	leal	-48(%rax), %esi
	cmpb	$9, %sil
	ja	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r8,%r8,4), %esi
	leal	-48(%rax,%rsi,2), %r8d
	movl	%edx, %eax
	addl	$1, %edx
	movsbl	(%rcx,%rax), %eax
	leal	-48(%rax), %esi
	cmpb	$9, %sil
	jbe	.L4
	movl	%edx, stribufl(%rip)
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE63:
	.size	nextpint, .-nextpint
	.p2align 4
	.globl	printint
	.type	printint, @function
printint:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	%edi, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	stdout(%rip), %rdi
	movq	%fs:40, %rdx
	movq	%rdx, 24(%rsp)
	xorl	%edx, %edx
	movq	40(%rdi), %rsi
	movq	48(%rdi), %r8
	testl	%eax, %eax
	jne	.L11
	cmpq	%r8, %rsi
	jnb	.L79
	leaq	1(%rsi), %rax
	movq	%rax, 40(%rdi)
	movb	$48, (%rsi)
.L13:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L80
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%eax, %edx
	movl	$3435973837, %r9d
	movl	%eax, %ebp
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %ebp
	addl	$48, %ebp
	movb	%bpl, 14(%rsp)
	cmpl	$9, %eax
	jbe	.L40
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 15(%rsp)
	cmpl	$99, %eax
	jbe	.L41
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 16(%rsp)
	cmpl	$999, %eax
	jbe	.L42
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 17(%rsp)
	cmpl	$9999, %eax
	jbe	.L43
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 18(%rsp)
	cmpl	$99999, %eax
	jbe	.L44
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 19(%rsp)
	cmpl	$999999, %eax
	jbe	.L45
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 20(%rsp)
	cmpl	$9999999, %eax
	jbe	.L46
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 21(%rsp)
	cmpl	$99999999, %eax
	jbe	.L47
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r9d
	addl	%r9d, %r9d
	subl	%r9d, %ecx
	addl	$48, %ecx
	movb	%cl, 22(%rsp)
	cmpl	$999999999, %eax
	jbe	.L48
	addl	$48, %edx
	movl	$9, %ebx
	movb	%dl, 23(%rsp)
.L14:
	movslq	%ebx, %rax
	movzbl	14(%rsp,%rax), %eax
	cmpq	%r8, %rsi
	jnb	.L15
	leaq	1(%rsi), %rdx
	movq	%rdx, 40(%rdi)
	movb	%al, (%rsi)
.L16:
	leal	-1(%rbx), %eax
	testl	%ebx, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L18
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L19:
	leal	-2(%rbx), %eax
	cmpl	$1, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L20
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L21:
	leal	-3(%rbx), %eax
	cmpl	$2, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L22
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L23:
	leal	-4(%rbx), %eax
	cmpl	$3, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L24
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L25:
	leal	-5(%rbx), %eax
	cmpl	$4, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L26
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L27:
	leal	-6(%rbx), %eax
	cmpl	$5, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L28
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L29:
	leal	-7(%rbx), %eax
	cmpl	$6, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L30
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L31:
	leal	-8(%rbx), %r12d
	cmpl	$7, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	movslq	%r12d, %rax
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L32
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L33:
	testl	%r12d, %r12d
	je	.L13
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L81
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bpl, (%rax)
	jmp	.L13
.L79:
	movl	$48, %esi
	call	__overflow@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L80:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	$10, %esi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	__overflow@PLT
.L40:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L14
.L30:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L31
.L15:
	movzbl	%al, %esi
	call	__overflow@PLT
	jmp	.L16
.L18:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L19
.L20:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L21
.L22:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L23
.L24:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L25
.L41:
	movl	$1, %ebx
	jmp	.L14
.L26:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L27
.L42:
	movl	$2, %ebx
	jmp	.L14
.L43:
	movl	$3, %ebx
	jmp	.L14
.L28:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L29
.L44:
	movl	$4, %ebx
	jmp	.L14
.L45:
	movl	$5, %ebx
	jmp	.L14
.L46:
	movl	$6, %ebx
	jmp	.L14
.L47:
	movl	$7, %ebx
	jmp	.L14
.L48:
	movl	$8, %ebx
	jmp	.L14
.L32:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L33
.L81:
	movzbl	%bpl, %esi
	call	__overflow@PLT
	jmp	.L13
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.size	printint, .-printint
	.p2align 4
	.globl	rsort_str
	.type	rsort_str, @function
rsort_str:
.LFB66:
	.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
	movslq	%edx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rax
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	imull	%esi, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$1096, %rsp
	.cfi_def_cfa_offset 1152
	movq	%rdi, 8(%rsp)
	movslq	%eax, %rdi
	leaq	1072(%rsp), %r15
	movl	%esi, 20(%rsp)
	movq	%fs:40, %rdx
	movq	%rdx, 1080(%rsp)
	xorl	%edx, %edx
	call	malloc@PLT
	movq	%rax, %rbp
	leal	-1(%rbx), %eax
	movl	$9, %ebx
	movl	%eax, 16(%rsp)
	cltq
	imulq	%r14, %rax
	movq	%rax, 40(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	%r15, %rax
	movq	%r14, %r15
	movq	%rax, %r14
.L88:
	movq	24(%rsp), %rdi
	movl	20(%rsp), %esi
	movl	$128, %ecx
	xorl	%eax, %eax
	rep stosq
	testl	%esi, %esi
	jle	.L83
	movq	8(%rsp), %rax
	leaq	(%rax,%rbx), %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L84:
	movsbq	(%rdx), %rcx
	addl	$1, %eax
	addq	%r15, %rdx
	addl	$1, 48(%rsp,%rcx,4)
	cmpl	%eax, %esi
	jne	.L84
.L83:
	movl	48(%rsp), %edx
	movq	32(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L85:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %r14
	jne	.L85
	movl	16(%rsp), %r13d
	testl	%r13d, %r13d
	js	.L86
	movq	8(%rsp), %r12
	addq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L87:
	movsbq	(%r12,%rbx), %rdx
	movq	%r12, %rsi
	subl	$1, %r13d
	subq	%r15, %r12
	movl	48(%rsp,%rdx,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdi
	movl	%eax, 48(%rsp,%rdx,4)
	movq	%r15, %rdx
	movq	%rdi, %rax
	imulq	%r15, %rax
	leaq	0(%rbp,%rax), %rdi
	call	memcpy@PLT
	cmpl	$-1, %r13d
	jne	.L87
.L86:
	subq	$1, %rbx
	movq	%rbp, %rax
	movq	8(%rsp), %rbp
	cmpq	$-1, %rbx
	je	.L96
	movq	%rax, 8(%rsp)
	jmp	.L88
.L96:
	movq	1080(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L97
	addq	$1096, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rbp, %rdi
	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
	jmp	free@PLT
.L97:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE66:
	.size	rsort_str, .-rsort_str
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$2200010, %edx
	xorl	%edi, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	stribuf(%rip), %rbx
	movq	%rbx, %rsi
	call	read@PLT
	call	nextpint
	testl	%eax, %eax
	je	.L99
	movl	%eax, %ebp
	movl	stribufl(%rip), %eax
	leal	-1(%rbp), %edx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,2), %rdi
	leaq	11+str(%rip), %rdx
	leaq	-11(%rdx), %r8
	addq	%rdx, %rdi
	movq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L103:
	leal	1(%rax), %edx
	movzbl	(%rbx,%rax), %eax
	movq	%rsi, %rcx
	cmpb	$32, %al
	jne	.L128
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L129:
	movb	%al, (%rcx)
	movl	%edx, %eax
	addq	$1, %rcx
	addl	$1, %edx
	movzbl	(%rbx,%rax), %eax
	cmpb	$32, %al
	je	.L107
.L128:
	cmpb	$10, %al
	jne	.L129
.L107:
	addq	$11, %rsi
	movb	$0, (%rcx)
	movl	%edx, %eax
	cmpq	%rsi, %rdi
	jne	.L103
	movl	%edx, stribufl(%rip)
	movl	%ebp, %esi
	movl	$11, %edx
	movq	%r8, %rdi
	call	rsort_str
	cmpl	$1, %ebp
	je	.L104
	leal	-2(%rbp), %eax
	leaq	11+str(%rip), %rbx
	movl	$1, %ebp
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %r12
	leaq	11(%rbx), %rax
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L106:
	leaq	-11(%rbx), %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$-1, %ebp
	addq	$11, %rbx
	cmpq	%rbx, %r12
	jne	.L106
.L104:
	movl	%ebp, %edi
	call	printint
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L99:
	.cfi_restore_state
	movl	$11, %edx
	xorl	%esi, %esi
	movl	$1, %ebp
	leaq	str(%rip), %rdi
	call	rsort_str
	jmp	.L104
	.cfi_endproc
.LFE65:
	.size	main, .-main
	.globl	str
	.bss
	.align 32
	.type	str, @object
	.size	str, 2200000
str:
	.zero	2200000
	.globl	stribufl
	.align 4
	.type	stribufl, @object
	.size	stribufl, 4
stribufl:
	.zero	4
	.globl	stribuf
	.align 32
	.type	stribuf, @object
	.size	stribuf, 2200010
stribuf:
	.zero	2200010
	.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	nextpint
	.type	nextpint, @function
nextpint:
.LFB63:
	.cfi_startproc
	endbr64
	movl	stribufl(%rip), %eax
	leaq	stribuf(%rip), %rcx
	leal	1(%rax), %edx
	movsbl	(%rcx,%rax), %eax
	leal	-48(%rax), %esi
	cmpb	$9, %sil
	jbe	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	addl	$1, %edx
	movsbl	(%rcx,%rax), %eax
	leal	-48(%rax), %esi
	cmpb	$9, %sil
	ja	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r8,%r8,4), %esi
	leal	-48(%rax,%rsi,2), %r8d
	movl	%edx, %eax
	addl	$1, %edx
	movsbl	(%rcx,%rax), %eax
	leal	-48(%rax), %esi
	cmpb	$9, %sil
	jbe	.L4
	movl	%edx, stribufl(%rip)
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE63:
	.size	nextpint, .-nextpint
	.p2align 4
	.globl	printint
	.type	printint, @function
printint:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	%edi, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	stdout(%rip), %rdi
	movq	%fs:40, %rdx
	movq	%rdx, 24(%rsp)
	xorl	%edx, %edx
	movq	40(%rdi), %rsi
	movq	48(%rdi), %r8
	testl	%eax, %eax
	jne	.L11
	cmpq	%r8, %rsi
	jnb	.L79
	leaq	1(%rsi), %rax
	movq	%rax, 40(%rdi)
	movb	$48, (%rsi)
.L13:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L80
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%eax, %edx
	movl	$3435973837, %r9d
	movl	%eax, %ebp
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %ebp
	addl	$48, %ebp
	movb	%bpl, 14(%rsp)
	cmpl	$9, %eax
	jbe	.L40
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 15(%rsp)
	cmpl	$99, %eax
	jbe	.L41
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 16(%rsp)
	cmpl	$999, %eax
	jbe	.L42
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 17(%rsp)
	cmpl	$9999, %eax
	jbe	.L43
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 18(%rsp)
	cmpl	$99999, %eax
	jbe	.L44
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 19(%rsp)
	cmpl	$999999, %eax
	jbe	.L45
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %ecx
	addl	$48, %ecx
	movb	%cl, 20(%rsp)
	cmpl	$9999999, %eax
	jbe	.L46
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %r10d
	addl	%r10d, %r10d
	subl	%r10d, %edx
	addl	$48, %edx
	movb	%dl, 21(%rsp)
	cmpl	$99999999, %eax
	jbe	.L47
	movl	%ecx, %edx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %r9d
	addl	%r9d, %r9d
	subl	%r9d, %ecx
	addl	$48, %ecx
	movb	%cl, 22(%rsp)
	cmpl	$999999999, %eax
	jbe	.L48
	addl	$48, %edx
	movl	$9, %ebx
	movb	%dl, 23(%rsp)
.L14:
	movslq	%ebx, %rax
	movzbl	14(%rsp,%rax), %eax
	cmpq	%r8, %rsi
	jnb	.L15
	leaq	1(%rsi), %rdx
	movq	%rdx, 40(%rdi)
	movb	%al, (%rsi)
.L16:
	leal	-1(%rbx), %eax
	testl	%ebx, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L18
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L19:
	leal	-2(%rbx), %eax
	cmpl	$1, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L20
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L21:
	leal	-3(%rbx), %eax
	cmpl	$2, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L22
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L23:
	leal	-4(%rbx), %eax
	cmpl	$3, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L24
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L25:
	leal	-5(%rbx), %eax
	cmpl	$4, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L26
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L27:
	leal	-6(%rbx), %eax
	cmpl	$5, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L28
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L29:
	leal	-7(%rbx), %eax
	cmpl	$6, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	cltq
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L30
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L31:
	leal	-8(%rbx), %r12d
	cmpl	$7, %ebx
	je	.L13
	movq	stdout(%rip), %rdi
	movslq	%r12d, %rax
	movzbl	14(%rsp,%rax), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L32
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L33:
	testl	%r12d, %r12d
	je	.L13
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L81
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bpl, (%rax)
	jmp	.L13
.L79:
	movl	$48, %esi
	call	__overflow@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L80:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	$10, %esi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	__overflow@PLT
.L40:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L14
.L30:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L31
.L15:
	movzbl	%al, %esi
	call	__overflow@PLT
	jmp	.L16
.L18:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L19
.L20:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L21
.L22:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L23
.L24:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L25
.L41:
	movl	$1, %ebx
	jmp	.L14
.L26:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L27
.L42:
	movl	$2, %ebx
	jmp	.L14
.L43:
	movl	$3, %ebx
	jmp	.L14
.L28:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L29
.L44:
	movl	$4, %ebx
	jmp	.L14
.L45:
	movl	$5, %ebx
	jmp	.L14
.L46:
	movl	$6, %ebx
	jmp	.L14
.L47:
	movl	$7, %ebx
	jmp	.L14
.L48:
	movl	$8, %ebx
	jmp	.L14
.L32:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L33
.L81:
	movzbl	%bpl, %esi
	call	__overflow@PLT
	jmp	.L13
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.size	printint, .-printint
	.p2align 4
	.globl	rsort_str
	.type	rsort_str, @function
rsort_str:
.LFB66:
	.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
	movslq	%edx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rax
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	imull	%esi, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$1096, %rsp
	.cfi_def_cfa_offset 1152
	movq	%rdi, 8(%rsp)
	movslq	%eax, %rdi
	leaq	1072(%rsp), %r15
	movl	%esi, 20(%rsp)
	movq	%fs:40, %rdx
	movq	%rdx, 1080(%rsp)
	xorl	%edx, %edx
	call	malloc@PLT
	movq	%rax, %rbp
	leal	-1(%rbx), %eax
	movl	$9, %ebx
	movl	%eax, 16(%rsp)
	cltq
	imulq	%r14, %rax
	movq	%rax, 40(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	%r15, %rax
	movq	%r14, %r15
	movq	%rax, %r14
.L88:
	movq	24(%rsp), %rdi
	movl	20(%rsp), %esi
	movl	$128, %ecx
	xorl	%eax, %eax
	rep stosq
	testl	%esi, %esi
	jle	.L83
	movq	8(%rsp), %rax
	leaq	(%rax,%rbx), %rdx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L84:
	movsbq	(%rdx), %rcx
	addl	$1, %eax
	addq	%r15, %rdx
	addl	$1, 48(%rsp,%rcx,4)
	cmpl	%eax, %esi
	jne	.L84
.L83:
	movl	48(%rsp), %edx
	movq	32(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L85:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %r14
	jne	.L85
	movl	16(%rsp), %r13d
	testl	%r13d, %r13d
	js	.L86
	movq	8(%rsp), %r12
	addq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L87:
	movsbq	(%r12,%rbx), %rdx
	movq	%r12, %rsi
	subl	$1, %r13d
	subq	%r15, %r12
	movl	48(%rsp,%rdx,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdi
	movl	%eax, 48(%rsp,%rdx,4)
	movq	%r15, %rdx
	movq	%rdi, %rax
	imulq	%r15, %rax
	leaq	0(%rbp,%rax), %rdi
	call	memcpy@PLT
	cmpl	$-1, %r13d
	jne	.L87
.L86:
	subq	$1, %rbx
	movq	%rbp, %rax
	movq	8(%rsp), %rbp
	cmpq	$-1, %rbx
	je	.L96
	movq	%rax, 8(%rsp)
	jmp	.L88
.L96:
	movq	1080(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L97
	addq	$1096, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rbp, %rdi
	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
	jmp	free@PLT
.L97:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE66:
	.size	rsort_str, .-rsort_str
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$2200010, %edx
	xorl	%edi, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	stribuf(%rip), %rbx
	movq	%rbx, %rsi
	call	read@PLT
	call	nextpint
	testl	%eax, %eax
	je	.L99
	movl	%eax, %ebp
	movl	stribufl(%rip), %eax
	leal	-1(%rbp), %edx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,2), %rdi
	leaq	11+str(%rip), %rdx
	leaq	-11(%rdx), %r8
	addq	%rdx, %rdi
	movq	%r8, %rsi
	.p2align 4,,10
	.p2align 3
.L103:
	leal	1(%rax), %edx
	movzbl	(%rbx,%rax), %eax
	movq	%rsi, %rcx
	cmpb	$32, %al
	jne	.L128
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L129:
	movb	%al, (%rcx)
	movl	%edx, %eax
	addq	$1, %rcx
	addl	$1, %edx
	movzbl	(%rbx,%rax), %eax
	cmpb	$32, %al
	je	.L107
.L128:
	cmpb	$10, %al
	jne	.L129
.L107:
	addq	$11, %rsi
	movb	$0, (%rcx)
	movl	%edx, %eax
	cmpq	%rsi, %rdi
	jne	.L103
	movl	%edx, stribufl(%rip)
	movl	%ebp, %esi
	movl	$11, %edx
	movq	%r8, %rdi
	call	rsort_str
	cmpl	$1, %ebp
	je	.L104
	leal	-2(%rbp), %eax
	leaq	11+str(%rip), %rbx
	movl	$1, %ebp
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %r12
	leaq	11(%rbx), %rax
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L106:
	leaq	-11(%rbx), %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$-1, %ebp
	addq	$11, %rbx
	cmpq	%rbx, %r12
	jne	.L106
.L104:
	movl	%ebp, %edi
	call	printint
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L99:
	.cfi_restore_state
	movl	$11, %edx
	xorl	%esi, %esi
	movl	$1, %ebp
	leaq	str(%rip), %rdi
	call	rsort_str
	jmp	.L104
	.cfi_endproc
.LFE65:
	.size	main, .-main
	.globl	str
	.bss
	.align 32
	.type	str, @object
	.size	str, 2200000
str:
	.zero	2200000
	.globl	stribufl
	.align 4
	.type	stribufl, @object
	.size	stribufl, 4
stribufl:
	.zero	4
	.globl	stribuf
	.align 32
	.type	stribuf, @object
	.size	stribuf, 2200010
stribuf:
	.zero	2200010
	.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 <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

char stribuf[2200010];
uint32_t stribufl;

#define getchar_unlocked() stribuf[stribufl++]
uint32_t nextpint(void){ char c=getchar_unlocked(); while(c<'0'||'9'<c) c=getchar_unlocked(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return x; }
void printint(uint32_t x){ if(x<0){x=-x; putchar_unlocked('-');}else if(x==0){putchar_unlocked('0');} int d=0; char s[10]; while(x){ s[d]='0'+x%10; x/=10; d++; } for (int i=d-1; i>=0; i--) putchar_unlocked(s[i]); putchar_unlocked('\n'); }
void rsort_str(void *base, const int count, const int size);

char str[200000][11];

int main(void){
	read(0, stribuf, sizeof(stribuf));
	uint32_t n=nextpint();
	for(uint32_t i=0; i<n; i++){
		char *s=str[i];
		char c=getchar_unlocked();
		while(c!=' '&&c!='\n'){ *s++=c; c=getchar_unlocked(); }
		*s='\0';
	}
	rsort_str(str, n, 11);
	uint32_t ans=1;
	for(uint32_t i=1; i<n; i++){
		if(strcmp(str[i], str[i-1])) ans++;
	}
	printint(ans);
}

void rsort_str(void *base, const int count, const int size){
	char (*a)[size]=base;
	char (*b)[size]=malloc(count*size);
	int c[0x100];
	for(int j=9; j>=0; j--){
		memset(c, 0, sizeof(c)); for(int i=0; i<count; i++){ c[a[i][j]]++; } for(int i=1; i<0x100; i++) c[i]+=c[i-1]; for(int i=count-1; i>=0; i--){ memcpy(&b[--c[a[i][j]]], a[i], size); }{void *t=a; a=b; b=t;}
	}
	free(b);
}

4
a`aa
a
aaa
aa
 3
bpple
orange
apple
 5
grape
grape
graoe
grape
grape
 5
egapr
grape
graoe
gr`pe
epaqg
 4
a`ab
a
aaa
aa
 3
bpple
egnaro
apple
 5
grape
grape
graoe
grape
eparg
 4
b`aa
a
aaa
aa
 3
bpple
egnaro
appld
 5
grape
grape
graoe
grape
epaqg

4
 3
 2
 5
 4
 3
 3
 4
 3
 3

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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

char stribuf[2200010];
uint32_t stribufl;

#define getchar_unlocked() stribuf[stribufl++]
uint32_t nextpint(void){ char c=getchar_unlocked(); while(c<'0'||'9'<c) c=getchar_unlocked(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return x; }
void printint(uint32_t x){ if(x<0){x=-x; putchar_unlocked('-');}else if(x==0){putchar_unlocked('0');} int d=0; char s[10]; while(x){ s[d]='0'+x%10; x/=10; d++; } for (int i=d-1; i>=0; i--) putchar_unlocked(s[i]); putchar_unlocked('\n'); }
void rsort_str(void *base, const int count, const int size);

char str[200000][11];

int main(void){
	read(0, stribuf, sizeof(stribuf));
	uint32_t n=nextpint();
	for(uint32_t i=0; i<n; i++){
		char *s=str[i];
		char c=getchar_unlocked();
		while(c!=' '&&c!='\n'){ *s++=c; c=getchar_unlocked(); }
		*s='\0';
	}
	rsort_str(str, n, 11);
	uint32_t ans=1;
	for(uint32_t i=1; i<n; i++){
		if(strcmp(str[i], str[i-1])) ans++;
	}
	printint(ans);
}

void rsort_str(void *base, const int count, const int size){
	char (*a)[size]=base;
	char (*b)[size]=malloc(count*size);
	int c[0x100];
	for(int j=9; j>=0; j--){
		memset(c, 0, sizeof(c)); for(int i=0; i<count; i++){ c[a[i][j]]++; } for(int i=1; i<0x100; i++) c[i]+=c[i-1]; for(int i=count-1; i>=0; i--){ memcpy(&b[--c[a[i][j]]], a[i], size); }{void *t=a; a=b; b=t;}
	}
	free(b);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	stribuf
	.bss
	.align 32
	.type	stribuf, @object
	.size	stribuf, 2200010
stribuf:
	.zero	2200010
	.globl	stribufl
	.align 4
	.type	stribufl, @object
	.size	stribufl, 4
stribufl:
	.zero	4
	.text
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
	jmp	.L2
.L3:
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
.L2:
	cmpb	$47, -5(%rbp)
	jle	.L3
	cmpb	$57, -5(%rbp)
	jg	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L6:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
.L4:
	cmpb	$47, -5(%rbp)
	jle	.L5
	cmpb	$57, -5(%rbp)
	jle	.L6
.L5:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextpint, .-nextpint
	.globl	printint
	.type	printint, @function
printint:
.LFB7:
	.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
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	.L9
	movl	$48, %edi
	call	putchar_unlocked@PLT
.L9:
	movl	$0, -28(%rbp)
	jmp	.L10
.L11:
	movl	-36(%rbp), %ecx
	movl	%ecx, %edx
	movl	$3435973837, %eax
	imulq	%rdx, %rax
	shrq	$32, %rax
	movl	%eax, %edx
	shrl	$3, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movl	%eax, %edx
	movl	$3435973837, %eax
	imulq	%rdx, %rax
	shrq	$32, %rax
	shrl	$3, %eax
	movl	%eax, -36(%rbp)
	addl	$1, -28(%rbp)
.L10:
	cmpl	$0, -36(%rbp)
	jne	.L11
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	.L12
.L13:
	movl	-24(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	subl	$1, -24(%rbp)
.L12:
	cmpl	$0, -24(%rbp)
	jns	.L13
	movl	$10, %edi
	call	putchar_unlocked@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printint, .-printint
	.globl	str
	.bss
	.align 32
	.type	str, @object
	.size	str, 2200000
str:
	.zero	2200000
	.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
	movl	$2200010, %edx
	leaq	stribuf(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	read@PLT
	call	nextpint
	movl	%eax, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L16
.L20:
	movl	-24(%rbp), %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -25(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -8(%rbp)
	movzbl	-25(%rbp), %edx
	movb	%dl, (%rax)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -25(%rbp)
.L17:
	cmpb	$32, -25(%rbp)
	je	.L18
	cmpb	$10, -25(%rbp)
	jne	.L19
.L18:
	movq	-8(%rbp), %rax
	movb	$0, (%rax)
	addl	$1, -24(%rbp)
.L16:
	movl	-24(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jb	.L20
	movl	-12(%rbp), %eax
	movl	$11, %edx
	movl	%eax, %esi
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	rsort_str
	movl	$1, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L21
.L23:
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-16(%rbp), %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L22
	addl	$1, -20(%rbp)
.L22:
	addl	$1, -16(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jb	.L23
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	printint
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.globl	rsort_str
	.type	rsort_str, @function
rsort_str:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$1128, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -1128(%rbp)
	movl	%esi, -1132(%rbp)
	movl	%edx, -1136(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	-1136(%rbp), %eax
	cltq
	subq	$1, %rax
	movq	%rax, -1080(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	movq	%rax, %r8
	movl	$0, %r9d
	movq	-1128(%rbp), %rax
	movq	%rax, -1096(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	subq	$1, %rax
	movq	%rax, -1072(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	movq	%rax, %rcx
	movl	$0, %ebx
	movl	-1132(%rbp), %eax
	imull	-1136(%rbp), %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -1088(%rbp)
	movl	$9, -1112(%rbp)
	jmp	.L26
.L33:
	leaq	-1056(%rbp), %rax
	movl	$1024, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1108(%rbp)
	jmp	.L27
.L28:
	movl	-1108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rdx
	movq	-1096(%rbp), %rax
	addq	%rax, %rdx
	movl	-1112(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-1056(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1108(%rbp)
.L27:
	movl	-1108(%rbp), %eax
	cmpl	-1132(%rbp), %eax
	jl	.L28
	movl	$1, -1104(%rbp)
	jmp	.L29
.L30:
	movl	-1104(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %edx
	movl	-1104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1104(%rbp), %eax
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1104(%rbp)
.L29:
	cmpl	$255, -1104(%rbp)
	jle	.L30
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -1100(%rbp)
	jmp	.L31
.L32:
	movl	-1136(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1100(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	-1096(%rbp), %rax
	addq	%rax, %rcx
	movl	-1100(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rsi
	movq	-1096(%rbp), %rax
	addq	%rax, %rsi
	movl	-1112(%rbp), %eax
	cltq
	movzbl	(%rsi,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rsi
	movl	-1056(%rbp,%rsi,4), %esi
	leal	-1(%rsi), %edi
	movslq	%eax, %rsi
	movl	%edi, -1056(%rbp,%rsi,4)
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movslq	%eax, %rsi
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rsi
	movq	-1088(%rbp), %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	subl	$1, -1100(%rbp)
.L31:
	cmpl	$0, -1100(%rbp)
	jns	.L32
	movq	-1096(%rbp), %rax
	movq	%rax, -1064(%rbp)
	movq	-1088(%rbp), %rax
	movq	%rax, -1096(%rbp)
	movq	-1064(%rbp), %rax
	movq	%rax, -1088(%rbp)
	subl	$1, -1112(%rbp)
.L26:
	cmpl	$0, -1112(%rbp)
	jns	.L33
	movq	-1088(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rsort_str, .-rsort_str
	.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	stribuf
	.bss
	.align 32
	.type	stribuf, @object
	.size	stribuf, 2200010
stribuf:
	.zero	2200010
	.globl	stribufl
	.align 4
	.type	stribufl, @object
	.size	stribufl, 4
stribufl:
	.zero	4
	.text
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
	jmp	.L2
.L3:
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
.L2:
	cmpb	$47, -5(%rbp)
	jle	.L3
	cmpb	$57, -5(%rbp)
	jg	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L6:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -5(%rbp)
.L4:
	cmpb	$47, -5(%rbp)
	jle	.L5
	cmpb	$57, -5(%rbp)
	jle	.L6
.L5:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextpint, .-nextpint
	.globl	printint
	.type	printint, @function
printint:
.LFB7:
	.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
	movl	%edi, -36(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	.L9
	movl	$48, %edi
	call	putchar_unlocked@PLT
.L9:
	movl	$0, -28(%rbp)
	jmp	.L10
.L11:
	movl	-36(%rbp), %ecx
	movl	%ecx, %edx
	movl	$3435973837, %eax
	imulq	%rdx, %rax
	shrq	$32, %rax
	movl	%eax, %edx
	shrl	$3, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movl	%eax, %edx
	movl	$3435973837, %eax
	imulq	%rdx, %rax
	shrq	$32, %rax
	shrl	$3, %eax
	movl	%eax, -36(%rbp)
	addl	$1, -28(%rbp)
.L10:
	cmpl	$0, -36(%rbp)
	jne	.L11
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	jmp	.L12
.L13:
	movl	-24(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	subl	$1, -24(%rbp)
.L12:
	cmpl	$0, -24(%rbp)
	jns	.L13
	movl	$10, %edi
	call	putchar_unlocked@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printint, .-printint
	.globl	str
	.bss
	.align 32
	.type	str, @object
	.size	str, 2200000
str:
	.zero	2200000
	.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
	movl	$2200010, %edx
	leaq	stribuf(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	read@PLT
	call	nextpint
	movl	%eax, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L16
.L20:
	movl	-24(%rbp), %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -25(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -8(%rbp)
	movzbl	-25(%rbp), %edx
	movb	%dl, (%rax)
	movl	stribufl(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stribufl(%rip)
	movl	%eax, %edx
	leaq	stribuf(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	movb	%al, -25(%rbp)
.L17:
	cmpb	$32, -25(%rbp)
	je	.L18
	cmpb	$10, -25(%rbp)
	jne	.L19
.L18:
	movq	-8(%rbp), %rax
	movb	$0, (%rax)
	addl	$1, -24(%rbp)
.L16:
	movl	-24(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jb	.L20
	movl	-12(%rbp), %eax
	movl	$11, %edx
	movl	%eax, %esi
	leaq	str(%rip), %rax
	movq	%rax, %rdi
	call	rsort_str
	movl	$1, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L21
.L23:
	movl	-16(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	leaq	(%rax,%rdx), %rcx
	movl	-16(%rbp), %edx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	str(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L22
	addl	$1, -20(%rbp)
.L22:
	addl	$1, -16(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jb	.L23
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	printint
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.globl	rsort_str
	.type	rsort_str, @function
rsort_str:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$1128, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -1128(%rbp)
	movl	%esi, -1132(%rbp)
	movl	%edx, -1136(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	-1136(%rbp), %eax
	cltq
	subq	$1, %rax
	movq	%rax, -1080(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	movq	%rax, %r8
	movl	$0, %r9d
	movq	-1128(%rbp), %rax
	movq	%rax, -1096(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	subq	$1, %rax
	movq	%rax, -1072(%rbp)
	movl	-1136(%rbp), %eax
	cltq
	movq	%rax, %rcx
	movl	$0, %ebx
	movl	-1132(%rbp), %eax
	imull	-1136(%rbp), %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -1088(%rbp)
	movl	$9, -1112(%rbp)
	jmp	.L26
.L33:
	leaq	-1056(%rbp), %rax
	movl	$1024, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1108(%rbp)
	jmp	.L27
.L28:
	movl	-1108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rdx
	movq	-1096(%rbp), %rax
	addq	%rax, %rdx
	movl	-1112(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-1056(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1108(%rbp)
.L27:
	movl	-1108(%rbp), %eax
	cmpl	-1132(%rbp), %eax
	jl	.L28
	movl	$1, -1104(%rbp)
	jmp	.L29
.L30:
	movl	-1104(%rbp), %eax
	cltq
	movl	-1056(%rbp,%rax,4), %edx
	movl	-1104(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-1104(%rbp), %eax
	cltq
	movl	%edx, -1056(%rbp,%rax,4)
	addl	$1, -1104(%rbp)
.L29:
	cmpl	$255, -1104(%rbp)
	jle	.L30
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -1100(%rbp)
	jmp	.L31
.L32:
	movl	-1136(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1100(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	-1096(%rbp), %rax
	addq	%rax, %rcx
	movl	-1100(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rsi
	movq	-1096(%rbp), %rax
	addq	%rax, %rsi
	movl	-1112(%rbp), %eax
	cltq
	movzbl	(%rsi,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rsi
	movl	-1056(%rbp,%rsi,4), %esi
	leal	-1(%rsi), %edi
	movslq	%eax, %rsi
	movl	%edi, -1056(%rbp,%rsi,4)
	cltq
	movl	-1056(%rbp,%rax,4), %eax
	movslq	%eax, %rsi
	movl	-1136(%rbp), %eax
	cltq
	imulq	%rax, %rsi
	movq	-1088(%rbp), %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	subl	$1, -1100(%rbp)
.L31:
	cmpl	$0, -1100(%rbp)
	jns	.L32
	movq	-1096(%rbp), %rax
	movq	%rax, -1064(%rbp)
	movq	-1088(%rbp), %rax
	movq	%rax, -1096(%rbp)
	movq	-1064(%rbp), %rax
	movq	%rax, -1088(%rbp)
	subl	$1, -1112(%rbp)
.L26:
	cmpl	$0, -1112(%rbp)
	jns	.L33
	movq	-1088(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	nop
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rsort_str, .-rsort_str
	.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:
