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

```c
#include <stdio.h>
#include <stdlib.h>

#define N_MAX 65000

int qsc_uint(const void* x,const void* y) {
	unsigned int a=*((const unsigned int*)x);
	unsigned int b=*((const unsigned int*)y);
	if(a>b)return 1;
	if(a<b)return -1;
	return 0;
}

int main(void) {
	unsigned int n;
	while(scanf("%u",&n)==1 && n>0) {
		unsigned int plen_sum=0;
		static unsigned int jlen[N_MAX];
		unsigned int max=0;
		unsigned int i;
		for(i=0;i<n;i++) {
			unsigned int plen;
			scanf("%u",&plen);
			plen_sum+=plen;
		}
		for(i=0;i<n-1;i++) {
			scanf("%u",&jlen[i]);
			plen_sum+=jlen[i];
		}
		qsort(jlen,n-1,sizeof(jlen[0]),qsc_uint);
		for(i=1;i<=n;i++) {
			if(i*plen_sum>max)max=i*plen_sum;
			if(i<n)plen_sum-=jlen[i-1];
		}
		printf("%u\n",max);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsc_uint
	.type	qsc_uint, @function
qsc_uint:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	ja	.L1
	sbbl	%eax, %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsc_uint, .-qsc_uint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u"
.LC1:
	.string	"%u\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	jlen.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L13
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L13
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	20(%rsp), %r14d
	cmpl	%r13d, %eax
	ja	.L7
	cmpl	$1, %eax
	je	.L15
	leaq	jlen.0(%rip), %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	0(%r13), %r14d
	addq	$4, %r13
	leal	-1(%rax), %esi
	cmpl	%r15d, %esi
	ja	.L9
.L8:
	leaq	qsc_uint(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	16(%rsp), %esi
	testl	%esi, %esi
	je	.L16
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r14d, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edx
	cmovb	%ecx, %edx
	cmpl	%eax, %esi
	jbe	.L11
	leal	-1(%rax), %ecx
	subl	(%r12,%rcx,4), %r14d
.L11:
	addl	$1, %eax
	cmpl	%esi, %eax
	jbe	.L12
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%esi, %esi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.local	jlen.0
	.comm	jlen.0,260000,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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsc_uint
	.type	qsc_uint, @function
qsc_uint:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	ja	.L1
	sbbl	%eax, %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsc_uint, .-qsc_uint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u"
.LC1:
	.string	"%u\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	jlen.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L13
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L13
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	20(%rsp), %r14d
	cmpl	%r13d, %eax
	ja	.L7
	cmpl	$1, %eax
	je	.L15
	leaq	jlen.0(%rip), %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	0(%r13), %r14d
	addq	$4, %r13
	leal	-1(%rax), %esi
	cmpl	%r15d, %esi
	ja	.L9
.L8:
	leaq	qsc_uint(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	16(%rsp), %esi
	testl	%esi, %esi
	je	.L16
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r14d, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edx
	cmovb	%ecx, %edx
	cmpl	%eax, %esi
	jbe	.L11
	leal	-1(%rax), %ecx
	subl	(%r12,%rcx,4), %r14d
.L11:
	addl	$1, %eax
	cmpl	%esi, %eax
	jbe	.L12
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%esi, %esi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.local	jlen.0
	.comm	jlen.0,260000,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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsc_uint
	.type	qsc_uint, @function
qsc_uint:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	ja	.L1
	sbbl	%eax, %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsc_uint, .-qsc_uint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u"
.LC1:
	.string	"%u\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	jlen.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L13
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L13
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	20(%rsp), %r14d
	cmpl	%r13d, %eax
	ja	.L7
	cmpl	$1, %eax
	je	.L15
	leaq	jlen.0(%rip), %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	0(%r13), %r14d
	addq	$4, %r13
	leal	-1(%rax), %esi
	cmpl	%r15d, %esi
	ja	.L9
.L8:
	leaq	qsc_uint(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	16(%rsp), %esi
	testl	%esi, %esi
	je	.L16
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r14d, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edx
	cmovb	%ecx, %edx
	cmpl	%eax, %esi
	jbe	.L11
	leal	-1(%rax), %ecx
	subl	(%r12,%rcx,4), %r14d
.L11:
	addl	$1, %eax
	cmpl	%esi, %eax
	jbe	.L12
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%esi, %esi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.local	jlen.0
	.comm	jlen.0,260000,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:
```
```c
#include <stdio.h>
#include <stdlib.h>

#define N_MAX 65000

int qsc_uint(const void* x,const void* y) {
	unsigned int a=*((const unsigned int*)x);
	unsigned int b=*((const unsigned int*)y);
	if(a>b)return 1;
	if(a<b)return -1;
	return 0;
}

int main(void) {
	unsigned int n;
	while(scanf("%u",&n)==1 && n>0) {
		unsigned int plen_sum=0;
		static unsigned int jlen[N_MAX];
		unsigned int max=0;
		unsigned int i;
		for(i=0;i<n;i++) {
			unsigned int plen;
			scanf("%u",&plen);
			plen_sum+=plen;
		}
		for(i=0;i<n-1;i++) {
			scanf("%u",&jlen[i]);
			plen_sum+=jlen[i];
		}
		qsort(jlen,n-1,sizeof(jlen[0]),qsc_uint);
		for(i=1;i<=n;i++) {
			if(i*plen_sum>max)max=i*plen_sum;
			if(i<n)plen_sum-=jlen[i-1];
		}
		printf("%u\n",max);
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

#define N_MAX 65000

int qsc_uint(const void* x,const void* y) {
	unsigned int a=*((const unsigned int*)x);
	unsigned int b=*((const unsigned int*)y);
	if(a>b)return 1;
	if(a<b)return -1;
	return 0;
}

int main(void) {
	unsigned int n;
	while(scanf("%u",&n)==1 && n>0) {
		unsigned int plen_sum=0;
		static unsigned int jlen[N_MAX];
		unsigned int max=0;
		unsigned int i;
		for(i=0;i<n;i++) {
			unsigned int plen;
			scanf("%u",&plen);
			plen_sum+=plen;
		}
		for(i=0;i<n-1;i++) {
			scanf("%u",&jlen[i]);
			plen_sum+=jlen[i];
		}
		qsort(jlen,n-1,sizeof(jlen[0]),qsc_uint);
		for(i=1;i<=n;i++) {
			if(i*plen_sum>max)max=i*plen_sum;
			if(i<n)plen_sum-=jlen[i-1];
		}
		printf("%u\n",max);
	}
	return 0;
}```

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.
Optimized Assembly Code:

