// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]RtConverter/src/Json/json_writer.cpp
// Function: Json::FastWriter::writeValue(Json::Value const&)
void FastWriter::writeValue(const Value& value) {
  switch (value.type()) {
  case nullValue:
    if (!dropNullPlaceholders_)
      document_ += "null";
    break;
  case intValue:
    document_ += valueToString(value.asLargestInt());
    break;
  case uintValue:
    document_ += valueToString(value.asLargestUInt());
    break;
  case realValue:
    document_ += valueToString(value.asDouble());
    break;
  case stringValue: {
    // Is NULL possible for value.string_? No.
    char const* str;
    char const* end;
    bool ok = value.getString(&str, &end);
    if (ok)
      document_ += valueToQuotedStringN(str, static_cast<unsigned>(end - str));
    break;
  }
  case booleanValue:
    document_ += valueToString(value.asBool());
    break;
  case arrayValue: {
    document_ += '[';
    ArrayIndex size = value.size();
    for (ArrayIndex index = 0; index < size; ++index) {
      if (index > 0)
        document_ += ',';
      writeValue(value[index]);
    }
    document_ += ']';
  } break;
  case objectValue: {
    Value::Members members(value.getMemberNames());
    document_ += '{';
    for (Value::Members::iterator it = members.begin(); it != members.end();
         ++it) {
      const JSONCPP_STRING& name = *it;
      if (it != members.begin())
        document_ += ',';
      document_ += valueToQuotedStringN(name.data(),
                                        static_cast<unsigned>(name.length()));
      document_ += yamlCompatibilityEnabled_ ? ": " : ":";
      writeValue(value[name]);
    }
    document_ += '}';
  } break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x11e88
cmpl $0x7, %eax
ja 0x167f5
movl %eax, %eax
leaq 0x49b65(%rip), %rcx     # 0x60194
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x0, 0x29(%rbx)
jne 0x167f5
addq $0x8, %rbx
leaq 0x49cf7(%rip), %rsi     # 0x60344
movq %rbx, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8c20
leaq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rdx
movq %r14, %rdi
callq 0x121e6
testb %al, %al
je 0x167f5
movq -0x60(%rbp), %rsi
movl -0x68(%rbp), %edx
subl %esi, %edx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x161a8
addq $0x8, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c60
jmp 0x167ec
movq %r14, %rdi
callq 0x12a86
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x15eec
addq $0x8, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c60
jmp 0x167ec
movq %r14, %rdi
callq 0x12a90
leaq 0x491fa(%rip), %rax     # 0x5f8d8
movl (%rax), %esi
leaq -0x48(%rbp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x15f86
addq $0x8, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c60
jmp 0x167ec
leaq -0x60(%rbp), %rdi
movq %r14, %rsi
callq 0x13ec8
leaq 0x8(%rbx), %r15
pushq $0x7b
popq %rsi
movq %r15, %rdi
callq 0x8530
movq -0x60(%rbp), %r12
leaq -0x48(%rbp), %r13
cmpq -0x58(%rbp), %r12
je 0x1686a
cmpq -0x60(%rbp), %r12
je 0x16740
movq %r15, %rdi
pushq $0x2c
popq %rsi
callq 0x8530
movq (%r12), %rsi
movl 0x8(%r12), %edx
movq %r13, %rdi
callq 0x161a8
movq %r15, %rdi
movq %r13, %rsi
callq 0x8c60
movq %r13, %rdi
callq 0x82c0
cmpb $0x0, 0x28(%rbx)
leaq 0x58a51(%rip), %rsi     # 0x6f1c0
leaq 0x49bd9(%rip), %rax     # 0x6034f
cmovneq %rax, %rsi
movq %r15, %rdi
callq 0x8c20
movq %r14, %rdi
movq %r12, %rsi
callq 0x13956
movq %rbx, %rdi
movq %rax, %rsi
callq 0x165fe
addq $0x20, %r12
jmp 0x16725
movq %r14, %rdi
callq 0x12a7c
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x15e04
addq $0x8, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c60
jmp 0x167ec
movq %r14, %rdi
callq 0x12c34
movzbl %al, %esi
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x1614b
addq $0x8, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c60
leaq -0x48(%rbp), %rdi
callq 0x82c0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %r15
pushq $0x5b
popq %rsi
movq %r15, %rdi
callq 0x8530
movq %r14, %rdi
callq 0x12ede
movl %eax, %r12d
xorl %r13d, %r13d
cmpl %r13d, %r12d
je 0x16851
testl %r13d, %r13d
je 0x16836
movq %r15, %rdi
pushq $0x2c
popq %rsi
callq 0x8530
movq %r14, %rdi
movl %r13d, %esi
callq 0x133a8
movq %rbx, %rdi
movq %rax, %rsi
callq 0x165fe
incl %r13d
jmp 0x16821
pushq $0x5d
popq %rsi
movq %r15, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8530
pushq $0x7d
popq %rsi
movq %r15, %rdi
callq 0x8530
leaq -0x60(%rbp), %rdi
callq 0xec1a
jmp 0x167f5
jmp 0x1688b
jmp 0x1688b
jmp 0x1688b
jmp 0x1688b
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x82c0
jmp 0x168b7
jmp 0x168ab
jmp 0x168ab
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x82c0
jmp 0x168ae
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xec1a
movq %rbx, %rdi
callq 0x8b30
nop