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>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define max3(p,q,r)max(max(p,q),r)
#define min3(p,q,r)min(min(p,q),r)
#define INF ((1LL<<62)-(1LL<<31))


ll ans=INF;

void f(ll h,ll w){
	//hを分割

	ll hh=h/3;//真の1/3より小さいかも
	ll rh=h-hh;
	ll c1=hh*w;
	if(w%2==0||rh%2==0){
		ll c2=w*rh/2;
		ans=min(ans,llabs(c1-c2));
	}else{
		//長い方を割る
		if(rh>w){
			ll c2=(rh+1)/2*w;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}else{
			ll c2=(w+1)/2*rh;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}
	}
	
	hh=h/3+1;//真の1/3より大きい
	rh=h-hh;
	c1=hh*w;
	if(w%2==0||rh%2==0){
		ll c2=w*rh/2;
		ans=min(ans,llabs(c1-c2));
	}else{
		//長い方を割る
		if(rh>w){
			ll c2=(rh+1)/2*w;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}else{
			ll c2=(w+1)/2*rh;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}
	}
	
}

int main(){
	ll h,w;
	scanf("%lld%lld",&h,&w);
	f(h,w);
	f(w,h);
	printf("%lld\n",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.data
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.quad	4611686016279904256
	.text
	.globl	f
	.type	f, @function
f:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movq	%rdi, -120(%rbp)
	movq	%rsi, -128(%rbp)
	movq	-120(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -104(%rbp)
	movq	-120(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L2
	movq	-96(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L3
.L2:
	movq	-128(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -48(%rbp)
	movq	-88(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L4
.L3:
	movq	-96(%rbp), %rax
	cmpq	-128(%rbp), %rax
	jle	.L5
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-128(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-64(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L4
.L5:
	movq	-128(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-80(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
.L4:
	movq	-120(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	addq	$1, %rax
	movq	%rax, -104(%rbp)
	movq	-120(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L6
	movq	-96(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L7
.L6:
	movq	-128(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -8(%rbp)
	movq	-88(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	nop
	jmp	.L10
.L7:
	movq	-96(%rbp), %rax
	cmpq	-128(%rbp), %rax
	jle	.L9
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-128(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-24(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L10
.L9:
	movq	-128(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f, .-f
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	f
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	f
	movq	ans(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdi, %r9
	movq	%rdi, %rcx
	movq	ans(%rip), %r10
	movabsq	$6148914691236517206, %rdx
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	movq	%rdx, %rax
	subq	%rdx, %r9
	addq	$1, %rdx
	imulq	%rsi, %rax
	movq	%r9, %r8
	subq	%rdx, %rcx
	imulq	%rsi, %r8
	leaq	(%rsi,%rax), %rdi
	testb	$1, %sil
	je	.L2
	testb	$1, %r9b
	jne	.L15
	movq	%r8, %rdx
	shrq	$63, %rdx
	addq	%r8, %rdx
	sarq	%rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%r10, %rdx
	cmpq	%r10, %rax
	cmovle	%rax, %rdx
	testb	$1, %cl
	je	.L10
.L6:
	movq	%rsi, %r8
	imulq	%rcx, %r8
	cmpq	%rcx, %rsi
	jl	.L16
	addq	$1, %rsi
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rsi, %rax
	sarq	%rax
	imulq	%rax, %rcx
.L13:
	movq	%r8, %rsi
	movq	%rdi, %rax
	subq	%rcx, %rsi
	cmpq	%rdi, %rcx
	cmovge	%rcx, %rax
	cmpq	%rsi, %rax
	cmovl	%rsi, %rax
	cmpq	%rdi, %rcx
	cmovg	%rdi, %rcx
	cmpq	%rsi, %rcx
	cmovg	%rsi, %rcx
	subq	%rcx, %rax
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, ans(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	cmpq	%rsi, %r9
	jg	.L17
	leaq	1(%rsi), %r11
	movq	%r11, %rdx
	shrq	$63, %rdx
	addq	%r11, %rdx
	sarq	%rdx
	imulq	%r9, %rdx
.L12:
	subq	%rdx, %r8
	movq	%rdx, %r9
	cmpq	%rdx, %rax
	cmovge	%rax, %r9
	cmpq	%r8, %r9
	cmovl	%r8, %r9
	cmpq	%rdx, %rax
	cmovle	%rax, %rdx
	movq	%r9, %rax
	cmpq	%r8, %rdx
	cmovg	%r8, %rdx
	subq	%rdx, %rax
	movq	%r10, %rdx
	cmpq	%r10, %rax
	cmovle	%rax, %rdx
	testb	$1, %cl
	jne	.L6
.L10:
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rax, %rcx
	sarq	%rcx
	subq	%rcx, %rdi
	movq	%rdi, %rax
	negq	%rax
	cmovs	%rdi, %rax
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, ans(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r8, %rdx
	shrq	$63, %rdx
	addq	%r8, %rdx
	sarq	%rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%r10, %rdx
	cmpq	%r10, %rax
	cmovle	%rax, %rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rcx), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rax, %rcx
	sarq	%rcx
	imulq	%rsi, %rcx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r9
	movq	%r9, %rdx
	shrq	$63, %rdx
	addq	%r9, %rdx
	sarq	%rdx
	imulq	%rsi, %rdx
	jmp	.L12
	.cfi_endproc
.LFE39:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	f
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	f
	movq	ans(%rip), %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	ans
	.data
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.quad	4611686016279904256
	.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	f
	.type	f, @function
f:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdi, %r9
	movq	%rdi, %rcx
	movq	ans(%rip), %r10
	movabsq	$6148914691236517206, %rdx
	imulq	%rdx
	movq	%rdi, %rax
	sarq	$63, %rax
	subq	%rax, %rdx
	movq	%rdx, %rax
	subq	%rdx, %r9
	addq	$1, %rdx
	imulq	%rsi, %rax
	movq	%r9, %r8
	subq	%rdx, %rcx
	imulq	%rsi, %r8
	leaq	(%rsi,%rax), %rdi
	testb	$1, %sil
	je	.L2
	testb	$1, %r9b
	jne	.L15
	movq	%r8, %rdx
	shrq	$63, %rdx
	addq	%r8, %rdx
	sarq	%rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%r10, %rdx
	cmpq	%r10, %rax
	cmovle	%rax, %rdx
	testb	$1, %cl
	je	.L10
.L6:
	movq	%rsi, %r8
	imulq	%rcx, %r8
	cmpq	%rcx, %rsi
	jl	.L16
	addq	$1, %rsi
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rsi, %rax
	sarq	%rax
	imulq	%rax, %rcx
.L13:
	movq	%r8, %rsi
	movq	%rdi, %rax
	subq	%rcx, %rsi
	cmpq	%rdi, %rcx
	cmovge	%rcx, %rax
	cmpq	%rsi, %rax
	cmovl	%rsi, %rax
	cmpq	%rdi, %rcx
	cmovg	%rdi, %rcx
	cmpq	%rsi, %rcx
	cmovg	%rsi, %rcx
	subq	%rcx, %rax
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, ans(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	cmpq	%rsi, %r9
	jg	.L17
	leaq	1(%rsi), %r11
	movq	%r11, %rdx
	shrq	$63, %rdx
	addq	%r11, %rdx
	sarq	%rdx
	imulq	%r9, %rdx
.L12:
	subq	%rdx, %r8
	movq	%rdx, %r9
	cmpq	%rdx, %rax
	cmovge	%rax, %r9
	cmpq	%r8, %r9
	cmovl	%r8, %r9
	cmpq	%rdx, %rax
	cmovle	%rax, %rdx
	movq	%r9, %rax
	cmpq	%r8, %rdx
	cmovg	%r8, %rdx
	subq	%rdx, %rax
	movq	%r10, %rdx
	cmpq	%r10, %rax
	cmovle	%rax, %rdx
	testb	$1, %cl
	jne	.L6
.L10:
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rax, %rcx
	sarq	%rcx
	subq	%rcx, %rdi
	movq	%rdi, %rax
	negq	%rax
	cmovs	%rdi, %rax
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	movq	%rax, ans(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r8, %rdx
	shrq	$63, %rdx
	addq	%r8, %rdx
	sarq	%rdx
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%r10, %rdx
	cmpq	%r10, %rax
	cmovle	%rax, %rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rcx), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rax, %rcx
	sarq	%rcx
	imulq	%rsi, %rcx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r9
	movq	%r9, %rdx
	shrq	$63, %rdx
	addq	%r9, %rdx
	sarq	%rdx
	imulq	%rsi, %rdx
	jmp	.L12
	.cfi_endproc
.LFE39:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	f
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	f
	movq	ans(%rip), %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	ans
	.data
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.quad	4611686016279904256
	.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>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define max3(p,q,r)max(max(p,q),r)
#define min3(p,q,r)min(min(p,q),r)
#define INF ((1LL<<62)-(1LL<<31))


ll ans=INF;

void f(ll h,ll w){
	//hを分割

	ll hh=h/3;//真の1/3より小さいかも
	ll rh=h-hh;
	ll c1=hh*w;
	if(w%2==0||rh%2==0){
		ll c2=w*rh/2;
		ans=min(ans,llabs(c1-c2));
	}else{
		//長い方を割る
		if(rh>w){
			ll c2=(rh+1)/2*w;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}else{
			ll c2=(w+1)/2*rh;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}
	}
	
	hh=h/3+1;//真の1/3より大きい
	rh=h-hh;
	c1=hh*w;
	if(w%2==0||rh%2==0){
		ll c2=w*rh/2;
		ans=min(ans,llabs(c1-c2));
	}else{
		//長い方を割る
		if(rh>w){
			ll c2=(rh+1)/2*w;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}else{
			ll c2=(w+1)/2*rh;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}
	}
	
}

int main(){
	ll h,w;
	scanf("%lld%lld",&h,&w);
	f(h,w);
	f(w,h);
	printf("%lld\n",ans);
	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>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define max3(p,q,r)max(max(p,q),r)
#define min3(p,q,r)min(min(p,q),r)
#define INF ((1LL<<62)-(1LL<<31))


ll ans=INF;

void f(ll h,ll w){
	//hを分割

	ll hh=h/3;//真の1/3より小さいかも
	ll rh=h-hh;
	ll c1=hh*w;
	if(w%2==0||rh%2==0){
		ll c2=w*rh/2;
		ans=min(ans,llabs(c1-c2));
	}else{
		//長い方を割る
		if(rh>w){
			ll c2=(rh+1)/2*w;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}else{
			ll c2=(w+1)/2*rh;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}
	}
	
	hh=h/3+1;//真の1/3より大きい
	rh=h-hh;
	c1=hh*w;
	if(w%2==0||rh%2==0){
		ll c2=w*rh/2;
		ans=min(ans,llabs(c1-c2));
	}else{
		//長い方を割る
		if(rh>w){
			ll c2=(rh+1)/2*w;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}else{
			ll c2=(w+1)/2*rh;
			ll c3=rh*w-c2;
			ans=min(ans,max3(c1,c2,c3)-min3(c1,c2,c3));
		}
	}
	
}

int main(){
	ll h,w;
	scanf("%lld%lld",&h,&w);
	f(h,w);
	f(w,h);
	printf("%lld\n",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.data
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.quad	4611686016279904256
	.text
	.globl	f
	.type	f, @function
f:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movq	%rdi, -120(%rbp)
	movq	%rsi, -128(%rbp)
	movq	-120(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -104(%rbp)
	movq	-120(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L2
	movq	-96(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L3
.L2:
	movq	-128(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -48(%rbp)
	movq	-88(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L4
.L3:
	movq	-96(%rbp), %rax
	cmpq	-128(%rbp), %rax
	jle	.L5
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-128(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-64(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L4
.L5:
	movq	-128(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-80(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
.L4:
	movq	-120(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	addq	$1, %rax
	movq	%rax, -104(%rbp)
	movq	-120(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L6
	movq	-96(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L7
.L6:
	movq	-128(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -8(%rbp)
	movq	-88(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	nop
	jmp	.L10
.L7:
	movq	-96(%rbp), %rax
	cmpq	-128(%rbp), %rax
	jle	.L9
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-128(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-24(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L10
.L9:
	movq	-128(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f, .-f
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	f
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	f
	movq	ans(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	ans
	.data
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.quad	4611686016279904256
	.text
	.globl	f
	.type	f, @function
f:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movq	%rdi, -120(%rbp)
	movq	%rsi, -128(%rbp)
	movq	-120(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -104(%rbp)
	movq	-120(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L2
	movq	-96(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L3
.L2:
	movq	-128(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -48(%rbp)
	movq	-88(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L4
.L3:
	movq	-96(%rbp), %rax
	cmpq	-128(%rbp), %rax
	jle	.L5
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-128(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-64(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-64(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L4
.L5:
	movq	-128(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-80(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-72(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
.L4:
	movq	-120(%rbp), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	addq	$1, %rax
	movq	%rax, -104(%rbp)
	movq	-120(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L6
	movq	-96(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L7
.L6:
	movq	-128(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -8(%rbp)
	movq	-88(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	nop
	jmp	.L10
.L7:
	movq	-96(%rbp), %rax
	cmpq	-128(%rbp), %rax
	jle	.L9
	movq	-96(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-128(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-24(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
	jmp	.L10
.L9:
	movq	-128(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-96(%rbp), %rax
	imulq	-128(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-88(%rbp), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movq	ans(%rip), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, ans(%rip)
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f, .-f
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	f
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	f
	movq	ans(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
