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>
#include<string.h>
#include<stdlib.h>

int min(int* array, int n) {
	int i;
	int min = array[0];
	for (i = 1; i < n; i++) if (min > array[i]) min = array[i];
	return min;
}

int main() {
	int n, a, b, c, l[8], i;
	scanf("%d%d%d%d", &n, &a, &b, &c);
	for (i = 0; i < n; i++) scanf("%d", &l[i]);
	
	//cur 次に追加する要素のインデックス
	int dfs(int cur, int x, int y, int z){
		int ret[4];
		if (cur == n) {
			return (x * y * z == 0) ? 100000000 : abs(x - a) + abs(y - b) + abs(z - c) - 30;
		}
		ret[0] = dfs(cur + 1, x, y, z);
		ret[1] = dfs(cur + 1, x + l[cur], y, z) + 10;
		ret[2] = dfs(cur + 1, x, y + l[cur], z) + 10;
		ret[3] = dfs(cur + 1, x, y, z + l[cur]) + 10;
		return min(ret, 4);
	}

	printf("%d", dfs(0, 0, 0, 0));
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L3
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L4
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.type	dfs.0, @function
dfs.0:
.LFB8:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	%edx, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movq	%r10, %rbx
	movq	%r10, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	44(%rbx), %eax
	cmpl	%eax, -52(%rbp)
	jne	.L7
	movl	-56(%rbp), %eax
	imull	-60(%rbp), %eax
	imull	-64(%rbp), %eax
	testl	%eax, %eax
	je	.L8
	movl	40(%rbx), %edx
	movl	-56(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	36(%rbx), %edx
	movl	-60(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	32(%rbx), %edx
	movl	-64(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	subl	$30, %eax
	jmp	.L11
.L8:
	movl	$100000000, %eax
	jmp	.L11
.L7:
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %ecx
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%eax, %esi
	call	dfs.0
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-56(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	movq	%rbx, %r10
	movl	%edx, %ecx
	movl	%eax, %edx
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -44(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-60(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%edx, %ecx
	movl	%esi, %edx
	movl	%eax, %esi
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -40(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-64(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%eax, %esi
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rax
	movl	$4, %esi
	movq	%rax, %rdi
	call	min
.L11:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dfs.0, .-dfs.0
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	leaq	-64(%rbp), %rax
	leaq	32(%rax), %rsi
	leaq	-64(%rbp), %rax
	leaq	36(%rax), %rcx
	leaq	-64(%rbp), %rax
	leaq	40(%rax), %rdx
	leaq	-64(%rbp), %rax
	addq	$44, %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -68(%rbp)
	jmp	.L14
.L15:
	leaq	-64(%rbp), %rdx
	movl	-68(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -68(%rbp)
.L14:
	movl	-20(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L15
	leaq	-64(%rbp), %rax
	movq	%rax, %r10
	movl	$0, %ecx
	movl	$0, %edx
	movl	$0, %esi
	movl	$0, %edi
	call	dfs.0
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.type	dfs.0, @function
dfs.0:
.LFB53:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r10, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%ebx, 44(%r10)
	je	.L8
	leal	1(%rbx), %r14d
	movl	%r14d, %edi
	call	dfs.0
	movl	0(%rbp,%rbx,4), %ebx
	movl	%r14d, %edi
	movq	%rbp, %r10
	movl	%r15d, %ecx
	movl	%r13d, %edx
	movl	%eax, 12(%rsp)
	leal	(%rbx,%r12), %esi
	call	dfs.0
	movl	%r14d, %edi
	leal	(%rbx,%r13), %edx
	movq	%rbp, %r10
	movl	%r15d, %ecx
	movl	%r12d, %esi
	movl	%eax, 4(%rsp)
	call	dfs.0
	movl	%r13d, %edx
	movl	%r14d, %edi
	leal	(%rbx,%r15), %ecx
	movq	%rbp, %r10
	movl	%r12d, %esi
	movl	%eax, 8(%rsp)
	call	dfs.0
	movl	8(%rsp), %r14d
	movl	12(%rsp), %r8d
	movl	%eax, %r9d
	movl	4(%rsp), %eax
	addl	$10, %r14d
	leal	10(%r9), %edx
	addl	$10, %eax
	cmpl	%r14d, %eax
	cmovg	%r14d, %eax
	cmpl	%r8d, %eax
	cmovg	%r8d, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	movl	%esi, %edx
	movl	$100000000, %eax
	imull	%r13d, %edx
	imull	%ecx, %edx
	testl	%edx, %edx
	je	.L1
	subl	40(%r10), %r12d
	movl	%r12d, %eax
	negl	%eax
	cmovs	%r12d, %eax
	subl	36(%r10), %r13d
	movl	%r13d, %edx
	negl	%edx
	cmovs	%r13d, %edx
	subl	32(%r10), %ecx
	addl	%edx, %eax
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE53:
	.size	dfs.0, .-dfs.0
	.p2align 4
	.type	dfs.0.constprop.4, @function
dfs.0.constprop.4:
.LFB54:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %r11d
	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
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r10, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$4, 44(%r10)
	je	.L15
	movl	%edx, %ecx
	movl	%esi, %edx
	movl	%edi, %esi
	movl	$5, %edi
	call	dfs.0
	movl	16(%rbp), %r15d
	movq	%rbp, %r10
	movl	%ebx, %ecx
	movl	%r11d, %edx
	movl	$5, %edi
	movl	%eax, %r14d
	leal	(%r12,%r15), %esi
	call	dfs.0
	leal	(%r11,%r15), %edx
	movq	%rbp, %r10
	movl	%ebx, %ecx
	movl	%r12d, %esi
	movl	$5, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0
	movl	%r11d, %edx
	leal	(%rbx,%r15), %ecx
	movq	%rbp, %r10
	movl	%r12d, %esi
	movl	$5, %edi
	movl	%eax, %r13d
	call	dfs.0
	addl	$10, %r13d
	movl	%eax, %r8d
	movl	12(%rsp), %eax
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%r14d, %eax
	cmovg	%r14d, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebx, %edx
	testl	%edx, %edx
	je	.L9
	subl	40(%r10), %r12d
	movl	%esi, %r8d
	movl	%r12d, %eax
	negl	%eax
	cmovs	%r12d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebx
	addl	%edx, %eax
	movl	%ebx, %edx
	negl	%edx
	cmovs	%ebx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE54:
	.size	dfs.0.constprop.4, .-dfs.0.constprop.4
	.p2align 4
	.type	dfs.0.constprop.3, @function
dfs.0.constprop.3:
.LFB55:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r10, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$3, 44(%r10)
	je	.L22
	call	dfs.0.constprop.4
	movl	12(%r12), %r15d
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%eax, %ebx
	leal	(%r14,%r15), %edi
	call	dfs.0.constprop.4
	leal	0(%r13,%r15), %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	dfs.0.constprop.4
	leal	0(%rbp,%r15), %edx
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%r14d, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0.constprop.4
	movl	12(%rsp), %r13d
	movl	%eax, %r8d
	movl	8(%rsp), %eax
	addl	$10, %r13d
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L16:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L22:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebp, %edx
	testl	%edx, %edx
	je	.L16
	subl	40(%r10), %r14d
	movl	%esi, %r8d
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebp
	movl	%ebp, %ecx
	addl	%edx, %eax
	negl	%ecx
	movl	%ebp, %edx
	cmovns	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE55:
	.size	dfs.0.constprop.3, .-dfs.0.constprop.3
	.p2align 4
	.type	dfs.0.constprop.2, @function
dfs.0.constprop.2:
.LFB56:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r10, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$2, 44(%r10)
	je	.L29
	call	dfs.0.constprop.3
	movl	8(%r12), %r15d
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%eax, %ebx
	leal	(%r14,%r15), %edi
	call	dfs.0.constprop.3
	leal	0(%r13,%r15), %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	dfs.0.constprop.3
	leal	0(%rbp,%r15), %edx
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%r14d, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0.constprop.3
	movl	12(%rsp), %r13d
	movl	%eax, %r8d
	movl	8(%rsp), %eax
	addl	$10, %r13d
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L23:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L29:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebp, %edx
	testl	%edx, %edx
	je	.L23
	subl	40(%r10), %r14d
	movl	%esi, %r8d
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebp
	movl	%ebp, %ecx
	addl	%edx, %eax
	negl	%ecx
	movl	%ebp, %edx
	cmovns	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE56:
	.size	dfs.0.constprop.2, .-dfs.0.constprop.2
	.p2align 4
	.type	dfs.0.constprop.1, @function
dfs.0.constprop.1:
.LFB57:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r10, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$1, 44(%r10)
	je	.L36
	call	dfs.0.constprop.2
	movl	4(%r12), %r15d
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%eax, %ebx
	leal	(%r14,%r15), %edi
	call	dfs.0.constprop.2
	leal	0(%r13,%r15), %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	dfs.0.constprop.2
	leal	0(%rbp,%r15), %edx
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%r14d, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0.constprop.2
	movl	12(%rsp), %r13d
	movl	%eax, %r8d
	movl	8(%rsp), %eax
	addl	$10, %r13d
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L30:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L36:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebp, %edx
	testl	%edx, %edx
	je	.L30
	subl	40(%r10), %r14d
	movl	%esi, %r8d
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebp
	movl	%ebp, %ecx
	addl	%edx, %eax
	negl	%ecx
	movl	%ebp, %edx
	cmovns	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE57:
	.size	dfs.0.constprop.1, .-dfs.0.constprop.1
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movq	%rdi, %rdx
	movl	%esi, %ecx
	cmpl	$1, %esi
	jle	.L37
	leal	-1(%rsi), %edi
	leal	-2(%rsi), %esi
	cmpl	$2, %esi
	jbe	.L43
	movl	%edi, %esi
	movd	%eax, %xmm4
	leaq	4(%rdx), %rax
	shrl	$2, %esi
	pshufd	$0, %xmm4, %xmm0
	subl	$1, %esi
	salq	$4, %rsi
	leaq	20(%rdx,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L40:
	movdqu	(%rax), %xmm1
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm3, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L40
	movdqa	%xmm0, %xmm2
	movl	%edi, %r8d
	psrldq	$8, %xmm2
	andl	$-4, %r8d
	movdqa	%xmm2, %xmm1
	leal	1(%r8), %esi
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%r8d, %edi
	je	.L45
.L39:
	movslq	%esi, %rdi
	leaq	0(,%rdi,4), %r8
	movl	(%rdx,%rdi,4), %edi
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L37
	movl	4(%rdx,%r8), %edi
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	addl	$2, %esi
	cmpl	%esi, %ecx
	jle	.L37
	movl	8(%rdx,%r8), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L37:
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	ret
.L43:
	movl	$1, %esi
	jmp	.L39
	.cfi_endproc
.LFE51:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rcx
	leaq	40(%rsp), %rdx
	movq	%rsp, %r12
	leaq	128(%rsp), %rax
	leaq	44(%rsp), %rsi
	movq	%rax, 48(%rsp)
	leaq	32(%rsp), %r8
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L47
	movq	%r12, %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L48
.L47:
	movl	$100000000, %edx
	testl	%eax, %eax
	je	.L49
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	movq	%r12, %r10
	call	dfs.0.constprop.1
	movl	(%rsp), %r15d
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%r12, %r10
	movl	%eax, %r14d
	movl	%r15d, %edi
	call	dfs.0.constprop.1
	xorl	%edx, %edx
	xorl	%edi, %edi
	movq	%r12, %r10
	movl	%r15d, %esi
	movl	%eax, %ebx
	call	dfs.0.constprop.1
	movl	%r15d, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	movl	%eax, %ebp
	movq	%r12, %r10
	call	dfs.0.constprop.1
	addl	$10, %ebp
	leal	10(%rbx), %edx
	cmpl	%ebp, %edx
	cmovg	%ebp, %edx
	cmpl	%r14d, %edx
	cmovg	%r14d, %edx
	addl	$10, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L49:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L56
	addq	$72, %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
.L56:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.type	dfs.0, @function
dfs.0:
.LFB53:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r10, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%ebx, 44(%r10)
	je	.L8
	leal	1(%rbx), %r14d
	movl	%r14d, %edi
	call	dfs.0
	movl	0(%rbp,%rbx,4), %ebx
	movl	%r14d, %edi
	movq	%rbp, %r10
	movl	%r15d, %ecx
	movl	%r13d, %edx
	movl	%eax, 12(%rsp)
	leal	(%rbx,%r12), %esi
	call	dfs.0
	movl	%r14d, %edi
	leal	(%rbx,%r13), %edx
	movq	%rbp, %r10
	movl	%r15d, %ecx
	movl	%r12d, %esi
	movl	%eax, 4(%rsp)
	call	dfs.0
	movl	%r13d, %edx
	movl	%r14d, %edi
	leal	(%rbx,%r15), %ecx
	movq	%rbp, %r10
	movl	%r12d, %esi
	movl	%eax, 8(%rsp)
	call	dfs.0
	movl	8(%rsp), %r14d
	movl	12(%rsp), %r8d
	movl	%eax, %r9d
	movl	4(%rsp), %eax
	addl	$10, %r14d
	leal	10(%r9), %edx
	addl	$10, %eax
	cmpl	%r14d, %eax
	cmovg	%r14d, %eax
	cmpl	%r8d, %eax
	cmovg	%r8d, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	movl	%esi, %edx
	movl	$100000000, %eax
	imull	%r13d, %edx
	imull	%ecx, %edx
	testl	%edx, %edx
	je	.L1
	subl	40(%r10), %r12d
	movl	%r12d, %eax
	negl	%eax
	cmovs	%r12d, %eax
	subl	36(%r10), %r13d
	movl	%r13d, %edx
	negl	%edx
	cmovs	%r13d, %edx
	subl	32(%r10), %ecx
	addl	%edx, %eax
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE53:
	.size	dfs.0, .-dfs.0
	.p2align 4
	.type	dfs.0.constprop.4, @function
dfs.0.constprop.4:
.LFB54:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %r11d
	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
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r10, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$4, 44(%r10)
	je	.L15
	movl	%edx, %ecx
	movl	%esi, %edx
	movl	%edi, %esi
	movl	$5, %edi
	call	dfs.0
	movl	16(%rbp), %r15d
	movq	%rbp, %r10
	movl	%ebx, %ecx
	movl	%r11d, %edx
	movl	$5, %edi
	movl	%eax, %r14d
	leal	(%r12,%r15), %esi
	call	dfs.0
	leal	(%r11,%r15), %edx
	movq	%rbp, %r10
	movl	%ebx, %ecx
	movl	%r12d, %esi
	movl	$5, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0
	movl	%r11d, %edx
	leal	(%rbx,%r15), %ecx
	movq	%rbp, %r10
	movl	%r12d, %esi
	movl	$5, %edi
	movl	%eax, %r13d
	call	dfs.0
	addl	$10, %r13d
	movl	%eax, %r8d
	movl	12(%rsp), %eax
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%r14d, %eax
	cmovg	%r14d, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L9:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebx, %edx
	testl	%edx, %edx
	je	.L9
	subl	40(%r10), %r12d
	movl	%esi, %r8d
	movl	%r12d, %eax
	negl	%eax
	cmovs	%r12d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebx
	addl	%edx, %eax
	movl	%ebx, %edx
	negl	%edx
	cmovs	%ebx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE54:
	.size	dfs.0.constprop.4, .-dfs.0.constprop.4
	.p2align 4
	.type	dfs.0.constprop.3, @function
dfs.0.constprop.3:
.LFB55:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r10, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$3, 44(%r10)
	je	.L22
	call	dfs.0.constprop.4
	movl	12(%r12), %r15d
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%eax, %ebx
	leal	(%r14,%r15), %edi
	call	dfs.0.constprop.4
	leal	0(%r13,%r15), %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	dfs.0.constprop.4
	leal	0(%rbp,%r15), %edx
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%r14d, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0.constprop.4
	movl	12(%rsp), %r13d
	movl	%eax, %r8d
	movl	8(%rsp), %eax
	addl	$10, %r13d
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L16:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L22:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebp, %edx
	testl	%edx, %edx
	je	.L16
	subl	40(%r10), %r14d
	movl	%esi, %r8d
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebp
	movl	%ebp, %ecx
	addl	%edx, %eax
	negl	%ecx
	movl	%ebp, %edx
	cmovns	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE55:
	.size	dfs.0.constprop.3, .-dfs.0.constprop.3
	.p2align 4
	.type	dfs.0.constprop.2, @function
dfs.0.constprop.2:
.LFB56:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r10, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$2, 44(%r10)
	je	.L29
	call	dfs.0.constprop.3
	movl	8(%r12), %r15d
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%eax, %ebx
	leal	(%r14,%r15), %edi
	call	dfs.0.constprop.3
	leal	0(%r13,%r15), %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	dfs.0.constprop.3
	leal	0(%rbp,%r15), %edx
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%r14d, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0.constprop.3
	movl	12(%rsp), %r13d
	movl	%eax, %r8d
	movl	8(%rsp), %eax
	addl	$10, %r13d
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L23:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L29:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebp, %edx
	testl	%edx, %edx
	je	.L23
	subl	40(%r10), %r14d
	movl	%esi, %r8d
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebp
	movl	%ebp, %ecx
	addl	%edx, %eax
	negl	%ecx
	movl	%ebp, %edx
	cmovns	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE56:
	.size	dfs.0.constprop.2, .-dfs.0.constprop.2
	.p2align 4
	.type	dfs.0.constprop.1, @function
dfs.0.constprop.1:
.LFB57:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r10, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$1, 44(%r10)
	je	.L36
	call	dfs.0.constprop.2
	movl	4(%r12), %r15d
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%eax, %ebx
	leal	(%r14,%r15), %edi
	call	dfs.0.constprop.2
	leal	0(%r13,%r15), %esi
	movq	%r12, %r10
	movl	%ebp, %edx
	movl	%r14d, %edi
	movl	%eax, 8(%rsp)
	call	dfs.0.constprop.2
	leal	0(%rbp,%r15), %edx
	movl	%r13d, %esi
	movq	%r12, %r10
	movl	%r14d, %edi
	movl	%eax, 12(%rsp)
	call	dfs.0.constprop.2
	movl	12(%rsp), %r13d
	movl	%eax, %r8d
	movl	8(%rsp), %eax
	addl	$10, %r13d
	leal	10(%r8), %edx
	addl	$10, %eax
	cmpl	%r13d, %eax
	cmovg	%r13d, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L30:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L36:
	.cfi_restore_state
	movl	%edi, %edx
	movl	$100000000, %eax
	imull	%esi, %edx
	imull	%ebp, %edx
	testl	%edx, %edx
	je	.L30
	subl	40(%r10), %r14d
	movl	%esi, %r8d
	movl	%r14d, %eax
	negl	%eax
	cmovs	%r14d, %eax
	subl	36(%r10), %r8d
	movl	%r8d, %edx
	negl	%edx
	cmovs	%r8d, %edx
	subl	32(%r10), %ebp
	movl	%ebp, %ecx
	addl	%edx, %eax
	negl	%ecx
	movl	%ebp, %edx
	cmovns	%ecx, %edx
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	leal	-30(%rax,%rdx), %eax
	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
	.cfi_endproc
.LFE57:
	.size	dfs.0.constprop.1, .-dfs.0.constprop.1
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movq	%rdi, %rdx
	movl	%esi, %ecx
	cmpl	$1, %esi
	jle	.L37
	leal	-1(%rsi), %edi
	leal	-2(%rsi), %esi
	cmpl	$2, %esi
	jbe	.L43
	movl	%edi, %esi
	movd	%eax, %xmm4
	leaq	4(%rdx), %rax
	shrl	$2, %esi
	pshufd	$0, %xmm4, %xmm0
	subl	$1, %esi
	salq	$4, %rsi
	leaq	20(%rdx,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L40:
	movdqu	(%rax), %xmm1
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm3, %xmm1
	por	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L40
	movdqa	%xmm0, %xmm2
	movl	%edi, %r8d
	psrldq	$8, %xmm2
	andl	$-4, %r8d
	movdqa	%xmm2, %xmm1
	leal	1(%r8), %esi
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%r8d, %edi
	je	.L45
.L39:
	movslq	%esi, %rdi
	leaq	0(,%rdi,4), %r8
	movl	(%rdx,%rdi,4), %edi
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L37
	movl	4(%rdx,%r8), %edi
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	addl	$2, %esi
	cmpl	%esi, %ecx
	jle	.L37
	movl	8(%rdx,%r8), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L37:
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	ret
.L43:
	movl	$1, %esi
	jmp	.L39
	.cfi_endproc
.LFE51:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rcx
	leaq	40(%rsp), %rdx
	movq	%rsp, %r12
	leaq	128(%rsp), %rax
	leaq	44(%rsp), %rsi
	movq	%rax, 48(%rsp)
	leaq	32(%rsp), %r8
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jle	.L47
	movq	%r12, %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L48
.L47:
	movl	$100000000, %edx
	testl	%eax, %eax
	je	.L49
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	movq	%r12, %r10
	call	dfs.0.constprop.1
	movl	(%rsp), %r15d
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%r12, %r10
	movl	%eax, %r14d
	movl	%r15d, %edi
	call	dfs.0.constprop.1
	xorl	%edx, %edx
	xorl	%edi, %edi
	movq	%r12, %r10
	movl	%r15d, %esi
	movl	%eax, %ebx
	call	dfs.0.constprop.1
	movl	%r15d, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	movl	%eax, %ebp
	movq	%r12, %r10
	call	dfs.0.constprop.1
	addl	$10, %ebp
	leal	10(%rbx), %edx
	cmpl	%ebp, %edx
	cmovg	%ebp, %edx
	cmpl	%r14d, %edx
	cmovg	%r14d, %edx
	addl	$10, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L49:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L56
	addq	$72, %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
.L56:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:

#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int min(int* array, int n) {
	int i;
	int min = array[0];
	for (i = 1; i < n; i++) if (min > array[i]) min = array[i];
	return min;
}

int main() {
	int n, a, b, c, l[8], i;
	scanf("%d%d%d%d", &n, &a, &b, &c);
	for (i = 0; i < n; i++) scanf("%d", &l[i]);
	
	//cur 次に追加する要素のインデックス
	int dfs(int cur, int x, int y, int z){
		int ret[4];
		if (cur == n) {
			return (x * y * z == 0) ? 100000000 : abs(x - a) + abs(y - b) + abs(z - c) - 30;
		}
		ret[0] = dfs(cur + 1, x, y, z);
		ret[1] = dfs(cur + 1, x + l[cur], y, z) + 10;
		ret[2] = dfs(cur + 1, x, y + l[cur], z) + 10;
		ret[3] = dfs(cur + 1, x, y, z + l[cur]) + 10;
		return min(ret, 4);
	}

	printf("%d", dfs(0, 0, 0, 0));
}


8 1100 800 100
300
333
400
444
500
555
600
666
 5 100 171 80
98
40
30
21
80
 8 100 90 80
100
100
90
90
90
80
80
20
 8 1100 800 100
297
333
400
444
500
555
600
666
 5 100 171 80
68
40
30
21
80
 8 100 90 110
100
100
90
90
90
80
80
20
 8 1100 800 100
297
333
400
444
336
555
600
666
 5 100 171 80
68
40
42
21
80
 8 100 90 110
100
100
90
104
90
80
80
20
 5 100 171 80
80
40
42
21
80

243 102 0 240 132 10 271 120 6 108
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>
#include<string.h>
#include<stdlib.h>

int min(int* array, int n) {
	int i;
	int min = array[0];
	for (i = 1; i < n; i++) if (min > array[i]) min = array[i];
	return min;
}

int main() {
	int n, a, b, c, l[8], i;
	scanf("%d%d%d%d", &n, &a, &b, &c);
	for (i = 0; i < n; i++) scanf("%d", &l[i]);
	
	//cur 次に追加する要素のインデックス
	int dfs(int cur, int x, int y, int z){
		int ret[4];
		if (cur == n) {
			return (x * y * z == 0) ? 100000000 : abs(x - a) + abs(y - b) + abs(z - c) - 30;
		}
		ret[0] = dfs(cur + 1, x, y, z);
		ret[1] = dfs(cur + 1, x + l[cur], y, z) + 10;
		ret[2] = dfs(cur + 1, x, y + l[cur], z) + 10;
		ret[3] = dfs(cur + 1, x, y, z + l[cur]) + 10;
		return min(ret, 4);
	}

	printf("%d", dfs(0, 0, 0, 0));
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L3
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L4
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.type	dfs.0, @function
dfs.0:
.LFB8:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	%edx, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movq	%r10, %rbx
	movq	%r10, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	44(%rbx), %eax
	cmpl	%eax, -52(%rbp)
	jne	.L7
	movl	-56(%rbp), %eax
	imull	-60(%rbp), %eax
	imull	-64(%rbp), %eax
	testl	%eax, %eax
	je	.L8
	movl	40(%rbx), %edx
	movl	-56(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	36(%rbx), %edx
	movl	-60(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	32(%rbx), %edx
	movl	-64(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	subl	$30, %eax
	jmp	.L11
.L8:
	movl	$100000000, %eax
	jmp	.L11
.L7:
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %ecx
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%eax, %esi
	call	dfs.0
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-56(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	movq	%rbx, %r10
	movl	%edx, %ecx
	movl	%eax, %edx
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -44(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-60(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%edx, %ecx
	movl	%esi, %edx
	movl	%eax, %esi
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -40(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-64(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%eax, %esi
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rax
	movl	$4, %esi
	movq	%rax, %rdi
	call	min
.L11:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dfs.0, .-dfs.0
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	leaq	-64(%rbp), %rax
	leaq	32(%rax), %rsi
	leaq	-64(%rbp), %rax
	leaq	36(%rax), %rcx
	leaq	-64(%rbp), %rax
	leaq	40(%rax), %rdx
	leaq	-64(%rbp), %rax
	addq	$44, %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -68(%rbp)
	jmp	.L14
.L15:
	leaq	-64(%rbp), %rdx
	movl	-68(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -68(%rbp)
.L14:
	movl	-20(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L15
	leaq	-64(%rbp), %rax
	movq	%rax, %r10
	movl	$0, %ecx
	movl	$0, %edx
	movl	$0, %esi
	movl	$0, %edi
	call	dfs.0
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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.
train
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L3
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L4
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.type	dfs.0, @function
dfs.0:
.LFB8:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	%edx, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movq	%r10, %rbx
	movq	%r10, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	44(%rbx), %eax
	cmpl	%eax, -52(%rbp)
	jne	.L7
	movl	-56(%rbp), %eax
	imull	-60(%rbp), %eax
	imull	-64(%rbp), %eax
	testl	%eax, %eax
	je	.L8
	movl	40(%rbx), %edx
	movl	-56(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	36(%rbx), %edx
	movl	-60(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	32(%rbx), %edx
	movl	-64(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	subl	$30, %eax
	jmp	.L11
.L8:
	movl	$100000000, %eax
	jmp	.L11
.L7:
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %ecx
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%eax, %esi
	call	dfs.0
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-56(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	movq	%rbx, %r10
	movl	%edx, %ecx
	movl	%eax, %edx
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -44(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-60(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%edx, %ecx
	movl	%esi, %edx
	movl	%eax, %esi
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -40(%rbp)
	movl	-52(%rbp), %eax
	cltq
	movl	(%rbx,%rax,4), %edx
	movl	-64(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movq	%rbx, %r10
	movl	%eax, %esi
	call	dfs.0
	addl	$10, %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rax
	movl	$4, %esi
	movq	%rax, %rdi
	call	min
.L11:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dfs.0, .-dfs.0
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	leaq	-64(%rbp), %rax
	leaq	32(%rax), %rsi
	leaq	-64(%rbp), %rax
	leaq	36(%rax), %rcx
	leaq	-64(%rbp), %rax
	leaq	40(%rax), %rdx
	leaq	-64(%rbp), %rax
	addq	$44, %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -68(%rbp)
	jmp	.L14
.L15:
	leaq	-64(%rbp), %rdx
	movl	-68(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -68(%rbp)
.L14:
	movl	-20(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L15
	leaq	-64(%rbp), %rax
	movq	%rax, %r10
	movl	$0, %ecx
	movl	$0, %edx
	movl	$0, %esi
	movl	$0, %edi
	call	dfs.0
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
