Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
 * ID: ITP1_9_B
 * Problem: shuffle
 */

#include <stdio.h>
#include <string.h>

int main(void)
{
    while (1) {
        char string[200 + 1];
        scanf("%s", string);
        if (strcmp(string, "-") == 0)
            break;

        int command;
        scanf("%d", &command);
        int index = 0;
        for (int i = 0; i < command; i++) {
            int shift;
            scanf("%d", &shift);
            index += shift;
        }

        index %= strlen(string);
        for (int i = index; string[i]; i++)
            putchar(string[i]);
        for (int i = 0; i < index; i++)
            putchar(string[i]);
        putchar('\n');
    }

    return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"-"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	leaq	.LC2(%rip), %rbx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$45, 0(%rbp)
	je	.L27
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addl	12(%rsp), %r14d
	cmpl	%r12d, 8(%rsp)
	jg	.L6
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%r14d, %rax
	divq	%r8
	movl	%edx, %r12d
	movslq	%edx, %rdx
	movsbl	16(%rsp,%rdx), %edi
	testb	%dil, %dil
	je	.L7
.L12:
	movslq	%r12d, %r14
	addq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	movsbl	(%r14), %edi
	testb	%dil, %dil
	jne	.L8
.L7:
	testl	%r12d, %r12d
	je	.L9
	leal	-1(%r12), %eax
	movq	%rbp, %r14
	leaq	17(%rsp,%rax), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r14), %edi
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	cmpq	%r14, %r12
	jne	.L10
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$248, %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
.L5:
	.cfi_restore_state
	movsbl	16(%rsp), %edi
	xorl	%r12d, %r12d
	testb	%dil, %dil
	jne	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%s"
.LC1:
	.string	"-"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	leaq	.LC2(%rip), %rbx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$45, 0(%rbp)
	je	.L27
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addl	12(%rsp), %r14d
	cmpl	%r12d, 8(%rsp)
	jg	.L6
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%r14d, %rax
	divq	%r8
	movl	%edx, %r12d
	movslq	%edx, %rdx
	movsbl	16(%rsp,%rdx), %edi
	testb	%dil, %dil
	je	.L7
.L12:
	movslq	%r12d, %r14
	addq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	movsbl	(%r14), %edi
	testb	%dil, %dil
	jne	.L8
.L7:
	testl	%r12d, %r12d
	je	.L9
	leal	-1(%r12), %eax
	movq	%rbp, %r14
	leaq	17(%rsp,%rax), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r14), %edi
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	cmpq	%r14, %r12
	jne	.L10
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$248, %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
.L5:
	.cfi_restore_state
	movsbl	16(%rsp), %edi
	xorl	%r12d, %r12d
	testb	%dil, %dil
	jne	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%s"
.LC1:
	.string	"-"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	leaq	.LC2(%rip), %rbx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$45, 0(%rbp)
	je	.L27
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addl	12(%rsp), %r14d
	cmpl	%r12d, 8(%rsp)
	jg	.L6
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%r14d, %rax
	divq	%r8
	movl	%edx, %r12d
	movslq	%edx, %rdx
	movsbl	16(%rsp,%rdx), %edi
	testb	%dil, %dil
	je	.L7
.L12:
	movslq	%r12d, %r14
	addq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	movsbl	(%r14), %edi
	testb	%dil, %dil
	jne	.L8
.L7:
	testl	%r12d, %r12d
	je	.L9
	leal	-1(%r12), %eax
	movq	%rbp, %r14
	leaq	17(%rsp,%rax), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r14), %edi
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	cmpq	%r14, %r12
	jne	.L10
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$248, %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
.L5:
	.cfi_restore_state
	movsbl	16(%rsp), %edi
	xorl	%r12d, %r12d
	testb	%dil, %dil
	jne	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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
/*
 * ID: ITP1_9_B
 * Problem: shuffle
 */

#include <stdio.h>
#include <string.h>

int main(void)
{
    while (1) {
        char string[200 + 1];
        scanf("%s", string);
        if (strcmp(string, "-") == 0)
            break;

        int command;
        scanf("%d", &command);
        int index = 0;
        for (int i = 0; i < command; i++) {
            int shift;
            scanf("%d", &shift);
            index += shift;
        }

        index %= strlen(string);
        for (int i = index; string[i]; i++)
            putchar(string[i]);
        for (int i = 0; i < index; i++)
            putchar(string[i]);
        putchar('\n');
    }

    return 0;
}

