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

```c
d[4][1<<16];*s=d,*t=d+1;w;c;f;p=2e4;i;main(a){s[p]=d[2][p]=1;do{if(a=getchar()-70){for(i=1e4;i<3e4;i++)t[i-c]|=(t[i+c]|=s[i])&&f;w=2-w;s=d[w+f%2];memset(t=d[w?++f%2+w:-~f%2+w],0,2e5);c=-1;}c++;}while(a>=0);scanf("%d%d",&a,&c);puts(d[f%2][p+a]&&d[2+(f+!!w&1)][p+c]?"Yes":"No");}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1048576
d:
	.zero	1048576
	.globl	s
	.section	.data.rel.local,"aw"
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.quad	d
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.quad	d+262144
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	20000
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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)
	movl	p(%rip), %eax
	movslq	%eax, %rdx
	addq	$131072, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	$1, (%rcx,%rdx)
	movq	s(%rip), %rcx
	movl	p(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cltq
	addq	$131072, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%rdx)
.L9:
	movl	$0, %eax
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$10000, i(%rip)
	jmp	.L3
.L6:
	movq	t(%rip), %rdx
	movl	i(%rip), %ecx
	movl	c(%rip), %eax
	addl	%ecx, %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	s(%rip), %rdx
	movl	i(%rip), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	t(%rip), %rsi
	movl	i(%rip), %edi
	movl	c(%rip), %eax
	addl	%edi, %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	f(%rip), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1, %edi
	jmp	.L5
.L4:
	movl	$0, %edi
.L5:
	movq	t(%rip), %rdx
	movl	i(%rip), %eax
	movl	c(%rip), %ecx
	subl	%ecx, %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	t(%rip), %rcx
	movl	i(%rip), %eax
	movl	c(%rip), %esi
	subl	%esi, %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	orl	%edi, %edx
	movl	%edx, (%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %eax
	cmpl	$29999, %eax
	jle	.L6
	movl	w(%rip), %edx
	movl	$2, %eax
	subl	%edx, %eax
	movl	%eax, w(%rip)
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
	cltq
	salq	$18, %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, s(%rip)
	movl	w(%rip), %eax
	testl	%eax, %eax
	je	.L7
	movl	f(%rip), %eax
	addl	$1, %eax
	movl	%eax, f(%rip)
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
	jmp	.L8
.L7:
	movl	f(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
.L8:
	cltq
	salq	$18, %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$-1, c(%rip)
.L2:
	movl	c(%rip), %eax
	addl	$1, %eax
	movl	%eax, c(%rip)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jns	.L9
	leaq	-4(%rbp), %rax
	leaq	c(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	p(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L10
	movl	w(%rip), %eax
	testl	%eax, %eax
	setne	%al
	movzbl	%al, %edx
	movl	f(%rip), %eax
	addl	%edx, %eax
	andl	$1, %eax
	addl	$2, %eax
	movl	p(%rip), %ecx
	movl	c(%rip), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	cltq
	salq	$16, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L10
	leaq	.LC1(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC2(%rip), %rax
.L11:
	movq	%rax, %rdi
	call	puts@PLT
	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	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$2, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	d(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movslq	p(%rip), %rax
	movq	s(%rip), %rdx
	movl	%edi, 12(%rsp)
	movl	$1, 524288(%rbx,%rax,4)
	movl	$1, (%rdx,%rax,4)
.L8:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, 12(%rsp)
	jne	.L2
.L21:
	xorl	%eax, %eax
	addl	$1, c(%rip)
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, 12(%rsp)
	je	.L21
.L2:
	movl	$10000, i(%rip)
	movq	t(%rip), %rcx
	movl	$10000, %eax
	movq	s(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	c(%rip), %edx
	addl	%eax, %edx
	cltq
	movslq	%edx, %rdx
	leaq	(%rcx,%rdx,4), %rsi
	movl	(%rdi,%rax,4), %edx
	orl	(%rsi), %edx
	movl	%edx, (%rsi)
	je	.L4
	movl	f(%rip), %esi
	xorl	%edx, %edx
	testl	%esi, %esi
	setne	%dl
.L4:
	movl	i(%rip), %eax
	subl	c(%rip), %eax
	cltq
	orl	%edx, (%rcx,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$29999, %eax
	jle	.L5
	movl	f(%rip), %edx
	movl	%ebp, %ecx
	subl	w(%rip), %ecx
	movl	%ecx, w(%rip)
	movl	%edx, %esi
	shrl	$31, %esi
	leal	(%rdx,%rsi), %eax
	addl	$1, %edx
	andl	$1, %eax
	subl	%esi, %eax
	addl	%ecx, %eax
	cltq
	salq	$18, %rax
	addq	%rbx, %rax
	movq	%rax, s(%rip)
	movl	%edx, %eax
	shrl	$31, %eax
	leal	(%rdx,%rax), %edi
	andl	$1, %edi
	subl	%eax, %edi
	testl	%ecx, %ecx
	je	.L6
	movl	%edx, f(%rip)
	addl	%ecx, %edi
.L6:
	movslq	%edi, %rdi
	movl	$200000, %edx
	xorl	%esi, %esi
	salq	$18, %rdi
	addq	%rbx, %rdi
	movq	%rdi, t(%rip)
	call	memset@PLT
	movl	12(%rsp), %edx
	movl	$0, c(%rip)
	testl	%edx, %edx
	jns	.L8
	leaq	12(%rsp), %rsi
	leaq	c(%rip), %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	movl	f(%rip), %edx
	movl	p(%rip), %ecx
	movl	12(%rsp), %esi
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%ecx, %esi
	leal	(%rdx,%rdi), %eax
	movslq	%esi, %rsi
	andl	$1, %eax
	subl	%edi, %eax
	leaq	.LC1(%rip), %rdi
	cltq
	salq	$16, %rax
	addq	%rsi, %rax
	movl	(%rbx,%rax,4), %eax
	testl	%eax, %eax
	je	.L9
	addl	c(%rip), %ecx
	cmpl	$1, w(%rip)
	sbbl	$-1, %edx
	movslq	%ecx, %rcx
	andl	$1, %edx
	leaq	2(%rdx), %rax
	salq	$16, %rax
	addq	%rcx, %rax
	cmpl	$0, (%rbx,%rax,4)
	leaq	.LC0(%rip), %rax
	cmovne	%rax, %rdi
.L9:
	call	puts@PLT
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	20000
	.globl	f
	.bss
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	t
	.section	.data.rel.local,"aw"
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.quad	d+262144
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.quad	d
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1048576
d:
	.zero	1048576
	.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	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$2, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	d(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movslq	p(%rip), %rax
	movq	s(%rip), %rdx
	movl	%edi, 12(%rsp)
	movl	$1, 524288(%rbx,%rax,4)
	movl	$1, (%rdx,%rax,4)
.L8:
	xorl	%eax, %eax
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, 12(%rsp)
	jne	.L2
.L21:
	xorl	%eax, %eax
	addl	$1, c(%rip)
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, 12(%rsp)
	je	.L21
.L2:
	movl	$10000, i(%rip)
	movq	t(%rip), %rcx
	movl	$10000, %eax
	movq	s(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	c(%rip), %edx
	addl	%eax, %edx
	cltq
	movslq	%edx, %rdx
	leaq	(%rcx,%rdx,4), %rsi
	movl	(%rdi,%rax,4), %edx
	orl	(%rsi), %edx
	movl	%edx, (%rsi)
	je	.L4
	movl	f(%rip), %esi
	xorl	%edx, %edx
	testl	%esi, %esi
	setne	%dl
.L4:
	movl	i(%rip), %eax
	subl	c(%rip), %eax
	cltq
	orl	%edx, (%rcx,%rax,4)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$29999, %eax
	jle	.L5
	movl	f(%rip), %edx
	movl	%ebp, %ecx
	subl	w(%rip), %ecx
	movl	%ecx, w(%rip)
	movl	%edx, %esi
	shrl	$31, %esi
	leal	(%rdx,%rsi), %eax
	addl	$1, %edx
	andl	$1, %eax
	subl	%esi, %eax
	addl	%ecx, %eax
	cltq
	salq	$18, %rax
	addq	%rbx, %rax
	movq	%rax, s(%rip)
	movl	%edx, %eax
	shrl	$31, %eax
	leal	(%rdx,%rax), %edi
	andl	$1, %edi
	subl	%eax, %edi
	testl	%ecx, %ecx
	je	.L6
	movl	%edx, f(%rip)
	addl	%ecx, %edi
.L6:
	movslq	%edi, %rdi
	movl	$200000, %edx
	xorl	%esi, %esi
	salq	$18, %rdi
	addq	%rbx, %rdi
	movq	%rdi, t(%rip)
	call	memset@PLT
	movl	12(%rsp), %edx
	movl	$0, c(%rip)
	testl	%edx, %edx
	jns	.L8
	leaq	12(%rsp), %rsi
	leaq	c(%rip), %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	movl	f(%rip), %edx
	movl	p(%rip), %ecx
	movl	12(%rsp), %esi
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%ecx, %esi
	leal	(%rdx,%rdi), %eax
	movslq	%esi, %rsi
	andl	$1, %eax
	subl	%edi, %eax
	leaq	.LC1(%rip), %rdi
	cltq
	salq	$16, %rax
	addq	%rsi, %rax
	movl	(%rbx,%rax,4), %eax
	testl	%eax, %eax
	je	.L9
	addl	c(%rip), %ecx
	cmpl	$1, w(%rip)
	sbbl	$-1, %edx
	movslq	%ecx, %rcx
	andl	$1, %edx
	leaq	2(%rdx), %rax
	salq	$16, %rax
	addq	%rcx, %rax
	cmpl	$0, (%rbx,%rax,4)
	leaq	.LC0(%rip), %rax
	cmovne	%rax, %rdi
.L9:
	call	puts@PLT
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	20000
	.globl	f
	.bss
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	t
	.section	.data.rel.local,"aw"
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.quad	d+262144
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.quad	d
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1048576
d:
	.zero	1048576
	.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:

d[4][1<<16];*s=d,*t=d+1;w;c;f;p=2e4;i;main(a){s[p]=d[2][p]=1;do{if(a=getchar()-70){for(i=1e4;i<3e4;i++)t[i-c]|=(t[i+c]|=s[i])&&f;w=2-w;s=d[w+f%2];memset(t=d[w?++f%2+w:-~f%2+w],0,2e5);c=-1;}c++;}while(a>=0);scanf("%d%d",&a,&c);puts(d[f%2][p+a]&&d[2+(f+!!w&1)][p+c]?"Yes":"No");}
UF
1 0
 FT
1 0
 FF
1 -1
 FFTTFF
1 0
 FTFFTFFF
-2 -3
 TTTT
1 -1
 FTFFTFFF
4 0
 UF
1 -1
 FF
0 -1
 FFTTFF
2 0

No
 Yes
 No
 No
 No
 No
 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
d[4][1<<16];*s=d,*t=d+1;w;c;f;p=2e4;i;main(a){s[p]=d[2][p]=1;do{if(a=getchar()-70){for(i=1e4;i<3e4;i++)t[i-c]|=(t[i+c]|=s[i])&&f;w=2-w;s=d[w+f%2];memset(t=d[w?++f%2+w:-~f%2+w],0,2e5);c=-1;}c++;}while(a>=0);scanf("%d%d",&a,&c);puts(d[f%2][p+a]&&d[2+(f+!!w&1)][p+c]?"Yes":"No");}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1048576
d:
	.zero	1048576
	.globl	s
	.section	.data.rel.local,"aw"
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.quad	d
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.quad	d+262144
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	20000
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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)
	movl	p(%rip), %eax
	movslq	%eax, %rdx
	addq	$131072, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	$1, (%rcx,%rdx)
	movq	s(%rip), %rcx
	movl	p(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cltq
	addq	$131072, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%rdx)
.L9:
	movl	$0, %eax
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$10000, i(%rip)
	jmp	.L3
.L6:
	movq	t(%rip), %rdx
	movl	i(%rip), %ecx
	movl	c(%rip), %eax
	addl	%ecx, %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	s(%rip), %rdx
	movl	i(%rip), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	t(%rip), %rsi
	movl	i(%rip), %edi
	movl	c(%rip), %eax
	addl	%edi, %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	f(%rip), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1, %edi
	jmp	.L5
.L4:
	movl	$0, %edi
.L5:
	movq	t(%rip), %rdx
	movl	i(%rip), %eax
	movl	c(%rip), %ecx
	subl	%ecx, %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	t(%rip), %rcx
	movl	i(%rip), %eax
	movl	c(%rip), %esi
	subl	%esi, %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	orl	%edi, %edx
	movl	%edx, (%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %eax
	cmpl	$29999, %eax
	jle	.L6
	movl	w(%rip), %edx
	movl	$2, %eax
	subl	%edx, %eax
	movl	%eax, w(%rip)
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
	cltq
	salq	$18, %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, s(%rip)
	movl	w(%rip), %eax
	testl	%eax, %eax
	je	.L7
	movl	f(%rip), %eax
	addl	$1, %eax
	movl	%eax, f(%rip)
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
	jmp	.L8
.L7:
	movl	f(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
.L8:
	cltq
	salq	$18, %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$-1, c(%rip)
.L2:
	movl	c(%rip), %eax
	addl	$1, %eax
	movl	%eax, c(%rip)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jns	.L9
	leaq	-4(%rbp), %rax
	leaq	c(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	p(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L10
	movl	w(%rip), %eax
	testl	%eax, %eax
	setne	%al
	movzbl	%al, %edx
	movl	f(%rip), %eax
	addl	%edx, %eax
	andl	$1, %eax
	addl	$2, %eax
	movl	p(%rip), %ecx
	movl	c(%rip), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	cltq
	salq	$16, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L10
	leaq	.LC1(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC2(%rip), %rax
.L11:
	movq	%rax, %rdi
	call	puts@PLT
	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	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 1048576
d:
	.zero	1048576
	.globl	s
	.section	.data.rel.local,"aw"
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.quad	d
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.quad	d+262144
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	20000
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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)
	movl	p(%rip), %eax
	movslq	%eax, %rdx
	addq	$131072, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	$1, (%rcx,%rdx)
	movq	s(%rip), %rcx
	movl	p(%rip), %edx
	movslq	%edx, %rdx
	salq	$2, %rdx
	addq	%rcx, %rdx
	cltq
	addq	$131072, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%rdx)
.L9:
	movl	$0, %eax
	call	getchar@PLT
	subl	$70, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$10000, i(%rip)
	jmp	.L3
.L6:
	movq	t(%rip), %rdx
	movl	i(%rip), %ecx
	movl	c(%rip), %eax
	addl	%ecx, %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movq	s(%rip), %rdx
	movl	i(%rip), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	t(%rip), %rsi
	movl	i(%rip), %edi
	movl	c(%rip), %eax
	addl	%edi, %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	f(%rip), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1, %edi
	jmp	.L5
.L4:
	movl	$0, %edi
.L5:
	movq	t(%rip), %rdx
	movl	i(%rip), %eax
	movl	c(%rip), %ecx
	subl	%ecx, %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	t(%rip), %rcx
	movl	i(%rip), %eax
	movl	c(%rip), %esi
	subl	%esi, %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	orl	%edi, %edx
	movl	%edx, (%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %eax
	cmpl	$29999, %eax
	jle	.L6
	movl	w(%rip), %edx
	movl	$2, %eax
	subl	%edx, %eax
	movl	%eax, w(%rip)
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
	cltq
	salq	$18, %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, s(%rip)
	movl	w(%rip), %eax
	testl	%eax, %eax
	je	.L7
	movl	f(%rip), %eax
	addl	$1, %eax
	movl	%eax, f(%rip)
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
	jmp	.L8
.L7:
	movl	f(%rip), %eax
	addl	$1, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	w(%rip), %eax
	addl	%edx, %eax
.L8:
	cltq
	salq	$18, %rax
	movq	%rax, %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, t(%rip)
	movq	t(%rip), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$-1, c(%rip)
.L2:
	movl	c(%rip), %eax
	addl	$1, %eax
	movl	%eax, c(%rip)
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jns	.L9
	leaq	-4(%rbp), %rax
	leaq	c(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	f(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	p(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L10
	movl	w(%rip), %eax
	testl	%eax, %eax
	setne	%al
	movzbl	%al, %edx
	movl	f(%rip), %eax
	addl	%edx, %eax
	andl	$1, %eax
	addl	$2, %eax
	movl	p(%rip), %ecx
	movl	c(%rip), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	cltq
	salq	$16, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L10
	leaq	.LC1(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC2(%rip), %rax
.L11:
	movq	%rax, %rdi
	call	puts@PLT
	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:
