Given the following C code and unoptimized 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");}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.section	.rodata
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.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
.L3:
	movl	a(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	a(%rip), %eax
	addl	$1, %eax
	leal	-54(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	a(%rip), %eax
	addl	$1, %eax
	movl	%eax, a(%rip)
.L2:
	movl	$0, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	jmp	.L4
.L5:
	movl	b(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	b(%rip), %eax
	addl	$1, %eax
	leal	-54(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	b(%rip), %eax
	addl	$1, %eax
	movl	%eax, b(%rip)
.L4:
	movl	$0, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L6
.L9:
	movl	b(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	a(%rip), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, %ecx
	addl	%ecx, %ecx
	addl	%edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	c(%rip), %ecx
	subl	$1, %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	t(%rip), %rcx
	movl	(%rsi,%rcx), %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %esi
	addl	%esi, %esi
	addl	%eax, %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	je	.L7
	leaq	.LC0(%rip), %rax
	jmp	.L8
.L7:
	leaq	.LC1(%rip), %rax
.L8:
	movq	%rax, %rdi
	call	puts@PLT
.L6:
	leaq	-4(%rbp), %rax
	movq	%rax, %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L9
	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	"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
	.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:

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.section	.rodata
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.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
.L3:
	movl	a(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	a(%rip), %eax
	addl	$1, %eax
	leal	-54(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	a(%rip), %eax
	addl	$1, %eax
	movl	%eax, a(%rip)
.L2:
	movl	$0, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	jmp	.L4
.L5:
	movl	b(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	b(%rip), %eax
	addl	$1, %eax
	leal	-54(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	b(%rip), %eax
	addl	$1, %eax
	movl	%eax, b(%rip)
.L4:
	movl	$0, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L6
.L9:
	movl	b(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	a(%rip), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, %ecx
	addl	%ecx, %ecx
	addl	%edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	c(%rip), %ecx
	subl	$1, %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	t(%rip), %rcx
	movl	(%rsi,%rcx), %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %esi
	addl	%esi, %esi
	addl	%eax, %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	je	.L7
	leaq	.LC0(%rip), %rax
	jmp	.L8
.L7:
	leaq	.LC1(%rip), %rax
.L8:
	movq	%rax, %rdi
	call	puts@PLT
.L6:
	leaq	-4(%rbp), %rax
	movq	%rax, %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L9
	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	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 524288
s:
	.zero	524288
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 524288
t:
	.zero	524288
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.section	.rodata
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d%d%d"
	.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
.L3:
	movl	a(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	a(%rip), %eax
	addl	$1, %eax
	leal	-54(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	a(%rip), %eax
	addl	$1, %eax
	movl	%eax, a(%rip)
.L2:
	movl	$0, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	jmp	.L4
.L5:
	movl	b(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	b(%rip), %eax
	addl	$1, %eax
	leal	-54(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	b(%rip), %eax
	addl	$1, %eax
	movl	%eax, b(%rip)
.L4:
	movl	$0, %eax
	call	getchar@PLT
	subl	$10, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L6
.L9:
	movl	b(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	a(%rip), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, %ecx
	addl	%ecx, %ecx
	addl	%edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	c(%rip), %ecx
	subl	$1, %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	t(%rip), %rcx
	movl	(%rsi,%rcx), %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %esi
	addl	%esi, %esi
	addl	%eax, %esi
	movl	%ecx, %eax
	subl	%esi, %eax
	cmpl	%eax, %edx
	je	.L7
	leaq	.LC0(%rip), %rax
	jmp	.L8
.L7:
	leaq	.LC1(%rip), %rax
.L8:
	movq	%rax, %rdi
	call	puts@PLT
.L6:
	leaq	-4(%rbp), %rax
	movq	%rax, %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L9
	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:
