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

```c
/* ex4_3
	kanon */

#include <stdio.h>
#include <math.h>

//n番目の塔の高さを求める
int calculate_height(int height_a,int height_b);

int main(void)
{

    //与えられる値を入れる数を宣言
    int height_a,height_b;

    //変数に値を入力する
    scanf("%d %d",&height_a,&height_b);
    
    int ans=calculate_height(height_a,height_b);
    printf("%d",ans);

    return 0;
}

int calculate_height(int height_a,int height_b){
    int snow_height=0;
    //高さを計算する
    int diff=height_b-height_a;
    for(int i=1;i<diff;i++){
        snow_height+=i;
    }
    return snow_height-height_a;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	calculate_height
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	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	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	calculate_height
	.type	calculate_height, @function
calculate_height:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -12(%rbp)
	movl	-24(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	addl	%eax, -12(%rbp)
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L6
	movl	-12(%rbp), %eax
	subl	-20(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calculate_height, .-calculate_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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d"
	.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	.LC1(%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	(%rsp), %edi
	movl	4(%rsp), %ecx
	subl	%edi, %ecx
	cmpl	$1, %ecx
	jle	.L8
	leal	-2(%rcx), %eax
	leal	-1(%rcx), %esi
	cmpl	$9, %eax
	jbe	.L9
	movl	%esi, %edx
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm1, %xmm2
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %edx
	jne	.L4
	movdqa	%xmm0, %xmm1
	movl	%esi, %r8d
	psrldq	$8, %xmm1
	andl	$-4, %r8d
	paddd	%xmm1, %xmm0
	leal	1(%r8), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%r8d, %esi
	je	.L2
.L3:
	leal	1(%rax), %esi
	addl	%eax, %edx
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	3(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	4(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	5(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	6(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	7(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	$9, %eax
	addl	%esi, %edx
	cmpl	%eax, %ecx
	jle	.L2
	addl	%eax, %edx
.L2:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L2
.L9:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	calculate_height
	.type	calculate_height, @function
calculate_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	movl	%edi, %r8d
	subl	%edi, %edx
	cmpl	$1, %edx
	jle	.L20
	leal	-2(%rdx), %eax
	leal	-1(%rdx), %esi
	cmpl	$9, %eax
	jbe	.L21
	movl	%esi, %ecx
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L17:
	movdqa	%xmm1, %xmm2
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %ecx
	jne	.L17
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddd	%xmm1, %xmm0
	leal	1(%rdi), %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%edi, %esi
	je	.L15
.L16:
	leal	1(%rcx), %esi
	addl	%ecx, %eax
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	addl	$9, %ecx
	leal	(%rax,%rcx), %esi
	cmpl	%ecx, %edx
	cmovg	%esi, %eax
.L15:
	subl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%eax, %eax
	subl	%r8d, %eax
	ret
.L21:
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L16
	.cfi_endproc
.LFE24:
	.size	calculate_height, .-calculate_height
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d"
	.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	.LC1(%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	(%rsp), %edi
	movl	4(%rsp), %ecx
	subl	%edi, %ecx
	cmpl	$1, %ecx
	jle	.L8
	leal	-2(%rcx), %eax
	leal	-1(%rcx), %esi
	cmpl	$9, %eax
	jbe	.L9
	movl	%esi, %edx
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm1, %xmm2
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %edx
	jne	.L4
	movdqa	%xmm0, %xmm1
	movl	%esi, %r8d
	psrldq	$8, %xmm1
	andl	$-4, %r8d
	paddd	%xmm1, %xmm0
	leal	1(%r8), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%r8d, %esi
	je	.L2
.L3:
	leal	1(%rax), %esi
	addl	%eax, %edx
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	3(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	4(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	5(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	6(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	7(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	%esi, %edx
	leal	8(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L2
	addl	$9, %eax
	addl	%esi, %edx
	cmpl	%eax, %ecx
	jle	.L2
	addl	%eax, %edx
.L2:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L2
.L9:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	calculate_height
	.type	calculate_height, @function
calculate_height:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	movl	%edi, %r8d
	subl	%edi, %edx
	cmpl	$1, %edx
	jle	.L20
	leal	-2(%rdx), %eax
	leal	-1(%rdx), %esi
	cmpl	$9, %eax
	jbe	.L21
	movl	%esi, %ecx
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm3
	shrl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L17:
	movdqa	%xmm1, %xmm2
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %ecx
	jne	.L17
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddd	%xmm1, %xmm0
	leal	1(%rdi), %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%edi, %esi
	je	.L15
.L16:
	leal	1(%rcx), %esi
	addl	%ecx, %eax
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L15
	addl	%esi, %eax
	addl	$9, %ecx
	leal	(%rax,%rcx), %esi
	cmpl	%ecx, %edx
	cmovg	%esi, %eax
.L15:
	subl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%eax, %eax
	subl	%r8d, %eax
	ret
.L21:
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L16
	.cfi_endproc
.LFE24:
	.size	calculate_height, .-calculate_height
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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:

/* ex4_3
	kanon */

#include <stdio.h>
#include <math.h>

//n番目の塔の高さを求める
int calculate_height(int height_a,int height_b);

int main(void)
{

    //与えられる値を入れる数を宣言
    int height_a,height_b;

    //変数に値を入力する
    scanf("%d %d",&height_a,&height_b);
    
    int ans=calculate_height(height_a,height_b);
    printf("%d",ans);

    return 0;
}

int calculate_height(int height_a,int height_b){
    int snow_height=0;
    //高さを計算する
    int diff=height_b-height_a;
    for(int i=1;i<diff;i++){
        snow_height+=i;
    }
    return snow_height-height_a;
}

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

-105 20 -105 756 0 -196 1 1179 -1 13599
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/* ex4_3
	kanon */

#include <stdio.h>
#include <math.h>

//n番目の塔の高さを求める
int calculate_height(int height_a,int height_b);

int main(void)
{

    //与えられる値を入れる数を宣言
    int height_a,height_b;

    //変数に値を入力する
    scanf("%d %d",&height_a,&height_b);
    
    int ans=calculate_height(height_a,height_b);
    printf("%d",ans);

    return 0;
}

int calculate_height(int height_a,int height_b){
    int snow_height=0;
    //高さを計算する
    int diff=height_b-height_a;
    for(int i=1;i<diff;i++){
        snow_height+=i;
    }
    return snow_height-height_a;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	calculate_height
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	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	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	calculate_height
	.type	calculate_height, @function
calculate_height:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -12(%rbp)
	movl	-24(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	addl	%eax, -12(%rbp)
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L6
	movl	-12(%rbp), %eax
	subl	-20(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calculate_height, .-calculate_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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	calculate_height
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	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	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	calculate_height
	.type	calculate_height, @function
calculate_height:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -12(%rbp)
	movl	-24(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	addl	%eax, -12(%rbp)
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L6
	movl	-12(%rbp), %eax
	subl	-20(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calculate_height, .-calculate_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:
