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


int main(void)
{
	//変数の宣言
	long int h,w;
	int i,j,k;
	long int ans;
	long int max,min;
	
	//データの読み込み
	scanf("%ld %ld",&h,&w);
	
	
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	if(h%3==0||w%3==0){
		printf("0");
		return 0;
	}else if(h<w){
		ans=h;
	}else{
		ans=w;
	}
	
	for(i=1;i<h;i++){
		max=i*w;
		min=i*w;
		if((w/2)*(h-i)>max) max=(w/2)*(h-i);
		if((w/2)*(h-i)<min) min=(w/2)*(h-i);
		if(((w+1)/2)*(h-i)>max) max=((w+1)/2)*(h-i);
		if(((w+1)/2)*(h-i)<min) min=((w+1)/2)*(h-i);
		
		if(max-min<ans) ans=max-min;
	}
	
	for(i=1;i<w;i++){
		max=i*h;
		min=i*h;
		if((h/2)*(w-i)>max) max=(h/2)*(w-i);
		if((h/2)*(w-i)<min) min=(h/2)*(w-i);
		if(((h+1)/2)*(w-i)>max) max=((h+1)/2)*(w-i);
		if(((h+1)/2)*(w-i)<min) min=((h+1)/2)*(w-i);
		
		if(max-min<ans) ans=max-min;
	}
	
	
//	printf("計算部分終了\n");
	
	//出力
	printf("%ld",ans);
	
//	printf("結果の出力終了\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld %ld"
.LC1:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	je	.L2
	movq	-40(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	jne	.L3
.L2:
	movl	$48, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L21
.L3:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L5
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L6
.L5:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
.L6:
	movl	$1, -52(%rbp)
	jmp	.L7
.L13:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L8
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L8:
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L9
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L9:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L10
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L10:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L11
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L11:
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L12
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L12:
	addl	$1, -52(%rbp)
.L7:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L13
	movl	$1, -52(%rbp)
	jmp	.L14
.L20:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L15
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L15:
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L16
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L16:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L17
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L17:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L18
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L18:
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L19
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L14:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L20
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L21:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%ld %ld"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	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), %rdi
	movabsq	$-6148914691236517205, %rax
	movabsq	$3074457345618258602, %rsi
	movabsq	$6148914691236517204, %rcx
	movq	%rdi, %rdx
	imulq	%rax, %rdx
	addq	%rsi, %rdx
	cmpq	%rcx, %rdx
	jbe	.L2
	movq	16(%rsp), %r10
	imulq	%r10, %rax
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	jbe	.L2
	cmpq	%r10, %rdi
	movq	%r10, %r8
	cmovle	%rdi, %r8
	cmpq	$1, %rdi
	jle	.L5
	movq	%r10, %rax
	movl	$2, %ecx
	movl	%edi, %r12d
	cqto
	movq	%r10, %rsi
	movl	$1, %ebp
	idivq	%rcx
	movq	%rax, %rbx
	leaq	1(%r10), %rax
	cqto
	movq	%rbx, %r9
	idivq	%rcx
	leaq	-1(%rdi), %rcx
	imulq	%rcx, %r9
	imulq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	cmpq	%rsi, %r9
	movq	%rsi, %rdx
	movq	%rsi, %r11
	cmovge	%r9, %rdx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	cmpq	%rsi, %r9
	cmovle	%r9, %r11
	cmpq	%rcx, %r11
	cmovg	%rcx, %r11
	subq	%r11, %rdx
	cmpq	%rdx, %r8
	cmovg	%rdx, %r8
	addl	$1, %ebp
	subq	%rbx, %r9
	subq	%rax, %rcx
	addq	%r10, %rsi
	cmpl	%r12d, %ebp
	jne	.L6
.L5:
	cmpq	$1, %r10
	jle	.L7
	movq	%rdi, %rax
	movl	$2, %ecx
	movl	%r10d, %ebx
	movq	%rdi, %rsi
	cqto
	movl	$1, %ebp
	idivq	%rcx
	movq	%rax, %r11
	leaq	1(%rdi), %rax
	cqto
	movq	%r11, %r9
	idivq	%rcx
	leaq	-1(%r10), %rcx
	imulq	%rcx, %r9
	imulq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	cmpq	%rsi, %r9
	movq	%rsi, %rdx
	movq	%rsi, %r10
	cmovge	%r9, %rdx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	cmpq	%rsi, %r9
	cmovle	%r9, %r10
	cmpq	%rcx, %r10
	cmovg	%rcx, %r10
	subq	%r10, %rdx
	cmpq	%rdx, %r8
	cmovg	%rdx, %r8
	addl	$1, %ebp
	subq	%r11, %r9
	subq	%rax, %rcx
	addq	%rdi, %rsi
	cmpl	%ebx, %ebp
	jne	.L8
.L7:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%ld %ld"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	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), %rdi
	movabsq	$-6148914691236517205, %rax
	movabsq	$3074457345618258602, %rsi
	movabsq	$6148914691236517204, %rcx
	movq	%rdi, %rdx
	imulq	%rax, %rdx
	addq	%rsi, %rdx
	cmpq	%rcx, %rdx
	jbe	.L2
	movq	16(%rsp), %r10
	imulq	%r10, %rax
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	jbe	.L2
	cmpq	%r10, %rdi
	movq	%r10, %r8
	cmovle	%rdi, %r8
	cmpq	$1, %rdi
	jle	.L5
	movq	%r10, %rax
	movl	$2, %ecx
	movl	%edi, %r12d
	cqto
	movq	%r10, %rsi
	movl	$1, %ebp
	idivq	%rcx
	movq	%rax, %rbx
	leaq	1(%r10), %rax
	cqto
	movq	%rbx, %r9
	idivq	%rcx
	leaq	-1(%rdi), %rcx
	imulq	%rcx, %r9
	imulq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	cmpq	%rsi, %r9
	movq	%rsi, %rdx
	movq	%rsi, %r11
	cmovge	%r9, %rdx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	cmpq	%rsi, %r9
	cmovle	%r9, %r11
	cmpq	%rcx, %r11
	cmovg	%rcx, %r11
	subq	%r11, %rdx
	cmpq	%rdx, %r8
	cmovg	%rdx, %r8
	addl	$1, %ebp
	subq	%rbx, %r9
	subq	%rax, %rcx
	addq	%r10, %rsi
	cmpl	%r12d, %ebp
	jne	.L6
.L5:
	cmpq	$1, %r10
	jle	.L7
	movq	%rdi, %rax
	movl	$2, %ecx
	movl	%r10d, %ebx
	movq	%rdi, %rsi
	cqto
	movl	$1, %ebp
	idivq	%rcx
	movq	%rax, %r11
	leaq	1(%rdi), %rax
	cqto
	movq	%r11, %r9
	idivq	%rcx
	leaq	-1(%r10), %rcx
	imulq	%rcx, %r9
	imulq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	cmpq	%rsi, %r9
	movq	%rsi, %rdx
	movq	%rsi, %r10
	cmovge	%r9, %rdx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	cmpq	%rsi, %r9
	cmovle	%r9, %r10
	cmpq	%rcx, %r10
	cmovg	%rcx, %r10
	subq	%r10, %rdx
	cmpq	%rdx, %r8
	cmovg	%rdx, %r8
	addl	$1, %ebp
	subq	%r11, %r9
	subq	%rax, %rcx
	addq	%rdi, %rsi
	cmpl	%ebx, %ebp
	jne	.L8
.L7:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include <math.h>


int main(void)
{
	//変数の宣言
	long int h,w;
	int i,j,k;
	long int ans;
	long int max,min;
	
	//データの読み込み
	scanf("%ld %ld",&h,&w);
	
	
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	if(h%3==0||w%3==0){
		printf("0");
		return 0;
	}else if(h<w){
		ans=h;
	}else{
		ans=w;
	}
	
	for(i=1;i<h;i++){
		max=i*w;
		min=i*w;
		if((w/2)*(h-i)>max) max=(w/2)*(h-i);
		if((w/2)*(h-i)<min) min=(w/2)*(h-i);
		if(((w+1)/2)*(h-i)>max) max=((w+1)/2)*(h-i);
		if(((w+1)/2)*(h-i)<min) min=((w+1)/2)*(h-i);
		
		if(max-min<ans) ans=max-min;
	}
	
	for(i=1;i<w;i++){
		max=i*h;
		min=i*h;
		if((h/2)*(w-i)>max) max=(h/2)*(w-i);
		if((h/2)*(w-i)<min) min=(h/2)*(w-i);
		if(((h+1)/2)*(w-i)>max) max=((h+1)/2)*(w-i);
		if(((h+1)/2)*(w-i)<min) min=((h+1)/2)*(w-i);
		
		if(max-min<ans) ans=max-min;
	}
	
	
//	printf("計算部分終了\n");
	
	//出力
	printf("%ld",ans);
	
//	printf("結果の出力終了\n");
	
	return 0;
}
3 5

0
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>
#include <math.h>


int main(void)
{
	//変数の宣言
	long int h,w;
	int i,j,k;
	long int ans;
	long int max,min;
	
	//データの読み込み
	scanf("%ld %ld",&h,&w);
	
	
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	if(h%3==0||w%3==0){
		printf("0");
		return 0;
	}else if(h<w){
		ans=h;
	}else{
		ans=w;
	}
	
	for(i=1;i<h;i++){
		max=i*w;
		min=i*w;
		if((w/2)*(h-i)>max) max=(w/2)*(h-i);
		if((w/2)*(h-i)<min) min=(w/2)*(h-i);
		if(((w+1)/2)*(h-i)>max) max=((w+1)/2)*(h-i);
		if(((w+1)/2)*(h-i)<min) min=((w+1)/2)*(h-i);
		
		if(max-min<ans) ans=max-min;
	}
	
	for(i=1;i<w;i++){
		max=i*h;
		min=i*h;
		if((h/2)*(w-i)>max) max=(h/2)*(w-i);
		if((h/2)*(w-i)<min) min=(h/2)*(w-i);
		if(((h+1)/2)*(w-i)>max) max=((h+1)/2)*(w-i);
		if(((h+1)/2)*(w-i)<min) min=((h+1)/2)*(w-i);
		
		if(max-min<ans) ans=max-min;
	}
	
	
//	printf("計算部分終了\n");
	
	//出力
	printf("%ld",ans);
	
//	printf("結果の出力終了\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld %ld"
.LC1:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	je	.L2
	movq	-40(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	jne	.L3
.L2:
	movl	$48, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L21
.L3:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L5
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L6
.L5:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
.L6:
	movl	$1, -52(%rbp)
	jmp	.L7
.L13:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L8
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L8:
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L9
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L9:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L10
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L10:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L11
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L11:
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L12
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L12:
	addl	$1, -52(%rbp)
.L7:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L13
	movl	$1, -52(%rbp)
	jmp	.L14
.L20:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L15
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L15:
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L16
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L16:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L17
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L17:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L18
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L18:
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L19
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L14:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L20
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L21:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%ld %ld"
.LC1:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	je	.L2
	movq	-40(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	addq	%rdx, %rdx
	addq	%rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	jne	.L3
.L2:
	movl	$48, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L21
.L3:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L5
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L6
.L5:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
.L6:
	movl	$1, -52(%rbp)
	jmp	.L7
.L13:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L8
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L8:
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L9
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L9:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L10
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L10:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L11
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L11:
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L12
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L12:
	addl	$1, -52(%rbp)
.L7:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L13
	movl	$1, -52(%rbp)
	jmp	.L14
.L20:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L15
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L15:
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L16
	movq	-48(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L16:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -24(%rbp)
	jge	.L17
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -24(%rbp)
.L17:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	cmpq	%rax, -16(%rbp)
	jle	.L18
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	movq	%rax, -16(%rbp)
.L18:
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L19
	movq	-24(%rbp), %rax
	subq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L14:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L20
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L21:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
