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 <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;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	cmpq	$0, -32(%rbp)
	jne	.L2
	movq	-40(%rbp), %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
	jmp	.L4
.L2:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	hanazawa_kana
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	imulq	%rax, %rsi
	movq	%rsi, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-40(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-48(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L8
.L6:
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rax
	leaq	-16(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	call	hanazawa_kana
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	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
	.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:

#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;
}


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 unoptimized 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;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	cmpq	$0, -32(%rbp)
	jne	.L2
	movq	-40(%rbp), %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
	jmp	.L4
.L2:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	hanazawa_kana
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	imulq	%rax, %rsi
	movq	%rsi, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-40(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-48(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L8
.L6:
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rax
	leaq	-16(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	call	hanazawa_kana
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	hanazawa_kana
	.type	hanazawa_kana, @function
hanazawa_kana:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	cmpq	$0, -32(%rbp)
	jne	.L2
	movq	-40(%rbp), %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
	jmp	.L4
.L2:
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	hanazawa_kana
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movq	-24(%rbp), %rax
	cqto
	idivq	-32(%rbp)
	imulq	%rax, %rsi
	movq	%rsi, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-40(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-48(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hanazawa_kana, .-hanazawa_kana
	.section	.rodata
.LC0:
	.string	"%ld%ld"
.LC1:
	.string	"%ld %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L8
.L6:
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rax
	leaq	-16(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	call	hanazawa_kana
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L8:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
