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

```c
/* ex4_3
   kento_titech*/
#include<stdio.h>
int snow_height(int h_west,int h_east);//積雪を求める関数のプロトタイプ宣言
int main(void){
    int a,b;//a,bはそれぞれ西と東に見える高さ
    scanf("%d %d",&a,&b);
    printf("%d\n",snow_height(a,b));

    return 0;
}
int snow_height(int h_west,int h_east){//h_west,h_eastはそれぞれ西と東に見える部分の高さ
    int height;
    height=(h_east-h_west)*(h_east-h_west+1)/2-h_east;//1からh_east-h_westまでの総和が東側の塔の高さ。
                                                      //積雪heightはそこからh_eastを引いたもの.
    return(height);

    }```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsp), %edx
	leal	1(%rdx), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	%ecx, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	snow_height
	.type	snow_height, @function
snow_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	subl	%edi, %eax
	leal	1(%rax), %edx
	imull	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	snow_height, .-snow_height
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsp), %edx
	leal	1(%rdx), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	%ecx, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	snow_height
	.type	snow_height, @function
snow_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	subl	%edi, %eax
	leal	1(%rax), %edx
	imull	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	snow_height, .-snow_height
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsp), %edx
	leal	1(%rdx), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	%ecx, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	snow_height
	.type	snow_height, @function
snow_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	subl	%edi, %eax
	leal	1(%rax), %edx
	imull	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	snow_height, .-snow_height
	.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
/* ex4_3
   kento_titech*/
#include<stdio.h>
int snow_height(int h_west,int h_east);//積雪を求める関数のプロトタイプ宣言
int main(void){
    int a,b;//a,bはそれぞれ西と東に見える高さ
    scanf("%d %d",&a,&b);
    printf("%d\n",snow_height(a,b));

    return 0;
}
int snow_height(int h_west,int h_east){//h_west,h_eastはそれぞれ西と東に見える部分の高さ
    int height;
    height=(h_east-h_west)*(h_east-h_west+1)/2-h_east;//1からh_east-h_westまでの総和が東側の塔の高さ。
                                                      //積雪heightはそこからh_eastを引いたもの.
    return(height);

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

```c
/* ex4_3
   kento_titech*/
#include<stdio.h>
int snow_height(int h_west,int h_east);//積雪を求める関数のプロトタイプ宣言
int main(void){
    int a,b;//a,bはそれぞれ西と東に見える高さ
    scanf("%d %d",&a,&b);
    printf("%d\n",snow_height(a,b));

    return 0;
}
int snow_height(int h_west,int h_east){//h_west,h_eastはそれぞれ西と東に見える部分の高さ
    int height;
    height=(h_east-h_west)*(h_east-h_west+1)/2-h_east;//1からh_east-h_westまでの総和が東側の塔の高さ。
                                                      //積雪heightはそこからh_eastを引いたもの.
    return(height);

    }```

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:

105 65
 8 16
 105 88
 105 147
 0 1
 196 147
 0 2
 96 147
 1 2
 96 262

715
 20
 48
 756
 0
 1029
 1
 1179
 -1
 13599

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

```c
/* ex4_3
   kento_titech*/
#include<stdio.h>
int snow_height(int h_west,int h_east);//積雪を求める関数のプロトタイプ宣言
int main(void){
    int a,b;//a,bはそれぞれ西と東に見える高さ
    scanf("%d %d",&a,&b);
    printf("%d\n",snow_height(a,b));

    return 0;
}
int snow_height(int h_west,int h_east){//h_west,h_eastはそれぞれ西と東に見える部分の高さ
    int height;
    height=(h_east-h_west)*(h_east-h_west+1)/2-h_east;//1からh_east-h_westまでの総和が東側の塔の高さ。
                                                      //積雪heightはそこからh_eastを引いたもの.
    return(height);

    }```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsp), %edx
	leal	1(%rdx), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	%ecx, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	snow_height
	.type	snow_height, @function
snow_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	subl	%edi, %eax
	leal	1(%rax), %edx
	imull	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	snow_height, .-snow_height
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsp), %edx
	leal	1(%rdx), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	%ecx, %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	snow_height
	.type	snow_height, @function
snow_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	subl	%edi, %eax
	leal	1(%rax), %edx
	imull	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	subl	%esi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	snow_height, .-snow_height
	.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:
```