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

```c
s[1<<17],t[1<<17];a,b,c;main(d){for(;d=getchar()-10;a++)s[a+1]=s[a]+d-54;for(;d=getchar()-10;b++)t[b+1]=t[b]+d-54;for(gets(&a);~scanf("%d%d%d%d",&a,&b,&c,&d);)puts((s[b]-s[a-1])%3-(t[d]-t[c-1])%3?"NO":"YES");}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	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	s(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	a(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, a(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L2:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L3
	leaq	t(%rip), %rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	b(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, b(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L4:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L5
	leaq	a(%rip), %r12
	leaq	12(%rsp), %r15
	movq	%r12, %rdi
	leaq	c(%rip), %r14
	leaq	b(%rip), %r13
	call	gets@PLT
	leaq	s(%rip), %rbp
	leaq	t(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movl	a(%rip), %eax
	movslq	b(%rip), %rdx
	leaq	.LC1(%rip), %rdi
	subl	$1, %eax
	movl	0(%rbp,%rdx,4), %ecx
	cltq
	subl	0(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1431655766, %rax, %rax
	sarl	$31, %edx
	shrq	$32, %rax
	subl	%edx, %eax
	movslq	12(%rsp), %rdx
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ecx
	movl	c(%rip), %eax
	movl	(%rbx,%rdx,4), %edx
	subl	$1, %eax
	cltq
	subl	(%rbx,%rax,4), %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	leaq	.LC0(%rip), %rax
	cmpl	%edx, %ecx
	cmovne	%rax, %rdi
	call	puts@PLT
.L6:
	xorl	%eax, %eax
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L8
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.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	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	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	s(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	a(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, a(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L2:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L3
	leaq	t(%rip), %rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	b(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, b(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L4:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L5
	leaq	a(%rip), %r12
	leaq	12(%rsp), %r15
	movq	%r12, %rdi
	leaq	c(%rip), %r14
	leaq	b(%rip), %r13
	call	gets@PLT
	leaq	s(%rip), %rbp
	leaq	t(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movl	a(%rip), %eax
	movslq	b(%rip), %rdx
	leaq	.LC1(%rip), %rdi
	subl	$1, %eax
	movl	0(%rbp,%rdx,4), %ecx
	cltq
	subl	0(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1431655766, %rax, %rax
	sarl	$31, %edx
	shrq	$32, %rax
	subl	%edx, %eax
	movslq	12(%rsp), %rdx
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ecx
	movl	c(%rip), %eax
	movl	(%rbx,%rdx,4), %edx
	subl	$1, %eax
	cltq
	subl	(%rbx,%rax,4), %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	leaq	.LC0(%rip), %rax
	cmpl	%edx, %ecx
	cmovne	%rax, %rdi
	call	puts@PLT
.L6:
	xorl	%eax, %eax
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L8
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.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	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	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	s(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	a(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, a(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L2:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L3
	leaq	t(%rip), %rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	b(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, b(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L4:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L5
	leaq	a(%rip), %r12
	leaq	12(%rsp), %r15
	movq	%r12, %rdi
	leaq	c(%rip), %r14
	leaq	b(%rip), %r13
	call	gets@PLT
	leaq	s(%rip), %rbp
	leaq	t(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movl	a(%rip), %eax
	movslq	b(%rip), %rdx
	leaq	.LC1(%rip), %rdi
	subl	$1, %eax
	movl	0(%rbp,%rdx,4), %ecx
	cltq
	subl	0(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1431655766, %rax, %rax
	sarl	$31, %edx
	shrq	$32, %rax
	subl	%edx, %eax
	movslq	12(%rsp), %rdx
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ecx
	movl	c(%rip), %eax
	movl	(%rbx,%rdx,4), %edx
	subl	$1, %eax
	cltq
	subl	(%rbx,%rax,4), %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	leaq	.LC0(%rip), %rax
	cmpl	%edx, %ecx
	cmovne	%rax, %rdi
	call	puts@PLT
.L6:
	xorl	%eax, %eax
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L8
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.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
s[1<<17],t[1<<17];a,b,c;main(d){for(;d=getchar()-10;a++)s[a+1]=s[a]+d-54;for(;d=getchar()-10;b++)t[b+1]=t[b]+d-54;for(gets(&a);~scanf("%d%d%d%d",&a,&b,&c,&d);)puts((s[b]-s[a-1])%3-(t[d]-t[c-1])%3?"NO":"YES");}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
s[1<<17],t[1<<17];a,b,c;main(d){for(;d=getchar()-10;a++)s[a+1]=s[a]+d-54;for(;d=getchar()-10;b++)t[b+1]=t[b]+d-54;for(gets(&a);~scanf("%d%d%d%d",&a,&b,&c,&d);)puts((s[b]-s[a-1])%3-(t[d]-t[c-1])%3?"NO":"YES");}```

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:

AAAAABBBBAAABBBBAAAA
BBBBAAABBBBBBAAAAABB
10
2 15 2 13
2 13 6 16
1 13 2 20
4 20 6 20
1 18 9 19
2 14 1 11
3 20 3 15
6 16 1 17
4 18 8 20
7 20 3 14
 BBBAAAABA
BBBBA
4
7 9 2 5
7 9 1 4
1 7 2 5
1 6 2 4
 AAAAABBBBAAABBBBAAAA
