// File: /workspace/github_cpp_makefile_star2_O2/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
movzwl 0x8(%rdi), %eax
movl $0xff, %ecx
movl %eax, %edx
andl %ecx, %edx
movzwl 0x8(%rsi), %r12d
andl %r12d, %ecx
cmpw %cx, %dx
jne 0x11f5f
cmpb $0x7, %al
ja 0x11fd7
movzwl %ax, %ecx
movzbl %cl, %ecx
leaq 0x4d87e(%rip), %rdx     # 0x5f778
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rdi), %rdi
movl 0x28(%rdi), %eax
movq (%rsi), %rsi
subl 0x28(%rsi), %eax
je 0x11f6b
shrl $0x1f, %eax
jmp 0x11f62
movq (%rdi), %rbx
testq %rbx, %rbx
sete %cl
movq (%rsi), %r14
testq %r14, %r14
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x11f78
testq %r14, %r14
setne %al
jmp 0x11f62
movq (%rdi), %rax
cmpq (%rsi), %rax
jmp 0x11f5f
movsd (%rsi), %xmm0
ucomisd (%rdi), %xmm0
seta %al
jmp 0x11f62
xorl %eax, %eax
jmp 0x11f62
movq (%rdi), %rax
cmpq (%rsi), %rax
setl %al
jmp 0x11f62
movb (%rdi), %al
cmpb (%rsi), %al
setb %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x14e7f
btl $0x8, %eax
jb 0x11f8b
movq %rbx, %rdi
callq 0x8290
movq %rax, %r15
jmp 0x11f92
movl (%rbx), %r15d
addq $0x4, %rbx
btl $0x8, %r12d
jb 0x11fa6
movq %r14, %rdi
callq 0x8290
movq %rax, %r12
jmp 0x11fad
movl (%r14), %r12d
addq $0x4, %r14
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 0x11f62
sete %cl
cmpl %r12d, %r15d
setb %al
andb %cl, %al
jmp 0x11f62
leaq 0x4da05(%rip), %rdi     # 0x5f9e3
leaq 0x4da04(%rip), %rsi     # 0x5f9e9
leaq 0x4da5b(%rip), %rcx     # 0x5fa47
movl $0x232, %edx            # imm = 0x232
callq 0x8420