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 main(void)
{
    char str[1024], *p;
    int n, sim;
    
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%s", str);
        
        if (str[0] == '0'){
            break;
        }
        
        sim = 0;
        p = str;
        while (strlen(p) != 1){
            p[0] = p[0] + p[1] - '0';
            p[1] = (p[0] - '0') % 10 + '0';
            p[0] = (p[0] - '0') / 10 + '0';
            
            while (*p == '0'){
                p++;
            }
            
            sim++;
        }
        
        if (sim % 2){
            printf("Fabre wins.\n");
        }
        else {
            printf("Audrey wins.\n");
        }
    }
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Fabre wins."
.LC3:
	.string	"Audrey wins."
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L10:
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-1040(%rbp), %eax
	cmpb	$48, %al
	je	.L13
	movl	$0, -1052(%rbp)
	leaq	-1040(%rbp), %rax
	movq	%rax, -1048(%rbp)
	jmp	.L5
.L8:
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	movb	%dl, (%rax)
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %edx
	movq	-1048(%rbp), %rax
	addq	$1, %rax
	movb	%dl, (%rax)
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L6
.L7:
	addq	$1, -1048(%rbp)
.L6:
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	je	.L7
	addl	$1, -1052(%rbp)
.L5:
	movq	-1048(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	$1, %rax
	jne	.L8
	movl	-1052(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	movl	-1056(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -1056(%rbp)
	testl	%eax, %eax
	jne	.L10
	jmp	.L4
.L13:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Fabre wins."
.LC3:
	.string	"Audrey wins."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %r13
	leaq	.LC3(%rip), %r15
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpb	$48, 16(%rsp)
	je	.L2
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$1, %rax
	je	.L21
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	1(%rbx), %eax
	addb	(%rbx), %al
	subl	$48, %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movslq	%eax, %rdx
	movl	%eax, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	leal	(%rdx,%rdx,4), %ecx
	addl	$48, %edx
	addl	%ecx, %ecx
	movb	%dl, (%rbx)
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, 1(%rbx)
	cmpb	$48, %dl
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rbx
	cmpb	$48, (%rbx)
	je	.L5
.L4:
	movq	%rbx, %rdi
	addl	$1, %ebp
	call	strlen@PLT
	cmpq	$1, %rax
	jne	.L6
.L21:
	andl	$1, %ebp
	movq	%r14, %rdi
	jne	.L19
	movq	%r15, %rdi
.L19:
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L9
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Fabre wins."
.LC3:
	.string	"Audrey wins."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %r13
	leaq	.LC3(%rip), %r15
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpb	$48, 16(%rsp)
	je	.L2
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$1, %rax
	je	.L21
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	1(%rbx), %eax
	addb	(%rbx), %al
	subl	$48, %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movslq	%eax, %rdx
	movl	%eax, %ecx
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$34, %rdx
	subl	%ecx, %edx
	leal	(%rdx,%rdx,4), %ecx
	addl	$48, %edx
	addl	%ecx, %ecx
	movb	%dl, (%rbx)
	subl	%ecx, %eax
	addl	$48, %eax
	movb	%al, 1(%rbx)
	cmpb	$48, %dl
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rbx
	cmpb	$48, (%rbx)
	je	.L5
.L4:
	movq	%rbx, %rdi
	addl	$1, %ebp
	call	strlen@PLT
	cmpq	$1, %rax
	jne	.L6
.L21:
	andl	$1, %ebp
	movq	%r14, %rdi
	jne	.L19
	movq	%r15, %rdi
.L19:
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L9
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$1064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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 main(void)
{
    char str[1024], *p;
    int n, sim;
    
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%s", str);
        
        if (str[0] == '0'){
            break;
        }
        
        sim = 0;
        p = str;
        while (strlen(p) != 1){
            p[0] = p[0] + p[1] - '0';
            p[1] = (p[0] - '0') % 10 + '0';
            p[0] = (p[0] - '0') / 10 + '0';
            
            while (*p == '0'){
                p++;
            }
            
            sim++;
        }
        
        if (sim % 2){
            printf("Fabre wins.\n");
        }
        else {
            printf("Audrey wins.\n");
        }
    }
    return (0);
}
3
1234
8371
9
 3
1234
1292
9
 3
2133
1292
9
 3
1687
10
7
 3
1656
10
11
 3
3178
10
11
 3
1499
29
11
 3
49
2
14
 3
2133
261
9
 3
2133
261
7

Audrey wins.
Fabre wins.
Audrey wins.
 Audrey wins.
Audrey wins.
Audrey wins.
 Fabre wins.
Audrey wins.
Audrey wins.
 Fabre wins.
Fabre wins.
Audrey wins.
 Audrey wins.
Fabre wins.
Fabre wins.
 Fabre wins.
Fabre wins.
Fabre wins.
 Fabre wins.
Audrey wins.
Fabre wins.
 Audrey wins.
Audrey wins.
Fabre wins.
 Fabre wins.
Audrey wins.
Audrey wins.
 Fabre wins.
Audrey wins.
Audrey wins.

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 main(void)
{
    char str[1024], *p;
    int n, sim;
    
    
    scanf("%d", &n);
    
    while (n--){
        scanf("%s", str);
        
        if (str[0] == '0'){
            break;
        }
        
        sim = 0;
        p = str;
        while (strlen(p) != 1){
            p[0] = p[0] + p[1] - '0';
            p[1] = (p[0] - '0') % 10 + '0';
            p[0] = (p[0] - '0') / 10 + '0';
            
            while (*p == '0'){
                p++;
            }
            
            sim++;
        }
        
        if (sim % 2){
            printf("Fabre wins.\n");
        }
        else {
            printf("Audrey wins.\n");
        }
    }
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Fabre wins."
.LC3:
	.string	"Audrey wins."
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L10:
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-1040(%rbp), %eax
	cmpb	$48, %al
	je	.L13
	movl	$0, -1052(%rbp)
	leaq	-1040(%rbp), %rax
	movq	%rax, -1048(%rbp)
	jmp	.L5
.L8:
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	movb	%dl, (%rax)
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %edx
	movq	-1048(%rbp), %rax
	addq	$1, %rax
	movb	%dl, (%rax)
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L6
.L7:
	addq	$1, -1048(%rbp)
.L6:
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	je	.L7
	addl	$1, -1052(%rbp)
.L5:
	movq	-1048(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	$1, %rax
	jne	.L8
	movl	-1052(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	movl	-1056(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -1056(%rbp)
	testl	%eax, %eax
	jne	.L10
	jmp	.L4
.L13:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Fabre wins."
.LC3:
	.string	"Audrey wins."
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L10:
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-1040(%rbp), %eax
	cmpb	$48, %al
	je	.L13
	movl	$0, -1052(%rbp)
	leaq	-1040(%rbp), %rax
	movq	%rax, -1048(%rbp)
	jmp	.L5
.L8:
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	movb	%dl, (%rax)
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %edx
	movq	-1048(%rbp), %rax
	addq	$1, %rax
	movb	%dl, (%rax)
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movq	-1048(%rbp), %rax
	movb	%dl, (%rax)
	jmp	.L6
.L7:
	addq	$1, -1048(%rbp)
.L6:
	movq	-1048(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	je	.L7
	addl	$1, -1052(%rbp)
.L5:
	movq	-1048(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	$1, %rax
	jne	.L8
	movl	-1052(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	movl	-1056(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -1056(%rbp)
	testl	%eax, %eax
	jne	.L10
	jmp	.L4
.L13:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
