// File: /workspace/github_cpp_makefile_star2_O1/kobanium[P]Ray/src/pattern/Pattern.cpp
// Function: UpdatePatternEmpty(pattern_t*, int)
void
UpdatePatternEmpty( pattern_t *pat, const int pos )
{
  //  3x3 
  pat[pos + NW].list[MD_2] &= 0xFF3FFF;
  pat[pos +  N].list[MD_2] &= 0xFFCFFF;
  pat[pos + NE].list[MD_2] &= 0xFFF3FF;
  pat[pos +  W].list[MD_2] &= 0xFFFCFF;
  pat[pos +  E].list[MD_2] &= 0xFFFF3F;
  pat[pos + SW].list[MD_2] &= 0xFFFFCF;
  pat[pos +  S].list[MD_2] &= 0xFFFFF3;
  pat[pos + SE].list[MD_2] &= 0xFFFFFC;

  //  md2
  pat[pos + NN].list[MD_2] &= 0xCFFFFF;
  pat[pos + EE].list[MD_2] &= 0x3FFFFF;
  pat[pos + SS].list[MD_2] &= 0xFCFFFF;
  pat[pos + WW].list[MD_2] &= 0xF3FFFF;

  //  md3
  pat[pos + NN + N].list[MD_3] &= 0xFFCFFF;
  pat[pos + NN + E].list[MD_3] &= 0xFF3FFF;
  pat[pos + EE + N].list[MD_3] &= 0xFCFFFF;
  pat[pos + EE + E].list[MD_3] &= 0xF3FFFF;
  pat[pos + EE + S].list[MD_3] &= 0xCFFFFF;
  pat[pos + SS + E].list[MD_3] &= 0x3FFFFF;
  pat[pos + SS + S].list[MD_3] &= 0xFFFFFC;
  pat[pos + SS + W].list[MD_3] &= 0xFFFFF3;
  pat[pos + WW + S].list[MD_3] &= 0xFFFFCF;
  pat[pos + WW + W].list[MD_3] &= 0xFFFF3F;
  pat[pos + WW + N].list[MD_3] &= 0xFFFCFF;
  pat[pos + NN + W].list[MD_3] &= 0xFFF3FF;

  // md4
  pat[pos + NN + NN].list[MD_4] &= 0xFFFCFFFF;
  pat[pos + NN + NE].list[MD_4] &= 0xFFF3FFFF;
  pat[pos + NE + NE].list[MD_4] &= 0xFFCFFFFF;
  pat[pos + EE + NE].list[MD_4] &= 0xFF3FFFFF;
  pat[pos + EE + EE].list[MD_4] &= 0xFCFFFFFF;
  pat[pos + EE + SE].list[MD_4] &= 0xF3FFFFFF;
  pat[pos + SE + SE].list[MD_4] &= 0xCFFFFFFF;
  pat[pos + SS + SE].list[MD_4] &= 0x3FFFFFFF;
  pat[pos + SS + SS].list[MD_4] &= 0xFFFFFFFC;
  pat[pos + SS + SW].list[MD_4] &= 0xFFFFFFF3;
  pat[pos + SW + SW].list[MD_4] &= 0xFFFFFFCF;
  pat[pos + WW + SW].list[MD_4] &= 0xFFFFFF3F;
  pat[pos + WW + WW].list[MD_4] &= 0xFFFFFCFF;
  pat[pos + WW + NW].list[MD_4] &= 0xFFFFF3FF;
  pat[pos + NW + NW].list[MD_4] &= 0xFFFFCFFF;
  pat[pos + NN + NW].list[MD_4] &= 0xFFFF3FFF;

  // md5
  pat[pos + NN + NN + N].large_list[MD_5] &= 0xFFFFCFFFFF;
  pat[pos + NN + NN + E].large_list[MD_5] &= 0xFFFF3FFFFF;
  pat[pos + NN + NE + E].large_list[MD_5] &= 0xFFFCFFFFFF;
  pat[pos + NN + EE + E].large_list[MD_5] &= 0xFFF3FFFFFF;
  pat[pos + NE + EE + E].large_list[MD_5] &= 0xFFCFFFFFFF;
  pat[pos + EE + EE + E].large_list[MD_5] &= 0xFF3FFFFFFF;
  pat[pos + SE + EE + E].large_list[MD_5] &= 0xFCFFFFFFFF;
  pat[pos + SS + EE + E].large_list[MD_5] &= 0xF3FFFFFFFF;
  pat[pos + SS + SE + E].large_list[MD_5] &= 0xCFFFFFFFFF;
  pat[pos + SS + SS + E].large_list[MD_5] &= 0x3FFFFFFFFF;
  pat[pos + SS + SS + S].large_list[MD_5] &= 0xFFFFFFFFFC;
  pat[pos + SS + SS + W].large_list[MD_5] &= 0xFFFFFFFFF3;
  pat[pos + SS + SW + W].large_list[MD_5] &= 0xFFFFFFFFCF;
  pat[pos + SS + WW + W].large_list[MD_5] &= 0xFFFFFFFF3F;
  pat[pos + SW + WW + W].large_list[MD_5] &= 0xFFFFFFFCFF;
  pat[pos + WW + WW + W].large_list[MD_5] &= 0xFFFFFFF3FF;
  pat[pos + NW + WW + W].large_list[MD_5] &= 0xFFFFFFCFFF;
  pat[pos + NN + WW + W].large_list[MD_5] &= 0xFFFFFF3FFF;
  pat[pos + NN + NW + W].large_list[MD_5] &= 0xFFFFFCFFFF;
  pat[pos + NN + NN + W].large_list[MD_5] &= 0xFFFFF3FFFF;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq 0x27759(%rip), %r8      # 0x758bc
movl (%r8), %eax
notl %eax
addl %esi, %eax
cltq
leaq (%rax,%rax,2), %rax
movl $0xff3fff, %ecx         # imm = 0xFF3FFF
andl %ecx, (%rdi,%rax,8)
movslq (%r8), %rcx
movslq %esi, %rax
movq %rax, %rsi
subq %rcx, %rsi
leaq (%rsi,%rsi,2), %rcx
movl $0xffcfff, %r14d        # imm = 0xFFCFFF
andl %r14d, (%rdi,%rcx,8)
leal 0x1(%rax), %ecx
movl %ecx, %esi
subl (%r8), %esi
movslq %esi, %rsi
leaq (%rsi,%rsi,2), %rsi
movl $0xfff3ff, %edx         # imm = 0xFFF3FF
andl %edx, (%rdi,%rsi,8)
leaq (%rax,%rax,2), %rbx
movl $0xfffcff, %edx         # imm = 0xFFFCFF
andl %edx, -0x18(%rdi,%rbx,8)
movl $0xffff3f, %edx         # imm = 0xFFFF3F
andl %edx, 0x18(%rdi,%rbx,8)
leal -0x1(%rax), %esi
addl (%r8), %esi
movslq %esi, %rsi
leaq (%rsi,%rsi,2), %rsi
movl $0xffffcf, %edx         # imm = 0xFFFFCF
andl %edx, (%rdi,%rsi,8)
movslq (%r8), %rsi
addq %rax, %rsi
leaq (%rsi,%rsi,2), %rsi
movl $0xfffff3, %ebp         # imm = 0xFFFFF3
andl %ebp, (%rdi,%rsi,8)
addl (%r8), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movl $0xfffffc, %r15d        # imm = 0xFFFFFC
andl %r15d, (%rdi,%rcx,8)
movl (%r8), %ecx
addl %ecx, %ecx
movl %eax, %esi
subl %ecx, %esi
movslq %esi, %rcx
leaq (%rcx,%rcx,2), %rcx
movl $0xcfffff, %r12d        # imm = 0xCFFFFF
andl %r12d, (%rdi,%rcx,8)
leaq 0x2(%rax), %rcx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rsi
movl $0x3fffff, %r13d        # imm = 0x3FFFFF
andl %r13d, (%rdi,%rsi,8)
movslq (%r8), %rsi
leaq (%rax,%rsi,2), %rsi
leaq (%rsi,%rsi,2), %rsi
movl $0xfcffff, %r9d         # imm = 0xFCFFFF
andl %r9d, (%rdi,%rsi,8)
leaq -0x2(%rax), %rsi
movslq %esi, %r10
leaq (%r10,%r10,2), %rdx
movl $0xf3ffff, %esi         # imm = 0xF3FFFF
andl %esi, (%rdi,%rdx,8)
movl (%r8), %edx
leal (%rdx,%rdx,2), %edx
movl %eax, %r11d
subl %edx, %r11d
movslq %r11d, %rdx
leaq (%rdx,%rdx,2), %rdx
andl %r14d, 0x4(%rdi,%rdx,8)
movl (%r8), %edx
addl %edx, %edx
movl %eax, %r11d
subl %edx, %r11d
movslq %r11d, %rdx
leaq (%rdx,%rdx,2), %rdx
movl $0xff3fff, %r11d        # imm = 0xFF3FFF
andl %r11d, 0x1c(%rdi,%rdx,8)
subl (%r8), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl %r9d, 0x4(%rdi,%rcx,8)
andl %esi, 0x4c(%rdi,%rbx,8)
movslq (%r8), %rcx
addq %rax, %rcx
addq $0x2, %rcx
leaq (%rcx,%rcx,2), %rcx
andl %r12d, 0x4(%rdi,%rcx,8)
movslq (%r8), %rcx
leaq (%rax,%rcx,2), %rcx
leaq (%rcx,%rcx,2), %rcx
andl %r13d, 0x1c(%rdi,%rcx,8)
movl (%r8), %ecx
movl %ecx, %edx
addl %eax, %edx
leal (%rdx,%rcx,2), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl %r15d, 0x4(%rdi,%rcx,8)
movslq (%r8), %rcx
leaq (%rax,%rcx,2), %rcx
leaq (%rcx,%rcx,2), %rcx
andl %ebp, -0x14(%rdi,%rcx,8)
movslq (%r8), %rcx
addq %rax, %rcx
addq $-0x2, %rcx
leaq (%rcx,%rcx,2), %rcx
movl $0xffffcf, %edx         # imm = 0xFFFFCF
andl %edx, 0x4(%rdi,%rcx,8)
movl $0xffff3f, %ecx         # imm = 0xFFFF3F
andl %ecx, -0x44(%rdi,%rbx,8)
movl %r10d, %ecx
subl (%r8), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movl $0xfffcff, %edx         # imm = 0xFFFCFF
andl %edx, 0x4(%rdi,%rcx,8)
movl (%r8), %ecx
addl %ecx, %ecx
notl %ecx
addl %eax, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movl $0xfff3ff, %edx         # imm = 0xFFF3FF
andl %edx, 0x4(%rdi,%rcx,8)
movl (%r8), %ecx
shll $0x2, %ecx
movl %eax, %edx
subl %ecx, %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl $0xfffcffff, 0x8(%rdi,%rcx,8) # imm = 0xFFFCFFFF
movl (%r8), %ecx
leal (%rcx,%rcx,2), %ecx
negl %ecx
addl %eax, %ecx
incl %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl $0xfff3ffff, 0x8(%rdi,%rcx,8) # imm = 0xFFF3FFFF
movl (%r8), %ecx
addl %ecx, %ecx
negl %ecx
addl %eax, %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl $0xffcfffff, 0x8(%rdi,%rcx,8) # imm = 0xFFCFFFFF
leal 0x3(%rax), %edx
movl %edx, %ecx
subl (%r8), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl $0xff3fffff, 0x8(%rdi,%rcx,8) # imm = 0xFF3FFFFF
leal 0x4(%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rsi
andb $-0x4, 0xb(%rdi,%rsi,8)
addl (%r8), %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0xf3ffffff, 0x8(%rdi,%rdx,8) # imm = 0xF3FFFFFF
movl (%r8), %edx
leal (%rax,%rdx,2), %edx
addl $0x2, %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0xcfffffff, 0x8(%rdi,%rdx,8) # imm = 0xCFFFFFFF
movl (%r8), %edx
leal (%rax,%rdx), %esi
incl %esi
leal (%rsi,%rdx,2), %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0x3fffffff, 0x8(%rdi,%rdx,8) # imm = 0x3FFFFFFF
movl (%r8), %edx
leal (%rax,%rdx,4), %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $-0x4, 0x8(%rdi,%rdx,8)
movl (%r8), %edx
leal (%rax,%rdx), %esi
decl %esi
leal (%rsi,%rdx,2), %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $-0xd, 0x8(%rdi,%rdx,8)
movl (%r8), %edx
leal (%rax,%rdx,2), %edx
addl $-0x2, %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $-0x31, 0x8(%rdi,%rdx,8)
movl (%r8), %edx
addl %eax, %edx
addl $-0x3, %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0xffffff3f, 0x8(%rdi,%rdx,8) # imm = 0xFFFFFF3F
leal -0x4(%rax), %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andb $-0x4, 0x9(%rdi,%rdx,8)
movl (%r8), %edx
notl %edx
addl %r10d, %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0xfffff3ff, 0x8(%rdi,%rdx,8) # imm = 0xFFFFF3FF
movl (%r8), %edx
notl %edx
leal (%rax,%rdx,2), %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0xffffcfff, 0x8(%rdi,%rdx,8) # imm = 0xFFFFCFFF
movl (%r8), %edx
movl %edx, %esi
notl %esi
addl %eax, %esi
addl %edx, %edx
subl %edx, %esi
movslq %esi, %rdx
leaq (%rdx,%rdx,2), %rdx
andl $0xffff3fff, 0x8(%rdi,%rdx,8) # imm = 0xFFFF3FFF
movl (%r8), %edx
leal (%rdx,%rdx,4), %esi
movl %eax, %r8d
movl %eax, %r9d
subl %esi, %r9d
movslq %r9d, %rsi
leaq (%rsi,%rsi,2), %r9
movabsq $0xffcfffffff, %rsi     # imm = 0xFFCFFFFFFF
leaq 0x2fd00000(%rsi), %r10
andq %r10, 0x10(%rdi,%r9,8)
leal (,%rdx,4), %r9d
subl %r9d, %r8d
movslq %r8d, %r8
leaq (%r8,%r8,2), %r8
leaq 0x2f400000(%rsi), %r10
andq %r10, 0x28(%rdi,%r8,8)
leal (%rdx,%rdx,2), %r8d
negl %r8d
addl %eax, %r8d
addl $0x2, %r8d
movl %eax, %r10d
movslq %r8d, %r8
leaq (%r8,%r8,2), %r8
leaq 0x2d000000(%rsi), %r11
andq %r11, 0x10(%rdi,%r8,8)
subl %edx, %r10d
subl %edx, %r10d
movslq %r10d, %r10
leaq (%r10,%r10,2), %r11
leaq 0x24000000(%rsi), %r8
andq %r8, 0x58(%rdi,%r11,8)
subl %edx, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andq %rsi, 0x10(%rdi,%rcx,8)
movabsq $0xff3fffffff, %rcx     # imm = 0xFF3FFFFFFF
andq %rcx, 0x88(%rdi,%rbx,8)
leal (%rdx,%rax), %ecx
incl %ecx
leal (%rax,%rdx,2), %r8d
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
andl $0xfc, 0x5c(%rdi,%rcx,8)
movslq %r8d, %r8
leaq (%r8,%r8,2), %rcx
andl $0xf3, 0x5c(%rdi,%rcx,8)
leal (%rax,%rdx,4), %ebp
leal (%rdx,%r8), %r14d
incl %r14d
movslq %r14d, %r14
leaq (%r14,%r14,2), %r14
andl $0xcf, 0x2c(%rdi,%r14,8)
movslq %ebp, %r14
leaq (%r14,%r14,2), %r15
andl $0x3f, 0x2c(%rdi,%r15,8)
addl %edx, %r14d
movslq %r14d, %r14
leaq (%r14,%r14,2), %r14
leaq 0x2ffffffd(%rsi), %r12
andq %r12, 0x10(%rdi,%r14,8)
leaq 0x2ffffff4(%rsi), %r14
andq %r14, -0x8(%rdi,%r15,8)
addl %edx, %r8d
decl %r8d
movslq %r8d, %r8
leaq (%r8,%r8,2), %r8
leaq 0x2fffffd0(%rsi), %r14
andq %r14, -0x8(%rdi,%r8,8)
leaq 0x2fffff40(%rsi), %r8
andq %r8, -0x38(%rdi,%rcx,8)
leal (%rdx,%rax), %ecx
decl %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x2ffffd00(%rsi), %r8
andq %r8, -0x38(%rdi,%rcx,8)
leaq 0x2ffff400(%rsi), %rcx
andq %rcx, -0x68(%rdi,%rbx,8)
notl %edx
leal (%rdx,%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x2fffd000(%rsi), %r8
andq %r8, -0x38(%rdi,%rcx,8)
leaq 0x2fff4000(%rsi), %rcx
andq %rcx, -0x38(%rdi,%r11,8)
addl %edx, %r10d
movslq %r10d, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x2ffd0000(%rsi), %rdx
andq %rdx, -0x8(%rdi,%rcx,8)
notl %r9d
addl %eax, %r9d
movslq %r9d, %rax
leaq (%rax,%rax,2), %rax
addq $0x2ff40000, %rsi       # imm = 0x2FF40000
andq %rsi, 0x10(%rdi,%rax,8)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq