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

```c
#include <stdio.h>

int fee(int x, int y, int b, int p)
{
	int A, B;
	
	if (b >= 5 && p >= 2){
		return ((x * b + y * p) * 0.8);
	}
	
	else {
		A = x * b + y * p;
		
		if (b < 5){
			b = 5;
		}
		if (p < 2){
			p = 2;
		}
		
		B = (x * b + y * p) * 0.8;
		
		if (A < B){
			return (A);
		}
		else {
			return (B);
		}
	}
}

int main(void)
{
	int N, i, x, y, b, p;
	
	scanf("%d", &N);
	
	for (i = 0; i < N; i++){
		scanf("%d %d %d %d", &x, &y, &b, &p);
		
		printf("%d\n", fee(x, y, b, p));
	}
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fee
	.type	fee, @function
fee:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	%ecx, %r8d
	movl	%edx, %esi
	imull	%edi, %esi
	imull	%eax, %r8d
	addl	%r8d, %esi
	cmpl	$4, %edx
	jle	.L2
	cmpl	$1, %ecx
	jle	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%esi, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$5, %r8d
	pxor	%xmm0, %xmm0
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
	imull	%edi, %edx
	movl	$2, %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	imull	%eax, %ecx
	addl	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	fee, .-fee
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	imull	%eax, %r8d
	pxor	%xmm0, %xmm0
	imull	%ecx, %edi
	addl	%edi, %r8d
	cvtsi2sdl	%r8d, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
.L24:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jle	.L12
.L15:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %r8d
	cmpl	$4, %eax
	jle	.L13
	cmpl	$1, %ecx
	jg	.L25
.L13:
	movl	$5, %edx
	movl	$2, %esi
	pxor	%xmm0, %xmm0
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	imull	%r8d, %edx
	cmpl	%esi, %ecx
	cmovge	%ecx, %esi
	imull	%r8d, %eax
	imull	%edi, %ecx
	imull	%edi, %esi
	addl	%ecx, %eax
	addl	%esi, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072273817
	.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
	.p2align 4
	.globl	fee
	.type	fee, @function
fee:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	%ecx, %r8d
	movl	%edx, %esi
	imull	%edi, %esi
	imull	%eax, %r8d
	addl	%r8d, %esi
	cmpl	$4, %edx
	jle	.L2
	cmpl	$1, %ecx
	jle	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%esi, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$5, %r8d
	pxor	%xmm0, %xmm0
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
	imull	%edi, %edx
	movl	$2, %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	imull	%eax, %ecx
	addl	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	fee, .-fee
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	imull	%eax, %r8d
	pxor	%xmm0, %xmm0
	imull	%ecx, %edi
	addl	%edi, %r8d
	cvtsi2sdl	%r8d, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
.L24:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jle	.L12
.L15:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %r8d
	cmpl	$4, %eax
	jle	.L13
	cmpl	$1, %ecx
	jg	.L25
.L13:
	movl	$5, %edx
	movl	$2, %esi
	pxor	%xmm0, %xmm0
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	imull	%r8d, %edx
	cmpl	%esi, %ecx
	cmovge	%ecx, %esi
	imull	%r8d, %eax
	imull	%edi, %ecx
	imull	%edi, %esi
	addl	%ecx, %eax
	addl	%esi, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072273817
	.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
	.p2align 4
	.globl	fee
	.type	fee, @function
fee:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	%ecx, %r8d
	movl	%edx, %esi
	imull	%edi, %esi
	imull	%eax, %r8d
	addl	%r8d, %esi
	cmpl	$4, %edx
	jle	.L2
	cmpl	$1, %ecx
	jle	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%esi, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$5, %r8d
	pxor	%xmm0, %xmm0
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
	imull	%edi, %edx
	movl	$2, %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	imull	%eax, %ecx
	addl	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	fee, .-fee
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	imull	%eax, %r8d
	pxor	%xmm0, %xmm0
	imull	%ecx, %edi
	addl	%edi, %r8d
	cvtsi2sdl	%r8d, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
.L24:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jle	.L12
.L15:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %r8d
	cmpl	$4, %eax
	jle	.L13
	cmpl	$1, %ecx
	jg	.L25
.L13:
	movl	$5, %edx
	movl	$2, %esi
	pxor	%xmm0, %xmm0
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	imull	%r8d, %edx
	cmpl	%esi, %ecx
	cmovge	%ecx, %esi
	imull	%r8d, %eax
	imull	%edi, %ecx
	imull	%edi, %esi
	addl	%ecx, %eax
	addl	%esi, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072273817
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include <stdio.h>

int fee(int x, int y, int b, int p)
{
	int A, B;
	
	if (b >= 5 && p >= 2){
		return ((x * b + y * p) * 0.8);
	}
	
	else {
		A = x * b + y * p;
		
		if (b < 5){
			b = 5;
		}
		if (p < 2){
			p = 2;
		}
		
		B = (x * b + y * p) * 0.8;
		
		if (A < B){
			return (A);
		}
		else {
			return (B);
		}
	}
}

int main(void)
{
	int N, i, x, y, b, p;
	
	scanf("%d", &N);
	
	for (i = 0; i < N; i++){
		scanf("%d %d %d %d", &x, &y, &b, &p);
		
		printf("%d\n", fee(x, y, b, p));
	}
	
	return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int fee(int x, int y, int b, int p)
{
	int A, B;
	
	if (b >= 5 && p >= 2){
		return ((x * b + y * p) * 0.8);
	}
	
	else {
		A = x * b + y * p;
		
		if (b < 5){
			b = 5;
		}
		if (p < 2){
			p = 2;
		}
		
		B = (x * b + y * p) * 0.8;
		
		if (A < B){
			return (A);
		}
		else {
			return (B);
		}
	}
}

int main(void)
{
	int N, i, x, y, b, p;
	
	scanf("%d", &N);
	
	for (i = 0; i < N; i++){
		scanf("%d %d %d %d", &x, &y, &b, &p);
		
		printf("%d\n", fee(x, y, b, p));
	}
	
	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:

2
100 000 1 1
1000 500 5 2
 2
100 000 1 1
1010 500 5 2
 2
110 000 1 1
1010 500 5 2
 2
110 000 1 2
1010 500 10 2
 2
110 000 1 2
1010 500 17 2
 2
110 000 2 4
1010 500 17 2
 2
110 000 2 4
0010 500 17 2
 2
110 000 4 8
0010 500 17 2
 2
110 000 4 8
0010 500 33 2
 2
110 100 4 16
0010 500 33 2

100
4800
 100
4840
 110
4840
 110
8880
 110
14536
 220
14536
 220
936
 440
936
 440
1064
 1720
1064

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

```c
#include <stdio.h>

int fee(int x, int y, int b, int p)
{
	int A, B;
	
	if (b >= 5 && p >= 2){
		return ((x * b + y * p) * 0.8);
	}
	
	else {
		A = x * b + y * p;
		
		if (b < 5){
			b = 5;
		}
		if (p < 2){
			p = 2;
		}
		
		B = (x * b + y * p) * 0.8;
		
		if (A < B){
			return (A);
		}
		else {
			return (B);
		}
	}
}

int main(void)
{
	int N, i, x, y, b, p;
	
	scanf("%d", &N);
	
	for (i = 0; i < N; i++){
		scanf("%d %d %d %d", &x, &y, &b, &p);
		
		printf("%d\n", fee(x, y, b, p));
	}
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	fee
	.type	fee, @function
fee:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	%ecx, %r8d
	movl	%edx, %esi
	imull	%edi, %esi
	imull	%eax, %r8d
	addl	%r8d, %esi
	cmpl	$4, %edx
	jle	.L2
	cmpl	$1, %ecx
	jle	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%esi, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$5, %r8d
	pxor	%xmm0, %xmm0
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
	imull	%edi, %edx
	movl	$2, %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	imull	%eax, %ecx
	addl	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	fee, .-fee
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	imull	%eax, %r8d
	pxor	%xmm0, %xmm0
	imull	%ecx, %edi
	addl	%edi, %r8d
	cvtsi2sdl	%r8d, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
.L24:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jle	.L12
.L15:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %r8d
	cmpl	$4, %eax
	jle	.L13
	cmpl	$1, %ecx
	jg	.L25
.L13:
	movl	$5, %edx
	movl	$2, %esi
	pxor	%xmm0, %xmm0
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	imull	%r8d, %edx
	cmpl	%esi, %ecx
	cmovge	%ecx, %esi
	imull	%r8d, %eax
	imull	%edi, %ecx
	imull	%edi, %esi
	addl	%ecx, %eax
	addl	%esi, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072273817
	.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
	.p2align 4
	.globl	fee
	.type	fee, @function
fee:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	%ecx, %r8d
	movl	%edx, %esi
	imull	%edi, %esi
	imull	%eax, %r8d
	addl	%r8d, %esi
	cmpl	$4, %edx
	jle	.L2
	cmpl	$1, %ecx
	jle	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%esi, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$5, %r8d
	pxor	%xmm0, %xmm0
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
	imull	%edi, %edx
	movl	$2, %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	imull	%eax, %ecx
	addl	%ecx, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	fee, .-fee
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	imull	%eax, %r8d
	pxor	%xmm0, %xmm0
	imull	%ecx, %edi
	addl	%edi, %r8d
	cvtsi2sdl	%r8d, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
.L24:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jle	.L12
.L15:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%rbp, %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %r8d
	cmpl	$4, %eax
	jle	.L13
	cmpl	$1, %ecx
	jg	.L25
.L13:
	movl	$5, %edx
	movl	$2, %esi
	pxor	%xmm0, %xmm0
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	imull	%r8d, %edx
	cmpl	%esi, %ecx
	cmovge	%ecx, %esi
	imull	%r8d, %eax
	imull	%edi, %ecx
	imull	%edi, %esi
	addl	%ecx, %eax
	addl	%esi, %edx
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvttsd2sil	%xmm0, %edx
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072273817
	.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:
```