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 <limits.h>
#include <math.h>

int main(void){
	int num, min, a[1000];

	while(1){
		scanf("%d", &num);
		if(!num) break;
		for(int i=0; i<num; i++){
			scanf("%d", &a[i]);
		}

		min=INT_MAX;
		for(int i=0; i<num-1; i++){
			for(int j =i+1; j<num; j++){
				min = fmin(min, abs(a[j]-a[i]));
			}
		}
		printf("%d\n", min);
	}

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L2
	jle	.L3
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jg	.L4
.L3:
	cmpl	$1, %r14d
	jle	.L11
	leal	-2(%r14), %eax
	movq	40(%rsp), %r13
	movl	$1, %r12d
	movl	$2147483647, %r8d
	addq	$2, %rax
	movq	%rax, 8(%rsp)
	leal	-1(%r14), %eax
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r12d, %r14d
	jle	.L6
	movl	20(%rsp), %eax
	movq	24(%rsp), %rcx
	movq	%r13, %r15
	movl	0(%r13), %ebp
	subl	%r12d, %eax
	leaq	-1(%r12,%rax), %rax
	leaq	(%rcx,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	4(%r15), %eax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%ebp, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addq	$4, %r15
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpq	%r15, %rbx
	jne	.L7
.L6:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	%r12, 8(%rsp)
	jne	.L8
.L5:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$4088, %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
.L11:
	.cfi_restore_state
	movl	$2147483647, %r8d
	jmp	.L5
.L17:
	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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L2
	jle	.L3
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jg	.L4
.L3:
	cmpl	$1, %r14d
	jle	.L11
	leal	-2(%r14), %eax
	movq	40(%rsp), %r13
	movl	$1, %r12d
	movl	$2147483647, %r8d
	addq	$2, %rax
	movq	%rax, 8(%rsp)
	leal	-1(%r14), %eax
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r12d, %r14d
	jle	.L6
	movl	20(%rsp), %eax
	movq	24(%rsp), %rcx
	movq	%r13, %r15
	movl	0(%r13), %ebp
	subl	%r12d, %eax
	leaq	-1(%r12,%rax), %rax
	leaq	(%rcx,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	4(%r15), %eax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%ebp, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addq	$4, %r15
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpq	%r15, %rbx
	jne	.L7
.L6:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	%r12, 8(%rsp)
	jne	.L8
.L5:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$4088, %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
.L11:
	.cfi_restore_state
	movl	$2147483647, %r8d
	jmp	.L5
.L17:
	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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L2
	jle	.L3
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jg	.L4
.L3:
	cmpl	$1, %r14d
	jle	.L11
	leal	-2(%r14), %eax
	movq	40(%rsp), %r13
	movl	$1, %r12d
	movl	$2147483647, %r8d
	addq	$2, %rax
	movq	%rax, 8(%rsp)
	leal	-1(%r14), %eax
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r12d, %r14d
	jle	.L6
	movl	20(%rsp), %eax
	movq	24(%rsp), %rcx
	movq	%r13, %r15
	movl	0(%r13), %ebp
	subl	%r12d, %eax
	leaq	-1(%r12,%rax), %rax
	leaq	(%rcx,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	4(%r15), %eax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%ebp, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addq	$4, %r15
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpq	%r15, %rbx
	jne	.L7
.L6:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	%r12, 8(%rsp)
	jne	.L8
.L5:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$4088, %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
.L11:
	.cfi_restore_state
	movl	$2147483647, %r8d
	jmp	.L5
.L17:
	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>
#include <limits.h>
#include <math.h>

int main(void){
	int num, min, a[1000];

	while(1){
		scanf("%d", &num);
		if(!num) break;
		for(int i=0; i<num; i++){
			scanf("%d", &a[i]);
		}

		min=INT_MAX;
		for(int i=0; i<num-1; i++){
			for(int j =i+1; j<num; j++){
				min = fmin(min, abs(a[j]-a[i]));
			}
		}
		printf("%d\n", 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>
#include <limits.h>
#include <math.h>

int main(void){
	int num, min, a[1000];

	while(1){
		scanf("%d", &num);
		if(!num) break;
		for(int i=0; i<num; i++){
			scanf("%d", &a[i]);
		}

		min=INT_MAX;
		for(int i=0; i<num-1; i++){
			for(int j =i+1; j<num; j++){
				min = fmin(min, abs(a[j]-a[i]));
			}
		}
		printf("%d\n", 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:

5
10 10 1 10 10
5
1 5 8 9 11
7
11 34 83 47 59 29 70
0
 5
10 10 1 10 10
5
1 5 8 9 11
7
11 34 83 47 59 29 48
0
 5
10 10 1 10 10
5
1 5 8 5 11
7
11 34 83 47 59 29 48
0
 5
10 10 1 10 10
5
1 5 8 5 11
7
11 34 83 47 54 29 2
0
 5
10 10 10 10 10
5
1 5 8 9 11
7
11 34 83 47 44 29 70
0
 5
10 10 1 10 10
5
1 5 8 5 11
0
11 34 83 47 54 29 2
0
 5
10 10 1 10 10
5
1 5 8 9 8
7
11 34 83 48 59 29 48
0
 5
10 10 10 1 10
5
1 5 8 13 11
7
11 34 83 47 44 29 70
0
 5
10 -1 1 10 10
5
1 5 8 9 11
7
11 34 83 47 59 29 85
0
 5
10 10 10 1 10
5
1 5 8 13 11
0
11 34 83 47 44 50 70
0

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

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 <limits.h>
#include <math.h>

int main(void){
	int num, min, a[1000];

	while(1){
		scanf("%d", &num);
		if(!num) break;
		for(int i=0; i<num; i++){
			scanf("%d", &a[i]);
		}

		min=INT_MAX;
		for(int i=0; i<num-1; i++){
			for(int j =i+1; j<num; j++){
				min = fmin(min, abs(a[j]-a[i]));
			}
		}
		printf("%d\n", min);
	}

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L2
	jle	.L3
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jg	.L4
.L3:
	cmpl	$1, %r14d
	jle	.L11
	leal	-2(%r14), %eax
	movq	40(%rsp), %r13
	movl	$1, %r12d
	movl	$2147483647, %r8d
	addq	$2, %rax
	movq	%rax, 8(%rsp)
	leal	-1(%r14), %eax
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r12d, %r14d
	jle	.L6
	movl	20(%rsp), %eax
	movq	24(%rsp), %rcx
	movq	%r13, %r15
	movl	0(%r13), %ebp
	subl	%r12d, %eax
	leaq	-1(%r12,%rax), %rax
	leaq	(%rcx,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	4(%r15), %eax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%ebp, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addq	$4, %r15
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpq	%r15, %rbx
	jne	.L7
.L6:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	%r12, 8(%rsp)
	jne	.L8
.L5:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$4088, %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
.L11:
	.cfi_restore_state
	movl	$2147483647, %r8d
	jmp	.L5
.L17:
	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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4088, %rsp
	.cfi_def_cfa_offset 4144
	movq	%fs:40, %rax
	movq	%rax, 4072(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L2
	jle	.L3
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbp
	cmpl	%ebx, %r14d
	jg	.L4
.L3:
	cmpl	$1, %r14d
	jle	.L11
	leal	-2(%r14), %eax
	movq	40(%rsp), %r13
	movl	$1, %r12d
	movl	$2147483647, %r8d
	addq	$2, %rax
	movq	%rax, 8(%rsp)
	leal	-1(%r14), %eax
	movl	%eax, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r12d, %r14d
	jle	.L6
	movl	20(%rsp), %eax
	movq	24(%rsp), %rcx
	movq	%r13, %r15
	movl	0(%r13), %ebp
	subl	%r12d, %eax
	leaq	-1(%r12,%rax), %rax
	leaq	(%rcx,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	4(%r15), %eax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r8d, %xmm0
	subl	%ebp, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addq	$4, %r15
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpq	%r15, %rbx
	jne	.L7
.L6:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	%r12, 8(%rsp)
	jne	.L8
.L5:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L2:
	movq	4072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$4088, %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
.L11:
	.cfi_restore_state
	movl	$2147483647, %r8d
	jmp	.L5
.L17:
	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:
```