BBBBAAABBBBBBAAAAABB
10
2 15 2 13
2 13 6 16
1 13 2 20
4 20 6 20
1 18 13 19
2 14 1 11
3 20 3 15
6 16 1 17
4 18 8 20
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBBBAAABBBBABAAAAABB
10
2 15 2 13
2 13 6 16
1 13 2 20
4 20 6 20
1 18 13 19
2 14 1 11
3 20 3 15
6 16 1 17
4 18 8 20
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBBBAAABBBBABAAAAABB
10
2 15 2 13
2 13 6 16
1 13 2 20
4 20 6 20
1 18 13 19
4 14 1 11
3 20 3 15
6 16 1 17
4 18 8 20
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBBBAAABBBBABAAAAABB
4
2 15 2 13
2 13 6 16
1 13 2 20
4 20 6 20
1 18 13 19
4 14 1 11
3 20 3 15
6 16 1 17
4 18 8 20
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBAAAAABABBBBAAABBBB
4
2 15 2 13
2 13 6 16
1 13 2 20
4 20 6 20
1 18 13 24
4 14 1 11
3 20 3 15
6 16 1 17
4 18 8 20
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBAAAAABABBBBAAABBBB
4
2 15 2 13
2 13 6 16
1 13 2 20
4 20 8 20
1 18 13 24
4 14 1 11
3 20 3 15
6 16 1 17
4 18 8 14
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBBBAAABBBBABAAAAABB
4
2 15 2 13
2 13 6 16
1 13 2 20
4 20 8 20
1 18 13 24
4 14 1 11
3 20 3 15
6 16 1 17
4 18 8 14
7 20 3 14
 AAAAABBBBAAABBBBAAAA
BBBBAAABBBBBBAAAAABB
10
2 15 2 13
2 13 6 16
1 13 2 20
4 20 3 20
1 18 9 19
2 14 1 11
3 20 3 15
6 16 1 19
4 18 8 20
7 20 3 14

YES
YES
YES
NO
YES
YES
NO
NO
NO
NO
 YES
NO
YES
YES
 YES
YES
YES
NO
NO
YES
NO
NO
NO
NO
 NO
NO
NO
YES
NO
YES
YES
NO
YES
NO
 NO
NO
NO
YES
NO
NO
YES
NO
YES
NO
 NO
NO
NO
YES
NO
NO
YES
NO
YES
NO
 YES
NO
NO
NO
NO
NO
NO
YES
NO
NO
 YES
NO
NO
YES
NO
NO
NO
YES
NO
NO
 NO
NO
NO
NO
NO
NO
YES
NO
NO
NO
 YES
YES
YES
YES
YES
YES
NO
NO
NO
NO

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

```c
s[1<<17],t[1<<17];a,b,c;main(d){for(;d=getchar()-10;a++)s[a+1]=s[a]+d-54;for(;d=getchar()-10;b++)t[b+1]=t[b]+d-54;for(gets(&a);~scanf("%d%d%d%d",&a,&b,&c,&d);)puts((s[b]-s[a-1])%3-(t[d]-t[c-1])%3?"NO":"YES");}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	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	s(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	a(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, a(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L2:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L3
	leaq	t(%rip), %rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	b(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, b(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L4:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L5
	leaq	a(%rip), %r12
	leaq	12(%rsp), %r15
	movq	%r12, %rdi
	leaq	c(%rip), %r14
	leaq	b(%rip), %r13
	call	gets@PLT
	leaq	s(%rip), %rbp
	leaq	t(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movl	a(%rip), %eax
	movslq	b(%rip), %rdx
	leaq	.LC1(%rip), %rdi
	subl	$1, %eax
	movl	0(%rbp,%rdx,4), %ecx
	cltq
	subl	0(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1431655766, %rax, %rax
	sarl	$31, %edx
	shrq	$32, %rax
	subl	%edx, %eax
	movslq	12(%rsp), %rdx
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ecx
	movl	c(%rip), %eax
	movl	(%rbx,%rdx,4), %edx
	subl	$1, %eax
	cltq
	subl	(%rbx,%rax,4), %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	leaq	.LC0(%rip), %rax
	cmpl	%edx, %ecx
	cmovne	%rax, %rdi
	call	puts@PLT
.L6:
	xorl	%eax, %eax
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L8
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.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	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	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	s(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	a(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, a(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L2:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L3
	leaq	t(%rip), %rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	b(%rip), %rdx
	leal	1(%rdx), %ecx
	addl	(%rbx,%rdx,4), %eax
	movslq	%ecx, %rsi
	subl	$54, %eax
	movl	%ecx, b(%rip)
	movl	%eax, (%rbx,%rsi,4)
.L4:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, 12(%rsp)
	jne	.L5
	leaq	a(%rip), %r12
	leaq	12(%rsp), %r15
	movq	%r12, %rdi
	leaq	c(%rip), %r14
	leaq	b(%rip), %r13
	call	gets@PLT
	leaq	s(%rip), %rbp
	leaq	t(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movl	a(%rip), %eax
	movslq	b(%rip), %rdx
	leaq	.LC1(%rip), %rdi
	subl	$1, %eax
	movl	0(%rbp,%rdx,4), %ecx
	cltq
	subl	0(%rbp,%rax,4), %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1431655766, %rax, %rax
	sarl	$31, %edx
	shrq	$32, %rax
	subl	%edx, %eax
	movslq	12(%rsp), %rdx
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ecx
	movl	c(%rip), %eax
	movl	(%rbx,%rdx,4), %edx
	subl	$1, %eax
	cltq
	subl	(%rbx,%rax,4), %edx
	movslq	%edx, %rax
	movl	%edx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	leaq	.LC0(%rip), %rax
	cmpl	%edx, %ecx
	cmovne	%rax, %rdi
	call	puts@PLT
.L6:
	xorl	%eax, %eax
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L8
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.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:
```