// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]RtConverter/src/Json/json_writer.cpp
// Function: Json::BuiltStyledStreamWriter::writeValue(Json::Value const&)
void BuiltStyledStreamWriter::writeValue(Value const& value) {
  switch (value.type()) {
  case nullValue:
    pushValue(nullSymbol_);
    break;
  case intValue:
    pushValue(valueToString(value.asLargestInt()));
    break;
  case uintValue:
    pushValue(valueToString(value.asLargestUInt()));
    break;
  case realValue:
    pushValue(valueToString(value.asDouble(), useSpecialFloats_, precision_,
                            precisionType_));
    break;
  case stringValue: {
    // Is NULL is possible for value.string_? No.
    char const* str;
    char const* end;
    bool ok = value.getString(&str, &end);
    if (ok)
      pushValue(valueToQuotedStringN(str, static_cast<unsigned>(end - str)));
    else
      pushValue("");
    break;
  }
  case booleanValue:
    pushValue(valueToString(value.asBool()));
    break;
  case arrayValue:
    writeArrayValue(value);
    break;
  case objectValue: {
    Value::Members members(value.getMemberNames());
    if (members.empty())
      pushValue("{}");
    else {
      writeWithIndent("{");
      indent();
      Value::Members::iterator it = members.begin();
      for (;;) {
        JSONCPP_STRING const& name = *it;
        Value const& childValue = value[name];
        writeCommentBeforeValue(childValue);
        writeWithIndent(valueToQuotedStringN(
            name.data(), static_cast<unsigned>(name.length())));
        *sout_ << colonSymbol_;
        writeValue(childValue);
        if (++it == members.end()) {
          writeCommentAfterValueOnSameLine(childValue);
          break;
        }
        *sout_ << ",";
        writeCommentAfterValueOnSameLine(childValue);
      }
      unindent();
      writeWithIndent("}");
    }
  } break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x11e88
cmpl $0x7, %eax
ja 0x182a0
movl %eax, %eax
leaq 0x481b9(%rip), %rcx     # 0x601f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x98(%rbx), %rsi
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x18424
leaq -0x70(%rbp), %rsi
leaq -0x58(%rbp), %rdx
movq %r14, %rdi
callq 0x121e6
testb %al, %al
je 0x18277
movq -0x70(%rbp), %rsi
movl -0x58(%rbp), %edx
subl %esi, %edx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x161a8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18424
jmp 0x18297
movq %r14, %rdi
callq 0x12a86
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x15eec
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18424
jmp 0x18297
movq %r14, %rdi
callq 0x12a90
movb 0xd8(%rbx), %al
andb $0x4, %al
shrb $0x2, %al
movl 0xdc(%rbx), %edx
movl 0xe0(%rbx), %ecx
movzbl %al, %esi
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x15fa4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18424
jmp 0x18297
leaq -0x70(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x13ec8
movq (%r15), %rax
cmpq 0x8(%r15), %rax
je 0x182af
leaq 0x48226(%rip), %rsi     # 0x6034c
leaq -0x48(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x8260
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x186d2
leaq -0x48(%rbp), %rdi
callq 0x82c0
movq %rbx, %rdi
callq 0x18708
movq -0x70(%rbp), %r15
leaq 0x78(%rbx), %rax
movq %rax, -0x78(%rbp)
leaq -0x48(%rbp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x13956
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x17f04
movq (%r15), %rsi
movl 0x8(%r15), %edx
movq %r13, %rdi
callq 0x161a8
movq %rbx, %rdi
movq %r13, %rsi
callq 0x186d2
movq %r13, %rdi
callq 0x82c0
movq 0x8(%rbx), %rdi
movq -0x78(%rbp), %rsi
callq 0x8560
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1800a
addq $0x20, %r15
cmpq -0x68(%rbp), %r15
je 0x18242
movq 0x8(%rbx), %rdi
leaq 0x57147(%rip), %rsi     # 0x6f313
callq 0x8610
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18336
jmp 0x18160
movq %r14, %rdi
callq 0x12a7c
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x15e04
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18424
jmp 0x18297
movq %r14, %rdi
callq 0x12c34
movzbl %al, %esi
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x1614b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18424
jmp 0x18297
movq %rbx, %rdi
movq %r14, %rsi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x18446
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18336
movq %rbx, %rdi
callq 0x1871a
leaq 0x480ee(%rip), %rsi     # 0x6034a
leaq -0x48(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x8260
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x186d2
jmp 0x182cf
leaq 0x48367(%rip), %rsi     # 0x605e5
leaq -0x48(%rbp), %rdi
leaq -0x49(%rbp), %rdx
callq 0x8260
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x18424
leaq -0x48(%rbp), %rdi
callq 0x82c0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x48093(%rip), %rsi     # 0x60349
leaq -0x48(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x8260
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x18424
leaq -0x48(%rbp), %rdi
callq 0x82c0
leaq -0x70(%rbp), %rdi
callq 0xec1a
jmp 0x182a0
jmp 0x18314
jmp 0x18322
jmp 0x18304
movq %rax, %rbx
jmp 0x1832e
jmp 0x18304
jmp 0x18314
jmp 0x18322
jmp 0x18322
jmp 0x18322
jmp 0x18322
jmp 0x18314
jmp 0x18322
jmp 0x18304
jmp 0x18304
jmp 0x18304
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x82c0
jmp 0x1832e
jmp 0x18322
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x82c0
jmp 0x18325
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0xec1a
movq %rbx, %rdi
callq 0x8b30