// File: /workspace/github_cpp_makefile_star2_O1/hitc8494[P]Matrix/matrix.cpp
// Function: Matrix::resize(unsigned int, unsigned int)
void Matrix::resize( uint rows, uint cols ){
  _m_in = _n_in = _m_out = _n_out = 0; //Reset all IO iterators.
  _m = rows;
  _n = cols;
  if( _data.size() == 0 || _data[0].size() == 0 ){
    //The compiler should jump out after the first one, evading an error.
    _data.clear();
    _data.assign( rows, vector<double>(cols, 0.0 ) );
    return;
  }
  if( cols > _data[0].size() ){
    for( uint i = 0; i < cols-_data[0].size(); i++ ){
      for( uint j = 0; j < _data.size(); j++ ){
	_data[j].push_back( 0.0 );
      }
    }
  }
  else if ( cols < _data[0].size() ){
    for( uint i = 0; i < _data[0].size()-cols; i++ ){
      for( uint j = 0; j < _data.size(); j++ ){
	_data[j].pop_back();
      }
    }
  }
  if( rows > _data.size() ){
    for( uint i = 0; i < rows-_data.size(); i++ ){
      _data.push_back( vector<double>(cols, 0.0 ) );
    }
  }
  else if( rows < _data.size() ){
    for( uint i = 0; i < _data.size()-rows; i++ ){
      _data.pop_back();
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rsi
movq 0x8(%rdi), %rax
movq %rax, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movl %ebp, 0x18(%rdi)
movl %edx, 0x1c(%rdi)
movl %edx, %r14d
subq %rsi, %rcx
je 0x251a
movq (%rsi), %rdx
movq 0x8(%rsi), %r8
subq %rdx, %r8
je 0x251a
movl %ebp, 0x2c(%rsp)
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r12, %rcx
leaq 0x8(%rsi), %rdi
sarq $0x3, %r8
cmpq %r14, %r8
jae 0x256f
movq (%rbx), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
je 0x25b9
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x24f9
movl $0x1, %ebp
xorl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rdi
movq $0x0, 0x10(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x24d6
movq $0x0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x24de
movq %r15, %rdx
callq 0x4956
movl %ebp, %ecx
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x24aa
incl %r13d
movq (%rbx), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
movq %r14, %rax
subq %rcx, %rax
cmpq %r13, %rax
ja 0x249a
jmp 0x25b9
movq %rbx, %rdi
callq 0x46dc
leaq 0x30(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movq %r14, %rsi
callq 0x43a2
movl %ebp, %esi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4726
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x26ca
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
jmp 0x26ca
jbe 0x25b9
movq (%rdi), %r8
subq %rdx, %r8
sarq $0x3, %r8
cmpq %r14, %r8
je 0x25b9
xorl %r8d, %r8d
cmpq %rsi, %rax
je 0x25a4
movl $0x1, %r9d
movq %rdi, %r10
addq $-0x8, (%r10)
movl %r9d, %r11d
addq $0x18, %r10
incl %r9d
cmpq %r11, %rcx
ja 0x2591
incl %r8d
movq (%rdi), %r9
subq %rdx, %r9
sarq $0x3, %r9
subq %r14, %r9
cmpq %r8, %r9
ja 0x2583
movq 0x8(%rbx), %rax
subq (%rbx), %rax
movl 0x2c(%rsp), %ebp
sarq $0x3, %rax
imulq %r12, %rax
cmpq %rbp, %rax
jae 0x266e
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
movabsq $0x5555555555555555, %rcx # imm = 0x5555555555555555
imulq %rcx, %rax
addq %rbp, %rax
je 0x26ca
movl $0x1, %r12d
leaq 0x10(%rsp), %r15
leaq 0xf(%rsp), %r13
movq $0x0, 0x30(%rsp)
movq %r15, %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %rdx
movq %r13, %rcx
callq 0x43a2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a7a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2645
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
movl %r12d, %eax
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
sarq $0x3, %rcx
movabsq $0x5555555555555555, %rdx # imm = 0x5555555555555555
imulq %rdx, %rcx
addq %rbp, %rcx
incl %r12d
cmpq %rax, %rcx
ja 0x2607
jmp 0x26ca
jbe 0x26ca
movq 0x8(%rbx), %rax
movq %rax, %rcx
subq (%rbx), %rcx
sarq $0x3, %rcx
imulq %r12, %rcx
cmpq %rbp, %rcx
je 0x26ca
movl $0x1, %r14d
leaq -0x18(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq -0x18(%rax), %rdi
testq %rdi, %rdi
je 0x26aa
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x2140
movl %r14d, %ecx
movq 0x8(%rbx), %rax
movq %rax, %rdx
subq (%rbx), %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
subq %rbp, %rdx
incl %r14d
cmpq %rcx, %rdx
ja 0x268d
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26e2
jmp 0x26dd
movq %rax, %rbx
jmp 0x26fc
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x26fc
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0