// File: /workspace/github_c_makefile_star2_O1/mattn[P]orelang/ore.c
// Function: ore_value_to_str
static char*
ore_value_to_str(ore_context* ore, ore_value v) {
  kstring_t ks = { 0, 0, NULL };

  switch (v.t) {
    case ORE_TYPE_NIL:
      kputs("nil", &ks);
      break;
    case ORE_TYPE_BOOL:
      if (v.v.b)
        kputs("true", &ks);
      else
        kputs("false", &ks);
      break;
    case ORE_TYPE_INT:
      ksprintf(&ks, "%d", v.v.i);
      break;
    case ORE_TYPE_FLOAT:
      ksprintf(&ks, "%f", v.v.d);
      break;
    case ORE_TYPE_STRING:
      kputs(v.v.s->p, &ks);
      break;
    case ORE_TYPE_ARRAY:
      {
        ore_array_t* a = (ore_array_t*) v.v.a->p;
        ore_array_iter_t* k;
        ore_array_iter_t* b = kl_begin(a);
        kputc('[', &ks);
        for (k = b; k != kl_end(a); k = kl_next(k)) {
          if (k != b) {
            kputc(',', &ks);
          }
          char* s = ore_value_to_str(ore, kl_val(k));
          kputs(s, &ks);
          free(s);
        }
        kputc(']', &ks);
      }
      break;
    case ORE_TYPE_HASH:
      {
        ore_hash_t* h = (ore_hash_t*) v.v.h->p;
        ore_hash_iter_t k;
        int n = 0;
        kputc('{', &ks);
        for (k = kh_begin(h); k != kh_end(h); k++) {
          if (!kh_exist(h, k)) continue;
          if (n > 0) {
            kputc(',', &ks);
          }
          const char* key = kh_key(h, k);
          kputs(key, &ks);
          kputs(": ", &ks);
          kputs(ore_value_to_str(ore, kh_val(h, k)), &ks);
          n++;
        }
        kputc('}', &ks);
      }
      break;
    case ORE_TYPE_REGEXP:
      kputs(v.v.r->p, &ks);
      break;
    case ORE_TYPE_FUNC:
      ksprintf(&ks, "<func-0x%p>", v.v.f.x.o);
      break;
    case ORE_TYPE_CFUNC:
      ksprintf(&ks, "<func-0x%p>", v.v.f.x.c);
      break;
    case ORE_TYPE_ENV:
      ksprintf(&ks, "<env-0x%p>", v.v.e->p);
      break;
    case ORE_TYPE_CLASS:
      kputs(v.v.c->n, &ks);
      break;
    case ORE_TYPE_CCLASS:
      kputs(v.v.c->n, &ks);
      break;
    case ORE_TYPE_OBJECT:
      ksprintf(&ks, "<%s-0x%p>", ((ore_class*)v.v.o->c)->n, v.v.o);
      break;
    default:
      kputs("<unknown>", &ks);
      break;
  }
  return ks.s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movl 0x90(%rsp), %ecx
cmpq $0xd, %rcx
ja 0x138a6
leaq 0x90(%rsp), %rax
leaq 0x1949(%rip), %rdx      # 0x14958
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x8(%rax), %rax
movq (%rax), %rbx
movq %rbx, %rdi
callq 0x20c0
movq 0x30(%rsp), %rcx
movslq %eax, %r14
leaq (%rcx,%r14), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x1308e
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
addq 0x30(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2190
addq 0x30(%rsp), %r14
movq %r14, 0x30(%rsp)
movq 0x40(%rsp), %rax
movb $0x0, (%rax,%r14)
jmp 0x139c5
movq 0x18(%rax), %rdx
leaq 0x30fc(%rip), %rsi      # 0x161c3
jmp 0x13491
movq 0x8(%rax), %rax
movq (%rax), %r15
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x1312f
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x13154
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x7b, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x0, (%rcx,%rax)
cmpl $0x0, (%r15)
je 0x13407
xorl %ebp, %ebp
xorl %edx, %edx
xorl %r13d, %r13d
movq 0x10(%r15), %rax
movl %r13d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %eax
movl %ebp, %ecx
andb $0x1e, %cl
shrl %cl, %eax
testb $0x3, %al
jne 0x133f8
movl %edx, 0x54(%rsp)
testl %edx, %edx
jle 0x1320e
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x131e9
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x1320e
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x2c, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x0, (%rcx,%rax)
movq 0x18(%r15), %rax
movl %r13d, %r12d
movq (%rax,%r12,8), %rbx
movq %rbx, %rdi
callq 0x20c0
movq 0x30(%rsp), %rcx
movslq %eax, %r14
leaq (%rcx,%r14), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x13284
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x132ad
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
addq 0x30(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2190
addq 0x30(%rsp), %r14
movq %r14, 0x30(%rsp)
movq 0x40(%rsp), %rax
movb $0x0, (%rax,%r14)
movq 0x30(%rsp), %rax
addq $0x3, %rax
cmpq 0x38(%rsp), %rax
jb 0x1330a
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x13332
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movw $0x203a, (%rcx,%rax)    # imm = 0x203A
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x2(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x0, 0x2(%rcx,%rax)
movq 0x20(%r15), %rax
leaq (%r12,%r12,4), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq %rdx, 0x20(%rsp)
movups (%rax,%rcx,8), %xmm0
movups 0x10(%rax,%rcx,8), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x12fd0
movq %rax, %rbx
movq %rax, %rdi
callq 0x20c0
movq 0x30(%rsp), %rcx
movslq %eax, %r14
leaq (%rcx,%r14), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x133c9
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x133f2
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
addq 0x30(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2190
addq 0x30(%rsp), %r14
movq %r14, 0x30(%rsp)
movq 0x40(%rsp), %rax
movb $0x0, (%rax,%r14)
movl 0x54(%rsp), %edx
incl %edx
incl %r13d
addl $0x2, %ebp
cmpl (%r15), %r13d
jne 0x13165
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x13467
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x7d, (%rcx,%rax)
jmp 0x13870
movq 0x8(%rax), %rax
movq (%rax), %rdx
leaq 0x2d3e(%rip), %rsi      # 0x161cf
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0xb474
jmp 0x139c5
movl 0x8(%rax), %edx
leaq 0x2d14(%rip), %rsi      # 0x161c0
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0xb474
jmp 0x139c5
movsd 0x8(%rax), %xmm0
leaq 0x2bf8(%rip), %rsi      # 0x160c1
leaq 0x30(%rsp), %rdi
movb $0x1, %al
callq 0xb474
jmp 0x139c5
movq 0x30(%rsp), %rax
addq $0x4, %rax
cmpq 0x38(%rsp), %rax
jb 0x1353b
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x6c, 0x2(%rcx,%rax)
movw $0x696e, (%rcx,%rax)    # imm = 0x696E
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x3(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x0, 0x3(%rcx,%rax)
jmp 0x139c5
cmpl $0x0, 0x8(%rax)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
je 0x13941
addq $0x5, %rax
cmpq %rcx, %rax
jb 0x135db
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movl $0x65757274, (%rcx,%rax) # imm = 0x65757274
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x4(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x0, 0x4(%rcx,%rax)
jmp 0x139c5
movq 0x8(%rax), %rax
movq (%rax), %r15
movq (%r15), %r12
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x1366f
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x13694
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x5b, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x0, (%rcx,%rax)
cmpq 0x8(%r15), %r12
je 0x137f9
movq %r12, %r13
cmpq %r12, %r13
je 0x1372b
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x13706
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x1372b
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x2c, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x0, (%rcx,%rax)
movq 0x20(%r13), %rax
movq %rax, 0x20(%rsp)
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x12fd0
movq %rax, %rbx
movq %rax, %rdi
callq 0x20c0
movq 0x30(%rsp), %rcx
movslq %eax, %r14
leaq (%rcx,%r14), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x137ba
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x137e3
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
addq 0x30(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2190
addq 0x30(%rsp), %r14
movq %r14, 0x30(%rsp)
movq 0x40(%rsp), %rax
movb $0x0, (%rax,%r14)
movq %rbx, %rdi
callq 0x22c0
movq 0x28(%r13), %r13
cmpq 0x8(%r15), %r13
jne 0x136a1
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x13859
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x5d, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x0, (%rcx,%rax)
jmp 0x139c5
movq 0x8(%rax), %rcx
movq 0x8(%rcx), %rax
movq (%rax), %rdx
leaq 0x2945(%rip), %rsi      # 0x161da
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0xb474
jmp 0x139c5
movq 0x30(%rsp), %rax
addq $0xa, %rax
cmpq 0x38(%rsp), %rax
jb 0x13907
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movabsq $0x6e776f6e6b6e753c, %rdx # imm = 0x6E776F6E6B6E753C
movq %rdx, (%rcx,%rax)
movb $0x3e, 0x8(%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x9(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x0, 0x9(%rcx,%rax)
jmp 0x139c5
addq $0x6, %rax
cmpq %rcx, %rax
jb 0x13997
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x21e0
testq %rax, %rax
je 0x139c5
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x65, 0x4(%rcx,%rax)
movl $0x736c6166, (%rcx,%rax) # imm = 0x736C6166
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x5(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x0, 0x5(%rcx,%rax)
movq 0x40(%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq