// File: tanakh[P]icfpc2015/main.cpp
// Function: print_board_(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&, std::complex<int> const&, unit const&, int)
void print_board_(const vector<vector<int>> &bd_, const pt &pos, const unit &u, int rot)
{
  vector<vector<int>> bd = bd_;

  for (auto &c: u.members) {
    pt p = pos + rot_pivot(c, u.pivot, rot);
    assert(p.imag()>=0&&p.imag()<bd.size()&&p.real()>=0&&p.real()<bd[0].size());
    bd[p.imag()][p.real()] = 2;
  }
  pt q = pos + u.pivot;
  if (q.real() >= 0 && q.real() < (int)bd[0].size() &&
      q.imag() >= 0 && q.imag() < (int)bd.size())
    bd[q.imag()][q.real()] = 3;
  print_board(bd);
}

// Assembly:
subq $0xf8, %rsp
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movl %ecx, 0xdc(%rsp)
movq 0xf0(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
callq 0x12250
movq 0xe0(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x110b0
movq %rax, 0xb0(%rsp)
movq 0xb8(%rsp), %rdi
callq 0x110e0
movq %rax, 0xa8(%rsp)
leaq 0xb0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x11110
testb $0x1, %al
jne 0x76c3
jmp 0x78c7
leaq 0xb0(%rsp), %rdi
callq 0x11150
movq %rax, 0xa0(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xa0(%rsp), %rdi
movq 0xe0(%rsp), %rsi
addq $0x18, %rsi
movl 0xdc(%rsp), %edx
callq 0x11830
movq %rax, 0x70(%rsp)
jmp 0x770c
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0x90(%rsp), %rsi
callq 0x12100
movq %rax, 0x60(%rsp)
jmp 0x7732
movq 0x60(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x11930
movl %eax, 0x5c(%rsp)
jmp 0x7752
movl 0x5c(%rsp), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x5b(%rsp)
jl 0x780e
leaq 0x98(%rsp), %rdi
callq 0x11930
movl %eax, 0x54(%rsp)
jmp 0x7778
movl 0x54(%rsp), %eax
cltq
movq %rax, 0x48(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x12140
movq 0x48(%rsp), %rcx
movq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, 0x5b(%rsp)
jae 0x780e
leaq 0x98(%rsp), %rdi
callq 0x11920
movl %eax, 0x44(%rsp)
jmp 0x77b6
movl 0x44(%rsp), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x5b(%rsp)
jl 0x780e
leaq 0x98(%rsp), %rdi
callq 0x11920
movl %eax, 0x40(%rsp)
jmp 0x77d8
movl 0x40(%rsp), %eax
cltq
movq %rax, 0x38(%rsp)
leaq 0xc0(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x12160
movq %rax, %rdi
callq 0x12180
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0x5b(%rsp)
movb 0x5b(%rsp), %al
testb $0x1, %al
jne 0x7818
jmp 0x781a
jmp 0x785f
leaq 0x2ecad(%rip), %rdi     # 0x364ce
leaq 0x2ecea(%rip), %rsi     # 0x36512
movl $0x1cc, %edx            # imm = 0x1CC
leaq 0x2ed40(%rip), %rcx     # 0x36574
callq 0x4240
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x12350
jmp 0x79f9
leaq 0x98(%rsp), %rdi
callq 0x11930
movl %eax, 0x34(%rsp)
jmp 0x7872
movl 0x34(%rsp), %eax
movslq %eax, %rsi
leaq 0xc0(%rsp), %rdi
callq 0x12160
movq %rax, 0x28(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x11920
movl %eax, 0x30(%rsp)
jmp 0x789e
movq 0x28(%rsp), %rdi
movl 0x30(%rsp), %eax
movslq %eax, %rsi
callq 0x121a0
movl $0x2, (%rax)
leaq 0xb0(%rsp), %rdi
callq 0x11160
jmp 0x76a5
movq 0xe8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
addq $0x18, %rsi
callq 0x12100
movq %rax, 0x20(%rsp)
jmp 0x78e7
movq 0x20(%rsp), %rax
movq %rax, 0x7c(%rsp)
leaq 0x7c(%rsp), %rdi
callq 0x11920
movl %eax, 0x1c(%rsp)
jmp 0x7901
movl 0x1c(%rsp), %eax
cmpl $0x0, %eax
jl 0x79d5
leaq 0x7c(%rsp), %rdi
callq 0x11920
movl %eax, 0x18(%rsp)
jmp 0x791e
leaq 0xc0(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x12160
movq %rax, %rdi
callq 0x12180
movq %rax, %rcx
movl 0x18(%rsp), %eax
cmpl %ecx, %eax
jge 0x79d5
leaq 0x7c(%rsp), %rdi
callq 0x11930
movl %eax, 0x14(%rsp)
jmp 0x7956
movl 0x14(%rsp), %eax
cmpl $0x0, %eax
jl 0x79d5
leaq 0x7c(%rsp), %rdi
callq 0x11930
movl %eax, 0x10(%rsp)
jmp 0x796f
leaq 0xc0(%rsp), %rdi
callq 0x12140
movq %rax, %rcx
movl 0x10(%rsp), %eax
cmpl %ecx, %eax
jge 0x79d5
leaq 0x7c(%rsp), %rdi
callq 0x11930
movl %eax, 0xc(%rsp)
jmp 0x7997
movl 0xc(%rsp), %eax
movslq %eax, %rsi
leaq 0xc0(%rsp), %rdi
callq 0x12160
movq %rax, (%rsp)
leaq 0x7c(%rsp), %rdi
callq 0x11920
movl %eax, 0x8(%rsp)
jmp 0x79bf
movq (%rsp), %rdi
movl 0x8(%rsp), %eax
movslq %eax, %rsi
callq 0x121a0
movl $0x3, (%rax)
leaq 0xc0(%rsp), %rdi
callq 0x7440
jmp 0x79e4
leaq 0xc0(%rsp), %rdi
callq 0x12350
addq $0xf8, %rsp
retq
movq 0x88(%rsp), %rdi
callq 0x4620
nopw %cs:(%rax,%rax)