#if USE_ZJIT

MAYBE_UNUSED(static int vm_bare_insn_to_zjit_insn(int insn));
static int
vm_bare_insn_to_zjit_insn(int insn)
{
    switch (insn) {
% RubyVM::ZJITInstruction.all.each do |insn|
      case BIN(<%= insn.jump_destination %>):
        return <%= insn.bin %>;
% end
      default:
        return insn;
    }
}

MAYBE_UNUSED(static int vm_zjit_insn_to_bare_insn(int insn));
static int
vm_zjit_insn_to_bare_insn(int insn)
{
    switch (insn) {
% RubyVM::ZJITInstruction.all.each do |insn|
      case <%= insn.bin %>:
        return BIN(<%= insn.jump_destination %>);
% end
      default:
        return insn;
    }
}

#endif