```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
 * ID: ITP1_9_B
 * Problem: shuffle
 */

#include <stdio.h>
#include <string.h>

int main(void)
{
    while (1) {
        char string[200 + 1];
        scanf("%s", string);
        if (strcmp(string, "-") == 0)
            break;

        int command;
        scanf("%d", &command);
        int index = 0;
        for (int i = 0; i < command; i++) {
            int shift;
            scanf("%d", &shift);
            index += shift;
        }

        index %= strlen(string);
        for (int i = index; string[i]; i++)
            putchar(string[i]);
        for (int i = 0; i < index; i++)
            putchar(string[i]);
        putchar('\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:

aaac
3
1
2
1
vwxyz
2
3
4
-
 caaa
3
1
2
1
vwxyz
2
3
4
-
 caaa
3
1
2
2
vxxyz
2
3
4
-
 ca`a
3
1
2
2
vwxyz
2
3
4
-
 caaa
3
1
0
2
vwxyz
2
3
4
-
 caaa
3
1
-1
2
vwxyz
2
3
4
-
 aaac
3
1
2
1
vwxyz
2
2
4
-
 ca`a
3
1
2
1
vwxyz
2
3
4
-
 ca`a
3
1
2
2
vwxyz
2
2
4
-
 caaa
3
1
0
2
vwxyz
2
3
2
-

aaac
xyzvw
 caaa
xyzvw
 aaac
xyzvx
 a`ac
xyzvw
 acaa
xyzvw
 aaca
xyzvw
 aaac
wxyzv
 ca`a
xyzvw
 a`ac
wxyzv
 acaa
vwxyz

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
 * ID: ITP1_9_B
 * Problem: shuffle
 */

#include <stdio.h>
#include <string.h>

int main(void)
{
    while (1) {
        char string[200 + 1];
        scanf("%s", string);
        if (strcmp(string, "-") == 0)
            break;

        int command;
        scanf("%d", &command);
        int index = 0;
        for (int i = 0; i < command; i++) {
            int shift;
            scanf("%d", &shift);
            index += shift;
        }

        index %= strlen(string);
        for (int i = index; string[i]; i++)
            putchar(string[i]);
        for (int i = 0; i < index; i++)
            putchar(string[i]);
        putchar('\n');
    }

    return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"-"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	leaq	.LC2(%rip), %rbx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$45, 0(%rbp)
	je	.L27
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addl	12(%rsp), %r14d
	cmpl	%r12d, 8(%rsp)
	jg	.L6
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%r14d, %rax
	divq	%r8
	movl	%edx, %r12d
	movslq	%edx, %rdx
	movsbl	16(%rsp,%rdx), %edi
	testb	%dil, %dil
	je	.L7
.L12:
	movslq	%r12d, %r14
	addq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	movsbl	(%r14), %edi
	testb	%dil, %dil
	jne	.L8
.L7:
	testl	%r12d, %r12d
	je	.L9
	leal	-1(%r12), %eax
	movq	%rbp, %r14
	leaq	17(%rsp,%rax), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r14), %edi
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	cmpq	%r14, %r12
	jne	.L10
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$248, %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
.L5:
	.cfi_restore_state
	movsbl	16(%rsp), %edi
	xorl	%r12d, %r12d
	testb	%dil, %dil
	jne	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%s"
.LC1:
	.string	"-"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	leaq	.LC2(%rip), %rbx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$45, 0(%rbp)
	je	.L27
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addl	12(%rsp), %r14d
	cmpl	%r12d, 8(%rsp)
	jg	.L6
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%r14d, %rax
	divq	%r8
	movl	%edx, %r12d
	movslq	%edx, %rdx
	movsbl	16(%rsp,%rdx), %edi
	testb	%dil, %dil
	je	.L7
.L12:
	movslq	%r12d, %r14
	addq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	movsbl	(%r14), %edi
	testb	%dil, %dil
	jne	.L8
.L7:
	testl	%r12d, %r12d
	je	.L9
	leal	-1(%r12), %eax
	movq	%rbp, %r14
	leaq	17(%rsp,%rax), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r14), %edi
	movq	stdout(%rip), %rsi
	addq	$1, %r14
	call	putc@PLT
	cmpq	%r14, %r12
	jne	.L10
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$248, %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
.L5:
	.cfi_restore_state
	movsbl	16(%rsp), %edi
	xorl	%r12d, %r12d
	testb	%dil, %dil
	jne	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```