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

```c
#define R(x)if(r>x)r=x;
main(r,D,t,a,b,c,d,e,A,B,C){for(;scanf("%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf("%d\n",r)){
	if(C>=d)r=a*A+b*B+e*C;
	else{
		r=a*A+b*B+c*C;
		D=d,d-=C,t=B<d?B:d,B-=t,d-=t,t=A<d?A:d,A-=t,d-=t;
		R(a*A+b*B+e*D)
	}
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	jmp	.L2
.L5:
	movl	48(%rbp), %edx
	movl	16(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L3
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	24(%rbp), %edx
	movl	48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L4
.L3:
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-24(%rbp), %edx
	movl	48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	16(%rbp), %eax
	movl	48(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, 16(%rbp)
	movl	16(%rbp), %edx
	movl	40(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	40(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 40(%rbp)
	movl	16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 16(%rbp)
	movl	16(%rbp), %edx
	movl	32(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	32(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 32(%rbp)
	movl	16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 16(%rbp)
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	24(%rbp), %eax
	imull	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jle	.L4
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	24(%rbp), %eax
	imull	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	24(%rbp), %rdi
	leaq	-24(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-16(%rbp), %rax
	subq	$8, %rsp
	leaq	48(%rbp), %rsi
	pushq	%rsi
	leaq	40(%rbp), %rsi
	pushq	%rsi
	leaq	32(%rbp), %rsi
	pushq	%rsi
	movq	%rdi, %r9
	leaq	16(%rbp), %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$32, %rsp
	cmpl	$7, %eax
	jg	.L5
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	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
	leaq	.LC1(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%ecx, 44(%rsp)
	leaq	120(%rsp), %r14
	leaq	36(%rsp), %r13
	movl	%r8d, 40(%rsp)
	leaq	40(%rsp), %r12
	leaq	44(%rsp), %rbp
	leaq	144(%rsp), %rax
	movl	%r9d, 36(%rsp)
	movq	%rax, 16(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	128(%rsp), %rax
	movq	%rax, 24(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	imull	%r11d, %r8d
	addl	%r8d, %esi
.L4:
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movq	%r14, %r9
	movq	%r13, %rcx
	movq	%r12, %rdx
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	leaq	144(%rsp), %r8
	call	scanf@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	cmpl	$7, %eax
	jle	.L8
	movl	128(%rsp), %eax
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	136(%rsp), %edx
	movl	%eax, %esi
	movl	%r9d, %ecx
	movl	112(%rsp), %edi
	movl	120(%rsp), %r11d
	imull	%r10d, %esi
	movl	144(%rsp), %r8d
	imull	%edx, %ecx
	addl	%ecx, %esi
	cmpl	%edi, %r8d
	jge	.L9
	movl	36(%rsp), %ecx
	imull	%r8d, %ecx
	addl	%ecx, %esi
	movl	%edi, %ecx
	subl	%r8d, %ecx
	movl	%edx, %r8d
	cmpl	%edx, %ecx
	cmovle	%ecx, %r8d
	subl	%r8d, %ecx
	subl	%r8d, %edx
	movl	%eax, %r8d
	cmpl	%eax, %ecx
	movl	%edx, 136(%rsp)
	cmovle	%ecx, %r8d
	imull	%r9d, %edx
	imull	%r11d, %edi
	subl	%r8d, %eax
	subl	%r8d, %ecx
	movl	%eax, 128(%rsp)
	imull	%r10d, %eax
	movl	%ecx, 112(%rsp)
	addl	%edx, %eax
	addl	%edi, %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	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
	leaq	.LC1(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%ecx, 44(%rsp)
	leaq	120(%rsp), %r14
	leaq	36(%rsp), %r13
	movl	%r8d, 40(%rsp)
	leaq	40(%rsp), %r12
	leaq	44(%rsp), %rbp
	leaq	144(%rsp), %rax
	movl	%r9d, 36(%rsp)
	movq	%rax, 16(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	128(%rsp), %rax
	movq	%rax, 24(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	imull	%r11d, %r8d
	addl	%r8d, %esi
.L4:
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	.cfi_def_cfa_offset 120
	movq	%r14, %r9
	movq	%r13, %rcx
	movq	%r12, %rdx
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	leaq	144(%rsp), %r8
	call	scanf@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
	cmpl	$7, %eax
	jle	.L8
	movl	128(%rsp), %eax
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	136(%rsp), %edx
	movl	%eax, %esi
	movl	%r9d, %ecx
	movl	112(%rsp), %edi
	movl	120(%rsp), %r11d
	imull	%r10d, %esi
	movl	144(%rsp), %r8d
	imull	%edx, %ecx
	addl	%ecx, %esi
	cmpl	%edi, %r8d
	jge	.L9
	movl	36(%rsp), %ecx
	imull	%r8d, %ecx
	addl	%ecx, %esi
	movl	%edi, %ecx
	subl	%r8d, %ecx
	movl	%edx, %r8d
	cmpl	%edx, %ecx
	cmovle	%ecx, %r8d
	subl	%r8d, %ecx
	subl	%r8d, %edx
	movl	%eax, %r8d
	cmpl	%eax, %ecx
	movl	%edx, 136(%rsp)
	cmovle	%ecx, %r8d
	imull	%r9d, %edx
	imull	%r11d, %edi
	subl	%r8d, %eax
	subl	%r8d, %ecx
	movl	%eax, 128(%rsp)
	imull	%r10d, %eax
	movl	%ecx, 112(%rsp)
	addl	%edx, %eax
	addl	%edi, %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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:

#define R(x)if(r>x)r=x;
main(r,D,t,a,b,c,d,e,A,B,C){for(;scanf("%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf("%d\n",r)){
	if(C>=d)r=a*A+b*B+e*C;
	else{
		r=a*A+b*B+c*C;
		D=d,d-=C,t=B<d?B:d,B-=t,d-=t,t=A<d?A:d,A-=t,d-=t;
		R(a*A+b*B+e*D)
	}
}exit(0);}
70 100 340 4 200
1 1 4
70 100 340 4 200
0 1 3
70 100 340 6 200
1 1 2
0 0 0 0 0
 135 100 340 4 200
1 1 4
70 100 340 4 200
0 1 3
70 100 340 6 200
1 1 2
0 0 0 0 0
 135 100 340 4 200
1 1 4
70 100 351 5 200
0 1 3
70 100 340 6 288
1 1 2
0 0 0 0 0
 70 100 340 4 200
1 1 4
70 100 340 4 131
0 1 3
70 100 340 4 200
1 1 2
0 0 0 0 0
 135 100 340 4 200
1 1 4
70 100 351 5 200
0 1 3
70 100 340 6 343
1 1 3
0 0 0 0 0
 70 100 340 4 200
2 1 4
70 100 340 4 131
0 1 3
70 100 340 4 200
1 1 2
0 0 0 0 0
 70 100 340 4 200
1 1 4
70 100 340 2 200
0 0 3
70 100 340 6 200
1 1 2
0 0 0 0 0
 6 100 340 4 200
1 1 4
70 100 340 2 200
0 0 3
70 100 340 6 200
1 1 2
0 0 0 0 0
 135 100 496 4 200
1 1 4
20 100 351 5 200
0 1 3
15 100 340 6 288
1 1 2
0 0 0 0 0
 6 100 340 4 200
1 1 4
70 100 340 2 200
0 0 3
70 100 420 6 200
1 1 2
0 0 0 0 0

970
800
850
 1035
800
850
 1035
1000
850
 970
524
800
 1035
1000
1190
 1040
524
800
 970
600
850
 906
600
850
 1035
1000
795
 906
600
1010

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

```c
#define R(x)if(r>x)r=x;
main(r,D,t,a,b,c,d,e,A,B,C){for(;scanf("%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf("%d\n",r)){
	if(C>=d)r=a*A+b*B+e*C;
	else{
		r=a*A+b*B+c*C;
		D=d,d-=C,t=B<d?B:d,B-=t,d-=t,t=A<d?A:d,A-=t,d-=t;
		R(a*A+b*B+e*D)
	}
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	jmp	.L2
.L5:
	movl	48(%rbp), %edx
	movl	16(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L3
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	24(%rbp), %edx
	movl	48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L4
.L3:
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-24(%rbp), %edx
	movl	48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	16(%rbp), %eax
	movl	48(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, 16(%rbp)
	movl	16(%rbp), %edx
	movl	40(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	40(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 40(%rbp)
	movl	16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 16(%rbp)
	movl	16(%rbp), %edx
	movl	32(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	32(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 32(%rbp)
	movl	16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 16(%rbp)
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	24(%rbp), %eax
	imull	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jle	.L4
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	24(%rbp), %eax
	imull	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	24(%rbp), %rdi
	leaq	-24(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-16(%rbp), %rax
	subq	$8, %rsp
	leaq	48(%rbp), %rsi
	pushq	%rsi
	leaq	40(%rbp), %rsi
	pushq	%rsi
	leaq	32(%rbp), %rsi
	pushq	%rsi
	movq	%rdi, %r9
	leaq	16(%rbp), %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$32, %rsp
	cmpl	$7, %eax
	jg	.L5
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	jmp	.L2
.L5:
	movl	48(%rbp), %edx
	movl	16(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L3
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	24(%rbp), %edx
	movl	48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L4
.L3:
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-24(%rbp), %edx
	movl	48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	16(%rbp), %eax
	movl	48(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, 16(%rbp)
	movl	16(%rbp), %edx
	movl	40(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	40(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 40(%rbp)
	movl	16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 16(%rbp)
	movl	16(%rbp), %edx
	movl	32(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	32(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 32(%rbp)
	movl	16(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, 16(%rbp)
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	24(%rbp), %eax
	imull	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -4(%rbp)
	jle	.L4
	movl	-16(%rbp), %edx
	movl	32(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-20(%rbp), %edx
	movl	40(%rbp), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	24(%rbp), %eax
	imull	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	24(%rbp), %rdi
	leaq	-24(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-16(%rbp), %rax
	subq	$8, %rsp
	leaq	48(%rbp), %rsi
	pushq	%rsi
	leaq	40(%rbp), %rsi
	pushq	%rsi
	leaq	32(%rbp), %rsi
	pushq	%rsi
	movq	%rdi, %r9
	leaq	16(%rbp), %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$32, %rsp
	cmpl	$7, %eax
	jg	.L5
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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:
