// File: antoniogarro[P]Hara/heuristics.cpp
// Function: Goban::match_mogo_pattern(int, bool) const
bool Goban::match_mogo_pattern(int point, bool side) const
{    
  if (point == 1 || point == size || point == size2 || point == size*(size-1)+1) return false;  //filter corners.
  
  if (point > size && point % size && point <= size*(size-1) && point % size != 1) {
    const int *vic = vicinity[point];
    for (int i = 1; i < 8; i+=2) {
      if (points[vic[i]]) {
        bool adj_color = points[vic[i]]->get_color();
        if (points[vic[i-1]] && points[vic[i-1]]->get_color() != adj_color) {
          if (points[vic[i+2]] == 0 && points[vic[i+6]] == 0) {
            if (points[vic[i+1]] && points[vic[i+1]]->get_color() != adj_color) {
              return true;  //Hane1
            }
            if (points[vic[i+1]] == 0 && points[vic[i+4]] == 0) {
              return true;  //Hane2
            }
          }
          if (points[vic[i+2]] == 0 && points[vic[i+4]] == 0 &&
              points[vic[i+6]] && points[vic[i+6]]->get_color() != adj_color) {
              return true;  //Hane3
          }
          if (points[vic[i+6]] && points[vic[i+6]]->get_color() == adj_color) {
            if ((points[vic[i+2]] || points[vic[i+4]] == 0 || points[vic[i+4]]->get_color() == adj_color) &&
                (points[vic[i+4]] || points[vic[i+2]] == 0 || points[vic[i+2]]->get_color() == adj_color)) {
              return true;  //Cut1
            }
          }
        }
        if (points[vic[i+1]] && points[vic[i+1]]->get_color() != adj_color) {
          if (points[vic[i+2]] == 0 && points[vic[i+6]] == 0) {
            if (points[vic[i-1]] == 0 && points[vic[i+4]] == 0) {
              return true;  //Mirror Hane2
            }
          }
          if (points[vic[i+4]] == 0 && points[vic[i+6]] == 0 &&
              points[vic[i+2]] && points[vic[i+2]]->get_color() != adj_color) {
              return true;  //Mirror Hane3
          }
        }
        if (points[vic[i+2]] && points[vic[i+6]] && points[vic[i+2]]->get_color() != adj_color &&
            points[vic[i+6]]->get_color() != adj_color &&
            (points[vic[i+4]] == 0 || points[vic[i+4]]->get_color() == adj_color) &&
            (points[vic[i+3]] == 0 || points[vic[i+3]]->get_color() == adj_color) &&
            (points[vic[i+5]] == 0 || points[vic[i+5]]->get_color() == adj_color)) {
          return true;  //Cut2
        }
        if (adj_color != side && points[vic[i-1]] && points[vic[i-1]]->get_color() == side &&
            points[vic[i+2]] == 0 && points[vic[i+4]] == 0 && points[vic[i+6]] == 0 &&
            points[vic[i+1]] && points[vic[i+1]]->get_color() == adj_color) {
          return true;  //Hane4
        }
        if (adj_color != side && points[vic[i+1]] && points[vic[i+1]]->get_color() == side &&
            points[vic[i+2]] == 0 && points[vic[i+4]] == 0 && points[vic[i+6]] == 0 &&
            points[vic[i-1]] && points[vic[i-1]]->get_color() == adj_color) {
          return true;  //Mirror Hane4
        }
      }
    }
  } else {
    for (int i = 1; i < 8; i+=2) {
      const int *vic = vicinity[point];
      if (vic[i]) {
        if (points[vic[i]]) {
          if (vic[i+2] && points[vic[i+2]] && points[vic[i+2]]->get_color() != points[vic[i]]->get_color() &&
             (vic[i+6]==0 || points[vic[i+6]] == 0 || points[vic[i+6]]->get_color() != points[vic[i]]->get_color())) {
            return true;  //Side2
          }
          if (vic[i+6] && points[vic[i+6]] && points[vic[i+6]]->get_color() != points[vic[i]]->get_color() &&
             (vic[i+2]== 0 || points[vic[i+2]] == 0 || points[vic[i+2]]->get_color() != points[vic[i]]->get_color())) {
            return true;  //Mirror Side2
          }
          if (points[vic[i]]->get_color() == side) {
            if ((vic[i+1] && points[vic[i+1]] && points[vic[i+1]]->get_color() != side)) {
              return true;  //Side3
            }
            if ((vic[i-1] && points[vic[i-1]] && points[vic[i-1]]->get_color() != side)) {
              return true;  //Mirror Side3
            }
          }
          if (points[vic[i]]->get_color() != side) {
            if (vic[i+1] && points[vic[i+1]] && points[vic[i+1]]->get_color() == side) {
              if (vic[i+2] == 0 || points[vic[i+2]] == 0 || points[vic[i+2]]->get_color() == side) {
                return true;  //Side4
              }
              if (vic[i+2] && points[vic[i+2]] && points[vic[i+2]]->get_color() != side
                && vic[i+6] && points[vic[i+6]] && points[vic[i+6]]->get_color() == side) {
                return true; //Side5
              }
            }
            if (vic[i-1] && points[vic[i-1]] && points[vic[i-1]]->get_color() == side) {
              if (vic[i+6] == 0 || points[vic[i+6]] == 0 || points[vic[i+6]]->get_color() == side) {
                return true;  //Mirror Side4
              }
              if (vic[i+6] && points[vic[i+6]] && points[vic[i+6]]->get_color() != side &&
                  vic[i+2] && points[vic[i+2]] && points[vic[i+2]]->get_color() == side) {
                return true; //Mirror Side5
              }
            }
          }
        } else if ((vic[i+6] && points[vic[i+6]] && vic[i-1] && points[vic[i-1]] &&
                    points[vic[i+6]]->get_color() != points[vic[i-1]]->get_color())
               || (vic[i+2] && points[vic[i+2]] && vic[i+1] && points[vic[i+1]] &&
                    points[vic[i+2]]->get_color() != points[vic[i+1]]->get_color())) {
          return true;  //Side1 and mirror.
        }
      }
    }
  }
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpl $0x1, -0x14(%rbp)
je 0xf306
movq -0x40(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x8(%rcx), %eax
je 0xf306
movq -0x40(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0xc(%rcx), %eax
je 0xf306
movq -0x40(%rbp), %rdx
movl -0x14(%rbp), %eax
movl 0x8(%rdx), %ecx
movl 0x8(%rdx), %edx
subl $0x1, %edx
imull %edx, %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0xf30f
movb $0x0, -0x1(%rbp)
jmp 0x104f3
movq -0x40(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x8(%rcx), %eax
jle 0xfc2c
movq -0x40(%rbp), %rcx
movl -0x14(%rbp), %eax
cltd
idivl 0x8(%rcx)
cmpl $0x0, %edx
je 0xfc2c
movq -0x40(%rbp), %rdx
movl -0x14(%rbp), %eax
movl 0x8(%rdx), %ecx
movl 0x8(%rdx), %edx
subl $0x1, %edx
imull %edx, %ecx
cmpl %ecx, %eax
jg 0xfc2c
movq -0x40(%rbp), %rcx
movl -0x14(%rbp), %eax
cltd
idivl 0x8(%rcx)
cmpl $0x1, %edx
je 0xfc2c
movq -0x40(%rbp), %rax
addq $0xd9c78, %rax          # imm = 0xD9C78
movslq -0x14(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl $0x1, -0x24(%rbp)
cmpl $0x8, -0x24(%rbp)
jge 0xfc27
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq -0x24(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfc17
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq -0x24(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movb %cl, -0x25(%rbp)
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf6c8
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf6c8
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf4fe
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf4fe
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf4b9
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf4b9
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf4fc
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf4fc
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0xf4fe
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf58f
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf58f
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf58f
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf58f
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf6c6
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xf6c6
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf650
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf650
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xf6c4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf6bb
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf6bb
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xf6c4
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0xf6c6
jmp 0xf6c8
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf830
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf830
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf79d
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf79d
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf79b
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf79b
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0xf79d
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf82e
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xf82e
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf82e
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf82e
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0xf830
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf9d3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf9d3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf9d3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xf9d3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf92e
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xf9d3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x3, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf97c
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x3, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xf9d3
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x5, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xf9ca
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x5, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xf9d3
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movb -0x25(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfaf4
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xfaf4
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movb -0x25(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
jne 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfc15
movq -0x40(%rbp), %rax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x25(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xfc15
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0xfc17
jmp 0xfc19
movl -0x24(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x24(%rbp)
jmp 0xf382
jmp 0x104ef
movl $0x1, -0x2c(%rbp)
cmpl $0x8, -0x2c(%rbp)
jge 0x104ed
movq -0x40(%rbp), %rax
addq $0xd9c78, %rax          # imm = 0xD9C78
movslq -0x14(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movslq -0x2c(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x104dd
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x1034f
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xfd9f
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfd9f
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x44(%rbp)
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movl -0x44(%rbp), %eax
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xfd9f
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xfd96
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfd96
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x48(%rbp)
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movl -0x48(%rbp), %eax
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xfd9f
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xfeba
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfeba
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x4c(%rbp)
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movl -0x4c(%rbp), %eax
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xfeba
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xfeb1
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xfeb1
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x50(%rbp)
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movl -0x50(%rbp), %eax
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xfeba
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0xffc0
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xff54
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xff54
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xff54
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xffbe
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0xffbe
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0xffbe
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0xffc0
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x1034a
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x1019c
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x1019c
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x1019c
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x100be
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x100be
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x100c7
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x1019a
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x1019a
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x1019a
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x1019a
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x1019a
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x1019a
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0x1019c
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x10348
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x10348
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x10348
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x1026a
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x1026a
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x10273
movb $0x1, -0x1(%rbp)
jmp 0x104f3
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x10346
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x10346
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x10346
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x10346
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x10346
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
andb $0x1, %al
movzbl %al, %eax
movb -0x15(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x10346
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0x10348
jmp 0x1034a
jmp 0x104db
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x10413
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x10413
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x10413
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x10413
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x6, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x54(%rbp)
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movl -0x54(%rbp), %eax
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x104d3
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x104d9
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x104d9
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x104d9
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
cmpq $0x0, 0x18(%rax,%rcx,8)
je 0x104d9
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movq -0x40(%rbp), %rax
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x58(%rbp)
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
movq 0x18(%rax,%rcx,8), %rdi
callq 0x7400
movb %al, %cl
movl -0x58(%rbp), %eax
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x104d9
movb $0x1, -0x1(%rbp)
jmp 0x104f3
jmp 0x104db
jmp 0x104dd
jmp 0x104df
movl -0x2c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x2c(%rbp)
jmp 0xfc33
jmp 0x104ef
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x60, %rsp
popq %rbp
retq
nop