// File: /workspace/github_c_makefile_star2_O0/mrkite[P]regs/src/scanner.cc
// Function: Scanner::dumpHex(std::ostream&, unsigned int, unsigned int)
void Scanner::dumpHex(std::ostream &f, uint32_t from, uint32_t to) {
  auto ptr = getAddress(from);
  if (ptr != nullptr) {
    for (int i = 0; !ptr->eof() && from < to; i += 16) {
      f << hex(from, 6) << ": ";
      std::string ascii;
      int skip = from & 0xf;
      int j = 0;
      for (; j < skip; j++) {
        if (j == 8) {
          f << " ";
          ascii += " ";
        }
        f << "   ";
        ascii += " ";
      }
      for (; j < 16 && !ptr->eof() && from < to; j++) {
        if (j == 8) {
          f << " ";
          ascii += " ";
        }
        uint8_t ch = ptr->r8();
        f << hex(ch, 2) << " ";
        ascii += isprint(ch) ? static_cast<char>(ch) : '.';
        from++;
      }
      for (; j < 16; j++) {
        f << "   ";
      }
      f << "| " << ascii << std::endl;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0xb8(%rbp)
movl -0x14(%rbp), %edx
leaq -0x28(%rbp), %rdi
callq 0x31030
leaq -0x28(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x33a00
testb $0x1, %al
jne 0x327d6
jmp 0x32b89
movl $0x0, -0x2c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xd2c0
movq %rax, %rdi
callq 0x11e40
movb %al, -0xb9(%rbp)
jmp 0x327f6
movb -0xb9(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xba(%rbp)
jne 0x3281a
jmp 0x3280b
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
setb %al
movb %al, -0xba(%rbp)
movb -0xba(%rbp), %al
testb $0x1, %al
jne 0x32829
jmp 0x32b87
movq -0xb8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movl -0x14(%rbp), %edx
leaq -0x60(%rbp), %rdi
movl $0x6, %ecx
callq 0x31120
jmp 0x3284e
movq -0xc8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x62b0
movq %rax, -0xd0(%rbp)
jmp 0x32867
movq -0xd0(%rbp), %rdi
leaq 0x83a8(%rip), %rsi      # 0x3ac1d
callq 0x62f0
jmp 0x3287c
leaq -0x60(%rbp), %rdi
callq 0x61e0
leaq -0x80(%rbp), %rdi
callq 0x6420
movl -0x14(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x84(%rbp)
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
cmpl -0x84(%rbp), %eax
jge 0x3295b
cmpl $0x8, -0x88(%rbp)
jne 0x32921
movq -0x10(%rbp), %rdi
leaq 0x85be(%rip), %rsi      # 0x3ae88
callq 0x62f0
jmp 0x328d1
leaq 0x85b0(%rip), %rsi      # 0x3ae88
leaq -0x80(%rbp), %rdi
callq 0x62e0
jmp 0x328e3
jmp 0x32921
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x32b9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x61e0
jmp 0x32b9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x32b7c
movq -0x10(%rbp), %rdi
leaq 0x855a(%rip), %rsi      # 0x3ae86
callq 0x62f0
jmp 0x32933
leaq 0x854e(%rip), %rsi      # 0x3ae88
leaq -0x80(%rbp), %rdi
callq 0x62e0
jmp 0x32945
jmp 0x32947
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x328a4
jmp 0x3295d
xorl %eax, %eax
cmpl $0x10, -0x88(%rbp)
movb %al, -0xd1(%rbp)
jge 0x329ab
leaq -0x28(%rbp), %rdi
callq 0xd2c0
movq %rax, %rdi
callq 0x11e40
movb %al, -0xd2(%rbp)
jmp 0x32987
movb -0xd2(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xd1(%rbp)
jne 0x329ab
jmp 0x3299c
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
setb %al
movb %al, -0xd1(%rbp)
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0x329ba
jmp 0x32aee
cmpl $0x8, -0x88(%rbp)
jne 0x329e9
movq -0x10(%rbp), %rdi
leaq 0x84ba(%rip), %rsi      # 0x3ae88
callq 0x62f0
jmp 0x329d5
leaq 0x84ac(%rip), %rsi      # 0x3ae88
leaq -0x80(%rbp), %rdi
callq 0x62e0
jmp 0x329e7
jmp 0x329e9
leaq -0x28(%rbp), %rdi
callq 0xd2c0
movq %rax, %rdi
callq 0x11fc0
movb %al, -0xd3(%rbp)
jmp 0x32a02
movq -0xb8(%rbp), %rsi
movb -0xd3(%rbp), %al
movb %al, -0x89(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
movzbl -0x89(%rbp), %edx
leaq -0xb0(%rbp), %rdi
movl $0x2, %ecx
callq 0x31120
jmp 0x32a3a
movq -0xe0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x62b0
movq %rax, -0xe8(%rbp)
jmp 0x32a56
movq -0xe8(%rbp), %rdi
leaq 0x8424(%rip), %rsi      # 0x3ae88
callq 0x62f0
jmp 0x32a6b
leaq -0xb0(%rbp), %rdi
callq 0x61e0
movzbl -0x89(%rbp), %edi
callq 0x6550
cmpl $0x0, %eax
je 0x32a96
movb -0x89(%rbp), %al
movb %al, -0xe9(%rbp)
jmp 0x32aa0
movb $0x2e, %al
movb %al, -0xe9(%rbp)
jmp 0x32aa0
movb -0xe9(%rbp), %al
movsbl %al, %esi
leaq -0x80(%rbp), %rdi
callq 0x61f0
jmp 0x32ab4
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x3295d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x61e0
jmp 0x32b7c
jmp 0x32af0
cmpl $0x10, -0x88(%rbp)
jge 0x32b1e
movq -0x10(%rbp), %rdi
leaq 0x8382(%rip), %rsi      # 0x3ae86
callq 0x62f0
jmp 0x32b0b
jmp 0x32b0d
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x32af0
movq -0x10(%rbp), %rdi
leaq 0x8361(%rip), %rsi      # 0x3ae8a
callq 0x62f0
movq %rax, -0xf8(%rbp)
jmp 0x32b37
movq -0xf8(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x62b0
movq %rax, -0x100(%rbp)
jmp 0x32b50
movq -0x100(%rbp), %rdi
movq 0x2444a(%rip), %rsi     # 0x56fa8
callq 0x6330
jmp 0x32b65
leaq -0x80(%rbp), %rdi
callq 0x61e0
movl -0x2c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x2c(%rbp)
jmp 0x327dd
leaq -0x80(%rbp), %rdi
callq 0x61e0
jmp 0x32b9b
jmp 0x32b89
leaq -0x28(%rbp), %rdi
callq 0x8b80
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
leaq -0x28(%rbp), %rdi
callq 0x8b80
movq -0x38(%rbp), %rdi
callq 0x6540
nopl (%rax)