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

/* x*a + y*b == gcd(a, b) */
void hanazawa_kana(int64_t a, int64_t b, int64_t* x, int64_t* y) {
	if (b == 0) {
		*x = 1;
		*y = 0;
	} else {
		int64_t nx, ny;
		hanazawa_kana(b, a % b, x, y);
		/* x*b + y*(a % b) == gcd(a, b) */
		/* x*b + y*(a - a/b*b) == gcd(a, b) */
		/* y*a + (x - y*(a/b))*b == gcd(a, b) */
		nx = (*y);
		ny = (*x) - (*y) * (a/b);
		*x = nx;
		*y = ny;
	}
}

int main(void) {
	int64_t a, b;
	int64_t x = 0, y = 0;
	if (scanf("%"SCNd64"%"SCNd64, &a, &b) != 2) return 1;
	hanazawa_kana(a, b, &x, &y);
	printf("%"PRId64" %"PRId64"\n", x, y);
	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rcx, %r12
	movl	$1, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L14
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rcx, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movq	%rsi, (%r12)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rdi, %rax
	movl	$1, %r8d
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %r14
	movq	%rdx, %rcx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	.L15
.L3:
	movq	%r8, 0(%rbp)
	movq	%rcx, (%r12)
	movq	0(%rbp), %rsi
	subq	%rax, %rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rsi, %rax
	cqto
	idivq	%r14
	movq	%rdx, %r8
	movq	%rax, %rbx
	xorl	%edx, %edx
	movl	$1, %eax
	testq	%r8, %r8
	jne	.L16
.L4:
	movq	%rax, 0(%rbp)
	movq	%r13, %rax
	movq	%r8, (%r12)
	movq	0(%rbp), %rcx
	subq	%rdx, %rcx
	imulq	%rcx, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r14
	call	hanazawa_kana
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	0(%rbp), %r8
	imulq	%rax, %rdi
	subq	%rdi, %r8
	imulq	%r8, %rbx
	movq	%rbx, %rdx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movq	$0, 24(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L17
	movq	16(%rsp), %r8
	movl	$1, %edx
	testq	%r8, %r8
	jne	.L26
.L19:
	movq	%r8, %rcx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rdx, 24(%rsp)
	leaq	.LC1(%rip), %rsi
	movq	%r8, 32(%rsp)
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L17:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movq	8(%rsp), %rax
	movq	%r8, %rdi
	leaq	32(%rsp), %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	leaq	24(%rsp), %rdx
	movq	%rax, %r9
	call	hanazawa_kana
	movq	32(%rsp), %rdx
	movq	%r9, %rax
	movq	24(%rsp), %r8
	imulq	%rdx, %rax
	subq	%rax, %r8
	jmp	.L19
.L27:
	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
	.p2align 4
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rcx, %r12
	movl	$1, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L14
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rcx, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movq	%rsi, (%r12)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rdi, %rax
	movl	$1, %r8d
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %r14
	movq	%rdx, %rcx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	.L15
.L3:
	movq	%r8, 0(%rbp)
	movq	%rcx, (%r12)
	movq	0(%rbp), %rsi
	subq	%rax, %rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rsi, %rax
	cqto
	idivq	%r14
	movq	%rdx, %r8
	movq	%rax, %rbx
	xorl	%edx, %edx
	movl	$1, %eax
	testq	%r8, %r8
	jne	.L16
.L4:
	movq	%rax, 0(%rbp)
	movq	%r13, %rax
	movq	%r8, (%r12)
	movq	0(%rbp), %rcx
	subq	%rdx, %rcx
	imulq	%rcx, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r14
	call	hanazawa_kana
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	0(%rbp), %r8
	imulq	%rax, %rdi
	subq	%rdi, %r8
	imulq	%r8, %rbx
	movq	%rbx, %rdx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movq	$0, 24(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L17
	movq	16(%rsp), %r8
	movl	$1, %edx
	testq	%r8, %r8
	jne	.L26
.L19:
	movq	%r8, %rcx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rdx, 24(%rsp)
	leaq	.LC1(%rip), %rsi
	movq	%r8, 32(%rsp)
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L17:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movq	8(%rsp), %rax
	movq	%r8, %rdi
	leaq	32(%rsp), %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	leaq	24(%rsp), %rdx
	movq	%rax, %r9
	call	hanazawa_kana
	movq	32(%rsp), %rdx
	movq	%r9, %rax
	movq	24(%rsp), %r8
	imulq	%rdx, %rax
	subq	%rax, %r8
	jmp	.L19
.L27:
	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
	.p2align 4
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rcx, %r12
	movl	$1, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L14
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rcx, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movq	%rsi, (%r12)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rdi, %rax
	movl	$1, %r8d
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %r14
	movq	%rdx, %rcx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	.L15
.L3:
	movq	%r8, 0(%rbp)
	movq	%rcx, (%r12)
	movq	0(%rbp), %rsi
	subq	%rax, %rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rsi, %rax
	cqto
	idivq	%r14
	movq	%rdx, %r8
	movq	%rax, %rbx
	xorl	%edx, %edx
	movl	$1, %eax
	testq	%r8, %r8
	jne	.L16
.L4:
	movq	%rax, 0(%rbp)
	movq	%r13, %rax
	movq	%r8, (%r12)
	movq	0(%rbp), %rcx
	subq	%rdx, %rcx
	imulq	%rcx, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r14
	call	hanazawa_kana
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	0(%rbp), %r8
	imulq	%rax, %rdi
	subq	%rdi, %r8
	imulq	%r8, %rbx
	movq	%rbx, %rdx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movq	$0, 24(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L17
	movq	16(%rsp), %r8
	movl	$1, %edx
	testq	%r8, %r8
	jne	.L26
.L19:
	movq	%r8, %rcx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rdx, 24(%rsp)
	leaq	.LC1(%rip), %rsi
	movq	%r8, 32(%rsp)
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L17:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movq	8(%rsp), %rax
	movq	%r8, %rdi
	leaq	32(%rsp), %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	leaq	24(%rsp), %rdx
	movq	%rax, %r9
	call	hanazawa_kana
	movq	32(%rsp), %rdx
	movq	%r9, %rax
	movq	24(%rsp), %r8
	imulq	%rdx, %rax
	subq	%rax, %r8
	jmp	.L19
.L27:
	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>
#include <inttypes.h>

/* x*a + y*b == gcd(a, b) */
void hanazawa_kana(int64_t a, int64_t b, int64_t* x, int64_t* y) {
	if (b == 0) {
		*x = 1;
		*y = 0;
	} else {
		int64_t nx, ny;
		hanazawa_kana(b, a % b, x, y);
		/* x*b + y*(a % b) == gcd(a, b) */
		/* x*b + y*(a - a/b*b) == gcd(a, b) */
		/* y*a + (x - y*(a/b))*b == gcd(a, b) */
		nx = (*y);
		ny = (*x) - (*y) * (a/b);
		*x = nx;
		*y = ny;
	}
}

int main(void) {
	int64_t a, b;
	int64_t x = 0, y = 0;
	if (scanf("%"SCNd64"%"SCNd64, &a, &b) != 2) return 1;
	hanazawa_kana(a, b, &x, &y);
	printf("%"PRId64" %"PRId64"\n", x, y);
	return 0;
}

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

```c
#include <stdio.h>
#include <inttypes.h>

/* x*a + y*b == gcd(a, b) */
void hanazawa_kana(int64_t a, int64_t b, int64_t* x, int64_t* y) {
	if (b == 0) {
		*x = 1;
		*y = 0;
	} else {
		int64_t nx, ny;
		hanazawa_kana(b, a % b, x, y);
		/* x*b + y*(a % b) == gcd(a, b) */
		/* x*b + y*(a - a/b*b) == gcd(a, b) */
		/* y*a + (x - y*(a/b))*b == gcd(a, b) */
		nx = (*y);
		ny = (*x) - (*y) * (a/b);
		*x = nx;
		*y = ny;
	}
}

int main(void) {
	int64_t a, b;
	int64_t x = 0, y = 0;
	if (scanf("%"SCNd64"%"SCNd64, &a, &b) != 2) return 1;
	hanazawa_kana(a, b, &x, &y);
	printf("%"PRId64" %"PRId64"\n", x, y);
	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:

5 8
 5 15
 5 1
 5 2
 15 2
 55 2
 61 2
 47 2
 11 2
 6 8

-3 2
 1 0
 0 1
 1 -2
 1 -7
 1 -27
 1 -30
 1 -23
 1 -5
 -1 1

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

/* x*a + y*b == gcd(a, b) */
void hanazawa_kana(int64_t a, int64_t b, int64_t* x, int64_t* y) {
	if (b == 0) {
		*x = 1;
		*y = 0;
	} else {
		int64_t nx, ny;
		hanazawa_kana(b, a % b, x, y);
		/* x*b + y*(a % b) == gcd(a, b) */
		/* x*b + y*(a - a/b*b) == gcd(a, b) */
		/* y*a + (x - y*(a/b))*b == gcd(a, b) */
		nx = (*y);
		ny = (*x) - (*y) * (a/b);
		*x = nx;
		*y = ny;
	}
}

int main(void) {
	int64_t a, b;
	int64_t x = 0, y = 0;
	if (scanf("%"SCNd64"%"SCNd64, &a, &b) != 2) return 1;
	hanazawa_kana(a, b, &x, &y);
	printf("%"PRId64" %"PRId64"\n", x, y);
	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rcx, %r12
	movl	$1, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L14
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rcx, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movq	%rsi, (%r12)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rdi, %rax
	movl	$1, %r8d
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %r14
	movq	%rdx, %rcx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	.L15
.L3:
	movq	%r8, 0(%rbp)
	movq	%rcx, (%r12)
	movq	0(%rbp), %rsi
	subq	%rax, %rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rsi, %rax
	cqto
	idivq	%r14
	movq	%rdx, %r8
	movq	%rax, %rbx
	xorl	%edx, %edx
	movl	$1, %eax
	testq	%r8, %r8
	jne	.L16
.L4:
	movq	%rax, 0(%rbp)
	movq	%r13, %rax
	movq	%r8, (%r12)
	movq	0(%rbp), %rcx
	subq	%rdx, %rcx
	imulq	%rcx, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r14
	call	hanazawa_kana
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	0(%rbp), %r8
	imulq	%rax, %rdi
	subq	%rdi, %r8
	imulq	%r8, %rbx
	movq	%rbx, %rdx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movq	$0, 24(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L17
	movq	16(%rsp), %r8
	movl	$1, %edx
	testq	%r8, %r8
	jne	.L26
.L19:
	movq	%r8, %rcx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rdx, 24(%rsp)
	leaq	.LC1(%rip), %rsi
	movq	%r8, 32(%rsp)
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L17:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movq	8(%rsp), %rax
	movq	%r8, %rdi
	leaq	32(%rsp), %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	leaq	24(%rsp), %rdx
	movq	%rax, %r9
	call	hanazawa_kana
	movq	32(%rsp), %rdx
	movq	%r9, %rax
	movq	24(%rsp), %r8
	imulq	%rdx, %rax
	subq	%rax, %r8
	jmp	.L19
.L27:
	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
	.p2align 4
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rcx, %r12
	movl	$1, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	testq	%rsi, %rsi
	jne	.L14
.L2:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rcx, 0(%rbp)
	popq	%rbp
	.cfi_def_cfa_offset 32
	movq	%rsi, (%r12)
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rdi, %rax
	movl	$1, %r8d
	cqto
	idivq	%rsi
	movq	%rax, %r13
	movq	%rdx, %r14
	movq	%rdx, %rcx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	.L15
.L3:
	movq	%r8, 0(%rbp)
	movq	%rcx, (%r12)
	movq	0(%rbp), %rsi
	subq	%rax, %rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rsi, %rax
	cqto
	idivq	%r14
	movq	%rdx, %r8
	movq	%rax, %rbx
	xorl	%edx, %edx
	movl	$1, %eax
	testq	%r8, %r8
	jne	.L16
.L4:
	movq	%rax, 0(%rbp)
	movq	%r13, %rax
	movq	%r8, (%r12)
	movq	0(%rbp), %rcx
	subq	%rdx, %rcx
	imulq	%rcx, %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rax
	movq	%r8, %rdi
	movq	%r12, %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	movq	%rbp, %rdx
	movq	%rax, %r14
	call	hanazawa_kana
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	0(%rbp), %r8
	imulq	%rax, %rdi
	subq	%rdi, %r8
	imulq	%r8, %rbx
	movq	%rbx, %rdx
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movq	$0, 24(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L17
	movq	16(%rsp), %r8
	movl	$1, %edx
	testq	%r8, %r8
	jne	.L26
.L19:
	movq	%r8, %rcx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rdx, 24(%rsp)
	leaq	.LC1(%rip), %rsi
	movq	%r8, 32(%rsp)
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L17:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movq	8(%rsp), %rax
	movq	%r8, %rdi
	leaq	32(%rsp), %rcx
	cqto
	idivq	%r8
	movq	%rdx, %rsi
	leaq	24(%rsp), %rdx
	movq	%rax, %r9
	call	hanazawa_kana
	movq	32(%rsp), %rdx
	movq	%r9, %rax
	movq	24(%rsp), %r8
	imulq	%rdx, %rax
	subq	%rax, %r8
	jmp	.L19
.L27:
	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:
```