// File: /workspace/github_cpp_makefile_star2_O3/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 0x83bf4
movq %rsi, %r14
movq %rdi, %rbx
movzbl %al, %ecx
leaq 0x3b59c(%rip), %rdx     # 0xbee98
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x0, 0x29(%rbx)
jne 0x83bf4
addq $0x8, %rbx
leaq 0x3c100(%rip), %rsi     # 0xbfa1a
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11b50
cmpb $0x4, %al
sete %cl
movq (%r14), %r14
testq %r14, %r14
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x83bf4
btl $0x8, %eax
jb 0x83bb1
movq %r14, %rdi
callq 0x11260
movq %rax, %rdx
jmp 0x83bb8
movq %r14, %rdi
callq 0x8112a
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x80c69
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
jmp 0x83bd9
movq %r14, %rdi
callq 0x8131c
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
movl $0x11, %edx
callq 0x832ea
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
jmp 0x83bd9
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x7f0c4
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movl $0x7b, %esi
callq 0x114e0
movq 0x20(%rsp), %rbp
cmpq 0x28(%rsp), %rbp
je 0x83a9b
leaq 0x3c062(%rip), %r13     # 0xbfa5a
leaq 0x3b551(%rip), %r12     # 0xbef50
cmpq 0x20(%rsp), %rbp
je 0x83a13
movq %r15, %rdi
movl $0x2c, %esi
callq 0x114e0
movq (%rbp), %rsi
movl 0x8(%rbp), %edx
movq %rsp, %rdi
callq 0x83c70
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x111e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x83a4e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
cmpb $0x0, 0x28(%rbx)
movq %r13, %rsi
jne 0x83a5e
leaq 0x3bff4(%rip), %rsi     # 0xbfa52
movq %r15, %rdi
callq 0x11b50
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x82296
movq %r12, %rsi
testq %rax, %rax
je 0x83a84
movq %rax, %rsi
movq %rbx, %rdi
callq 0x838d2
addq $0x20, %rbp
cmpq 0x28(%rsp), %rbp
jne 0x839ff
movq %r15, %rdi
movl $0x7d, %esi
callq 0x114e0
leaq 0x20(%rsp), %rdi
callq 0x87b52
jmp 0x83bf4
movq %r14, %rdi
callq 0x80f5c
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x80b6c
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
jmp 0x83bd9
movq %r14, %rdi
callq 0x7e8b8
leaq 0x3ba4e(%rip), %rcx     # 0xbf542
leaq 0x3ba4c(%rip), %rsi     # 0xbf547
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 0x1a88c
addq $0x8, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x111e0
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x83be7
jmp 0x83bf4
leaq 0x8(%rbx), %r15
movq %r15, %rdi
movl $0x5b, %esi
callq 0x114e0
movq %r14, %rdi
callq 0x7f26c
testl %eax, %eax
je 0x83b96
movl %eax, %ebp
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x83b78
movq %r15, %rdi
movl $0x2c, %esi
callq 0x114e0
movq %r14, %rdi
movl %r12d, %esi
callq 0x81c1c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x838d2
incl %r12d
cmpl %r12d, %ebp
jne 0x83b66
movq %r15, %rdi
movl $0x5d, %esi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x114e0
movl (%r14), %edx
addq $0x4, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x83c70
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 0x83bf4
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 0x83c17
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x83c28
jmp 0x83c68
jmp 0x83c17
jmp 0x83c17
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x83c68
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x83c68
jmp 0x83c5b
jmp 0x83c5b
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x83c5e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x83c5e
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x87b52
movq %rbx, %rdi
callq 0x11a60