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 <string.h>

int iskaibun(int n) {
	char buffer[100];
	int i,len;
	sprintf(buffer,"%d",n);
	len=strlen(buffer);
	for(i=0;i+i<len;i++) {
		if(buffer[i]!=buffer[len-i-1])return 0;
	}
	return 1;
}

int main(void) {
	int n;
	int i;
	scanf("%d",&n);
	for(i=0;;i++) {
		if(iskaibun(n-i)) {
			printf("%d\n",n-i);
			break;
		}
		if(iskaibun(n+i)) {
			printf("%d\n",n+i);
			break;
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	iskaibun
	.type	iskaibun, @function
iskaibun:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	leaq	.LC0(%rip), %rcx
	movl	$100, %edx
	movl	$1, %esi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L5
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%rbx, %rdx
	shrl	%eax
	addq	%rbx, %rcx
	leaq	1(%rsp,%rax), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L5
.L3:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L10
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %eax
.L1:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L11
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	iskaibun, .-iskaibun
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$136, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r13
	leaq	17(%rsp), %rbp
	call	__isoc99_scanf@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	subl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L13
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L13
.L15:
	movzbl	-1(%rcx), %edi
	cmpb	%dil, (%rdx)
	je	.L30
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	addl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L18
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L18
.L17:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L31
	addl	$1, %r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L13:
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r12d, %edx
	call	__printf_chk@PLT
.L19:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L19
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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"
	.text
	.p2align 4
	.globl	iskaibun
	.type	iskaibun, @function
iskaibun:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	leaq	.LC0(%rip), %rcx
	movl	$100, %edx
	movl	$1, %esi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L5
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%rbx, %rdx
	shrl	%eax
	addq	%rbx, %rcx
	leaq	1(%rsp,%rax), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L5
.L3:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L10
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %eax
.L1:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L11
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	iskaibun, .-iskaibun
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$136, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r13
	leaq	17(%rsp), %rbp
	call	__isoc99_scanf@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	subl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L13
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L13
.L15:
	movzbl	-1(%rcx), %edi
	cmpb	%dil, (%rdx)
	je	.L30
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	addl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L18
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L18
.L17:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L31
	addl	$1, %r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L13:
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r12d, %edx
	call	__printf_chk@PLT
.L19:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L19
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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"
	.text
	.p2align 4
	.globl	iskaibun
	.type	iskaibun, @function
iskaibun:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	leaq	.LC0(%rip), %rcx
	movl	$100, %edx
	movl	$1, %esi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L5
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%rbx, %rdx
	shrl	%eax
	addq	%rbx, %rcx
	leaq	1(%rsp,%rax), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L5
.L3:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L10
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %eax
.L1:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L11
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	iskaibun, .-iskaibun
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$136, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r13
	leaq	17(%rsp), %rbp
	call	__isoc99_scanf@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	subl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L13
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L13
.L15:
	movzbl	-1(%rcx), %edi
	cmpb	%dil, (%rdx)
	je	.L30
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	addl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L18
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L18
.L17:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L31
	addl	$1, %r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L13:
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r12d, %edx
	call	__printf_chk@PLT
.L19:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L19
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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 <string.h>

int iskaibun(int n) {
	char buffer[100];
	int i,len;
	sprintf(buffer,"%d",n);
	len=strlen(buffer);
	for(i=0;i+i<len;i++) {
		if(buffer[i]!=buffer[len-i-1])return 0;
	}
	return 1;
}

int main(void) {
	int n;
	int i;
	scanf("%d",&n);
	for(i=0;;i++) {
		if(iskaibun(n-i)) {
			printf("%d\n",n-i);
			break;
		}
		if(iskaibun(n+i)) {
			printf("%d\n",n+i);
			break;
		}
	}
	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 <string.h>

int iskaibun(int n) {
	char buffer[100];
	int i,len;
	sprintf(buffer,"%d",n);
	len=strlen(buffer);
	for(i=0;i+i<len;i++) {
		if(buffer[i]!=buffer[len-i-1])return 0;
	}
	return 1;
}

int main(void) {
	int n;
	int i;
	scanf("%d",&n);
	for(i=0;;i++) {
		if(iskaibun(n-i)) {
			printf("%d\n",n-i);
			break;
		}
		if(iskaibun(n+i)) {
			printf("%d\n",n+i);
			break;
		}
	}
	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:

4
 8
 4752
 7
 23
 8517
 6
 39
 3483
 5

4
 8
 4774
 7
 22
 8558
 6
 44
 3443
 5

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 <string.h>

int iskaibun(int n) {
	char buffer[100];
	int i,len;
	sprintf(buffer,"%d",n);
	len=strlen(buffer);
	for(i=0;i+i<len;i++) {
		if(buffer[i]!=buffer[len-i-1])return 0;
	}
	return 1;
}

int main(void) {
	int n;
	int i;
	scanf("%d",&n);
	for(i=0;;i++) {
		if(iskaibun(n-i)) {
			printf("%d\n",n-i);
			break;
		}
		if(iskaibun(n+i)) {
			printf("%d\n",n+i);
			break;
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	iskaibun
	.type	iskaibun, @function
iskaibun:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	leaq	.LC0(%rip), %rcx
	movl	$100, %edx
	movl	$1, %esi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L5
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%rbx, %rdx
	shrl	%eax
	addq	%rbx, %rcx
	leaq	1(%rsp,%rax), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L5
.L3:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L10
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %eax
.L1:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L11
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	iskaibun, .-iskaibun
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$136, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r13
	leaq	17(%rsp), %rbp
	call	__isoc99_scanf@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	subl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L13
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L13
.L15:
	movzbl	-1(%rcx), %edi
	cmpb	%dil, (%rdx)
	je	.L30
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	addl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L18
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L18
.L17:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L31
	addl	$1, %r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L13:
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r12d, %edx
	call	__printf_chk@PLT
.L19:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L19
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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"
	.text
	.p2align 4
	.globl	iskaibun
	.type	iskaibun, @function
iskaibun:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	leaq	.LC0(%rip), %rcx
	movl	$100, %edx
	movl	$1, %esi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L5
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%rbx, %rdx
	shrl	%eax
	addq	%rbx, %rcx
	leaq	1(%rsp,%rax), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L5
.L3:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L10
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %eax
.L1:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L11
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	iskaibun, .-iskaibun
	.section	.rodata.str1.1
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$136, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r13
	leaq	17(%rsp), %rbp
	call	__isoc99_scanf@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	subl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L13
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L13
.L15:
	movzbl	-1(%rcx), %edi
	cmpb	%dil, (%rdx)
	je	.L30
	movl	12(%rsp), %r8d
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movl	$100, %edx
	movl	$1, %esi
	addl	%r12d, %r8d
	call	__sprintf_chk@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L18
	movslq	%eax, %rcx
	subl	$1, %eax
	movq	%r13, %rdx
	shrl	%eax
	addq	%r13, %rcx
	addq	%rbp, %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rdx
	subq	$1, %rcx
	cmpq	%rax, %rdx
	je	.L18
.L17:
	movzbl	-1(%rcx), %esi
	cmpb	%sil, (%rdx)
	je	.L31
	addl	$1, %r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L13:
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r12d, %edx
	call	__printf_chk@PLT
.L19:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L19
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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:
```