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

```c
char a[],R[99];h,b;main(i){for(;scanf("%s%s",R,a)*R[1];h=b=!printf("%d %d\n",h,b/2-1-h)){for(i=4;i--;h+=R[i]==a[i])R[R[i]]++,R[a[i]]--;for(i=47;++i<58;R[i]=0)b+=!R[i];}}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 99
R:
	.zero	99
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s%s"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L7:
	movl	$4, -4(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	leaq	R(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	addl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	R(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	leaq	R(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	subl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	R(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	sete	%al
	movzbl	%al, %edx
	movl	h(%rip), %eax
	addl	%edx, %eax
	movl	%eax, h(%rip)
.L3:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	$47, -4(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	sete	%al
	movzbl	%al, %edx
	movl	b(%rip), %eax
	addl	%edx, %eax
	movl	%eax, b(%rip)
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L5:
	addl	$1, -4(%rbp)
	cmpl	$57, -4(%rbp)
	jle	.L6
	movl	b(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	subl	$1, %eax
	movl	h(%rip), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	h(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, b(%rip)
	movl	b(%rip), %eax
	movl	%eax, h(%rip)
.L2:
	leaq	a(%rip), %rax
	movq	%rax, %rdx
	leaq	R(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movzbl	1+R(%rip), %edx
	movsbl	%dl, %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	$0, %eax
	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	"%s%s"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	R(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	movsbq	3+R(%rip), %rax
	movsbq	3+a(%rip), %rdx
	movq	%r13, %rdi
	movsbq	2+a(%rip), %rcx
	addb	$1, (%rbx,%rax)
	subb	$1, (%rbx,%rdx)
	cmpb	%dl, 3+R(%rip)
	movsbq	2+R(%rip), %rdx
	sete	%al
	movzbl	%al, %eax
	addl	h(%rip), %eax
	addb	$1, (%rbx,%rdx)
	subb	$1, (%rbx,%rcx)
	cmpb	%cl, 2+R(%rip)
	sete	%dl
	movsbq	1+a(%rip), %rcx
	movzbl	%dl, %edx
	addl	%eax, %edx
	movsbq	1+R(%rip), %rax
	addb	$1, (%rbx,%rax)
	subb	$1, (%rbx,%rcx)
	cmpb	%cl, 1+R(%rip)
	sete	%al
	movsbq	a(%rip), %rcx
	xorl	%esi, %esi
	movzbl	%al, %eax
	addl	%edx, %eax
	movsbq	(%rbx), %rdx
	addb	$1, (%rbx,%rdx)
	subb	$1, (%rbx,%rcx)
	cmpb	%cl, (%rbx)
	sete	%sil
	addl	%eax, %esi
	xorl	%eax, %eax
	cmpb	$0, 48+R(%rip)
	movl	%esi, h(%rip)
	sete	%al
	cmpb	$1, 49+R(%rip)
	adcl	b(%rip), %eax
	xorl	%edx, %edx
	cmpb	$0, 51+R(%rip)
	sete	%dl
	cmpb	$1, 50+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	cmpb	$0, 53+R(%rip)
	sete	%dl
	cmpb	$1, 52+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	cmpb	$0, 55+R(%rip)
	sete	%dl
	cmpb	$1, 54+R(%rip)
	movq	$0, 48+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	cmpb	$0, 57+R(%rip)
	sete	%dl
	cmpb	$1, 56+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	movw	%dx, 56+R(%rip)
	movl	%eax, %edx
	shrl	$31, %edx
	movl	%eax, b(%rip)
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	$1, %edx
	subl	%esi, %edx
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, b(%rip)
	movl	%eax, h(%rip)
.L3:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	%eax, %r8d
	movsbl	1+R(%rip), %eax
	imull	%r8d, %eax
	testl	%eax, %eax
	jne	.L6
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 99
R:
	.zero	99
	.globl	a
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.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	"%s%s"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	R(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	movsbq	3+R(%rip), %rax
	movsbq	3+a(%rip), %rdx
	movq	%r13, %rdi
	movsbq	2+a(%rip), %rcx
	addb	$1, (%rbx,%rax)
	subb	$1, (%rbx,%rdx)
	cmpb	%dl, 3+R(%rip)
	movsbq	2+R(%rip), %rdx
	sete	%al
	movzbl	%al, %eax
	addl	h(%rip), %eax
	addb	$1, (%rbx,%rdx)
	subb	$1, (%rbx,%rcx)
	cmpb	%cl, 2+R(%rip)
	sete	%dl
	movsbq	1+a(%rip), %rcx
	movzbl	%dl, %edx
	addl	%eax, %edx
	movsbq	1+R(%rip), %rax
	addb	$1, (%rbx,%rax)
	subb	$1, (%rbx,%rcx)
	cmpb	%cl, 1+R(%rip)
	sete	%al
	movsbq	a(%rip), %rcx
	xorl	%esi, %esi
	movzbl	%al, %eax
	addl	%edx, %eax
	movsbq	(%rbx), %rdx
	addb	$1, (%rbx,%rdx)
	subb	$1, (%rbx,%rcx)
	cmpb	%cl, (%rbx)
	sete	%sil
	addl	%eax, %esi
	xorl	%eax, %eax
	cmpb	$0, 48+R(%rip)
	movl	%esi, h(%rip)
	sete	%al
	cmpb	$1, 49+R(%rip)
	adcl	b(%rip), %eax
	xorl	%edx, %edx
	cmpb	$0, 51+R(%rip)
	sete	%dl
	cmpb	$1, 50+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	cmpb	$0, 53+R(%rip)
	sete	%dl
	cmpb	$1, 52+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	cmpb	$0, 55+R(%rip)
	sete	%dl
	cmpb	$1, 54+R(%rip)
	movq	$0, 48+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	cmpb	$0, 57+R(%rip)
	sete	%dl
	cmpb	$1, 56+R(%rip)
	adcl	%edx, %eax
	xorl	%edx, %edx
	movw	%dx, 56+R(%rip)
	movl	%eax, %edx
	shrl	$31, %edx
	movl	%eax, b(%rip)
	addl	%eax, %edx
	xorl	%eax, %eax
	sarl	%edx
	subl	$1, %edx
	subl	%esi, %edx
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, b(%rip)
	movl	%eax, h(%rip)
.L3:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	%eax, %r8d
	movsbl	1+R(%rip), %eax
	imull	%r8d, %eax
	testl	%eax, %eax
	jne	.L6
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 99
R:
	.zero	99
	.globl	a
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.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:

char a[],R[99];h,b;main(i){for(;scanf("%s%s",R,a)*R[1];h=b=!printf("%d %d\n",h,b/2-1-h)){for(i=4;i--;h+=R[i]==a[i])R[R[i]]++,R[a[i]]--;for(i=47;++i<58;R[i]=0)b+=!R[i];}}
1234 10660
1234 1354
1234 1234
1230 1023
0123 1234
0 0
 1234 10660
1964 1354
1234 1234
1230 1023
0123 1234
0 0
 1234 10660
2242 1354
1234 1234
1230 1023
0123 1234
0 0
 1234 5678
1234 1354
1234 1200
1230 1023
0123 1234
0 0
 1234 10660
2242 1354
1234 1234
1230 1023
0123 1884
0 0
 1234 5678
1234 1354
1234 1234
1957 1023
0123 1234
0 0
 1234 10660
3108 1354
1234 1234
1230 1023
0123 1884
0 0
 1234 10976
2102 1354
1234 1234
1230 1849
0123 1234
0 0
 1234 10660
1964 1354
1234 1234
1344 1023
0123 1234
0 0
 1234 10976
2102 1354
1234 1234
1230 1849
0123 1863
0 0

1 0
2 1
4 0
1 3
0 3
 1 0
2 0
4 0
1 3
0 3
 1 0
0 2
4 0
1 3
0 3
 0 0
2 1
2 0
1 3
0 3
 1 0
0 2
4 0
1 3
0 1
 0 0
2 1
4 0
1 0
0 3
 1 0
0 2
4 0
1 3
0 1
 1 0
0 1
4 0
1 0
0 3
 1 0
2 0
4 0
1 1
0 3
 1 0
0 1
4 0
1 0
1 1

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

```c
char a[],R[99];h,b;main(i){for(;scanf("%s%s",R,a)*R[1];h=b=!printf("%d %d\n",h,b/2-1-h)){for(i=4;i--;h+=R[i]==a[i])R[R[i]]++,R[a[i]]--;for(i=47;++i<58;R[i]=0)b+=!R[i];}}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 99
R:
	.zero	99
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s%s"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L7:
	movl	$4, -4(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	leaq	R(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	addl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	R(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	leaq	R(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	subl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	R(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	sete	%al
	movzbl	%al, %edx
	movl	h(%rip), %eax
	addl	%edx, %eax
	movl	%eax, h(%rip)
.L3:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	$47, -4(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	sete	%al
	movzbl	%al, %edx
	movl	b(%rip), %eax
	addl	%edx, %eax
	movl	%eax, b(%rip)
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L5:
	addl	$1, -4(%rbp)
	cmpl	$57, -4(%rbp)
	jle	.L6
	movl	b(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	subl	$1, %eax
	movl	h(%rip), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	h(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, b(%rip)
	movl	b(%rip), %eax
	movl	%eax, h(%rip)
.L2:
	leaq	a(%rip), %rax
	movq	%rax, %rdx
	leaq	R(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movzbl	1+R(%rip), %edx
	movsbl	%dl, %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	$0, %eax
	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
	.globl	a
	.bss
	.type	a, @object
	.size	a, 1
a:
	.zero	1
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 99
R:
	.zero	99
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s%s"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L7:
	movl	$4, -4(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	leaq	R(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	addl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	R(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	leaq	R(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	subl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	R(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	sete	%al
	movzbl	%al, %edx
	movl	h(%rip), %eax
	addl	%edx, %eax
	movl	%eax, h(%rip)
.L3:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	$47, -4(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	sete	%al
	movzbl	%al, %edx
	movl	b(%rip), %eax
	addl	%edx, %eax
	movl	%eax, b(%rip)
	movl	-4(%rbp), %eax
	cltq
	leaq	R(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L5:
	addl	$1, -4(%rbp)
	cmpl	$57, -4(%rbp)
	jle	.L6
	movl	b(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	subl	$1, %eax
	movl	h(%rip), %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	h(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, b(%rip)
	movl	b(%rip), %eax
	movl	%eax, h(%rip)
.L2:
	leaq	a(%rip), %rax
	movq	%rax, %rdx
	leaq	R(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movzbl	1+R(%rip), %edx
	movsbl	%dl, %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L7
	movl	$0, %eax
	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:
