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 <stdlib.h>
long long int min(long long int x, long long int y){return x<y?x:y;}
long long int max(long long int x, long long int y){return x<y?y:x;}
int main(void){
	long long h,w,i,ans=1e9,s_A,s_B,s_C,ans1,ans2,ans0,rans=1e9;
	scanf("%lld%lld",&h,&w);
	for(i=1;i<h;i++){
		s_A = w*i;
		s_B = (h-i)*(w/2);
		s_C = (h-i)*(w-w/2);
		ans1 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		s_B = (h-i)/2*w;
		s_C = (h-i-(h-i)/2)*w;
		ans2 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		ans0 = min(ans1,ans2);
		ans = min(ans,ans0);
	}
	int tmp = h;
	h = w;
	w = tmp;
	for(i=1;i<h;i++){
		s_A = w*i;
		s_B = (h-i)*(w/2);
		s_C = (h-i)*(w-w/2);
		ans1 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		s_B = (h-i)/2*w;
		s_C = (h-i-(h-i)/2)*w;
		ans2 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		ans0 = min(ans1,ans2);
		rans = min(rans,ans0);
	}
	ans = min(ans,rans);
	
	
	printf("%lld",ans);
	return 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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.globl	max
	.type	max, @function
max:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$1000000000, -88(%rbp)
	movq	$1000000000, -80(%rbp)
	leaq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -96(%rbp)
	jmp	.L6
.L7:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rdx
	movq	-88(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -88(%rbp)
	addq	$1, -96(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jl	.L7
	movq	-112(%rbp), %rax
	movl	%eax, -116(%rbp)
	movq	-104(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	-116(%rbp), %eax
	cltq
	movq	%rax, -104(%rbp)
	movq	$1, -96(%rbp)
	jmp	.L8
.L9:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -80(%rbp)
	addq	$1, -96(%rbp)
.L8:
	movq	-112(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jl	.L9
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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
	.globl	min
	.type	min, @function
min:
.LFB39:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB40:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.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	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r11
	movq	16(%rsp), %rdi
	cmpq	$1, %r11
	jle	.L5
	movq	%rdi, %rbp
	movq	%rdi, %r12
	leaq	-1(%r11), %rbx
	movq	%rdi, %rcx
	shrq	$63, %rbp
	movl	$1000000000, %edx
	addq	%rdi, %rbp
	sarq	%rbp
	subq	%rbp, %r12
	movq	%rbp, %r10
	movq	%r12, %r9
	imulq	%rbx, %r10
	imulq	%rbx, %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbx, %rax
	movq	%rbx, %r13
	movq	%rdi, %rsi
	movq	%r10, %r8
	sarq	%rax
	subq	%rax, %r13
	imulq	%rax, %rsi
	movq	%r10, %rax
	imulq	%rdi, %r13
	cmpq	%r10, %rcx
	cmovge	%rcx, %rax
	cmpq	%r9, %rax
	cmovl	%r9, %rax
	cmpq	%r10, %rcx
	cmovle	%rcx, %r8
	cmpq	%r9, %r8
	cmovg	%r9, %r8
	subq	%r8, %rax
	cmpq	%rsi, %rcx
	movq	%rsi, %r8
	cmovge	%rcx, %r8
	cmpq	%r13, %r8
	cmovl	%r13, %r8
	cmpq	%rsi, %rcx
	cmovle	%rcx, %rsi
	cmpq	%r13, %rsi
	cmovg	%r13, %rsi
	subq	%rsi, %r8
	cmpq	%r8, %rax
	cmovg	%r8, %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	subq	%rbp, %r10
	subq	%r12, %r9
	addq	%rdi, %rcx
	subq	$1, %rbx
	jne	.L6
.L7:
	movslq	%r11d, %r11
	movq	%rdi, 8(%rsp)
	movq	%r11, 16(%rsp)
	cmpq	$1, %rdi
	jle	.L11
	movq	%r11, %rbp
	movq	%r11, %r12
	subq	$1, %rdi
	movq	%r11, %rcx
	shrq	$63, %rbp
	movl	$1000000000, %ebx
	addq	%r11, %rbp
	sarq	%rbp
	subq	%rbp, %r12
	movq	%rbp, %r10
	movq	%r12, %r9
	imulq	%rdi, %r10
	imulq	%rdi, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rax
	movq	%rdi, %r13
	movq	%r11, %rsi
	movq	%r10, %r8
	sarq	%rax
	subq	%rax, %r13
	imulq	%rax, %rsi
	movq	%r10, %rax
	imulq	%r11, %r13
	cmpq	%r10, %rcx
	cmovge	%rcx, %rax
	cmpq	%r9, %rax
	cmovl	%r9, %rax
	cmpq	%r10, %rcx
	cmovle	%rcx, %r8
	cmpq	%r9, %r8
	cmovg	%r9, %r8
	subq	%r8, %rax
	cmpq	%rsi, %rcx
	movq	%rsi, %r8
	cmovge	%rcx, %r8
	cmpq	%r13, %r8
	cmovl	%r13, %r8
	cmpq	%rsi, %rcx
	cmovle	%rcx, %rsi
	cmpq	%r13, %rsi
	cmovg	%r13, %rsi
	subq	%rsi, %r8
	cmpq	%r8, %rax
	cmovg	%r8, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	subq	%rbp, %r10
	subq	%r12, %r9
	addq	%r11, %rcx
	subq	$1, %rdi
	jne	.L9
.L8:
	cmpq	%rbx, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	cmovg	%rbx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %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
.L5:
	.cfi_restore_state
	movl	$1000000000, %edx
	jmp	.L7
.L11:
	movl	$1000000000, %ebx
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.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
	.globl	min
	.type	min, @function
min:
.LFB39:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB40:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.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	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r11
	movq	16(%rsp), %rdi
	cmpq	$1, %r11
	jle	.L5
	movq	%rdi, %rbp
	movq	%rdi, %r12
	leaq	-1(%r11), %rbx
	movq	%rdi, %rcx
	shrq	$63, %rbp
	movl	$1000000000, %edx
	addq	%rdi, %rbp
	sarq	%rbp
	subq	%rbp, %r12
	movq	%rbp, %r10
	movq	%r12, %r9
	imulq	%rbx, %r10
	imulq	%rbx, %r9
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbx, %rax
	movq	%rbx, %r13
	movq	%rdi, %rsi
	movq	%r10, %r8
	sarq	%rax
	subq	%rax, %r13
	imulq	%rax, %rsi
	movq	%r10, %rax
	imulq	%rdi, %r13
	cmpq	%r10, %rcx
	cmovge	%rcx, %rax
	cmpq	%r9, %rax
	cmovl	%r9, %rax
	cmpq	%r10, %rcx
	cmovle	%rcx, %r8
	cmpq	%r9, %r8
	cmovg	%r9, %r8
	subq	%r8, %rax
	cmpq	%rsi, %rcx
	movq	%rsi, %r8
	cmovge	%rcx, %r8
	cmpq	%r13, %r8
	cmovl	%r13, %r8
	cmpq	%rsi, %rcx
	cmovle	%rcx, %rsi
	cmpq	%r13, %rsi
	cmovg	%r13, %rsi
	subq	%rsi, %r8
	cmpq	%r8, %rax
	cmovg	%r8, %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	subq	%rbp, %r10
	subq	%r12, %r9
	addq	%rdi, %rcx
	subq	$1, %rbx
	jne	.L6
.L7:
	movslq	%r11d, %r11
	movq	%rdi, 8(%rsp)
	movq	%r11, 16(%rsp)
	cmpq	$1, %rdi
	jle	.L11
	movq	%r11, %rbp
	movq	%r11, %r12
	subq	$1, %rdi
	movq	%r11, %rcx
	shrq	$63, %rbp
	movl	$1000000000, %ebx
	addq	%r11, %rbp
	sarq	%rbp
	subq	%rbp, %r12
	movq	%rbp, %r10
	movq	%r12, %r9
	imulq	%rdi, %r10
	imulq	%rdi, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rax
	movq	%rdi, %r13
	movq	%r11, %rsi
	movq	%r10, %r8
	sarq	%rax
	subq	%rax, %r13
	imulq	%rax, %rsi
	movq	%r10, %rax
	imulq	%r11, %r13
	cmpq	%r10, %rcx
	cmovge	%rcx, %rax
	cmpq	%r9, %rax
	cmovl	%r9, %rax
	cmpq	%r10, %rcx
	cmovle	%rcx, %r8
	cmpq	%r9, %r8
	cmovg	%r9, %r8
	subq	%r8, %rax
	cmpq	%rsi, %rcx
	movq	%rsi, %r8
	cmovge	%rcx, %r8
	cmpq	%r13, %r8
	cmovl	%r13, %r8
	cmpq	%rsi, %rcx
	cmovle	%rcx, %rsi
	cmpq	%r13, %rsi
	cmovg	%r13, %rsi
	subq	%rsi, %r8
	cmpq	%r8, %rax
	cmovg	%r8, %rax
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	subq	%rbp, %r10
	subq	%r12, %r9
	addq	%r11, %rcx
	subq	$1, %rdi
	jne	.L9
.L8:
	cmpq	%rbx, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	cmovg	%rbx, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %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
.L5:
	.cfi_restore_state
	movl	$1000000000, %edx
	jmp	.L7
.L11:
	movl	$1000000000, %ebx
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.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 <stdlib.h>
long long int min(long long int x, long long int y){return x<y?x:y;}
long long int max(long long int x, long long int y){return x<y?y:x;}
int main(void){
	long long h,w,i,ans=1e9,s_A,s_B,s_C,ans1,ans2,ans0,rans=1e9;
	scanf("%lld%lld",&h,&w);
	for(i=1;i<h;i++){
		s_A = w*i;
		s_B = (h-i)*(w/2);
		s_C = (h-i)*(w-w/2);
		ans1 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		s_B = (h-i)/2*w;
		s_C = (h-i-(h-i)/2)*w;
		ans2 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		ans0 = min(ans1,ans2);
		ans = min(ans,ans0);
	}
	int tmp = h;
	h = w;
	w = tmp;
	for(i=1;i<h;i++){
		s_A = w*i;
		s_B = (h-i)*(w/2);
		s_C = (h-i)*(w-w/2);
		ans1 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		s_B = (h-i)/2*w;
		s_C = (h-i-(h-i)/2)*w;
		ans2 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		ans0 = min(ans1,ans2);
		rans = min(rans,ans0);
	}
	ans = min(ans,rans);
	
	
	printf("%lld",ans);
	return 0;
}
100100 100000
 000000 2
 5 1
 100100 110000
 100111 100001
 100111 000101
 000011 001100
 000010 011000
 010010 011110
 011000 110111

50000 0 1 50050 83371 101 11 5 5005 5500
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 <stdlib.h>
long long int min(long long int x, long long int y){return x<y?x:y;}
long long int max(long long int x, long long int y){return x<y?y:x;}
int main(void){
	long long h,w,i,ans=1e9,s_A,s_B,s_C,ans1,ans2,ans0,rans=1e9;
	scanf("%lld%lld",&h,&w);
	for(i=1;i<h;i++){
		s_A = w*i;
		s_B = (h-i)*(w/2);
		s_C = (h-i)*(w-w/2);
		ans1 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		s_B = (h-i)/2*w;
		s_C = (h-i-(h-i)/2)*w;
		ans2 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		ans0 = min(ans1,ans2);
		ans = min(ans,ans0);
	}
	int tmp = h;
	h = w;
	w = tmp;
	for(i=1;i<h;i++){
		s_A = w*i;
		s_B = (h-i)*(w/2);
		s_C = (h-i)*(w-w/2);
		ans1 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		s_B = (h-i)/2*w;
		s_C = (h-i-(h-i)/2)*w;
		ans2 = max(max(s_A,s_B),s_C)-min(min(s_A,s_B),s_C);
		ans0 = min(ans1,ans2);
		rans = min(rans,ans0);
	}
	ans = min(ans,rans);
	
	
	printf("%lld",ans);
	return 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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.globl	max
	.type	max, @function
max:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$1000000000, -88(%rbp)
	movq	$1000000000, -80(%rbp)
	leaq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -96(%rbp)
	jmp	.L6
.L7:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rdx
	movq	-88(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -88(%rbp)
	addq	$1, -96(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jl	.L7
	movq	-112(%rbp), %rax
	movl	%eax, -116(%rbp)
	movq	-104(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	-116(%rbp), %eax
	cltq
	movq	%rax, -104(%rbp)
	movq	$1, -96(%rbp)
	jmp	.L8
.L9:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -80(%rbp)
	addq	$1, -96(%rbp)
.L8:
	movq	-112(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jl	.L9
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.globl	max
	.type	max, @function
max:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$1000000000, -88(%rbp)
	movq	$1000000000, -80(%rbp)
	leaq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -96(%rbp)
	jmp	.L6
.L7:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rdx
	movq	-88(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -88(%rbp)
	addq	$1, -96(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jl	.L7
	movq	-112(%rbp), %rax
	movl	%eax, -116(%rbp)
	movq	-104(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	-116(%rbp), %eax
	cltq
	movq	%rax, -104(%rbp)
	movq	$1, -96(%rbp)
	jmp	.L8
.L9:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	movq	%rax, %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	negq	%rax
	addq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	max
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	min
	movq	%rax, %rdx
	movq	%rbx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -80(%rbp)
	addq	$1, -96(%rbp)
.L8:
	movq	-112(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jl	.L9
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
