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

Assembly Code:

```assembly
	.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:
```

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"
.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
```assembly
	.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:
```
```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);
}```
Given the following C 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);
}```

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:

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

Assembly Code:

```assembly
	.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:
```

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"
.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:
```