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>
int main(){
  int num,i,min,max;
  int point[101];
  scanf("%d",&num);
  for(i=0;i<num;i++){
    scanf("%d",&point[i]);
  }
  //探索
  for(i=0,max=point[0];i<num;i++){
    if(max < point[i]){
      max=point[i];
    }
  }
  for(i=0,min=point[0];i<num;i++){
    if(min > point[i]){
      min=point[i];
    }
  }
  printf("%d",max-min);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movl	16(%rsp), %esi
	testl	%eax, %eax
	jle	.L4
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L5
	movl	%eax, %edx
	movd	%esi, %xmm4
	movq	%r12, %rcx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm2
	leal	-1(%rdx), %edi
	leaq	16(%r12), %rdx
	movdqa	%xmm2, %xmm0
	salq	$4, %rdi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rcx
	pcmpgtd	-16(%rcx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rcx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdi, %rcx
	jne	.L6
	movdqa	%xmm0, %xmm3
	movl	%eax, %edi
	psrldq	$8, %xmm3
	andl	$-4, %edi
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testb	$3, %al
	je	.L7
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r9d
	cmpl	%r9d, %ecx
	cmovl	%r9d, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L7
.L15:
	movslq	%edi, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	cmpl	$2, %r8d
	jbe	.L14
	movd	%esi, %xmm5
	leaq	16(%r12), %rdx
	pshufd	$0, %xmm5, %xmm2
.L7:
	movl	%eax, %esi
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rdx
.L10:
	movdqa	(%r12), %xmm0
	movdqa	%xmm2, %xmm1
	movq	%rdx, %r12
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L27
	movdqa	%xmm2, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	testb	$3, %al
	je	.L12
.L16:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
.L13:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L12:
	subl	%esi, %ecx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	16(%rsp), %esi
.L4:
	movl	%esi, %ecx
	jmp	.L12
.L5:
	movl	16(%rsp), %ecx
	movl	$1, %edi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	xorl	%edx, %edx
	cmpl	$1, %eax
	jne	.L15
	jmp	.L16
.L14:
	movl	16(%rsp), %edx
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	$1, %edx
	jmp	.L13
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movl	16(%rsp), %esi
	testl	%eax, %eax
	jle	.L4
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L5
	movl	%eax, %edx
	movd	%esi, %xmm4
	movq	%r12, %rcx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm2
	leal	-1(%rdx), %edi
	leaq	16(%r12), %rdx
	movdqa	%xmm2, %xmm0
	salq	$4, %rdi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rcx
	pcmpgtd	-16(%rcx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rcx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdi, %rcx
	jne	.L6
	movdqa	%xmm0, %xmm3
	movl	%eax, %edi
	psrldq	$8, %xmm3
	andl	$-4, %edi
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testb	$3, %al
	je	.L7
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r9d
	cmpl	%r9d, %ecx
	cmovl	%r9d, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L7
.L15:
	movslq	%edi, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	cmpl	$2, %r8d
	jbe	.L14
	movd	%esi, %xmm5
	leaq	16(%r12), %rdx
	pshufd	$0, %xmm5, %xmm2
.L7:
	movl	%eax, %esi
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rdx
.L10:
	movdqa	(%r12), %xmm0
	movdqa	%xmm2, %xmm1
	movq	%rdx, %r12
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L27
	movdqa	%xmm2, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	testb	$3, %al
	je	.L12
.L16:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
.L13:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L12:
	subl	%esi, %ecx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	16(%rsp), %esi
.L4:
	movl	%esi, %ecx
	jmp	.L12
.L5:
	movl	16(%rsp), %ecx
	movl	$1, %edi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	xorl	%edx, %edx
	cmpl	$1, %eax
	jne	.L15
	jmp	.L16
.L14:
	movl	16(%rsp), %edx
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	$1, %edx
	jmp	.L13
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movl	16(%rsp), %esi
	testl	%eax, %eax
	jle	.L4
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L5
	movl	%eax, %edx
	movd	%esi, %xmm4
	movq	%r12, %rcx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm2
	leal	-1(%rdx), %edi
	leaq	16(%r12), %rdx
	movdqa	%xmm2, %xmm0
	salq	$4, %rdi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rcx
	pcmpgtd	-16(%rcx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rcx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdi, %rcx
	jne	.L6
	movdqa	%xmm0, %xmm3
	movl	%eax, %edi
	psrldq	$8, %xmm3
	andl	$-4, %edi
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testb	$3, %al
	je	.L7
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r9d
	cmpl	%r9d, %ecx
	cmovl	%r9d, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L7
.L15:
	movslq	%edi, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	cmpl	$2, %r8d
	jbe	.L14
	movd	%esi, %xmm5
	leaq	16(%r12), %rdx
	pshufd	$0, %xmm5, %xmm2
.L7:
	movl	%eax, %esi
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rdx
.L10:
	movdqa	(%r12), %xmm0
	movdqa	%xmm2, %xmm1
	movq	%rdx, %r12
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L27
	movdqa	%xmm2, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	testb	$3, %al
	je	.L12
.L16:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
.L13:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L12:
	subl	%esi, %ecx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	16(%rsp), %esi
.L4:
	movl	%esi, %ecx
	jmp	.L12
.L5:
	movl	16(%rsp), %ecx
	movl	$1, %edi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	xorl	%edx, %edx
	cmpl	$1, %eax
	jne	.L15
	jmp	.L16
.L14:
	movl	16(%rsp), %edx
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	$1, %edx
	jmp	.L13
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include<stdio.h>
int main(){
  int num,i,min,max;
  int point[101];
  scanf("%d",&num);
  for(i=0;i<num;i++){
    scanf("%d",&point[i]);
  }
  //探索
  for(i=0,max=point[0];i<num;i++){
    if(max < point[i]){
      max=point[i];
    }
  }
  for(i=0,min=point[0];i<num;i++){
    if(min > point[i]){
      min=point[i];
    }
  }
  printf("%d",max-min);
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(){
  int num,i,min,max;
  int point[101];
  scanf("%d",&num);
  for(i=0;i<num;i++){
    scanf("%d",&point[i]);
  }
  //探索
  for(i=0,max=point[0];i<num;i++){
    if(max < point[i]){
      max=point[i];
    }
  }
  for(i=0,min=point[0];i<num;i++){
    if(min > point[i]){
      min=point[i];
    }
  }
  printf("%d",max-min);
  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:

4
2 3 9 9
 8
3 1 4 1 5 18 2 6
 4
2 3 13 9
 4
4 4 13 9
 8
3 1 1 1 5 15 1 6
 4
4 4 8 9
 4
0 4 8 18
 8
1 1 1 2 5 14 1 6
 4
-1 2 4 18
 4
-1 2 4 31

7 17 11 9 14 5 18 13 19 32
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>
int main(){
  int num,i,min,max;
  int point[101];
  scanf("%d",&num);
  for(i=0;i<num;i++){
    scanf("%d",&point[i]);
  }
  //探索
  for(i=0,max=point[0];i<num;i++){
    if(max < point[i]){
      max=point[i];
    }
  }
  for(i=0,min=point[0];i<num;i++){
    if(min > point[i]){
      min=point[i];
    }
  }
  printf("%d",max-min);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movl	16(%rsp), %esi
	testl	%eax, %eax
	jle	.L4
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L5
	movl	%eax, %edx
	movd	%esi, %xmm4
	movq	%r12, %rcx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm2
	leal	-1(%rdx), %edi
	leaq	16(%r12), %rdx
	movdqa	%xmm2, %xmm0
	salq	$4, %rdi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rcx
	pcmpgtd	-16(%rcx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rcx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdi, %rcx
	jne	.L6
	movdqa	%xmm0, %xmm3
	movl	%eax, %edi
	psrldq	$8, %xmm3
	andl	$-4, %edi
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testb	$3, %al
	je	.L7
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r9d
	cmpl	%r9d, %ecx
	cmovl	%r9d, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L7
.L15:
	movslq	%edi, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	cmpl	$2, %r8d
	jbe	.L14
	movd	%esi, %xmm5
	leaq	16(%r12), %rdx
	pshufd	$0, %xmm5, %xmm2
.L7:
	movl	%eax, %esi
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rdx
.L10:
	movdqa	(%r12), %xmm0
	movdqa	%xmm2, %xmm1
	movq	%rdx, %r12
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L27
	movdqa	%xmm2, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	testb	$3, %al
	je	.L12
.L16:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
.L13:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L12:
	subl	%esi, %ecx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	16(%rsp), %esi
.L4:
	movl	%esi, %ecx
	jmp	.L12
.L5:
	movl	16(%rsp), %ecx
	movl	$1, %edi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	xorl	%edx, %edx
	cmpl	$1, %eax
	jne	.L15
	jmp	.L16
.L14:
	movl	16(%rsp), %edx
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	$1, %edx
	jmp	.L13
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movl	16(%rsp), %esi
	testl	%eax, %eax
	jle	.L4
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L5
	movl	%eax, %edx
	movd	%esi, %xmm4
	movq	%r12, %rcx
	shrl	$2, %edx
	pshufd	$0, %xmm4, %xmm2
	leal	-1(%rdx), %edi
	leaq	16(%r12), %rdx
	movdqa	%xmm2, %xmm0
	salq	$4, %rdi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm0, %xmm1
	addq	$16, %rcx
	pcmpgtd	-16(%rcx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rcx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rdi, %rcx
	jne	.L6
	movdqa	%xmm0, %xmm3
	movl	%eax, %edi
	psrldq	$8, %xmm3
	andl	$-4, %edi
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testb	$3, %al
	je	.L7
	movslq	%edi, %r9
	movl	16(%rsp,%r9,4), %r9d
	cmpl	%r9d, %ecx
	cmovl	%r9d, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L7
.L15:
	movslq	%edi, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
	addl	$1, %edi
	cmpl	%edi, %eax
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	cmpl	$2, %r8d
	jbe	.L14
	movd	%esi, %xmm5
	leaq	16(%r12), %rdx
	pshufd	$0, %xmm5, %xmm2
.L7:
	movl	%eax, %esi
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	addq	%rdx, %rsi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rdx
.L10:
	movdqa	(%r12), %xmm0
	movdqa	%xmm2, %xmm1
	movq	%rdx, %r12
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L27
	movdqa	%xmm2, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	testb	$3, %al
	je	.L12
.L16:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
.L13:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L12
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L12:
	subl	%esi, %ecx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ecx, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	16(%rsp), %esi
.L4:
	movl	%esi, %ecx
	jmp	.L12
.L5:
	movl	16(%rsp), %ecx
	movl	$1, %edi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	xorl	%edx, %edx
	cmpl	$1, %eax
	jne	.L15
	jmp	.L16
.L14:
	movl	16(%rsp), %edx
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	$1, %edx
	jmp	.L13
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```