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

```c
#include <stdio.h>

#define N 200000

int min(int a, int b) {
	return a < b ? a : b;
}

int main() {
	static int tt[N];
	int n, t, i, ans;
	
	scanf("%d%d", &n, &t);
	for (i = 0; i < n; i++)
		scanf("%d", &tt[i]);
	ans = 0;
	for (i = 1; i < n; i++)
		ans += min(t, tt[i] - tt[i - 1]);
	printf("%d\n", ans + t);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L4
.L5:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	tt.0(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L4:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L5
	movl	$0, -12(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L6
.L7:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	tt.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-16(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	tt.0(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	addl	%eax, -12(%rbp)
	addl	$1, -16(%rbp)
.L6:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L7
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.local	tt.0
	.comm	tt.0,800000,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	tt.0(%rip), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L5
	movl	4(%rsp), %esi
	cmpl	$1, %edx
	jle	.L14
	leal	-2(%rdx), %eax
	leal	-1(%rdx), %r8d
	cmpl	$2, %eax
	jbe	.L15
	movl	%r8d, %ecx
	leaq	tt.0(%rip), %rax
	movd	%esi, %xmm5
	leaq	16(%rax), %rdi
	pshufd	$0, %xmm5, %xmm3
	shrl	$2, %ecx
	pxor	%xmm2, %xmm2
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	4(%rax), %xmm1
	psubd	(%rax), %xmm1
	movdqa	%xmm3, %xmm4
	addq	$16, %rax
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm4
	pandn	%xmm1, %xmm0
	por	%xmm4, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm2, %xmm0
	movl	%r8d, %edi
	psrldq	$8, %xmm0
	andl	$-4, %edi
	paddd	%xmm0, %xmm2
	leal	1(%rdi), %ecx
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r8d, %edi
	je	.L6
.L7:
	movslq	%ecx, %rdi
	leal	1(%rcx), %r9d
	movq	%rdi, %r10
	leaq	-4(%r12,%rdi,4), %r11
	cmpl	%r9d, %r8d
	jle	.L11
	cmpl	%ecx, %edx
	jle	.L11
	movl	(%r11), %r9d
	leaq	4+tt.0(%rip), %r11
.L12:
	movl	(%r12,%rdi,4), %r10d
	movl	%r10d, %ecx
	subl	%r9d, %ecx
	movl	(%r11,%rdi,4), %r9d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	addl	%eax, %ecx
	movl	%r9d, %eax
	subl	%r10d, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	addl	%ecx, %eax
	leal	2(%rdi), %ecx
	addq	$2, %rdi
	leal	1(%rdi), %r10d
	cmpl	%r10d, %r8d
	jg	.L12
	movslq	%ecx, %r10
	leal	1(%rcx), %r9d
.L11:
	movl	(%r12,%r10,4), %r8d
	leal	-1(%rcx), %edi
	movslq	%edi, %rdi
	movl	%r8d, %ebx
	subl	(%r12,%rdi,4), %ebx
	cmpl	%esi, %ebx
	movl	%ebx, %edi
	cmovg	%esi, %edi
	addl	%edi, %eax
	cmpl	%r9d, %edx
	jle	.L6
	movslq	%r9d, %r9
	movl	(%r12,%r9,4), %r9d
	movl	%r9d, %edi
	subl	%r8d, %edi
	cmpl	%esi, %edi
	cmovg	%esi, %edi
	addl	$2, %ecx
	addl	%edi, %eax
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %edx
	subl	%r9d, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	addl	%edx, %eax
.L6:
	leal	(%rax,%rsi), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$24, %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
.L4:
	.cfi_restore_state
	movl	4(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L6
.L15:
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L7
.L14:
	xorl	%eax, %eax
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.local	tt.0
	.comm	tt.0,800000,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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	tt.0(%rip), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L5
	movl	4(%rsp), %esi
	cmpl	$1, %edx
	jle	.L14
	leal	-2(%rdx), %eax
	leal	-1(%rdx), %r8d
	cmpl	$2, %eax
	jbe	.L15
	movl	%r8d, %ecx
	leaq	tt.0(%rip), %rax
	movd	%esi, %xmm5
	leaq	16(%rax), %rdi
	pshufd	$0, %xmm5, %xmm3
	shrl	$2, %ecx
	pxor	%xmm2, %xmm2
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	4(%rax), %xmm1
	psubd	(%rax), %xmm1
	movdqa	%xmm3, %xmm4
	addq	$16, %rax
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm4
	pandn	%xmm1, %xmm0
	por	%xmm4, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm2, %xmm0
	movl	%r8d, %edi
	psrldq	$8, %xmm0
	andl	$-4, %edi
	paddd	%xmm0, %xmm2
	leal	1(%rdi), %ecx
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r8d, %edi
	je	.L6
.L7:
	movslq	%ecx, %rdi
	leal	1(%rcx), %r9d
	movq	%rdi, %r10
	leaq	-4(%r12,%rdi,4), %r11
	cmpl	%r9d, %r8d
	jle	.L11
	cmpl	%ecx, %edx
	jle	.L11
	movl	(%r11), %r9d
	leaq	4+tt.0(%rip), %r11
.L12:
	movl	(%r12,%rdi,4), %r10d
	movl	%r10d, %ecx
	subl	%r9d, %ecx
	movl	(%r11,%rdi,4), %r9d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	addl	%eax, %ecx
	movl	%r9d, %eax
	subl	%r10d, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	addl	%ecx, %eax
	leal	2(%rdi), %ecx
	addq	$2, %rdi
	leal	1(%rdi), %r10d
	cmpl	%r10d, %r8d
	jg	.L12
	movslq	%ecx, %r10
	leal	1(%rcx), %r9d
.L11:
	movl	(%r12,%r10,4), %r8d
	leal	-1(%rcx), %edi
	movslq	%edi, %rdi
	movl	%r8d, %ebx
	subl	(%r12,%rdi,4), %ebx
	cmpl	%esi, %ebx
	movl	%ebx, %edi
	cmovg	%esi, %edi
	addl	%edi, %eax
	cmpl	%r9d, %edx
	jle	.L6
	movslq	%r9d, %r9
	movl	(%r12,%r9,4), %r9d
	movl	%r9d, %edi
	subl	%r8d, %edi
	cmpl	%esi, %edi
	cmovg	%esi, %edi
	addl	$2, %ecx
	addl	%edi, %eax
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %edx
	subl	%r9d, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	addl	%edx, %eax
.L6:
	leal	(%rax,%rsi), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$24, %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
.L4:
	.cfi_restore_state
	movl	4(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L6
.L15:
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L7
.L14:
	xorl	%eax, %eax
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.local	tt.0
	.comm	tt.0,800000,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:

#include <stdio.h>

#define N 200000

int min(int a, int b) {
	return a < b ? a : b;
}

int main() {
	static int tt[N];
	int n, t, i, ans;
	
	scanf("%d%d", &n, &t);
	for (i = 0; i < n; i++)
		scanf("%d", &tt[i]);
	ans = 0;
	for (i = 1; i < n; i++)
		ans += min(t, tt[i] - tt[i - 1]);
	printf("%d\n", ans + t);
	return 0;
}

2 4
0 3

7

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

```c
#include <stdio.h>

#define N 200000

int min(int a, int b) {
	return a < b ? a : b;
}

int main() {
	static int tt[N];
	int n, t, i, ans;
	
	scanf("%d%d", &n, &t);
	for (i = 0; i < n; i++)
		scanf("%d", &tt[i]);
	ans = 0;
	for (i = 1; i < n; i++)
		ans += min(t, tt[i] - tt[i - 1]);
	printf("%d\n", ans + t);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L4
.L5:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	tt.0(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L4:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L5
	movl	$0, -12(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L6
.L7:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	tt.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-16(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	tt.0(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	addl	%eax, -12(%rbp)
	addl	$1, -16(%rbp)
.L6:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L7
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.local	tt.0
	.comm	tt.0,800000,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L4
.L5:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	tt.0(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L4:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L5
	movl	$0, -12(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L6
.L7:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	tt.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-16(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	tt.0(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	addl	%eax, -12(%rbp)
	addl	$1, -16(%rbp)
.L6:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L7
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.local	tt.0
	.comm	tt.0,800000,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:
