// File: /workspace/github_cpp_makefile_star2_O1/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 0x33b35
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x4e6e(%rip), %rcx      # 0x38598
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x29fa(%rip), %rsi      # 0x36134
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb963
movq %rbx, %rdi
movq %r15, %rsi
callq 0xadb2
leaq 0x18(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x33771
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x4e30(%rip), %rsi      # 0x385a8
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb963
leaq 0x29b6(%rip), %rsi      # 0x36145
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 0x339c3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x339ca
leaq 0x2968(%rip), %rsi      # 0x36134
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb963
movq %rbx, %rdi
movq %r15, %rsi
callq 0xadb2
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33b35
movq 0x18(%rsp), %rsi
jmp 0x33b2d
leaq 0x4da4(%rip), %rsi      # 0x385ae
leaq 0x68(%rsp), %r12
movq %r12, %rdi
movq %r14, %rdx
callq 0xb963
leaq 0x2924(%rip), %rsi      # 0x36145
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 0x338a4
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x338ab
leaq 0x28e2(%rip), %rsi      # 0x36139
leaq 0x68(%rsp), %r12
movq %r12, %rdi
movq %r14, %rdx
callq 0xb963
leaq 0x28d7(%rip), %rsi      # 0x36145
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 0x33930
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x33937
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 0x33cd0
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x338f9
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x3391c
leaq 0x58(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x33913
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x33a6b
movq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x70d0
jmp 0x33a79
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 0xc014
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x33990
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x339af
movl $0xf, %esi
cmpq %r12, 0x48(%rsp)
je 0x339a6
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x33b44
movq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x70d0
jmp 0x33b52
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 0x33a15
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x33a1d
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 0xadb2
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x33a58
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
jne 0x33b0d
jmp 0x33b1a
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 0x33a9d
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x33aa3
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 0xadb2
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33ae8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33b03
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x33b1a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33b35
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 0x33b76
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x33b7c
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 0xadb2
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33bc1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
jne 0x33af6
jmp 0x33b03
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33c33
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33c33
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x33c42
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33c42
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33c51
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33c51
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
jne 0x33c5f
jmp 0x33c75
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
jne 0x33c7f
jmp 0x33c95
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33c75
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33c75
jmp 0x33c72
jmp 0x33c92
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x33c95
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x33c95
jmp 0x33c92
jmp 0x33cb8
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33cb0
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 0x33cb0
movq 0x18(%rsp), %rsi
jmp 0x33ca8