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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	inputi
	.type	inputi, @function
inputi:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$48, -6(%rbp)
	movl	$0, -4(%rbp)
	movb	$1, -5(%rbp)
.L2:
	call	getchar@PLT
	movb	%al, -6(%rbp)
	cmpb	$32, -6(%rbp)
	jle	.L2
	cmpb	$45, -6(%rbp)
	jne	.L4
	movb	$-1, -5(%rbp)
	call	getchar@PLT
	movb	%al, -6(%rbp)
.L4:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -4(%rbp)
	movsbl	-6(%rbp), %eax
	subl	$48, %eax
	addl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -6(%rbp)
	cmpb	$32, -6(%rbp)
	jg	.L4
	movsbl	-5(%rbp), %eax
	imull	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	inputi, .-inputi
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.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	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, %eax
	call	inputi
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	jne	.L8
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L8
.L12:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, -4(%rbp)
.L9:
	cmpl	$0, -12(%rbp)
	jle	.L10
	movl	-12(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	negl	%eax
	movl	%eax, -12(%rbp)
	jmp	.L11
.L10:
	movl	-12(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	negl	%eax
	movl	%eax, -12(%rbp)
.L11:
	addl	$1, -8(%rbp)
.L8:
	cmpl	$0, -12(%rbp)
	jne	.L12
	jmp	.L13
.L14:
	subl	$1, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	andl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	cmpl	$0, -8(%rbp)
	jne	.L14
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	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	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
	.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:

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

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	inputi
	.type	inputi, @function
inputi:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$48, -6(%rbp)
	movl	$0, -4(%rbp)
	movb	$1, -5(%rbp)
.L2:
	call	getchar@PLT
	movb	%al, -6(%rbp)
	cmpb	$32, -6(%rbp)
	jle	.L2
	cmpb	$45, -6(%rbp)
	jne	.L4
	movb	$-1, -5(%rbp)
	call	getchar@PLT
	movb	%al, -6(%rbp)
.L4:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -4(%rbp)
	movsbl	-6(%rbp), %eax
	subl	$48, %eax
	addl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -6(%rbp)
	cmpb	$32, -6(%rbp)
	jg	.L4
	movsbl	-5(%rbp), %eax
	imull	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	inputi, .-inputi
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.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	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, %eax
	call	inputi
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	jne	.L8
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L8
.L12:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, -4(%rbp)
.L9:
	cmpl	$0, -12(%rbp)
	jle	.L10
	movl	-12(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	negl	%eax
	movl	%eax, -12(%rbp)
	jmp	.L11
.L10:
	movl	-12(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	negl	%eax
	movl	%eax, -12(%rbp)
.L11:
	addl	$1, -8(%rbp)
.L8:
	cmpl	$0, -12(%rbp)
	jne	.L12
	jmp	.L13
.L14:
	subl	$1, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	andl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	cmpl	$0, -8(%rbp)
	jne	.L14
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	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	inputi
	.type	inputi, @function
inputi:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$48, -6(%rbp)
	movl	$0, -4(%rbp)
	movb	$1, -5(%rbp)
.L2:
	call	getchar@PLT
	movb	%al, -6(%rbp)
	cmpb	$32, -6(%rbp)
	jle	.L2
	cmpb	$45, -6(%rbp)
	jne	.L4
	movb	$-1, -5(%rbp)
	call	getchar@PLT
	movb	%al, -6(%rbp)
.L4:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -4(%rbp)
	movsbl	-6(%rbp), %eax
	subl	$48, %eax
	addl	%eax, -4(%rbp)
	call	getchar@PLT
	movb	%al, -6(%rbp)
	cmpb	$32, -6(%rbp)
	jg	.L4
	movsbl	-5(%rbp), %eax
	imull	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	inputi, .-inputi
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	""
	.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	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, %eax
	call	inputi
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	jne	.L8
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L8
.L12:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, -4(%rbp)
.L9:
	cmpl	$0, -12(%rbp)
	jle	.L10
	movl	-12(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	negl	%eax
	movl	%eax, -12(%rbp)
	jmp	.L11
.L10:
	movl	-12(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	negl	%eax
	movl	%eax, -12(%rbp)
.L11:
	addl	$1, -8(%rbp)
.L8:
	cmpl	$0, -12(%rbp)
	jne	.L12
	jmp	.L13
.L14:
	subl	$1, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	andl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	cmpl	$0, -8(%rbp)
	jne	.L14
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	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:
