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

```c
#include <stdio.h>

void	compare(int M, int N)
{
	int		ans;

	if (N % M)
		ans = N / M + 1;
	else
		ans = N / M;
	printf("%d\n", ans);
}

int		main()
{
	int		H, W, N;
	int		r;

	r = scanf("%d\n%d\n%d\n", &H, &W, &N);
	if (r != 3)
		return (0);
	if (H > W)
		compare(H, N);
	else
		compare(W, N);
	return (0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	leaq	.LC0(%rip), %rsi
	cltd
	idivl	%edi
	movl	$1, %edi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	compare, .-compare
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L7
	movl	20(%rsp), %eax
	movl	12(%rsp), %esi
	movl	16(%rsp), %ecx
	cltd
	cmpl	%ecx, %esi
	jg	.L18
	idivl	%ecx
.L17:
	cmpl	$1, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	idivl	%esi
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	leaq	.LC0(%rip), %rsi
	cltd
	idivl	%edi
	movl	$1, %edi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	compare, .-compare
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L7
	movl	20(%rsp), %eax
	movl	12(%rsp), %esi
	movl	16(%rsp), %ecx
	cltd
	cmpl	%ecx, %esi
	jg	.L18
	idivl	%ecx
.L17:
	cmpl	$1, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	idivl	%esi
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	leaq	.LC0(%rip), %rsi
	cltd
	idivl	%edi
	movl	$1, %edi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	compare, .-compare
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L7
	movl	20(%rsp), %eax
	movl	12(%rsp), %esi
	movl	16(%rsp), %ecx
	cltd
	cmpl	%ecx, %esi
	jg	.L18
	idivl	%ecx
.L17:
	cmpl	$1, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	idivl	%esi
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```
```c
#include <stdio.h>

void	compare(int M, int N)
{
	int		ans;

	if (N % M)
		ans = N / M + 1;
	else
		ans = N / M;
	printf("%d\n", ans);
}

int		main()
{
	int		H, W, N;
	int		r;

	r = scanf("%d\n%d\n%d\n", &H, &W, &N);
	if (r != 3)
		return (0);
	if (H > W)
		compare(H, N);
	else
		compare(W, N);
	return (0);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

void	compare(int M, int N)
{
	int		ans;

	if (N % M)
		ans = N / M + 1;
	else
		ans = N / M;
	printf("%d\n", ans);
}

int		main()
{
	int		H, W, N;
	int		r;

	r = scanf("%d\n%d\n%d\n", &H, &W, &N);
	if (r != 3)
		return (0);
	if (H > W)
		compare(H, N);
	else
		compare(W, N);
	return (0);
}
```

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:

3
7
15
 2
000
200
 14
12
47
 2
000
217
 3
7
45
 14
16
2
 3
7
76
 2
000
4
 3
10
43
 14
12
183

3
 100
 4
 109
 7
 1
 11
 2
 5
 14

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

```c
#include <stdio.h>

void	compare(int M, int N)
{
	int		ans;

	if (N % M)
		ans = N / M + 1;
	else
		ans = N / M;
	printf("%d\n", ans);
}

int		main()
{
	int		H, W, N;
	int		r;

	r = scanf("%d\n%d\n%d\n", &H, &W, &N);
	if (r != 3)
		return (0);
	if (H > W)
		compare(H, N);
	else
		compare(W, N);
	return (0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	leaq	.LC0(%rip), %rsi
	cltd
	idivl	%edi
	movl	$1, %edi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	compare, .-compare
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L7
	movl	20(%rsp), %eax
	movl	12(%rsp), %esi
	movl	16(%rsp), %ecx
	cltd
	cmpl	%ecx, %esi
	jg	.L18
	idivl	%ecx
.L17:
	cmpl	$1, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	idivl	%esi
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	leaq	.LC0(%rip), %rsi
	cltd
	idivl	%edi
	movl	$1, %edi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	compare, .-compare
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	jne	.L7
	movl	20(%rsp), %eax
	movl	12(%rsp), %esi
	movl	16(%rsp), %ecx
	cltd
	cmpl	%ecx, %esi
	jg	.L18
	idivl	%ecx
.L17:
	cmpl	$1, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	sbbl	$-1, %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	idivl	%esi
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```