// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x90, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rbp)
movq $0x0, -0x10(%rbp)
movl (%rax), %eax
movq %rax, -0x60(%rbp)
subq $0xd, %rax
ja 0x190e9
movq -0x60(%rbp), %rax
leaq 0x1d43(%rip), %rcx      # 0x1aaf4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1e77(%rip), %rdi      # 0x1ac38
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x190f9
movq -0x68(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x18deb
leaq 0x1e4d(%rip), %rdi      # 0x1ac2d
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x18dfb
leaq 0x1e40(%rip), %rdi      # 0x1ac32
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x190f9
movq -0x68(%rbp), %rax
movl 0x8(%rax), %edx
leaq -0x20(%rbp), %rdi
leaq 0x347e(%rip), %rsi      # 0x1c290
movb $0x0, %al
callq 0xde60
jmp 0x190f9
movq -0x68(%rbp), %rax
movsd 0x8(%rax), %xmm0
leaq -0x20(%rbp), %rdi
leaq 0x3357(%rip), %rsi      # 0x1c189
movb $0x1, %al
callq 0xde60
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x5b, %edi
leaq -0x20(%rbp), %rsi
callq 0x19150
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x18efb
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x18ead
movl $0x2c, %edi
leaq -0x20(%rbp), %rsi
callq 0x19150
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rcx
movq 0x20(%rcx), %rdx
movq %rsp, %rax
movq %rdx, 0x20(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x18d70
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
movq -0x40(%rbp), %rdi
callq 0x2280
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x18e87
movl $0x5d, %edi
leaq -0x20(%rbp), %rsi
callq 0x19150
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x50(%rbp)
movl $0x7b, %edi
leaq -0x20(%rbp), %rsi
callq 0x19150
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl (%rcx), %eax
je 0x1900d
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x4c(%rbp), %ecx
shrl $0x4, %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movl -0x4c(%rbp), %ecx
andl $0xf, %ecx
shll %ecx
shrl %cl, %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x18f72
jmp 0x18fff
cmpl $0x0, -0x50(%rbp)
jle 0x18f86
movl $0x2c, %edi
leaq -0x20(%rbp), %rsi
callq 0x19150
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x4c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
leaq 0x32dd(%rip), %rdi      # 0x1c28a
leaq -0x20(%rbp), %rsi
callq 0x19110
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rcx
movl -0x4c(%rbp), %eax
imulq $0x28, %rax, %rax
addq %rax, %rcx
movq 0x20(%rcx), %rdx
movq %rsp, %rax
movq %rdx, 0x20(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x18d70
movq %rax, %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x18f39
movl $0x7d, %edi
leaq -0x20(%rbp), %rsi
callq 0x19150
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rdx
leaq -0x20(%rbp), %rdi
leaq 0x3247(%rip), %rsi      # 0x1c293
movb $0x0, %al
callq 0xde60
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rdx
leaq -0x20(%rbp), %rdi
leaq 0x3228(%rip), %rsi      # 0x1c293
movb $0x0, %al
callq 0xde60
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdx
leaq -0x20(%rbp), %rdi
leaq 0x3212(%rip), %rsi      # 0x1c29f
movb $0x0, %al
callq 0xde60
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
leaq -0x20(%rbp), %rsi
callq 0x19110
jmp 0x190f9
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rdx
movq 0x8(%rax), %rcx
leaq -0x20(%rbp), %rdi
leaq 0x31ca(%rip), %rsi      # 0x1c2aa
movb $0x0, %al
callq 0xde60
jmp 0x190f9
leaq 0x31c4(%rip), %rdi      # 0x1c2b4
leaq -0x20(%rbp), %rsi
callq 0x19110
movq -0x10(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)