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>
int inputi(){
	char c='0';
	int ans=0;
	signed char flg=1;
	do{
		c=getchar();
	}while(c<=32);
	if(c=='-'){
		flg=-1;
		c=getchar();
	}
	do{
		ans*=10;
		ans+=(c-'0');
		c=getchar();
	}while(c>32);
	return ans*flg;
}
int main(void){
	int n,j=0;
	unsigned o=0;
	n=inputi();
  	if(n==0) printf("0");
	while(n){
		if(n%2) o|=1<<j;
		if(n>0)n=(n-n%2)/-2;else n=(n+n%2)/-2;
		j++;
	}
	while(j){
		j--;
		printf("%d",(o&1<<j)>>j);
	}
	puts("");
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	inputi
	.type	inputi, @function
inputi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	jle	.L2
	movsbl	%al, %edx
	movl	$1, %ebp
	cmpb	$45, %dl
	je	.L10
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getc@PLT
	movsbl	%al, %edx
	cmpb	$32, %al
	jg	.L4
	movl	%ebx, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imull	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movl	$-1, %ebp
	call	getc@PLT
	movsbl	%al, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	inputi, .-inputi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	inputi
	movl	$1, %esi
	testl	%eax, %eax
	je	.L30
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %al
	je	.L14
	movl	%esi, %edx
	movl	%ebp, %ecx
	sall	%cl, %edx
	orl	%edx, %ebx
.L14:
	testl	%eax, %eax
	jg	.L29
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
.L29:
	sarl	%eax
	addl	$1, %ebp
	negl	%eax
	jne	.L12
	leaq	.LC0(%rip), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$1, %ebp
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ebp, %ecx
	movl	$1, %edi
	sall	%cl, %edx
	andl	%ebx, %edx
	shrl	%cl, %edx
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jne	.L18
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	addq	$8, %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
.L30:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L13
	.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	inputi
	.type	inputi, @function
inputi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	jle	.L2
	movsbl	%al, %edx
	movl	$1, %ebp
	cmpb	$45, %dl
	je	.L10
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getc@PLT
	movsbl	%al, %edx
	cmpb	$32, %al
	jg	.L4
	movl	%ebx, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imull	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movl	$-1, %ebp
	call	getc@PLT
	movsbl	%al, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	inputi, .-inputi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	inputi
	movl	$1, %esi
	testl	%eax, %eax
	je	.L30
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %al
	je	.L14
	movl	%esi, %edx
	movl	%ebp, %ecx
	sall	%cl, %edx
	orl	%edx, %ebx
.L14:
	testl	%eax, %eax
	jg	.L29
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
.L29:
	sarl	%eax
	addl	$1, %ebp
	negl	%eax
	jne	.L12
	leaq	.LC0(%rip), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$1, %ebp
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ebp, %ecx
	movl	$1, %edi
	sall	%cl, %edx
	andl	%ebx, %edx
	shrl	%cl, %edx
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jne	.L18
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	addq	$8, %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
.L30:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L13
	.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	inputi
	.type	inputi, @function
inputi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	jle	.L2
	movsbl	%al, %edx
	movl	$1, %ebp
	cmpb	$45, %dl
	je	.L10
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getc@PLT
	movsbl	%al, %edx
	cmpb	$32, %al
	jg	.L4
	movl	%ebx, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imull	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movl	$-1, %ebp
	call	getc@PLT
	movsbl	%al, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	inputi, .-inputi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	inputi
	movl	$1, %esi
	testl	%eax, %eax
	je	.L30
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %al
	je	.L14
	movl	%esi, %edx
	movl	%ebp, %ecx
	sall	%cl, %edx
	orl	%edx, %ebx
.L14:
	testl	%eax, %eax
	jg	.L29
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
.L29:
	sarl	%eax
	addl	$1, %ebp
	negl	%eax
	jne	.L12
	leaq	.LC0(%rip), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$1, %ebp
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ebp, %ecx
	movl	$1, %edi
	sall	%cl, %edx
	andl	%ebx, %edx
	shrl	%cl, %edx
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jne	.L18
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	addq	$8, %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
.L30:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L13
	.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>
int inputi(){
	char c='0';
	int ans=0;
	signed char flg=1;
	do{
		c=getchar();
	}while(c<=32);
	if(c=='-'){
		flg=-1;
		c=getchar();
	}
	do{
		ans*=10;
		ans+=(c-'0');
		c=getchar();
	}while(c>32);
	return ans*flg;
}
int main(void){
	int n,j=0;
	unsigned o=0;
	n=inputi();
  	if(n==0) printf("0");
	while(n){
		if(n%2) o|=1<<j;
		if(n>0)n=(n-n%2)/-2;else n=(n+n%2)/-2;
		j++;
	}
	while(j){
		j--;
		printf("%d",(o&1<<j)>>j);
	}
	puts("");
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int inputi(){
	char c='0';
	int ans=0;
	signed char flg=1;
	do{
		c=getchar();
	}while(c<=32);
	if(c=='-'){
		flg=-1;
		c=getchar();
	}
	do{
		ans*=10;
		ans+=(c-'0');
		c=getchar();
	}while(c>32);
	return ans*flg;
}
int main(void){
	int n,j=0;
	unsigned o=0;
	n=inputi();
  	if(n==0) printf("0");
	while(n){
		if(n%2) o|=1<<j;
		if(n>0)n=(n-n%2)/-2;else n=(n+n%2)/-2;
		j++;
	}
	while(j){
		j--;
		printf("%d",(o&1<<j)>>j);
	}
	puts("");
	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:

-1
 208967441
 -6
 -2
 180276081
 -3
 1
 175198680
 -4
 2

11
 11101101101011110101100010001
 1110
 10
 11111110000111101110010110001
 1101
 1
 11111101100010101011000101000
 1100
 110

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>
int inputi(){
	char c='0';
	int ans=0;
	signed char flg=1;
	do{
		c=getchar();
	}while(c<=32);
	if(c=='-'){
		flg=-1;
		c=getchar();
	}
	do{
		ans*=10;
		ans+=(c-'0');
		c=getchar();
	}while(c>32);
	return ans*flg;
}
int main(void){
	int n,j=0;
	unsigned o=0;
	n=inputi();
  	if(n==0) printf("0");
	while(n){
		if(n%2) o|=1<<j;
		if(n>0)n=(n-n%2)/-2;else n=(n+n%2)/-2;
		j++;
	}
	while(j){
		j--;
		printf("%d",(o&1<<j)>>j);
	}
	puts("");
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	inputi
	.type	inputi, @function
inputi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	jle	.L2
	movsbl	%al, %edx
	movl	$1, %ebp
	cmpb	$45, %dl
	je	.L10
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getc@PLT
	movsbl	%al, %edx
	cmpb	$32, %al
	jg	.L4
	movl	%ebx, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imull	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movl	$-1, %ebp
	call	getc@PLT
	movsbl	%al, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	inputi, .-inputi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	inputi
	movl	$1, %esi
	testl	%eax, %eax
	je	.L30
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %al
	je	.L14
	movl	%esi, %edx
	movl	%ebp, %ecx
	sall	%cl, %edx
	orl	%edx, %ebx
.L14:
	testl	%eax, %eax
	jg	.L29
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
.L29:
	sarl	%eax
	addl	$1, %ebp
	negl	%eax
	jne	.L12
	leaq	.LC0(%rip), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$1, %ebp
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ebp, %ecx
	movl	$1, %edi
	sall	%cl, %edx
	andl	%ebx, %edx
	shrl	%cl, %edx
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jne	.L18
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	addq	$8, %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
.L30:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L13
	.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	inputi
	.type	inputi, @function
inputi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L2:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$32, %al
	jle	.L2
	movsbl	%al, %edx
	movl	$1, %ebp
	cmpb	$45, %dl
	je	.L10
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	leal	(%rbx,%rbx,4), %eax
	leal	-48(%rdx,%rax,2), %ebx
	call	getc@PLT
	movsbl	%al, %edx
	cmpb	$32, %al
	jg	.L4
	movl	%ebx, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imull	%ebp, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movl	$-1, %ebp
	call	getc@PLT
	movsbl	%al, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	inputi, .-inputi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	inputi
	movl	$1, %esi
	testl	%eax, %eax
	je	.L30
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %al
	je	.L14
	movl	%esi, %edx
	movl	%ebp, %ecx
	sall	%cl, %edx
	orl	%edx, %ebx
.L14:
	testl	%eax, %eax
	jg	.L29
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
.L29:
	sarl	%eax
	addl	$1, %ebp
	negl	%eax
	jne	.L12
	leaq	.LC0(%rip), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$1, %ebp
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	%ebp, %ecx
	movl	$1, %edi
	sall	%cl, %edx
	andl	%ebx, %edx
	shrl	%cl, %edx
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jne	.L18
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	addq	$8, %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
.L30:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L13
	.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:
```