// File: sanket143[P]2048-Terminal-Game/./src/board.h
// Function: gb::Board::display()
void display() {
        flag = false;
        for(int row = 0; row < size; row++) {
          for(int col = 0; col < size; col++) {
            if(tiles[row][col] == 0) {
              std::cout << " .  ";
            } else {
              if(tiles[row][col] < 10) {
                std::cout << " " << tiles[row][col] << "  ";
              }
              else if(tiles[row][col] < 100) {
                std::cout << " " << tiles[row][col] << " ";
              }
              else if(tiles[row][col] < 1000) {
                std::cout << " " <<  tiles[row][col];
              } else {
                std::cout << tiles[row][col];
              }
            }
          }
          std::cout << std::endl;
        }
        std::cout << std::endl;
      }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movb $0x0, 0x5ac7(%rip)      # 0x8182
movl $0x0, -0xc(%rbp)
cmpl $0x4, -0xc(%rbp)
jge 0x286f
movl $0x0, -0x10(%rbp)
cmpl $0x4, -0x10(%rbp)
jge 0x284e
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x270e
movq 0x58d3(%rip), %rdi      # 0x7fd0
leaq 0x2951(%rip), %rsi      # 0x5055
callq 0x2170
jmp 0x283e
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0xa, (%rax,%rcx,4)
jge 0x276c
movq 0x58a2(%rip), %rdi      # 0x7fd0
leaq 0x2923(%rip), %rsi      # 0x5058
callq 0x2170
movq %rax, %rdi
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x2280
movq %rax, %rdi
leaq 0x28f5(%rip), %rsi      # 0x5057
callq 0x2170
jmp 0x283c
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x64, (%rax,%rcx,4)
jge 0x27c7
movq 0x5844(%rip), %rdi      # 0x7fd0
leaq 0x28c5(%rip), %rsi      # 0x5058
callq 0x2170
movq %rax, %rdi
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x2280
movq %rax, %rdi
leaq 0x2898(%rip), %rsi      # 0x5058
callq 0x2170
jmp 0x283a
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
cmpl $0x3e8, (%rax,%rcx,4)   # imm = 0x3E8
jge 0x2816
movq 0x57e6(%rip), %rdi      # 0x7fd0
leaq 0x2867(%rip), %rsi      # 0x5058
callq 0x2170
movq %rax, %rdi
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x2280
jmp 0x2838
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
movl (%rax,%rcx,4), %esi
movq 0x579d(%rip), %rdi      # 0x7fd0
callq 0x2280
jmp 0x283a
jmp 0x283c
jmp 0x283e
jmp 0x2840
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x26d3
movq 0x577b(%rip), %rdi      # 0x7fd0
movq 0x5764(%rip), %rsi      # 0x7fc0
callq 0x21a0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x26c2
movq 0x575a(%rip), %rdi      # 0x7fd0
movq 0x5743(%rip), %rsi      # 0x7fc0
callq 0x21a0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)