// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/RNBasics/json.cpp
// Function: Json::StyledWriter::writeValue(Json::Value const&)
void StyledWriter::writeValue(const Value& value) {
  switch (value.type()) {
  case nullValue:
    pushValue("null");
    break;
  case intValue:
    pushValue(valueToString(value.asLargestInt()));
    break;
  case uintValue:
    pushValue(valueToString(value.asLargestUInt()));
    break;
  case realValue:
    pushValue(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) 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 (;;) {
        const std::string& name = *it;
        const Value& childValue = value[name];
        writeCommentBeforeValue(childValue);
        writeWithIndent(valueToQuotedString(name.c_str()));
        document_ += " : ";
        writeValue(childValue);
        if (++it == members.end()) {
          writeCommentAfterValueOnSameLine(childValue);
          break;
        }
        document_ += ',';
        writeCommentAfterValueOnSameLine(childValue);
      }
      unindent();
      writeWithIndent("}");
    }
  } 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 0x845c1
movq %rsi, %r14
movq %rdi, %rbx
movzbl %al, %ecx
leaq 0x3acb6(%rip), %rdx     # 0xbeed0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3b7e7(%rip), %rsi     # 0xbfa1a
leaq 0x3b7e4(%rip), %rdx     # 0xbfa1e
movq %rsp, %rdi
callq 0x1a88c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x8481e
jmp 0x84549
cmpb $0x4, %al
sete %cl
movq (%r14), %r14
testq %r14, %r14
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x84523
btl $0x8, %eax
jb 0x84586
movq %r14, %rdi
callq 0x11260
movq %rax, %rdx
jmp 0x8458d
movq %r14, %rdi
callq 0x8112a
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x80c69
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8481e
jmp 0x845a6
movq %r14, %rdi
callq 0x8131c
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
movl $0x11, %edx
callq 0x832ea
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8481e
jmp 0x845a6
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x7f0c4
movq (%r15), %rax
leaq 0x10(%rsp), %rcx
cmpq 0x8(%r15), %rax
je 0x84554
movq %rsp, %rdi
movq %rcx, (%rdi)
leaq 0x3b753(%rip), %rsi     # 0xbfa57
leaq 0x3b74d(%rip), %rdx     # 0xbfa58
callq 0x1a88c
movq %rbx, %rdi
callq 0x84ce8
leaq 0x20(%rbx), %r15
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x111e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x84348
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
movq %rbx, %rdi
callq 0x84b12
movq 0x20(%rsp), %r12
leaq 0x3b6fd(%rip), %r13     # 0xbfa59
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x82296
leaq 0x3abd9(%rip), %rbp     # 0xbef50
testq %rax, %rax
je 0x8437f
movq %rax, %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x840de
movq (%r12), %rsi
movq %rsp, %rdi
callq 0x83432
movq %rbx, %rdi
callq 0x84ce8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x111e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x843ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
movq %r15, %rdi
movq %r13, %rsi
callq 0x11b50
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x841f0
addq $0x20, %r12
cmpq 0x28(%rsp), %r12
je 0x844a2
movq %r15, %rdi
movl $0x2c, %esi
callq 0x114e0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x84674
jmp 0x8435c
movq %r14, %rdi
callq 0x80f5c
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x80b6c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8481e
jmp 0x845a6
movq %r14, %rdi
callq 0x7e8b8
leaq 0x3b101(%rip), %rcx     # 0xbf542
leaq 0x3b0ff(%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
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8481e
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x845b4
jmp 0x845c1
movq %rbx, %rdi
movq %r14, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x84840
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x84674
leaq 0x40(%rbx), %rdi
movq 0x48(%rbx), %rsi
movl 0x64(%rbx), %eax
subq %rax, %rsi
xorl %edx, %edx
callq 0x111d0
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x3b581(%rip), %rsi     # 0xbfa55
leaq 0x3b57b(%rip), %rdx     # 0xbfa56
callq 0x1a88c
movq %rbx, %rdi
callq 0x84ce8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x111e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x84514
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
leaq 0x20(%rsp), %rdi
callq 0x87b52
jmp 0x845c1
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x38101(%rip), %rdx     # 0xbc634
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x1a88c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x8481e
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x845b4
jmp 0x845c1
movq %rsp, %rdi
movq %rcx, %r14
movq %rcx, (%rdi)
leaq 0x3b4f0(%rip), %rsi     # 0xbfa54
leaq 0x3b4eb(%rip), %rdx     # 0xbfa56
callq 0x1a88c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x8481e
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x84507
jmp 0x84514
movl (%r14), %edx
addq $0x4, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x83c70
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8481e
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x845c1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x8464f
jmp 0x84661
jmp 0x8465e
jmp 0x845f3
jmp 0x84618
jmp 0x84613
jmp 0x8465e
jmp 0x8465e
jmp 0x8465e
jmp 0x8465e
jmp 0x8465e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x84629
jmp 0x8466b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x84629
jmp 0x8466b
jmp 0x84618
jmp 0x84618
movq %rax, %rbx
jmp 0x8466b
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8466b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x8466b
jmp 0x8463e
jmp 0x8463e
jmp 0x8465e
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x84661
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x115c0
jmp 0x84661
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x87b52
movq %rbx, %rdi
callq 0x11a60
nop