3
1 1 1
3 3
4
3 1 3 3
1 1 1
5
1 2 3 4 5
4 3 2 1
0
 3
1 1 1
3 3
4
3 1 3 3
1 1 1
5
1 2 3 4 5
3 3 2 1
0
 3
0 1 1
3 3
4
3 1 3 3
1 1 1
5
1 2 3 4 5
3 3 2 1
0
 3
0 1 1
3 3
4
3 1 5 3
1 1 1
5
1 2 3 4 5
3 3 2 1
0
 3
1 1 2
3 3
4
3 3 3 3
1 1 1
5
1 2 3 4 5
4 3 2 1
0
 3
0 1 1
3 3
4
3 1 3 3
1 1 1
5
1 1 3 4 5
3 3 2 1
0
 3
0 1 1
3 3
4
4 1 3 3
1 1 1
5
1 1 3 4 5
3 3 2 2
0
 3
0 1 1
3 3
4
0 1 3 3
1 1 1
5
1 1 3 4 5
3 3 2 2
0
 3
0 1 1
3 2
4
0 0 3 3
1 1 1
5
1 1 3 4 5
3 3 2 2
0
 3
1 1 1
3 5
4
3 3 3 3
1 1 1
5
1 2 3 4 5
4 3 2 1
0

12
40
76
 12
40
75
 10
40
75
 10
48
75
 14
48
76
 10
40
70
 10
44
70
 10
28
70
 10
24
70
 16
48
76

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

```c
#include <stdio.h>
#include <stdlib.h>

#define N_MAX 65000

int qsc_uint(const void* x,const void* y) {
	unsigned int a=*((const unsigned int*)x);
	unsigned int b=*((const unsigned int*)y);
	if(a>b)return 1;
	if(a<b)return -1;
	return 0;
}

int main(void) {
	unsigned int n;
	while(scanf("%u",&n)==1 && n>0) {
		unsigned int plen_sum=0;
		static unsigned int jlen[N_MAX];
		unsigned int max=0;
		unsigned int i;
		for(i=0;i<n;i++) {
			unsigned int plen;
			scanf("%u",&plen);
			plen_sum+=plen;
		}
		for(i=0;i<n-1;i++) {
			scanf("%u",&jlen[i]);
			plen_sum+=jlen[i];
		}
		qsort(jlen,n-1,sizeof(jlen[0]),qsc_uint);
		for(i=1;i<=n;i++) {
			if(i*plen_sum>max)max=i*plen_sum;
			if(i<n)plen_sum-=jlen[i-1];
		}
		printf("%u\n",max);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsc_uint
	.type	qsc_uint, @function
qsc_uint:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	ja	.L1
	sbbl	%eax, %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsc_uint, .-qsc_uint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u"
.LC1:
	.string	"%u\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	jlen.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L13
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L13
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	20(%rsp), %r14d
	cmpl	%r13d, %eax
	ja	.L7
	cmpl	$1, %eax
	je	.L15
	leaq	jlen.0(%rip), %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	0(%r13), %r14d
	addq	$4, %r13
	leal	-1(%rax), %esi
	cmpl	%r15d, %esi
	ja	.L9
.L8:
	leaq	qsc_uint(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	16(%rsp), %esi
	testl	%esi, %esi
	je	.L16
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r14d, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edx
	cmovb	%ecx, %edx
	cmpl	%eax, %esi
	jbe	.L11
	leal	-1(%rax), %ecx
	subl	(%r12,%rcx,4), %r14d
.L11:
	addl	$1, %eax
	cmpl	%esi, %eax
	jbe	.L12
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%esi, %esi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.local	jlen.0
	.comm	jlen.0,260000,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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsc_uint
	.type	qsc_uint, @function
qsc_uint:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	ja	.L1
	sbbl	%eax, %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsc_uint, .-qsc_uint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u"
.LC1:
	.string	"%u\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	jlen.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	20(%rsp), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L13
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L13
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	20(%rsp), %r14d
	cmpl	%r13d, %eax
	ja	.L7
	cmpl	$1, %eax
	je	.L15
	leaq	jlen.0(%rip), %r13
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	addl	0(%r13), %r14d
	addq	$4, %r13
	leal	-1(%rax), %esi
	cmpl	%r15d, %esi
	ja	.L9
.L8:
	leaq	qsc_uint(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	16(%rsp), %esi
	testl	%esi, %esi
	je	.L16
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r14d, %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %edx
	cmovb	%ecx, %edx
	cmpl	%eax, %esi
	jbe	.L11
	leal	-1(%rax), %ecx
	subl	(%r12,%rcx,4), %r14d
.L11:
	addl	$1, %eax
	cmpl	%esi, %eax
	jbe	.L12
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%esi, %esi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.local	jlen.0
	.comm	jlen.0,260000,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:
```