// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1361c
cmpl $0x7, %eax
ja 0x1b12b
movl %eax, %eax
leaq 0x4f32f(%rip), %rcx     # 0x6a204
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x98(%rbx), %rsi
movq %rbx, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b410
leaq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rdx
movq %r14, %rdi
callq 0x13a74
testb %al, %al
je 0x1b1a3
movq -0x60(%rbp), %rsi
movl -0x68(%rbp), %edx
subl %esi, %edx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x189fd
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b410
jmp 0x1b119
movq %r14, %rdi
callq 0x14464
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x186b8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b410
jmp 0x1b119
movq %r14, %rdi
callq 0x1446e
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 0x18793
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b410
jmp 0x1b119
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x162f2
movq (%r15), %rax
leaq -0x38(%rbp), %rcx
cmpq 0x8(%r15), %rax
je 0x1b1dc
leaq -0x48(%rbp), %rdi
movq %rcx, (%rdi)
leaq 0x4f391(%rip), %rsi     # 0x6a35c
leaq 0x4f38b(%rip), %rdx     # 0x6a35d
callq 0x1126a
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x1b732
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1aff5
callq 0x85d0
leaq 0x28(%rbx), %rdi
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rdx
callq 0x81f0
movq -0x60(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x159b0
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1ad68
movq (%r15), %rsi
movl 0x8(%r15), %edx
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x189fd
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1b732
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1b053
callq 0x85d0
movq 0x8(%rbx), %rdi
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %rdx
callq 0x8730
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1aea4
addq $0x20, %r15
movq -0x58(%rbp), %r12
cmpq %r12, %r15
je 0x1b094
movq 0x8(%rbx), %rdi
movl $0x1, %edx
leaq 0x5e2b6(%rip), %rsi     # 0x79345
callq 0x8730
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1b29e
cmpq %r12, %r15
jne 0x1b00a
movq %rbx, %rdi
callq 0x1b786
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
leaq 0x4f298(%rip), %rsi     # 0x6a35a
leaq 0x4f292(%rip), %rdx     # 0x6a35b
callq 0x1126a
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x1b732
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1b0ec
callq 0x85d0
leaq -0x60(%rbp), %rdi
callq 0x10466
jmp 0x1b12b
movq %r14, %rdi
callq 0x1445a
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x18588
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b410
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b12b
callq 0x85d0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x14652
leaq 0x4e9a3(%rip), %rcx     # 0x69aec
leaq 0x4e8a3(%rip), %rsi     # 0x699f3
testb %al, %al
cmovneq %rcx, %rsi
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movzbl %al, %edx
xorq $0x5, %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x1126a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b410
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
jne 0x1b126
jmp 0x1b12b
movq %rbx, %rdi
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b43c
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x4f443(%rip), %rdx     # 0x6a5f5
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x1126a
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x1b410
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
jne 0x1b126
jmp 0x1b12b
leaq -0x48(%rbp), %rdi
movq %rcx, %r14
movq %rcx, (%rdi)
leaq 0x4f16c(%rip), %rsi     # 0x6a359
leaq 0x4f167(%rip), %rdx     # 0x6a35b
callq 0x1126a
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x1b410
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
jne 0x1b0e7
jmp 0x1b0ec
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
jne 0x1b283
jmp 0x1b28d
jmp 0x1b28a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
jne 0x1b26a
jmp 0x1b296
movq %rax, %rbx
jmp 0x1b296
jmp 0x1b25a
jmp 0x1b273
jmp 0x1b28a
jmp 0x1b28a
jmp 0x1b28a
jmp 0x1b273
jmp 0x1b28a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
jne 0x1b26a
jmp 0x1b296
jmp 0x1b25a
jmp 0x1b25a
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b296
callq 0x85d0
jmp 0x1b296
jmp 0x1b28a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1b28d
callq 0x85d0
jmp 0x1b28d
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x10466
movq %rbx, %rdi
callq 0x8b40