// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> efgy::json::to_string<long double>(efgy::json::value<long double> const&)
static inline std::string to_string(const value<Q> &v) {
  switch (v.type) {
    case object: {
      bool first = true;
      std::string rv = "{";

      for (const auto &e : v.asObject()) {
        rv += (first ? "" : ",") + to_string(json(e.first)) + ":" +
              to_string(e.second);
        first = false;
      }

      return rv + "}";
    }
    case array: {
      bool first = true;
      std::string rv = "[";

      for (const auto &e : v.asArray()) {
        rv += (first ? "" : ",") + to_string(e);
        first = false;
      }

      return rv + "]";
    }
    case string: {
      std::string rv = "\"";
      for (const auto &c : v.asString()) {
        switch (c) {
          case '\\':
          case '"':
            rv.push_back('\\');
            rv.push_back(c);
            break;
          case '\b':
            rv.push_back('\\');
            rv.push_back('b');
            break;
          case '\f':
            rv.push_back('\\');
            rv.push_back('f');
            break;
          case '\n':
            rv.push_back('\\');
            rv.push_back('n');
            break;
          case '\r':
            rv.push_back('\\');
            rv.push_back('r');
            break;
          case '\t':
            rv.push_back('\\');
            rv.push_back('t');
            break;
          default:
            rv.push_back(c);
            break;
        }
      }
      return rv + "\"";
    }
    case number: {
      std::string n = std::to_string(v.asNumber());
      while (n[(n.size() - 1)] == '0') {
        n.pop_back();
      }
      if (n[(n.size() - 1)] == '.') {
        n.pop_back();
      }
      return n;
    }
    case yes:
      return "true";
    case no:
      return "false";
    case null:
      return "null";
    default:
      // don't do anything for other types.
      return "";
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x10(%rsp)
movl (%rsi), %eax
cmpq $0x6, %rax
ja 0x5b9c
movq %rsi, %rbx
leaq 0xf774(%rip), %rcx      # 0x150b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10448(%rip), %rsi     # 0x15d9c
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x6342
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x10ca8
leaq 0x40(%rsp), %rax
movq 0x10(%rax), %r12
leaq 0xfaba(%rip), %r15      # 0x1543a
leaq 0xd8(%rsp), %r13
leaq 0x98(%rsp), %r14
leaq 0x40(%rsp), %rax
cmpq %rax, %r12
je 0x5ca5
leaq 0x20(%r12), %rsi
leaq 0x88(%rsp), %rbp
movq %rbp, %rdi
callq 0x142b4
movq %r13, %rdi
movq %rbp, %rsi
callq 0x5918
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x14290
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
leaq 0x103bd(%rip), %rdx     # 0x15da0
callq 0x14271
leaq 0x40(%r12), %rsi
leaq 0xb8(%rsp), %r15
movq %r15, %rdi
callq 0x5918
movq %r14, %rdi
leaq 0x68(%rsp), %rsi
movq %r15, %rdx
callq 0x1420a
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x44e0
movq %r14, %rdi
callq 0x4130
leaq 0xb8(%rsp), %rdi
callq 0x4130
leaq 0x68(%rsp), %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x4130
movq %r13, %rdi
callq 0x4130
leaq 0x88(%rsp), %rdi
callq 0x1095e
movq %r12, %rdi
callq 0x4330
movq %rax, %r12
leaq 0x10336(%rip), %r15     # 0x15d9e
jmp 0x5990
leaq 0xf7d6(%rip), %rsi      # 0x1524a
jmp 0x5c48
leaq 0x10324(%rip), %rsi     # 0x15da4
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x6342
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x10bc4
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r15
xorl %r12d, %r12d
leaq 0x38(%rsp), %r14
leaq 0xf61f(%rip), %r13      # 0x150d4
cmpq %r12, %r15
je 0x5c5c
movb (%rbx,%r12), %bpl
movzbl %bpl, %eax
leal -0x8(%rax), %ecx
cmpl $0x5, %ecx
ja 0x5ae8
movslq (%r13,%rcx,4), %rax
addq %r13, %rax
jmpq *%rax
movb $0x62, %bpl
movq %r14, %rdi
pushq $0x5c
popq %rsi
callq 0x4250
jmp 0x5b41
cmpl $0x5c, %eax
je 0x5af2
cmpl $0x22, %eax
jne 0x5b41
movq %r14, %rdi
pushq $0x5c
popq %rsi
callq 0x4250
movb (%rbx,%r12), %bpl
jmp 0x5b41
movb $0x74, %bpl
movq %r14, %rdi
pushq $0x5c
popq %rsi
callq 0x4250
jmp 0x5b41
movb $0x6e, %bpl
movq %r14, %rdi
pushq $0x5c
popq %rsi
callq 0x4250
jmp 0x5b41
movb $0x66, %bpl
movq %r14, %rdi
pushq $0x5c
popq %rsi
callq 0x4250
jmp 0x5b41
movb $0x72, %bpl
movq %r14, %rdi
pushq $0x5c
popq %rsi
callq 0x4250
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x4250
incq %r12
jmp 0x5ab5
movq 0x8(%rbx), %rax
fldt (%rax)
fstpt (%rsp)
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x1430c
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movzbl -0x1(%rax,%rcx), %eax
cmpl $0x30, %eax
jne 0x5b86
movq %rbx, %rdi
callq 0x4350
jmp 0x5b6b
cmpl $0x2e, %eax
jne 0x5cd4
movq %rbx, %rdi
callq 0x4350
jmp 0x5cd4
leaq 0xf897(%rip), %rsi      # 0x1543a
jmp 0x5c48
leaq 0x101f3(%rip), %rsi     # 0x15da2
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x6342
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x10ce0
movq 0x68(%rsp), %rbx
movq 0x70(%rsp), %rbp
leaq 0xf85e(%rip), %r13      # 0x1543a
leaq 0x98(%rsp), %r14
leaq 0x18(%rsp), %r15
leaq 0x101ae(%rip), %r12     # 0x15d9e
cmpq %rbp, %rbx
je 0x5c7e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5918
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x14290
leaq 0x38(%rsp), %rdi
movq %r15, %rsi
callq 0x44e0
movq %r15, %rdi
callq 0x4130
movq %r14, %rdi
callq 0x4130
addq $0x10, %rbx
movq %r12, %r13
jmp 0x5bf0
leaq 0x10167(%rip), %rsi     # 0x15da6
jmp 0x5c48
leaq 0xf63e(%rip), %rsi      # 0x15286
leaq 0x38(%rsp), %rdx
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x6342
jmp 0x5cd4
leaq 0x18(%rsp), %rdi
callq 0x4130
leaq 0x10137(%rip), %rdx     # 0x15da4
leaq 0x38(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x142d4
jmp 0x5c9e
leaq 0x68(%rsp), %rdi
callq 0x66f0
leaq 0xf5e3(%rip), %rdx      # 0x15272
leaq 0x38(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x142d4
leaq 0x38(%rsp), %rdi
jmp 0x5cca
leaq 0x38(%rsp), %rdi
callq 0x1056e
leaq 0xf5f0(%rip), %rdx      # 0x152a6
leaq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x142d4
leaq 0x18(%rsp), %rdi
callq 0x4130
movq 0x10(%rsp), %rbx
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5cf9
jmp 0x5cf1
jmp 0x5cf1
jmp 0x5cf1
movq %rax, %rbx
jmp 0x5dc7
movq %rax, %rbx
jmp 0x5d83
jmp 0x5d05
jmp 0x5d05
movq %rax, %rbx
jmp 0x5dd1
movq %rax, %rbx
jmp 0x5d43
movq %rax, %rbx
jmp 0x5d39
movq %rax, %rbx
jmp 0x5d2c
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x4130
leaq 0xb8(%rsp), %rdi
callq 0x4130
leaq 0x68(%rsp), %rdi
callq 0x4130
leaq 0xf8(%rsp), %rdi
callq 0x4130
jmp 0x5d5f
movq %rax, %rbx
jmp 0x5d79
movq %rax, %rbx
jmp 0x5d6c
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x4130
leaq 0x88(%rsp), %rdi
callq 0x1095e
leaq 0x38(%rsp), %rdi
callq 0x1056e
leaq 0x18(%rsp), %rdi
jmp 0x5dcc
movq %rax, %rbx
jmp 0x5dae
movq %rax, %rbx
jmp 0x5da1
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4130
leaq 0x98(%rsp), %rdi
callq 0x4130
leaq 0x68(%rsp), %rdi
callq 0x66f0
jmp 0x5dc7
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4130
leaq 0x38(%rsp), %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x4470
nop