// File: /workspace/github_cpp_makefile_star2_O1/ATOMIC-LICHESS[P]ATOMKRAFT/movegen.cpp
// Function: MoveStack* generate<(MoveType)4>(Position const&, MoveStack*)
MoveStack* generate<MV_EVASION>(const Position& pos, MoveStack* mlist) {
  NEW assert(pos.piece_count(WHITE, KING) && pos.piece_count(BLACK, KING));
		
  assert(pos.is_ok());
  assert(pos.in_check());

  Bitboard b, target;
  Square from, checksq;
  int checkersCnt = 0;
  Color us = pos.side_to_move();
  NEW assert(pos.piece_count(us, KING));
  Square ksq = pos.king_square(us);
  Bitboard checkers = pos.checkers();
  Bitboard sliderAttacks = EmptyBoardBB;

  assert(pos.piece_on(ksq) == make_piece(us, KING));
  assert(checkers);

  // Find squares attacked by slider checkers, we will remove
  // them from the king evasions set so to early skip known
  // illegal moves and avoid an useless legality check later.
  b = checkers;
  do
  {
      checkersCnt++;
      checksq = pop_1st_bit(&b);
      
      STARTNEW
//      if (pos.color_of_piece_on(checksq) != opposite_color(us)) {
//    	  cout << "ERROR" << endl;
//    	  print_pos(pos);
//    	  cout << checksq <<  endl;
//    	  cout << PIECE_NAME[pos.piece_on(checksq)] << endl;
//    	  cout << pos.color_of_piece_on(checksq) << endl;
//    	  cout << opposite_color(us) << endl;
//    	  
//  	  }
      ENDNEW
      
      assert(pos.color_of_piece_on(checksq) == opposite_color(us));

      switch (pos.type_of_piece_on(checksq))
      {
      case BISHOP: sliderAttacks |= BishopPseudoAttacks[checksq]; break;
      case ROOK:   sliderAttacks |= RookPseudoAttacks[checksq];   break;
      case QUEEN:
          // In case of a queen remove also squares attacked in the other direction to
          // avoid possible illegal moves when queen and king are on adjacent squares.
          if (RookPseudoAttacks[checksq] & (1ULL << ksq))
              sliderAttacks |= RookPseudoAttacks[checksq] | pos.attacks_from<BISHOP>(checksq);
          else
              sliderAttacks |= BishopPseudoAttacks[checksq] | pos.attacks_from<ROOK>(checksq);
          break;
      default:
          break;
      }
  } while (b);

  // Generate evasions for king, capture and non capture moves
  OLD b = pos.attacks_from<KING>(ksq) & ~pos.pieces_of_color(us) & ~sliderAttacks;
  
  
  STARTNEW
  // while capture moves by the king are never allowed
  // moving our king next to the opponents king is also check evasion evasion
  assert(pos.piece_count(opposite_color(us), KING));
  Square opp_ksq = pos.king_square(opposite_color(us));
  //b = pos.attacks_from<KING>(ksq) & ~pos.occupied_squares() & ~sliderAttacks;
  //b |= (pos.attacks_from<KING>(ksq) & pos.attacks_from<KING>(opp_ksq));
  // A & ~B & ~C | (A & D) == A & ((~B & ~C) | D)
  b = pos.attacks_from<KING>(ksq) & ((~pos.occupied_squares() & ~sliderAttacks) | pos.attacks_from<KING>(opp_ksq));
  ENDNEW
  
  from = ksq;
  SERIALIZE_MOVES(b);
  
  NEW // unfortunatly this is not true for atomic
  // Generate evasions for other pieces only if not double check
  OLD if (checkersCnt > 1)
  OLD    return mlist;

  // Find squares where a blocking evasion or a capture of the
  // checker piece is possible.
  OLD target = squares_between(checksq, ksq) | checkers;
  
  STARTNEW
  
  if (checkersCnt <= 1) {
	  // one checker => moving a piece between is a possible evasion
	  target = squares_between(checksq, ksq) | checkers;
  } else {
	  // more checkers and we have to move the king or capture all of them
	  target = EmptyBoardBB;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl 0x1090(%rdi), %ecx
leaq 0x190(%rdi), %rax
movq %rax, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %rcx, %rax
shlq $0x9, %rax
movq %rax, 0x48(%rsp)
movslq 0x310(%rdi,%rax), %rcx
movq 0x1938(%rdi), %rax
movq 0x40(%rax), %rax
movl $0x1, %esi
movq %rcx, 0x18(%rsp)
shlq %cl, %rsi
movq %rsi, 0x10(%rsp)
leaq 0x40(%rsp), %r12
movq %rax, 0x38(%rsp)
movq %rax, (%r12)
movl $0x1, %r13d
xorl %r15d, %r15d
movq %r12, %rdi
callq 0x7d37
movslq %eax, %rbp
movl (%r14,%rbp,4), %eax
andl $0x7, %eax
cmpl $0x5, %eax
je 0x19722
cmpl $0x4, %eax
je 0x19712
cmpl $0x3, %eax
jne 0x197e4
leaq 0x109c40(%rip), %rax    # 0x123350
jmp 0x19719
leaq 0x109e37(%rip), %rax    # 0x123550
orq (%rax,%rbp,8), %r15
jmp 0x197e4
leaq 0x109e27(%rip), %rax    # 0x123550
movq (%rax,%rbp,8), %rax
testq %rax, 0x10(%rsp)
je 0x19786
leaq 0xf4365(%rip), %rcx     # 0x10daa0
movq (%rcx,%rbp,8), %rcx
andq 0x100(%r14), %rcx
leaq 0x14bf3(%rip), %rdx     # 0x2e340
movq (%rdx,%rbp,8), %rdx
movl %edx, %esi
imull %ecx, %esi
shrq $0x20, %rcx
shrq $0x20, %rdx
imull %ecx, %edx
xorl %esi, %edx
leaq 0x14fd6(%rip), %rcx     # 0x2e740
movb (%rcx,%rbp,4), %cl
shrl %cl, %edx
leaq 0xf452a(%rip), %rcx     # 0x10dca0
addl (%rcx,%rbp,4), %edx
leaq 0xf4620(%rip), %rcx     # 0x10dda0
orq (%rcx,%rdx,8), %r15
jmp 0x197e1
leaq 0x2c013(%rip), %rax     # 0x457a0
movq (%rax,%rbp,8), %rax
andq 0x100(%r14), %rax
leaq 0x14da1(%rip), %rcx     # 0x2e540
movq (%rcx,%rbp,8), %rdx
movl %edx, %ecx
imull %eax, %ecx
shrq $0x20, %rax
shrq $0x20, %rdx
imull %eax, %edx
xorl %ecx, %edx
leaq 0x15084(%rip), %rax     # 0x2e840
movb (%rax,%rbp,4), %cl
shrl %cl, %edx
leaq 0x2c1d8(%rip), %rax     # 0x459a0
addl (%rax,%rbp,4), %edx
leaq 0x109b7e(%rip), %rax    # 0x123350
movq (%rax,%rbp,8), %rax
leaq 0x2c2c3(%rip), %rcx     # 0x45aa0
orq (%rcx,%rdx,8), %rax
orq %rax, %r15
decl %r13d
cmpq $0x0, 0x40(%rsp)
jne 0x196e4
movq 0x20(%rsp), %rax
movl %eax, %ecx
xorl $0x1, %ecx
movq %rcx, 0x10(%rsp)
shlq $0x9, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x50(%rsp)
movslq 0x180(%rax,%rcx), %rax
orq 0x100(%r14), %r15
leaq 0xfef2a(%rip), %rcx     # 0x118750
notq %r15
orq 0xc00(%rcx,%rax,8), %r15
movq 0x18(%rsp), %rax
andq 0xc00(%rcx,%rax,8), %r15
movq %r15, 0x40(%rsp)
je 0x1986a
movl %eax, %r15d
shll $0x6, %r15d
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x7d37
orl %r15d, %eax
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x40(%rsp)
jne 0x19851
movq 0x28(%rsp), %rax
movq 0x50(%rsp), %rcx
addq %rcx, %rax
addq $0x180, %rax            # imm = 0x180
testl %r13d, %r13d
je 0x1988c
xorl %r13d, %r13d
movq 0x38(%rsp), %rcx
jmp 0x198a9
shlq $0x9, %rbp
addq 0x22711(%rip), %rbp     # 0x3bfa8
movq 0x18(%rsp), %rcx
movq (%rbp,%rcx,8), %r13
movq 0x38(%rsp), %rcx
orq %rcx, %r13
movslq (%rax), %rax
leaq 0x17e4d(%rip), %rbp     # 0x31700
movq (%rbp,%rax,8), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq 0x140(%r14,%rax,8), %r12
leaq 0x40(%rsp), %r15
movq %rcx, (%r15)
movq %r12, 0x10(%rsp)
movq %r15, %rdi
callq 0x7d37
cltq
movl (%r14,%rax,4), %ecx
andl $0x7, %ecx
cmpl $0x1, %ecx
je 0x198fc
andq (%rbp,%rax,8), %r12
cmpq $0x0, 0x40(%rsp)
jne 0x198d7
jmp 0x198ff
xorl %r12d, %r12d
movabsq $0xffffffffffff00, %rdx # imm = 0xFFFFFFFFFFFF00
movq 0x10(%rsp), %rax
andq 0x18(%rsp), %rax
orq %r13, %rax
orq %r12, %rax
cmpq $0x0, 0x20(%rsp)
movq %rax, 0x10(%rsp)
je 0x199d6
movq 0x148(%r14), %rcx
andq 0x108(%r14), %rcx
movq 0x100(%r14), %r13
notq %r13
movq %rax, %rsi
andq %r13, %rsi
movq 0x140(%r14), %rdi
andq %rax, %rdi
movq %rdi, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq %rcx, %rax
andq $0xff00, %rax           # imm = 0xFF00
movq %rsi, 0x38(%rsp)
je 0x19a86
shrl $0x8, %eax
movl %esi, %ecx
andl %eax, %ecx
movq %rcx, 0x8(%rsp)
movq %rdx, %r12
je 0x19a89
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0x200, %ecx            # imm = 0x200
orl %eax, %ecx
movl %ecx, %eax
orl $0x7000, %eax           # imm = 0x7000
movl %eax, (%rbx)
movl %ecx, %eax
orl $0x6000, %eax           # imm = 0x6000
movl %eax, 0x8(%rbx)
movl %ecx, %eax
orl $0x5000, %eax           # imm = 0x5000
movl %eax, 0x10(%rbx)
orl $0x4000, %ecx           # imm = 0x4000
movl %ecx, 0x18(%rbx)
addq $0x20, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x1998a
jmp 0x19a89
movq 0x140(%r14), %rcx
andq 0x108(%r14), %rcx
movq 0x100(%r14), %r13
notq %r13
movq %rax, %rsi
andq %r13, %rsi
movq 0x148(%r14), %rdi
andq %rax, %rdi
movq %rdi, 0x18(%rsp)
movabsq $0xff000000000000, %rax # imm = 0xFF000000000000
movq %rcx, 0x20(%rsp)
andq %rcx, %rax
movq %rsi, 0x38(%rsp)
je 0x19c36
shlq $0x8, %rax
andq %rsi, %rax
movq %rax, 0x8(%rsp)
movq %rdx, %r12
je 0x19c39
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0xfffffe00, %ecx       # imm = 0xFFFFFE00
orl %eax, %ecx
movl %ecx, %eax
orl $0x7000, %eax           # imm = 0x7000
movl %eax, (%rbx)
movl %ecx, %eax
orl $0x6000, %eax           # imm = 0x6000
movl %eax, 0x8(%rbx)
movl %ecx, %eax
orl $0x5000, %eax           # imm = 0x5000
movl %eax, 0x10(%rbx)
orl $0x4000, %ecx           # imm = 0x4000
movl %ecx, 0x18(%rbx)
addq $0x20, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19a3a
jmp 0x19c39
movq %rdx, %r12
movq 0x20(%rsp), %rax
movq %rax, %rbp
shrq $0x8, %rbp
shrq $0x7, %rax
andq 0x18(%rsp), %rax
movabsq $0xfefefefefefefe, %rcx # imm = 0xFEFEFEFEFEFEFE
andq %rax, %rcx
movq %rcx, 0x8(%rsp)
je 0x19ada
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0x1c0, %ecx            # imm = 0x1C0
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19ab7
andq %rbp, %r12
andq %rbp, %r13
movq 0x20(%rsp), %rax
shrq $0x9, %rax
movq 0x18(%rsp), %rcx
andq %rax, %rcx
movabsq $0x7f7f7f7f7f7f7f, %rax # imm = 0x7F7F7F7F7F7F7F
andq %rcx, %rax
movq %rax, 0x8(%rsp)
je 0x19b34
leaq 0x8(%rsp), %r15
movq 0x28(%rsp), %rbp
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0x240, %ecx            # imm = 0x240
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19b0f
jmp 0x19b39
movq 0x28(%rsp), %rbp
shrq $0x8, %r13
movq 0x38(%rsp), %rcx
andq %rcx, %r13
movabsq $0xff00000000, %rax     # imm = 0xFF00000000
andq %r13, %rax
movq %rax, 0x30(%rsp)
andq %rcx, %r12
movq %r12, 0x8(%rsp)
je 0x19b89
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0x200, %ecx            # imm = 0x200
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19b66
cmpq $0x0, 0x30(%rsp)
je 0x19bb9
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0x400, %ecx            # imm = 0x400
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x30(%rsp)
jne 0x19b96
movq 0x1938(%r14), %rax
movslq 0x20(%rax), %rax
cmpq $0x40, %rax
je 0x19dcf
leaq 0xfe5cb(%rip), %rcx     # 0x1181a0
movq 0x10(%rsp), %rdx
testq %rdx, 0x40(%rcx,%rax,8)
je 0x19dcf
leaq 0xfeb64(%rip), %rcx     # 0x118750
movq 0x20(%rsp), %rdx
andq 0x200(%rcx,%rax,8), %rdx
movq %rdx, 0x8(%rsp)
je 0x19dcf
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movq 0x1938(%r14), %rcx
shll $0x6, %eax
orl 0x20(%rcx), %eax
orl $0x8000, %eax           # imm = 0x8000
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19c09
jmp 0x19dcf
movq %rdx, %r12
movq 0x20(%rsp), %rax
movq %rax, %rbp
shlq $0x8, %rbp
shlq $0x9, %rax
andq 0x18(%rsp), %rax
movabsq $-0x101010101010200, %rcx # imm = 0xFEFEFEFEFEFEFE00
andq %rax, %rcx
movq %rcx, 0x8(%rsp)
je 0x19c8a
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0xfffffdc0, %ecx       # imm = 0xFFFFFDC0
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19c67
andq %rbp, %r12
andq %rbp, %r13
movq 0x20(%rsp), %rax
shlq $0x7, %rax
movq 0x18(%rsp), %rcx
andq %rax, %rcx
movabsq $0x7f7f7f7f7f7f7f00, %rax # imm = 0x7F7F7F7F7F7F7F00
andq %rcx, %rax
movq %rax, 0x8(%rsp)
je 0x19ce4
leaq 0x8(%rsp), %r15
movq 0x28(%rsp), %rbp
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0xfffffe40, %ecx       # imm = 0xFFFFFE40
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19cbf
jmp 0x19ce9
movq 0x28(%rsp), %rbp
shll $0x8, %r13d
movq 0x38(%rsp), %rax
andl %eax, %r13d
andl $0xff000000, %r13d      # imm = 0xFF000000
movq %r13, 0x30(%rsp)
andq %rax, %r12
movq %r12, 0x8(%rsp)
je 0x19d33
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0xfffffe00, %ecx       # imm = 0xFFFFFE00
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19d10
cmpq $0x0, 0x30(%rsp)
je 0x19d63
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movl %eax, %ecx
shll $0x6, %ecx
addl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
orl %eax, %ecx
movl %ecx, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x30(%rsp)
jne 0x19d40
movq 0x1938(%r14), %rax
movslq 0x20(%rax), %rax
cmpq $0x40, %rax
je 0x19dcf
leaq 0xfe425(%rip), %rcx     # 0x1181a0
movq 0x10(%rsp), %rdx
testq %rdx, -0x40(%rcx,%rax,8)
je 0x19dcf
leaq 0xfe9c2(%rip), %rcx     # 0x118750
movq 0x20(%rsp), %rdx
andq 0x1200(%rcx,%rax,8), %rdx
movq %rdx, 0x8(%rsp)
je 0x19dcf
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7d37
movq 0x1938(%r14), %rcx
shll $0x6, %eax
orl 0x20(%rcx), %eax
orl $0x8000, %eax           # imm = 0x8000
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19da7
movq 0x48(%rsp), %rax
cmpl $0x40, 0x80(%rbp,%rax)
je 0x19e35
leaq (%rax,%rbp), %r13
addq $0x80, %r13
leaq 0x8(%rsp), %r15
movslq (%r13), %r12
leaq 0xfe957(%rip), %rax     # 0x118750
movq 0x400(%rax,%r12,8), %rax
andq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
je 0x19e2a
shll $0x6, %r12d
movq %r15, %rdi
callq 0x7d37
orl %r12d, %eax
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19e11
cmpl $0x40, 0x4(%r13)
leaq 0x4(%r13), %r13
jne 0x19dee
movq 0x48(%rsp), %rax
cmpl $0x40, 0xc0(%rbp,%rax)
jne 0x19e50
leaq 0x2b955(%rip), %r12     # 0x457a0
jmp 0x19ef1
leaq (%rax,%rbp), %r13
addq $0xc0, %r13
leaq 0x8(%rsp), %r15
leaq 0x2b939(%rip), %r12     # 0x457a0
movslq (%r13), %rbp
leaq 0xf3c2e(%rip), %rax     # 0x10daa0
movq (%rax,%rbp,8), %rax
andq 0x100(%r14), %rax
leaq 0x144bc(%rip), %rcx     # 0x2e340
movq (%rcx,%rbp,8), %rdx
movl %edx, %ecx
imull %eax, %ecx
shrq $0x20, %rax
shrq $0x20, %rdx
imull %eax, %edx
xorl %ecx, %edx
leaq 0x1489f(%rip), %rax     # 0x2e740
movb (%rax,%rbp,4), %cl
shrl %cl, %edx
leaq 0xf3df3(%rip), %rax     # 0x10dca0
addl (%rax,%rbp,4), %edx
leaq 0xf3ee9(%rip), %rax     # 0x10dda0
movq (%rax,%rdx,8), %rax
andq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
je 0x19ee2
shll $0x6, %ebp
movq %r15, %rdi
callq 0x7d37
orl %ebp, %eax
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19eca
cmpl $0x40, 0x4(%r13)
leaq 0x4(%r13), %r13
jne 0x19e67
movq 0x28(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpl $0x40, 0x100(%rax,%rcx)
je 0x19f98
leaq (%rax,%rcx), %r13
addq $0x100, %r13            # imm = 0x100
leaq 0x8(%rsp), %r15
movslq (%r13), %rbp
movq (%r12,%rbp,8), %rax
andq 0x100(%r14), %rax
leaq 0x14611(%rip), %rcx     # 0x2e540
movq (%rcx,%rbp,8), %rdx
movl %edx, %ecx
imull %eax, %ecx
shrq $0x20, %rax
shrq $0x20, %rdx
imull %eax, %edx
xorl %ecx, %edx
leaq 0x148f4(%rip), %rax     # 0x2e840
movb (%rax,%rbp,4), %cl
shrl %cl, %edx
leaq 0x2ba48(%rip), %rax     # 0x459a0
addl (%rax,%rbp,4), %edx
leaq 0x2bb3e(%rip), %rax     # 0x45aa0
movq (%rax,%rdx,8), %rax
andq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
je 0x19f8d
shll $0x6, %ebp
movq %r15, %rdi
callq 0x7d37
orl %ebp, %eax
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x19f75
cmpl $0x40, 0x4(%r13)
leaq 0x4(%r13), %r13
jne 0x19f19
movq 0x28(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpl $0x40, 0x140(%rax,%rcx)
je 0x1a08f
leaq (%rax,%rcx), %r13
addq $0x140, %r13            # imm = 0x140
leaq 0x8(%rsp), %r15
movslq (%r13), %rbp
movq 0x100(%r14), %rcx
movq (%r12,%rbp,8), %rdx
andq %rcx, %rdx
leaq 0x14567(%rip), %rax     # 0x2e540
movq (%rax,%rbp,8), %rax
movl %eax, %esi
imull %edx, %esi
shrq $0x20, %rdx
shrq $0x20, %rax
imull %edx, %eax
leaq 0xf3aac(%rip), %rdx     # 0x10daa0
andq (%rdx,%rbp,8), %rcx
xorl %esi, %eax
leaq 0x1433f(%rip), %rdx     # 0x2e340
movq (%rdx,%rbp,8), %rdx
movl %edx, %esi
imull %ecx, %esi
shrq $0x20, %rcx
shrq $0x20, %rdx
imull %ecx, %edx
leaq 0x14824(%rip), %rcx     # 0x2e840
movb (%rcx,%rbp,4), %cl
shrl %cl, %eax
xorl %esi, %edx
leaq 0x2b976(%rip), %rcx     # 0x459a0
addl (%rcx,%rbp,4), %eax
leaq 0x1470c(%rip), %rcx     # 0x2e740
movb (%rcx,%rbp,4), %cl
shrl %cl, %edx
leaq 0xf3c60(%rip), %rcx     # 0x10dca0
addl (%rcx,%rbp,4), %edx
leaq 0xf3d56(%rip), %rcx     # 0x10dda0
movq (%rcx,%rdx,8), %rcx
leaq 0x2ba4b(%rip), %rdx     # 0x45aa0
orq (%rdx,%rax,8), %rcx
andq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
je 0x1a080
shll $0x6, %ebp
movq %r15, %rdi
callq 0x7d37
orl %ebp, %eax
movl %eax, (%rbx)
addq $0x8, %rbx
cmpq $0x0, 0x8(%rsp)
jne 0x1a068
cmpl $0x40, 0x4(%r13)
leaq 0x4(%r13), %r13
jne 0x19fc0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq