// File: zeeev[P]DASVC/bamtools/src/third_party/jsoncpp/json_writer.cpp
// Function: Json::StyledWriter::isMultineArray(Json::Value const&)
bool 
StyledWriter::isMultineArray( const Value &value )
{
   int size = value.size();
   bool isMultiLine = size*3 >= rightMargin_ ;
   childValues_.clear();
   for ( int index =0; index < size  &&  !isMultiLine; ++index )
   {
      const Value &childValue = value[index];
      isMultiLine = isMultiLine  ||
                     ( (childValue.isArray()  ||  childValue.isObject())  &&  
                        childValue.size() > 0 );
   }
   if ( !isMultiLine ) // check if line length > max line length
   {
      childValues_.reserve( size );
      addChildValues_ = true;
      int lineLength = 4 + (size-1)*2; // '[ ' + ', '*n + ' ]'
      for ( int index =0; index < size  &&  !isMultiLine; ++index )
      {
         writeValue( value[index] );
         lineLength += int( childValues_[index].length() );
         isMultiLine = isMultiLine  &&  hasCommentForValue( value[index] );
      }
      addChildValues_ = false;
      isMultiLine = isMultiLine  ||  lineLength >= rightMargin_;
   }
   return isMultiLine;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
callq 0x123200
movq 0x10(%rsp), %rdi
movl %eax, 0x34(%rsp)
imull $0x3, 0x34(%rsp), %eax
cmpl 0x60(%rdi), %eax
setge %al
andb $0x1, %al
movb %al, 0x33(%rsp)
addq $0x8, %rdi
callq 0xcfcc0
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %ecx
xorl %eax, %eax
cmpl 0x34(%rsp), %ecx
movb %al, 0xf(%rsp)
jge 0x12c267
movb 0x33(%rsp), %al
xorb $-0x1, %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x12c271
jmp 0x12c2ee
movq 0x38(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x123840
movq %rax, 0x20(%rsp)
movb $0x1, %al
testb $0x1, 0x33(%rsp)
movb %al, 0xe(%rsp)
jne 0x12c2d4
movq 0x20(%rsp), %rdi
callq 0x123350
testb $0x1, %al
jne 0x12c2b8
movq 0x20(%rsp), %rdi
callq 0x1233a0
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0xd(%rsp)
jne 0x12c2b8
jmp 0x12c2cc
movq 0x20(%rsp), %rdi
callq 0x123200
cmpl $0x0, %eax
seta %al
movb %al, 0xd(%rsp)
movb 0xd(%rsp), %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
andb $0x1, %al
movb %al, 0x33(%rsp)
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x12c24d
testb $0x1, 0x33(%rsp)
jne 0x12c40b
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
movslq 0x34(%rsp), %rsi
callq 0xbf5e0
movq 0x10(%rsp), %rax
movb $0x1, 0x68(%rax)
movl 0x34(%rsp), %eax
subl $0x1, %eax
shll %eax
addl $0x4, %eax
movl %eax, 0x1c(%rsp)
movl $0x0, 0x18(%rsp)
movl 0x18(%rsp), %ecx
xorl %eax, %eax
cmpl 0x34(%rsp), %ecx
movb %al, 0xc(%rsp)
jge 0x12c347
movb 0x33(%rsp), %al
xorb $-0x1, %al
movb %al, 0xc(%rsp)
movb 0xc(%rsp), %al
testb $0x1, %al
jne 0x12c354
jmp 0x12c3d8
movq 0x38(%rsp), %rdi
movl 0x18(%rsp), %esi
callq 0x123840
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x12b270
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
movslq 0x18(%rsp), %rsi
callq 0xcf7a0
movq %rax, %rdi
callq 0x86ac0
addl 0x1c(%rsp), %eax
movl %eax, 0x1c(%rsp)
xorl %eax, %eax
testb $0x1, 0x33(%rsp)
movb %al, 0xb(%rsp)
je 0x12c3be
movq 0x38(%rsp), %rdi
movl 0x18(%rsp), %esi
callq 0x123840
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x12c4c0
movb %al, 0xb(%rsp)
movb 0xb(%rsp), %al
andb $0x1, %al
movb %al, 0x33(%rsp)
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x12c32d
movq 0x10(%rsp), %rax
movb $0x0, 0x68(%rax)
movb $0x1, %al
testb $0x1, 0x33(%rsp)
movb %al, 0xa(%rsp)
jne 0x12c401
movq 0x10(%rsp), %rcx
movl 0x1c(%rsp), %eax
cmpl 0x60(%rcx), %eax
setge %al
movb %al, 0xa(%rsp)
movb 0xa(%rsp), %al
andb $0x1, %al
movb %al, 0x33(%rsp)
movb 0x33(%rsp), %al
andb $0x1, %al
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)