// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/RNBasics/json.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_?
    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 std::string& name = *it;
      if (it != members.begin())
        document_ += ',';
      document_ += valueToQuotedStringN(name.data(), static_cast<unsigned>(name.length()));
      document_ += yamlCompatiblityEnabled_ ? ": " : ":";
      writeValue(value[name]);
    }
    document_ += '}';
  } break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movzwl 0x8(%rsi), %eax
cmpb $0x7, %al
ja 0x85c51
movq %rsi, %r14
movq %rdi, %rbx
movzbl %al, %ecx
leaq 0x3b53e(%rip), %rdx     # 0xc0e88
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x0, 0x29(%rbx)
jne 0x85c51
addq $0x8, %rbx
leaq 0x3c0a5(%rip), %rsi     # 0xc1a0d
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11b60
cmpb $0x4, %al
sete %cl
movq (%r14), %r14
testq %r14, %r14
setne %bpl
andb %cl, %bpl
cmpb $0x1, %bpl
jne 0x85bff
btl $0x8, %eax
jb 0x85c01
movq %r14, %rdi
callq 0x11260
jmp 0x85c08
movq %r14, %rdi
callq 0x82ef4
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x82a33
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
jmp 0x85c36
movq %r14, %rdi
callq 0x830e6
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
movl $0x11, %edx
callq 0x85332
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
jmp 0x85c36
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x80cd4
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movl $0x7b, %esi
callq 0x114e0
movq 0x20(%rsp), %rbp
cmpq 0x28(%rsp), %rbp
je 0x85ae9
leaq 0x3c007(%rip), %r13     # 0xc1a4d
leaq 0x3b4f3(%rip), %r12     # 0xc0f40
cmpq 0x20(%rsp), %rbp
je 0x85a61
movq %r15, %rdi
movl $0x2c, %esi
callq 0x114e0
movq (%rbp), %rsi
movl 0x8(%rbp), %edx
movq %rsp, %rdi
callq 0x85ccd
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x111e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x85a9c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
cmpb $0x0, 0x28(%rbx)
movq %r13, %rsi
jne 0x85aac
leaq 0x3bf99(%rip), %rsi     # 0xc1a45
movq %r15, %rdi
callq 0x11b60
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x841d8
movq %r12, %rsi
testq %rax, %rax
je 0x85ad2
movq %rax, %rsi
movq %rbx, %rdi
callq 0x85920
addq $0x20, %rbp
cmpq 0x28(%rsp), %rbp
jne 0x85a4d
movq %r15, %rdi
movl $0x7d, %esi
callq 0x114e0
leaq 0x20(%rsp), %rdi
callq 0x89d42
jmp 0x85c51
movq %r14, %rdi
callq 0x82d26
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x82936
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
jmp 0x85c36
movq %r14, %rdi
callq 0x8049c
leaq 0x3b9f0(%rip), %rcx     # 0xc1532
leaq 0x3b9ee(%rip), %rsi     # 0xc1537
testb %al, %al
cmovneq %rcx, %rsi
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movzbl %al, %edx
xorq $0x5, %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x1ab58
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x85c44
jmp 0x85c51
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movl $0x5b, %esi
callq 0x114e0
movq %r14, %rdi
callq 0x80e7c
testl %eax, %eax
je 0x85be4
movl %eax, %ebp
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x85bc6
movq %r15, %rdi
movl $0x2c, %esi
callq 0x114e0
movq %r14, %rdi
movl %r12d, %esi
callq 0x83aaa
movq %rbx, %rdi
movq %rax, %rsi
callq 0x85920
incl %r12d
cmpl %r12d, %ebp
jne 0x85bb4
movq %r15, %rdi
movl $0x5d, %esi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x114e0
jmp 0x85c0d
movl (%r14), %eax
addq $0x4, %r14
movl %eax, %edx
addq %r14, %rdx
testb %bpl, %bpl
je 0x85c51
subl %r14d, %edx
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x85ccd
addq $0x8, %rbx
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x111e0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x85c51
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x85c74
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x85c85
jmp 0x85cc5
jmp 0x85c74
jmp 0x85c74
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x85cc5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x85cc5
jmp 0x85cb8
jmp 0x85cb8
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x85cbb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x85cbb
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x89d42
movq %rbx, %rdi
callq 0x11a70