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>
#include <stdlib.h>
#include <ctype.h>

int cmpItem(const char* a, const char* b) {
	int id1 = isdigit((unsigned char)*a), id2 = isdigit((unsigned char)*b);
	if (*a == '\0' && *b != '\0') return -1;
	if (*a != '\0' && *b == '\0') return 1;
	if (id1 && !id2) return -1;
	if (!id1 && id2) return 1;
	if (id1) {
		int aa = atoi(a), bb = atoi(b);
		return aa < bb ? -1 : aa > bb;
	} else {
		return (unsigned char)*a - (unsigned char)*b;
	}
}

char* getNextItem(char* out, char* in) {
	if (isdigit((unsigned char)*in)) {
		while (isdigit((unsigned char)*in)) {
			*(out++) = *(in++);
		}
		*out = '\0';
		return in;
	} else {
		out[0] = *in;
		out[1] = '\0';
		return in + 1;
	}
}

int main(void) {
	int n;
	int i;
	char s0[16];
	char s[16];
	if (scanf("%d", &n) != 1) return 1;
	if (scanf("%15s", s0) != 1) return 1;
	for (i = 0; i < n; i++) {
		char* s0ptr, *sptr;
		if (scanf("%15s", s) != 1) return 1;
		s0ptr = s0;
		sptr = s;
		for (;;) {
			char item1[16], item2[16];
			int cres;
			s0ptr = getNextItem(item1, s0ptr);
			sptr = getNextItem(item2, sptr);
			cres = cmpItem(item1, item2);
			if (cres != 0) {
				printf("%c\n", cres > 0 ? '-' : '+');
				break;
			} else if (*item1 == '\0' && *item2 == '\0') {
				puts("+");
				break;
			}
		}
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpItem
	.type	cmpItem, @function
cmpItem:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	movl	%eax, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L2
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L4
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	$1, %eax
	jmp	.L3
.L4:
	cmpl	$0, -16(%rbp)
	je	.L5
	cmpl	$0, -12(%rbp)
	jne	.L5
	movl	$-1, %eax
	jmp	.L3
.L5:
	cmpl	$0, -16(%rbp)
	jne	.L6
	cmpl	$0, -12(%rbp)
	je	.L6
	movl	$1, %eax
	jmp	.L3
.L6:
	cmpl	$0, -16(%rbp)
	je	.L7
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L8
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	setg	%al
	movzbl	%al, %eax
	jmp	.L3
.L8:
	movl	$-1, %eax
	jmp	.L3
.L7:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %edx
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpItem, .-cmpItem
	.globl	getNextItem
	.type	getNextItem, @function
getNextItem:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L13:
	movq	-16(%rbp), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -8(%rbp)
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
.L12:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L13
	movq	-8(%rbp), %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
	jmp	.L14
.L11:
	movq	-16(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movb	%dl, (%rax)
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
	addq	$1, %rax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getNextItem, .-getNextItem
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%15s"
.LC2:
	.string	"%c\n"
.LC3:
	.string	"+"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L16
	movl	$1, %eax
	jmp	.L28
.L16:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
	movl	$1, %eax
	jmp	.L28
.L18:
	movl	$0, -104(%rbp)
	jmp	.L19
.L27:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L20
	movl	$1, %eax
	jmp	.L28
.L20:
	leaq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)
.L26:
	movq	-96(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	getNextItem
	movq	%rax, -96(%rbp)
	movq	-88(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	getNextItem
	movq	%rax, -88(%rbp)
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	cmpItem
	movl	%eax, -100(%rbp)
	cmpl	$0, -100(%rbp)
	je	.L21
	cmpl	$0, -100(%rbp)
	jle	.L22
	movl	$45, %eax
	jmp	.L23
.L22:
	movl	$43, %eax
.L23:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L24
.L21:
	movzbl	-48(%rbp), %eax
	testb	%al, %al
	jne	.L26
	movzbl	-32(%rbp), %eax
	testb	%al, %al
	jne	.L26
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	addl	$1, -104(%rbp)
.L19:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L27
	movl	$0, %eax
.L28:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	cmpItem
	.type	cmpItem, @function
cmpItem:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	__ctype_b_loc@PLT
	movzbl	(%r12), %edx
	movzbl	0(%rbp), %esi
	movq	(%rax), %rax
	movq	%rdx, %rdi
	movq	%rsi, %rcx
	movzwl	(%rax,%rdx,2), %edx
	movzwl	(%rax,%rsi,2), %esi
	movl	%edx, %r8d
	andl	$2048, %esi
	andl	$2048, %edx
	andw	$2048, %r8w
	testb	%dil, %dil
	jne	.L2
	testb	%cl, %cl
	jne	.L5
	testl	%edx, %edx
	je	.L23
.L28:
	testl	%esi, %esi
	je	.L5
	testl	%edx, %edx
	je	.L23
.L12:
	movzbl	%dil, %eax
	subl	%ecx, %eax
	testw	%r8w, %r8w
	jne	.L27
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%esi, %esi
	je	.L12
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movl	$1, %eax
	testb	%cl, %cl
	je	.L1
	testl	%edx, %edx
	jne	.L28
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%esi, %esi
	movq	%r12, %rdi
	movl	$10, %edx
	call	strtol@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strtol@PLT
	cmpl	%eax, %r12d
	jl	.L5
	setg	%al
	movzbl	%al, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	$-1, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	cmpItem, .-cmpItem
	.p2align 4
	.globl	getNextItem
	.type	getNextItem, @function
getNextItem:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	__ctype_b_loc@PLT
	movzbl	(%rbx), %esi
	movq	(%rax), %rcx
	movq	%rsi, %rdx
	testb	$8, 1(%rcx,%rsi,2)
	jne	.L31
	movb	%sil, 0(%rbp)
	leaq	1(%rbx), %rax
	movb	$0, 1(%rbp)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	addq	$1, %rbx
	movb	%dl, 0(%rbp)
	movq	(%rax), %rcx
	addq	$1, %rbp
	movzbl	(%rbx), %esi
	movq	%rsi, %rdx
	testb	$8, 1(%rcx,%rsi,2)
	jne	.L31
	movb	$0, 0(%rbp)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE42:
	.size	getNextItem, .-getNextItem
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%15s"
.LC2:
	.string	"%c\n"
.LC3:
	.string	"+"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB43:
	.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	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L36
.L38:
	movl	$1, %eax
.L35:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L60
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L36:
	.cfi_restore_state
	leaq	32(%rsp), %rax
	leaq	.LC1(%rip), %rdi
	movq	%rax, (%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L38
	xorl	%r13d, %r13d
	leaq	48(%rsp), %rax
	cmpl	$0, 28(%rsp)
	movq	%rax, 8(%rsp)
	jle	.L51
	leaq	64(%rsp), %rbp
	leaq	80(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L39:
	movq	8(%rsp), %r14
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	movq	%r14, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L38
	call	__ctype_b_loc@PLT
	movq	(%rsp), %r15
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L50:
	movzbl	(%r15), %esi
	movq	(%r12), %rdi
	movq	%rsi, %rax
	testb	$8, 1(%rdi,%rsi,2)
	je	.L40
	movq	%rbp, %rsi
	.p2align 4,,10
	.p2align 3
.L41:
	movzbl	1(%r15), %r8d
	addq	$1, %r15
	addq	$1, %rsi
	movb	%al, -1(%rsi)
	movq	%r8, %rax
	testb	$8, 1(%rdi,%r8,2)
	jne	.L41
	movb	$0, (%rsi)
.L42:
	movzbl	(%r14), %esi
	movq	%rsi, %rax
	testb	$8, 1(%rdi,%rsi,2)
	je	.L43
	movq	%rbx, %rsi
	.p2align 4,,10
	.p2align 3
.L44:
	movzbl	1(%r14), %r8d
	addq	$1, %r14
	addq	$1, %rsi
	movb	%al, -1(%rsi)
	movq	%r8, %rax
	testb	$8, 1(%rdi,%r8,2)
	jne	.L44
	movb	$0, (%rsi)
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	call	cmpItem
	testl	%eax, %eax
	jne	.L61
.L46:
	movzbl	64(%rsp), %eax
	orb	80(%rsp), %al
	jne	.L50
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L48:
	addl	$1, %r13d
	cmpl	%r13d, 28(%rsp)
	jg	.L39
.L51:
	xorl	%eax, %eax
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L43:
	movb	%sil, 80(%rsp)
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	addq	$1, %r14
	movb	$0, 81(%rsp)
	call	cmpItem
	testl	%eax, %eax
	je	.L46
.L61:
	setg	%dl
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movzbl	%dl, %edx
	leal	43(%rdx,%rdx), %edx
	call	__printf_chk@PLT
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L40:
	movb	%sil, 64(%rsp)
	addq	$1, %r15
	movb	$0, 65(%rsp)
	jmp	.L42
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE43:
	.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	cmpItem
	.type	cmpItem, @function
cmpItem:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	__ctype_b_loc@PLT
	movzbl	(%r12), %edx
	movzbl	0(%rbp), %esi
	movq	(%rax), %rax
	movq	%rdx, %rdi
	movq	%rsi, %rcx
	movzwl	(%rax,%rdx,2), %edx
	movzwl	(%rax,%rsi,2), %esi
	movl	%edx, %r8d
	andl	$2048, %esi
	andl	$2048, %edx
	andw	$2048, %r8w
	testb	%dil, %dil
	jne	.L2
	testb	%cl, %cl
	jne	.L5
	testl	%edx, %edx
	je	.L23
.L28:
	testl	%esi, %esi
	je	.L5
	testl	%edx, %edx
	je	.L23
.L12:
	movzbl	%dil, %eax
	subl	%ecx, %eax
	testw	%r8w, %r8w
	jne	.L27
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%esi, %esi
	je	.L12
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movl	$1, %eax
	testb	%cl, %cl
	je	.L1
	testl	%edx, %edx
	jne	.L28
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%esi, %esi
	movq	%r12, %rdi
	movl	$10, %edx
	call	strtol@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strtol@PLT
	cmpl	%eax, %r12d
	jl	.L5
	setg	%al
	movzbl	%al, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	$-1, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	cmpItem, .-cmpItem
	.p2align 4
	.globl	getNextItem
	.type	getNextItem, @function
getNextItem:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	__ctype_b_loc@PLT
	movzbl	(%rbx), %esi
	movq	(%rax), %rcx
	movq	%rsi, %rdx
	testb	$8, 1(%rcx,%rsi,2)
	jne	.L31
	movb	%sil, 0(%rbp)
	leaq	1(%rbx), %rax
	movb	$0, 1(%rbp)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	addq	$1, %rbx
	movb	%dl, 0(%rbp)
	movq	(%rax), %rcx
	addq	$1, %rbp
	movzbl	(%rbx), %esi
	movq	%rsi, %rdx
	testb	$8, 1(%rcx,%rsi,2)
	jne	.L31
	movb	$0, 0(%rbp)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE42:
	.size	getNextItem, .-getNextItem
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%15s"
.LC2:
	.string	"%c\n"
.LC3:
	.string	"+"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB43:
	.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	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L36
.L38:
	movl	$1, %eax
.L35:
	movq	104(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L60
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L36:
	.cfi_restore_state
	leaq	32(%rsp), %rax
	leaq	.LC1(%rip), %rdi
	movq	%rax, (%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L38
	xorl	%r13d, %r13d
	leaq	48(%rsp), %rax
	cmpl	$0, 28(%rsp)
	movq	%rax, 8(%rsp)
	jle	.L51
	leaq	64(%rsp), %rbp
	leaq	80(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L39:
	movq	8(%rsp), %r14
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	movq	%r14, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L38
	call	__ctype_b_loc@PLT
	movq	(%rsp), %r15
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L50:
	movzbl	(%r15), %esi
	movq	(%r12), %rdi
	movq	%rsi, %rax
	testb	$8, 1(%rdi,%rsi,2)
	je	.L40
	movq	%rbp, %rsi
	.p2align 4,,10
	.p2align 3
.L41:
	movzbl	1(%r15), %r8d
	addq	$1, %r15
	addq	$1, %rsi
	movb	%al, -1(%rsi)
	movq	%r8, %rax
	testb	$8, 1(%rdi,%r8,2)
	jne	.L41
	movb	$0, (%rsi)
.L42:
	movzbl	(%r14), %esi
	movq	%rsi, %rax
	testb	$8, 1(%rdi,%rsi,2)
	je	.L43
	movq	%rbx, %rsi
	.p2align 4,,10
	.p2align 3
.L44:
	movzbl	1(%r14), %r8d
	addq	$1, %r14
	addq	$1, %rsi
	movb	%al, -1(%rsi)
	movq	%r8, %rax
	testb	$8, 1(%rdi,%r8,2)
	jne	.L44
	movb	$0, (%rsi)
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	call	cmpItem
	testl	%eax, %eax
	jne	.L61
.L46:
	movzbl	64(%rsp), %eax
	orb	80(%rsp), %al
	jne	.L50
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L48:
	addl	$1, %r13d
	cmpl	%r13d, 28(%rsp)
	jg	.L39
.L51:
	xorl	%eax, %eax
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L43:
	movb	%sil, 80(%rsp)
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	addq	$1, %r14
	movb	$0, 81(%rsp)
	call	cmpItem
	testl	%eax, %eax
	je	.L46
.L61:
	setg	%dl
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movzbl	%dl, %edx
	leal	43(%rdx,%rdx), %edx
	call	__printf_chk@PLT
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L40:
	movb	%sil, 64(%rsp)
	addq	$1, %r15
	movb	$0, 65(%rsp)
	jmp	.L42
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE43:
	.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>
#include <stdlib.h>
#include <ctype.h>

int cmpItem(const char* a, const char* b) {
	int id1 = isdigit((unsigned char)*a), id2 = isdigit((unsigned char)*b);
	if (*a == '\0' && *b != '\0') return -1;
	if (*a != '\0' && *b == '\0') return 1;
	if (id1 && !id2) return -1;
	if (!id1 && id2) return 1;
	if (id1) {
		int aa = atoi(a), bb = atoi(b);
		return aa < bb ? -1 : aa > bb;
	} else {
		return (unsigned char)*a - (unsigned char)*b;
	}
}

char* getNextItem(char* out, char* in) {
	if (isdigit((unsigned char)*in)) {
		while (isdigit((unsigned char)*in)) {
			*(out++) = *(in++);
		}
		*out = '\0';
		return in;
	} else {
		out[0] = *in;
		out[1] = '\0';
		return in + 1;
	}
}

int main(void) {
	int n;
	int i;
	char s0[16];
	char s[16];
	if (scanf("%d", &n) != 1) return 1;
	if (scanf("%15s", s0) != 1) return 1;
	for (i = 0; i < n; i++) {
		char* s0ptr, *sptr;
		if (scanf("%15s", s) != 1) return 1;
		s0ptr = s0;
		sptr = s;
		for (;;) {
			char item1[16], item2[16];
			int cres;
			s0ptr = getNextItem(item1, s0ptr);
			sptr = getNextItem(item2, sptr);
			cres = cmpItem(item1, item2);
			if (cres != 0) {
				printf("%c\n", cres > 0 ? '-' : '+');
				break;
			} else if (*item1 == '\0' && *item2 == '\0') {
				puts("+");
				break;
			}
		}
	}
	return 0;
}


2
file10
fi2el0
file3
 2
fjle10
fi2el0
iele3
 2
01eljf
fi2el0
iele3
 2
flje10
if3el0
2elei
 2
file10
fi2el0
eile3
 2
fjle10
fi2el0
eile3
 2
01eljf
fi2el0
iele2
 2
01ejlf
fi2el0
iele2
 2
01ejlf
fi3el0
iele2
 2
01ejlf
if3el0
iele2

-
-
 -
+
 +
+
 +
-
 -
-
 -
-
 +
+
 +
+
 +
+
 +
+

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>
#include <stdlib.h>
#include <ctype.h>

int cmpItem(const char* a, const char* b) {
	int id1 = isdigit((unsigned char)*a), id2 = isdigit((unsigned char)*b);
	if (*a == '\0' && *b != '\0') return -1;
	if (*a != '\0' && *b == '\0') return 1;
	if (id1 && !id2) return -1;
	if (!id1 && id2) return 1;
	if (id1) {
		int aa = atoi(a), bb = atoi(b);
		return aa < bb ? -1 : aa > bb;
	} else {
		return (unsigned char)*a - (unsigned char)*b;
	}
}

char* getNextItem(char* out, char* in) {
	if (isdigit((unsigned char)*in)) {
		while (isdigit((unsigned char)*in)) {
			*(out++) = *(in++);
		}
		*out = '\0';
		return in;
	} else {
		out[0] = *in;
		out[1] = '\0';
		return in + 1;
	}
}

int main(void) {
	int n;
	int i;
	char s0[16];
	char s[16];
	if (scanf("%d", &n) != 1) return 1;
	if (scanf("%15s", s0) != 1) return 1;
	for (i = 0; i < n; i++) {
		char* s0ptr, *sptr;
		if (scanf("%15s", s) != 1) return 1;
		s0ptr = s0;
		sptr = s;
		for (;;) {
			char item1[16], item2[16];
			int cres;
			s0ptr = getNextItem(item1, s0ptr);
			sptr = getNextItem(item2, sptr);
			cres = cmpItem(item1, item2);
			if (cres != 0) {
				printf("%c\n", cres > 0 ? '-' : '+');
				break;
			} else if (*item1 == '\0' && *item2 == '\0') {
				puts("+");
				break;
			}
		}
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpItem
	.type	cmpItem, @function
cmpItem:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	movl	%eax, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L2
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L4
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	$1, %eax
	jmp	.L3
.L4:
	cmpl	$0, -16(%rbp)
	je	.L5
	cmpl	$0, -12(%rbp)
	jne	.L5
	movl	$-1, %eax
	jmp	.L3
.L5:
	cmpl	$0, -16(%rbp)
	jne	.L6
	cmpl	$0, -12(%rbp)
	je	.L6
	movl	$1, %eax
	jmp	.L3
.L6:
	cmpl	$0, -16(%rbp)
	je	.L7
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L8
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	setg	%al
	movzbl	%al, %eax
	jmp	.L3
.L8:
	movl	$-1, %eax
	jmp	.L3
.L7:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %edx
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpItem, .-cmpItem
	.globl	getNextItem
	.type	getNextItem, @function
getNextItem:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L13:
	movq	-16(%rbp), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -8(%rbp)
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
.L12:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L13
	movq	-8(%rbp), %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
	jmp	.L14
.L11:
	movq	-16(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movb	%dl, (%rax)
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
	addq	$1, %rax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getNextItem, .-getNextItem
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%15s"
.LC2:
	.string	"%c\n"
.LC3:
	.string	"+"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L16
	movl	$1, %eax
	jmp	.L28
.L16:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
	movl	$1, %eax
	jmp	.L28
.L18:
	movl	$0, -104(%rbp)
	jmp	.L19
.L27:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L20
	movl	$1, %eax
	jmp	.L28
.L20:
	leaq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)
.L26:
	movq	-96(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	getNextItem
	movq	%rax, -96(%rbp)
	movq	-88(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	getNextItem
	movq	%rax, -88(%rbp)
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	cmpItem
	movl	%eax, -100(%rbp)
	cmpl	$0, -100(%rbp)
	je	.L21
	cmpl	$0, -100(%rbp)
	jle	.L22
	movl	$45, %eax
	jmp	.L23
.L22:
	movl	$43, %eax
.L23:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L24
.L21:
	movzbl	-48(%rbp), %eax
	testb	%al, %al
	jne	.L26
	movzbl	-32(%rbp), %eax
	testb	%al, %al
	jne	.L26
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	addl	$1, -104(%rbp)
.L19:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L27
	movl	$0, %eax
.L28:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	cmpItem
	.type	cmpItem, @function
cmpItem:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	movl	%eax, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	movl	%eax, -12(%rbp)
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L2
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L4
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	$1, %eax
	jmp	.L3
.L4:
	cmpl	$0, -16(%rbp)
	je	.L5
	cmpl	$0, -12(%rbp)
	jne	.L5
	movl	$-1, %eax
	jmp	.L3
.L5:
	cmpl	$0, -16(%rbp)
	jne	.L6
	cmpl	$0, -12(%rbp)
	je	.L6
	movl	$1, %eax
	jmp	.L3
.L6:
	cmpl	$0, -16(%rbp)
	je	.L7
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L8
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	setg	%al
	movzbl	%al, %eax
	jmp	.L3
.L8:
	movl	$-1, %eax
	jmp	.L3
.L7:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %edx
	movq	-32(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpItem, .-cmpItem
	.globl	getNextItem
	.type	getNextItem, @function
getNextItem:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L13:
	movq	-16(%rbp), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -8(%rbp)
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
.L12:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L13
	movq	-8(%rbp), %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
	jmp	.L14
.L11:
	movq	-16(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movb	%dl, (%rax)
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
	addq	$1, %rax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getNextItem, .-getNextItem
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%15s"
.LC2:
	.string	"%c\n"
.LC3:
	.string	"+"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L16
	movl	$1, %eax
	jmp	.L28
.L16:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
	movl	$1, %eax
	jmp	.L28
.L18:
	movl	$0, -104(%rbp)
	jmp	.L19
.L27:
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L20
	movl	$1, %eax
	jmp	.L28
.L20:
	leaq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)
.L26:
	movq	-96(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	getNextItem
	movq	%rax, -96(%rbp)
	movq	-88(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	getNextItem
	movq	%rax, -88(%rbp)
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	cmpItem
	movl	%eax, -100(%rbp)
	cmpl	$0, -100(%rbp)
	je	.L21
	cmpl	$0, -100(%rbp)
	jle	.L22
	movl	$45, %eax
	jmp	.L23
.L22:
	movl	$43, %eax
.L23:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L24
.L21:
	movzbl	-48(%rbp), %eax
	testb	%al, %al
	jne	.L26
	movzbl	-32(%rbp), %eax
	testb	%al, %al
	jne	.L26
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	addl	$1, -104(%rbp)
.L19:
	movl	-108(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L27
	movl	$0, %eax
.L28:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
