// File: /workspace/github_c_makefile_star2_O0/LuaJIT[P]LuaJIT/src/host/buildvm.c
// Function: emit_vmdef
static void emit_vmdef(BuildCtx *ctx)
{
#if LJ_HASJIT
  char buf[80];
#endif
  int i;
  fprintf(ctx->fp, "-- This is a generated file. DO NOT EDIT!\n\n");
  fprintf(ctx->fp, "assert(require(\"jit\").version == \"%s\", \"LuaJIT core/library version mismatch\")\n\n", LUAJIT_VERSION);
  fprintf(ctx->fp, "return {\n\n");

  fprintf(ctx->fp, "bcnames = \"");
  for (i = 0; bc_names[i]; i++) fprintf(ctx->fp, "%-6s", bc_names[i]);
  fprintf(ctx->fp, "\",\n\n");

#if LJ_HASJIT
  fprintf(ctx->fp, "irnames = \"");
  for (i = 0; ir_names[i]; i++) fprintf(ctx->fp, "%-6s", ir_names[i]);
  fprintf(ctx->fp, "\",\n\n");

  fprintf(ctx->fp, "irfpm = { [0]=");
  for (i = 0; irfpm_names[i]; i++)
    fprintf(ctx->fp, "\"%s\", ", lower(buf, irfpm_names[i]));
  fprintf(ctx->fp, "},\n\n");

  fprintf(ctx->fp, "irfield = { [0]=");
  for (i = 0; irfield_names[i]; i++) {
    char *p;
    lower(buf, irfield_names[i]);
    p = strchr(buf, '_');
    if (p) *p = '.';
    fprintf(ctx->fp, "\"%s\", ", buf);
  }
  fprintf(ctx->fp, "},\n\n");

  fprintf(ctx->fp, "ircall = {\n[0]=");
  for (i = 0; ircall_names[i]; i++)
    fprintf(ctx->fp, "\"%s\",\n", ircall_names[i]);
  fprintf(ctx->fp, "},\n\n");

  fprintf(ctx->fp, "traceerr = {\n[0]=");
  for (i = 0; trace_errors[i]; i++)
    fprintf(ctx->fp, "\"%s\",\n", trace_errors[i]);
  fprintf(ctx->fp, "},\n\n");
#endif
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xce2a(%rip), %rsi      # 0x153f3
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xce3f(%rip), %rsi      # 0x1541f
leaq 0xce89(%rip), %rdx      # 0x15470
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xce88(%rip), %rsi      # 0x15486
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xce7c(%rip), %rsi      # 0x15491
movb $0x0, %al
callq 0x5110
movl $0x0, 0x1c(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x10120(%rip), %rax     # 0x18750
cmpq $0x0, (%rax,%rcx,8)
je 0x866b
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x10104(%rip), %rax     # 0x18750
movq (%rax,%rcx,8), %rdx
leaq 0xce46(%rip), %rsi      # 0x1549d
movb $0x0, %al
callq 0x5110
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x8624
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xce27(%rip), %rsi      # 0x154a2
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xce15(%rip), %rsi      # 0x154a7
movb $0x0, %al
callq 0x5110
movl $0x0, 0x1c(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x103b3(%rip), %rax     # 0x18a60
cmpq $0x0, (%rax,%rcx,8)
je 0x86e8
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x10397(%rip), %rax     # 0x18a60
movq (%rax,%rcx,8), %rdx
leaq 0xcdc9(%rip), %rsi      # 0x1549d
movb $0x0, %al
callq 0x5110
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x86a1
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcdaa(%rip), %rsi      # 0x154a2
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcda4(%rip), %rsi      # 0x154b3
movb $0x0, %al
callq 0x5110
movl $0x0, 0x1c(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x10736(%rip), %rax     # 0x18e60
cmpq $0x0, (%rax,%rcx,8)
je 0x877c
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x10710(%rip), %rax     # 0x18e60
movq (%rax,%rcx,8), %rsi
callq 0xbec0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0xcd5a(%rip), %rsi      # 0x154c2
movb $0x0, %al
callq 0x5110
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x871e
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcd3d(%rip), %rsi      # 0x154c9
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcd2b(%rip), %rsi      # 0x154ce
movb $0x0, %al
callq 0x5110
movl $0x0, 0x1c(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x106e2(%rip), %rax     # 0x18ea0
cmpq $0x0, (%rax,%rcx,8)
je 0x882c
leaq 0x20(%rsp), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x106ca(%rip), %rax     # 0x18ea0
movq (%rax,%rcx,8), %rsi
callq 0xbec0
leaq 0x20(%rsp), %rdi
movl $0x5f, %esi
callq 0x50b0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x8803
movq 0x10(%rsp), %rax
movb $0x2e, (%rax)
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x20(%rsp), %rdx
leaq 0xccaa(%rip), %rsi      # 0x154c2
movb $0x0, %al
callq 0x5110
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x87b2
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcc8d(%rip), %rsi      # 0x154c9
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcc8c(%rip), %rsi      # 0x154df
movb $0x0, %al
callq 0x5110
movl $0x0, 0x1c(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x10702(%rip), %rax     # 0x18f70
cmpq $0x0, (%rax,%rcx,8)
je 0x88a9
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x106e6(%rip), %rax     # 0x18f70
movq (%rax,%rcx,8), %rdx
leaq 0xcc5a(%rip), %rsi      # 0x154ef
movb $0x0, %al
callq 0x5110
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x8862
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcc10(%rip), %rsi      # 0x154c9
movb $0x0, %al
callq 0x5110
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcc26(%rip), %rsi      # 0x154f6
movb $0x0, %al
callq 0x5110
movl $0x0, 0x1c(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x11165(%rip), %rax     # 0x19a50
cmpq $0x0, (%rax,%rcx,8)
je 0x8926
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x11149(%rip), %rax     # 0x19a50
movq (%rax,%rcx,8), %rdx
leaq 0xcbdd(%rip), %rsi      # 0x154ef
movb $0x0, %al
callq 0x5110
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x88df
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xcb93(%rip), %rsi      # 0x154c9
movb $0x0, %al
callq 0x5110
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)