// File: /workspace/github_cpp_makefile_star2_O3/rfotino[P]consolite-compiler/src/util.cpp
// Function: operandValueToReg(Parser*, Operand const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string toHexStr(uint16_t value, int digits) {
  std::string str;
  for (int i = 0; i < digits; i++) {
    uint8_t next = value & 0xf;
    value >>= 4;
    str = (char)(next <= 9 ? '0' + next : 'a' - 10 + next) + str;
  }
  return "0x" + str;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl (%rsi), %eax
cmpq $0x3, %rax
ja 0x334e6
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x4532(%rip), %rcx      # 0x37610
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2046(%rip), %rsi      # 0x35134
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb692
movq %rbx, %rdi
movq %r15, %rsi
callq 0xab5a
leaq 0x18(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x33125
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x44f4(%rip), %rsi      # 0x37620
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb692
leaq 0x2002(%rip), %rsi      # 0x35145
movq %r15, %rdi
callq 0x7560
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x33374
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3337b
leaq 0x1fb4(%rip), %rsi      # 0x35134
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb692
movq %rbx, %rdi
movq %r15, %rsi
callq 0xab5a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x334e6
movq 0x18(%rsp), %rsi
jmp 0x334de
leaq 0x4468(%rip), %rsi      # 0x37626
leaq 0x68(%rsp), %r12
movq %r12, %rdi
movq %r14, %rdx
callq 0xb692
leaq 0x1f70(%rip), %rsi      # 0x35145
movq %r12, %rdi
callq 0x7560
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x33258
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3325f
leaq 0x1f2e(%rip), %rsi      # 0x35139
leaq 0x68(%rsp), %r12
movq %r12, %rdi
movq %r14, %rdx
callq 0xb692
leaq 0x1f23(%rip), %rsi      # 0x35145
movq %r12, %rdi
callq 0x7560
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x332e3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x332ea
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movzwl 0x28(%r15), %esi
leaq 0x48(%rsp), %rdi
movl $0x4, %edx
callq 0x33681
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x332ad
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x332d4
leaq 0x58(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x332cb
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x3341c
leaq 0x28(%rsp), %rdi
callq 0x70d0
jmp 0x3342a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xbd58
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x33343
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x33365
movl $0xf, %edi
cmpq %r12, %rsi
je 0x3335c
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x334f5
leaq 0x28(%rsp), %rdi
callq 0x70d0
jmp 0x33503
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x70d0
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x333c6
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x333ce
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0xab5a
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x33409
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
jne 0x334be
jmp 0x334cb
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x3344e
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x33454
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xab5a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33499
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x334b4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x334cb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x334e6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x72c0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x33527
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x3352d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xab5a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33572
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
jne 0x334a7
jmp 0x334b4
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x335e4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x335e4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x335f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x335f3
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33602
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33602
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
jne 0x33610
jmp 0x33626
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
jne 0x33630
jmp 0x33646
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33626
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33626
jmp 0x33623
jmp 0x33643
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x33646
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33646
jmp 0x33643
jmp 0x33669
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33661
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33661
movq 0x18(%rsp), %rsi
jmp 0x33659