// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_value.cpp
// Function: Json::Value::operator<(Json::Value const&) const
bool Value::operator<(const Value& other) const {
  int typeDelta = type_ - other.type_;
  if (typeDelta)
    return typeDelta < 0 ? true : false;
  switch (type_) {
  case nullValue:
    return false;
  case intValue:
    return value_.int_ < other.value_.int_;
  case uintValue:
    return value_.uint_ < other.value_.uint_;
  case realValue:
    return value_.real_ < other.value_.real_;
  case booleanValue:
    return value_.bool_ < other.value_.bool_;
  case stringValue: {
    if ((value_.string_ == 0) || (other.value_.string_ == 0)) {
      if (other.value_.string_)
        return true;
      else
        return false;
    }
    unsigned this_len;
    unsigned other_len;
    char const* this_str;
    char const* other_str;
    decodePrefixedString(this->allocated_, this->value_.string_, &this_len,
                         &this_str);
    decodePrefixedString(other.allocated_, other.value_.string_, &other_len,
                         &other_str);
    unsigned min_len = std::min<unsigned>(this_len, other_len);
    JSON_ASSERT(this_str && other_str);
    int comp = memcmp(this_str, other_str, min_len);
    if (comp < 0)
      return true;
    if (comp > 0)
      return false;
    return (this_len < other_len);
  }
  case arrayValue:
  case objectValue: {
    int delta = int(value_.map_->size() - other.value_.map_->size());
    if (delta)
      return delta < 0;
    return (*value_.map_) < (*other.value_.map_);
  }
  default:
    JSON_ASSERT_UNREACHABLE;
  }
  return false; // unreachable
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movzwl 0x8(%rdi), %eax
movl $0xff, %ecx
movl %eax, %edx
andl %ecx, %edx
movzwl 0x8(%rsi), %r12d
andl %r12d, %ecx
cmpw %cx, %dx
jne 0x136fa
cmpb $0x7, %al
ja 0x1379e
movzwl %ax, %ecx
movzbl %cl, %ecx
leaq 0x560e4(%rip), %rdx     # 0x69778
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rdi), %r8
movl 0x28(%r8), %eax
movq (%rsi), %rcx
subl 0x28(%rcx), %eax
je 0x1370a
shrl $0x1f, %eax
jmp 0x136fd
movq (%rdi), %rbx
testq %rbx, %rbx
sete %cl
movq (%rsi), %r14
testq %r14, %r14
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x1372e
testq %r14, %r14
setne %al
jmp 0x136fd
movq (%rdi), %rax
cmpq (%rsi), %rax
jmp 0x136fa
movsd (%rsi), %xmm0
ucomisd (%rdi), %xmm0
seta %al
jmp 0x136fd
xorl %eax, %eax
jmp 0x136fd
movq (%rdi), %rax
cmpq (%rsi), %rax
setl %al
jmp 0x136fd
movb (%rdi), %al
cmpb (%rsi), %al
setb %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r8), %rdi
addq $0x8, %r8
movq 0x18(%rcx), %rdx
addq $0x8, %rcx
movq %r8, %rsi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17575
btl $0x8, %eax
jb 0x13741
movq %rbx, %rdi
callq 0x8290
movq %rax, %r15
jmp 0x13748
movl (%rbx), %r15d
addq $0x4, %rbx
btl $0x8, %r12d
jb 0x1375c
movq %r14, %rdi
callq 0x8290
movq %rax, %r12
jmp 0x13763
movl (%r14), %r12d
addq $0x4, %r14
testq %rbx, %rbx
je 0x137bd
testq %r14, %r14
je 0x137bd
cmpl %r15d, %r12d
movl %r15d, %edx
cmovbl %r12d, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x82b0
movl %eax, %ecx
movb $0x1, %al
testl %ecx, %ecx
js 0x136fd
sete %cl
cmpl %r12d, %r15d
setb %al
andb %cl, %al
jmp 0x136fd
leaq 0x5624e(%rip), %rdi     # 0x699f3
leaq 0x5624d(%rip), %rsi     # 0x699f9
leaq 0x562a4(%rip), %rcx     # 0x69a57
movl $0x232, %edx            # imm = 0x232
callq 0x8420
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x561db(%rip), %rsi     # 0x699a7
leaq 0x561e6(%rip), %rdx     # 0x699b9
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
callq 0x1126a
movq %rbx, %rdi
callq 0x1288d
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x137f8
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40