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

```c
#define u for(j=0;j<n;++j)
a[5][1<<18],b[2],x,y,j,n;main(i){scanf("%d",&n);for(;++i<5;)u{scanf("%d",&a[i][j]);--a[i][j];}u{if(a[2][j]%3)++b[1-j%2];if(a[2][j]/3-a[3][j]/3||a[3][j]/3-a[4][j]/3||a[4][j]/3-a[2][j]/3||a[3][j]%3-1||a[3][j]/3-j&1){b[0]=1;break;}x=y=a[3][j]/3+1;for(;x;x-=x&-x)b[j&1]-=a[j&1][x]%2;b[j&1]+=j/2;for(;y<2e5;y+=y&-y)++a[j&1][y];}puts(b[0]&1|b[1]&1?"No":"Yes");}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 5242880
a:
	.zero	5242880
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.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)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L5:
	movl	$0, j(%rip)
	jmp	.L3
.L4:
	movl	j(%rip), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$18, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	j(%rip), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	salq	$18, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$18, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L3:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
.L2:
	addl	$1, -4(%rbp)
	cmpl	$4, -4(%rbp)
	jle	.L5
	movl	$0, j(%rip)
	jmp	.L6
.L15:
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L7
	movl	j(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	$1, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L7:
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$1048576, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$1048576, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	j(%rip), %edx
	subl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
.L8:
	movl	$1, b(%rip)
	jmp	.L10
.L9:
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$1, %eax
	movl	%eax, y(%rip)
	movl	y(%rip), %eax
	movl	%eax, x(%rip)
	jmp	.L11
.L12:
	movl	j(%rip), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%eax, %ecx
	movl	x(%rip), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	salq	$18, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	andl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%edx, %ecx
	subl	%esi, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	x(%rip), %eax
	leal	-1(%rax), %edx
	movl	x(%rip), %eax
	andl	%edx, %eax
	movl	%eax, x(%rip)
.L11:
	movl	x(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	j(%rip), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	j(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	j(%rip), %eax
	andl	$1, %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L13
.L14:
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	y(%rip), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	salq	$18, %rcx
	addq	%rsi, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	a(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	addl	$1, %ecx
	movslq	%eax, %rsi
	movslq	%edx, %rax
	salq	$18, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	y(%rip), %eax
	negl	%eax
	movl	%eax, %edx
	movl	y(%rip), %eax
	andl	%eax, %edx
	movl	y(%rip), %eax
	addl	%edx, %eax
	movl	%eax, y(%rip)
.L13:
	movl	y(%rip), %eax
	cmpl	$199999, %eax
	jle	.L14
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L6:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L15
.L10:
	movl	b(%rip), %edx
	movl	4+b(%rip), %eax
	orl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L16
	leaq	.LC1(%rip), %rax
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
.L17:
	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	"No"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	addl	$1, %r14d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	scanf@PLT
	movl	n(%rip), %edx
	cmpl	$4, %r14d
	jg	.L24
	movslq	%r14d, %r12
	leaq	a(%rip), %r15
	movl	$0, j(%rip)
	salq	$18, %r12
	testl	%edx, %edx
	jle	.L51
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%r14d, %rbp
	xorl	%eax, %eax
	salq	$18, %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%r13, %rdi
	addq	%r12, %rax
	leaq	(%r15,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	j(%rip), %rdx
	movq	%rdx, %rax
	addq	%rbp, %rdx
	subl	$1, (%r15,%rdx,4)
	movl	n(%rip), %edx
	addl	$1, %eax
	movl	%eax, j(%rip)
	cmpl	%edx, %eax
	jl	.L4
	addl	$1, %r14d
	cmpl	$5, %r14d
	je	.L24
	movl	$0, j(%rip)
	addq	$262144, %r12
	testl	%edx, %edx
	jg	.L53
.L51:
	movl	b(%rip), %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$0, j(%rip)
	testl	%edx, %edx
	jle	.L51
	leaq	2097152+a(%rip), %rbp
	xorl	%r15d, %r15d
	xorl	%r8d, %r8d
	leaq	b(%rip), %r13
	leaq	-2097152(%rbp), %rax
	.p2align 4,,10
	.p2align 3
.L19:
	movl	0(%rbp), %esi
	imull	$-1431655765, %esi, %ecx
	addl	$715827882, %ecx
	cmpl	$1431655764, %ecx
	jbe	.L8
	movl	%r8d, %ecx
	notl	%ecx
	andl	$1, %ecx
	addl	$1, 0(%r13,%rcx,4)
.L8:
	movslq	%esi, %rcx
	sarl	$31, %esi
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	subl	%esi, %ecx
	movslq	1048576(%rbp), %rsi
	movl	%ecx, %r14d
	movq	%rsi, %rdi
	imulq	$1431655766, %rsi, %rsi
	movl	%edi, %r12d
	sarl	$31, %r12d
	shrq	$32, %rsi
	movl	%r12d, %r11d
	subl	%esi, %r11d
	addl	%r11d, %r14d
	jne	.L50
	movslq	2097152(%rbp), %r10
	movl	%r11d, %r14d
	negl	%r14d
	movq	%r10, %r9
	imulq	$1431655766, %r10, %r10
	sarl	$31, %r9d
	shrq	$32, %r10
	subl	%r10d, %r9d
	cmpl	%r9d, %r11d
	jne	.L50
	cmpl	%r14d, %ecx
	jne	.L50
	subl	%r12d, %esi
	leal	(%rsi,%rsi,2), %esi
	subl	%esi, %edi
	cmpl	$1, %edi
	jne	.L50
	subl	%r8d, %ecx
	andl	$1, %ecx
	jne	.L50
	movl	%r8d, %r10d
	movl	%r8d, %r12d
	movl	%edi, %ebx
	andl	$1, %r10d
	sarl	%r12d
	movl	0(%r13,%r10,4), %r9d
	subl	%r11d, %ebx
	je	.L15
	movq	%r10, %r11
	movl	%ebx, %esi
	salq	$18, %r11
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%esi, %rcx
	addq	%r11, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%edi, %ecx
	andl	$1, %ecx
	subl	%edi, %ecx
	subl	%ecx, %r9d
	leal	-1(%rsi), %ecx
	andl	%ecx, %esi
	jne	.L16
	addl	%r12d, %r9d
	movl	%r9d, 0(%r13,%r10,4)
	cmpl	$199999, %ebx
	jg	.L17
.L21:
	salq	$18, %r10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebx, %rcx
	addq	%r10, %rcx
	addl	$1, (%rax,%rcx,4)
	movl	%ebx, %ecx
	negl	%ecx
	andl	%ebx, %ecx
	addl	%ecx, %ebx
	cmpl	$199999, %ebx
	jle	.L18
.L17:
	addl	$1, %r8d
	addq	$4, %rbp
	movl	$1, %r15d
	cmpl	%edx, %r8d
	je	.L54
	movl	%r8d, 12(%rsp)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	addl	%r9d, %r12d
	movl	%r12d, 0(%r13,%r10,4)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L50:
	testb	%r15b, %r15b
	je	.L10
	movl	12(%rsp), %eax
	movl	%ebx, y(%rip)
	movl	$0, x(%rip)
	movl	%eax, j(%rip)
.L10:
	movl	$1, b(%rip)
	movl	$1, %eax
.L7:
	orl	4+b(%rip), %eax
	leaq	.LC0(%rip), %rdi
	testb	$1, %al
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
	addq	$24, %rsp
	.cfi_remember_state
	.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
.L54:
	.cfi_restore_state
	movl	%r8d, j(%rip)
	movl	$0, x(%rip)
	movl	%ebx, y(%rip)
	jmp	.L51
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 5242880
a:
	.zero	5242880
	.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"
	.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
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	addl	$1, %r14d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	scanf@PLT
	movl	n(%rip), %edx
	cmpl	$4, %r14d
	jg	.L24
	movslq	%r14d, %r12
	leaq	a(%rip), %r15
	movl	$0, j(%rip)
	salq	$18, %r12
	testl	%edx, %edx
	jle	.L51
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%r14d, %rbp
	xorl	%eax, %eax
	salq	$18, %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%r13, %rdi
	addq	%r12, %rax
	leaq	(%r15,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	j(%rip), %rdx
	movq	%rdx, %rax
	addq	%rbp, %rdx
	subl	$1, (%r15,%rdx,4)
	movl	n(%rip), %edx
	addl	$1, %eax
	movl	%eax, j(%rip)
	cmpl	%edx, %eax
	jl	.L4
	addl	$1, %r14d
	cmpl	$5, %r14d
	je	.L24
	movl	$0, j(%rip)
	addq	$262144, %r12
	testl	%edx, %edx
	jg	.L53
.L51:
	movl	b(%rip), %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$0, j(%rip)
	testl	%edx, %edx
	jle	.L51
	leaq	2097152+a(%rip), %rbp
	xorl	%r15d, %r15d
	xorl	%r8d, %r8d
	leaq	b(%rip), %r13
	leaq	-2097152(%rbp), %rax
	.p2align 4,,10
	.p2align 3
.L19:
	movl	0(%rbp), %esi
	imull	$-1431655765, %esi, %ecx
	addl	$715827882, %ecx
	cmpl	$1431655764, %ecx
	jbe	.L8
	movl	%r8d, %ecx
	notl	%ecx
	andl	$1, %ecx
	addl	$1, 0(%r13,%rcx,4)
.L8:
	movslq	%esi, %rcx
	sarl	$31, %esi
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	subl	%esi, %ecx
	movslq	1048576(%rbp), %rsi
	movl	%ecx, %r14d
	movq	%rsi, %rdi
	imulq	$1431655766, %rsi, %rsi
	movl	%edi, %r12d
	sarl	$31, %r12d
	shrq	$32, %rsi
	movl	%r12d, %r11d
	subl	%esi, %r11d
	addl	%r11d, %r14d
	jne	.L50
	movslq	2097152(%rbp), %r10
	movl	%r11d, %r14d
	negl	%r14d
	movq	%r10, %r9
	imulq	$1431655766, %r10, %r10
	sarl	$31, %r9d
	shrq	$32, %r10
	subl	%r10d, %r9d
	cmpl	%r9d, %r11d
	jne	.L50
	cmpl	%r14d, %ecx
	jne	.L50
	subl	%r12d, %esi
	leal	(%rsi,%rsi,2), %esi
	subl	%esi, %edi
	cmpl	$1, %edi
	jne	.L50
	subl	%r8d, %ecx
	andl	$1, %ecx
	jne	.L50
	movl	%r8d, %r10d
	movl	%r8d, %r12d
	movl	%edi, %ebx
	andl	$1, %r10d
	sarl	%r12d
	movl	0(%r13,%r10,4), %r9d
	subl	%r11d, %ebx
	je	.L15
	movq	%r10, %r11
	movl	%ebx, %esi
	salq	$18, %r11
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%esi, %rcx
	addq	%r11, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%edi, %ecx
	andl	$1, %ecx
	subl	%edi, %ecx
	subl	%ecx, %r9d
	leal	-1(%rsi), %ecx
	andl	%ecx, %esi
	jne	.L16
	addl	%r12d, %r9d
	movl	%r9d, 0(%r13,%r10,4)
	cmpl	$199999, %ebx
	jg	.L17
.L21:
	salq	$18, %r10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%ebx, %rcx
	addq	%r10, %rcx
	addl	$1, (%rax,%rcx,4)
	movl	%ebx, %ecx
	negl	%ecx
	andl	%ebx, %ecx
	addl	%ecx, %ebx
	cmpl	$199999, %ebx
	jle	.L18
.L17:
	addl	$1, %r8d
	addq	$4, %rbp
	movl	$1, %r15d
	cmpl	%edx, %r8d
	je	.L54
	movl	%r8d, 12(%rsp)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	addl	%r9d, %r12d
	movl	%r12d, 0(%r13,%r10,4)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L50:
	testb	%r15b, %r15b
	je	.L10
	movl	12(%rsp), %eax
	movl	%ebx, y(%rip)
	movl	$0, x(%rip)
	movl	%eax, j(%rip)
.L10:
	movl	$1, b(%rip)
	movl	$1, %eax
.L7:
	orl	4+b(%rip), %eax
	leaq	.LC0(%rip), %rdi
	testb	$1, %al
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
	addq	$24, %rsp
	.cfi_remember_state
	.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
.L54:
	.cfi_restore_state
	movl	%r8d, j(%rip)
	movl	$0, x(%rip)
	movl	%ebx, y(%rip)
	jmp	.L51
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 5242880
a:
	.zero	5242880
	.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:

#define u for(j=0;j<n;++j)
a[5][1<<18],b[2],x,y,j,n;main(i){scanf("%d",&n);for(;++i<5;)u{scanf("%d",&a[i][j]);--a[i][j];}u{if(a[2][j]%3)++b[1-j%2];if(a[2][j]/3-a[3][j]/3||a[3][j]/3-a[4][j]/3||a[4][j]/3-a[2][j]/3||a[3][j]%3-1||a[3][j]/3-j&1){b[0]=1;break;}x=y=a[3][j]/3+1;for(;x;x-=x&-x)b[j&1]-=a[j&1][x]%2;b[j&1]+=j/2;for(;y<2e5;y+=y&-y)++a[j&1][y];}puts(b[0]&1|b[1]&1?"No":"Yes");}
7
21 12 1 16 13 6 7
20 11 2 20 14 5 8
19 10 3 18 15 4 9
 5
9 6 15 12 1
10 5 14 11 2
7 4 13 10 3
 6
15 10 3 4 9 5
14 11 2 5 8 17
13 12 1 6 7 18
 5
1 2 3 0 5
6 7 8 9 10
11 12 13 14 15
 7
21 12 1 16 14 6 7
20 11 2 20 14 5 8
19 10 3 18 15 4 9
 5
9 6 3 12 1
10 5 14 11 2
7 4 13 10 3
 6
15 10 3 4 9 5
14 11 2 5 0 17
13 12 1 6 7 18
 5
2 2 3 0 5
6 7 8 9 10
11 12 13 14 15
 7
21 12 1 16 14 6 7
20 11 2 27 14 5 8
19 10 3 18 15 4 9
 5
9 6 3 12 2
10 5 14 11 2
7 4 13 10 3

No
 No
 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
#define u for(j=0;j<n;++j)
a[5][1<<18],b[2],x,y,j,n;main(i){scanf("%d",&n);for(;++i<5;)u{scanf("%d",&a[i][j]);--a[i][j];}u{if(a[2][j]%3)++b[1-j%2];if(a[2][j]/3-a[3][j]/3||a[3][j]/3-a[4][j]/3||a[4][j]/3-a[2][j]/3||a[3][j]%3-1||a[3][j]/3-j&1){b[0]=1;break;}x=y=a[3][j]/3+1;for(;x;x-=x&-x)b[j&1]-=a[j&1][x]%2;b[j&1]+=j/2;for(;y<2e5;y+=y&-y)++a[j&1][y];}puts(b[0]&1|b[1]&1?"No":"Yes");}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 5242880
a:
	.zero	5242880
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.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)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L5:
	movl	$0, j(%rip)
	jmp	.L3
.L4:
	movl	j(%rip), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$18, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	j(%rip), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	salq	$18, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$18, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L3:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
.L2:
	addl	$1, -4(%rbp)
	cmpl	$4, -4(%rbp)
	jle	.L5
	movl	$0, j(%rip)
	jmp	.L6
.L15:
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L7
	movl	j(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	$1, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L7:
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$1048576, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$1048576, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	j(%rip), %edx
	subl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
.L8:
	movl	$1, b(%rip)
	jmp	.L10
.L9:
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$1, %eax
	movl	%eax, y(%rip)
	movl	y(%rip), %eax
	movl	%eax, x(%rip)
	jmp	.L11
.L12:
	movl	j(%rip), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%eax, %ecx
	movl	x(%rip), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	salq	$18, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	andl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%edx, %ecx
	subl	%esi, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	x(%rip), %eax
	leal	-1(%rax), %edx
	movl	x(%rip), %eax
	andl	%edx, %eax
	movl	%eax, x(%rip)
.L11:
	movl	x(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	j(%rip), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	j(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	j(%rip), %eax
	andl	$1, %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L13
.L14:
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	y(%rip), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	salq	$18, %rcx
	addq	%rsi, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	a(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	addl	$1, %ecx
	movslq	%eax, %rsi
	movslq	%edx, %rax
	salq	$18, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	y(%rip), %eax
	negl	%eax
	movl	%eax, %edx
	movl	y(%rip), %eax
	andl	%eax, %edx
	movl	y(%rip), %eax
	addl	%edx, %eax
	movl	%eax, y(%rip)
.L13:
	movl	y(%rip), %eax
	cmpl	$199999, %eax
	jle	.L14
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L6:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L15
.L10:
	movl	b(%rip), %edx
	movl	4+b(%rip), %eax
	orl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L16
	leaq	.LC1(%rip), %rax
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
.L17:
	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	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 5242880
a:
	.zero	5242880
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.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)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L5:
	movl	$0, j(%rip)
	jmp	.L3
.L4:
	movl	j(%rip), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$18, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	j(%rip), %eax
	movslq	%eax, %rcx
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	salq	$18, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$18, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L3:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
.L2:
	addl	$1, -4(%rbp)
	cmpl	$4, -4(%rbp)
	jle	.L5
	movl	$0, j(%rip)
	jmp	.L6
.L15:
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L7
	movl	j(%rip), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	$1, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L7:
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$1048576, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$1048576, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	j(%rip), %eax
	cltq
	addq	$524288, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	testl	%eax, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jne	.L8
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	j(%rip), %edx
	subl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
.L8:
	movl	$1, b(%rip)
	jmp	.L10
.L9:
	movl	j(%rip), %eax
	cltq
	addq	$786432, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$1, %eax
	movl	%eax, y(%rip)
	movl	y(%rip), %eax
	movl	%eax, x(%rip)
	jmp	.L11
.L12:
	movl	j(%rip), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%eax, %ecx
	movl	x(%rip), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	salq	$18, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	andl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%edx, %ecx
	subl	%esi, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	x(%rip), %eax
	leal	-1(%rax), %edx
	movl	x(%rip), %eax
	andl	%edx, %eax
	movl	%eax, x(%rip)
.L11:
	movl	x(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	j(%rip), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	j(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	j(%rip), %eax
	andl	$1, %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L13
.L14:
	movl	j(%rip), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	y(%rip), %eax
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	salq	$18, %rcx
	addq	%rsi, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	a(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	addl	$1, %ecx
	movslq	%eax, %rsi
	movslq	%edx, %rax
	salq	$18, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	y(%rip), %eax
	negl	%eax
	movl	%eax, %edx
	movl	y(%rip), %eax
	andl	%eax, %edx
	movl	y(%rip), %eax
	addl	%edx, %eax
	movl	%eax, y(%rip)
.L13:
	movl	y(%rip), %eax
	cmpl	$199999, %eax
	jle	.L14
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L6:
	movl	j(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L15
.L10:
	movl	b(%rip), %edx
	movl	4+b(%rip), %eax
	orl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L16
	leaq	.LC1(%rip), %rax
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
.L17:
	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:
