// File: /workspace/github_cpp_makefile_star2_O3/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 0x1343e
cmpb $0x7, %al
ja 0x134cc
movzwl %ax, %ecx
movzbl %cl, %ecx
leaq 0x563a0(%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 0x1344a
shrl $0x1f, %eax
jmp 0x13441
movq (%rdi), %rbx
testq %rbx, %rbx
sete %cl
movq (%rsi), %r14
testq %r14, %r14
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x1346a
testq %r14, %r14
setne %al
jmp 0x13441
movq (%rdi), %rax
cmpq (%rsi), %rax
jmp 0x1343e
movsd (%rsi), %xmm0
ucomisd (%rdi), %xmm0
seta %al
jmp 0x13441
xorl %eax, %eax
jmp 0x13441
movq (%rdi), %rax
cmpq (%rsi), %rax
setl %al
jmp 0x13441
movb (%rdi), %al
cmpb (%rsi), %al
setb %al
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
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x16f49
btl $0x8, %eax
jb 0x1347d
movq %rbx, %rdi
callq 0x8290
movq %rax, %r15
jmp 0x13484
movl (%rbx), %r15d
addq $0x4, %rbx
btl $0x8, %r12d
jb 0x13498
movq %r14, %rdi
callq 0x8290
movq %rax, %r12
jmp 0x1349f
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 0x13441
sete %cl
cmpl %r12d, %r15d
setb %al
andb %cl, %al
jmp 0x13441
leaq 0x56520(%rip), %rdi     # 0x699f3
leaq 0x5651f(%rip), %rsi     # 0x699f9
leaq 0x56576(%rip), %rcx     # 0x69a57
movl $0x232, %edx            # imm = 0x232
callq 0x8420
nop