// File: 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
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x98(%rbp)
movl $0x0, 0x2c(%rdi)
movl $0x0, 0x28(%rdi)
movl $0x0, 0x24(%rdi)
movl $0x0, 0x20(%rdi)
movl -0xc(%rbp), %eax
movl %eax, 0x18(%rdi)
movl -0x10(%rbp), %eax
movl %eax, 0x1c(%rdi)
callq 0x5b70
cmpq $0x0, %rax
je 0x2545
movq -0x98(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
callq 0x5bc0
cmpq $0x0, %rax
jne 0x2609
movq -0x98(%rbp), %rdi
callq 0x60f0
movq -0x98(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0xb0(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0xa8(%rbp)
movq $0x0, -0x30(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x6140
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rcx
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x6160
jmp 0x25a8
movq -0xb0(%rbp), %rsi
movq -0xb8(%rbp), %rdi
leaq -0x28(%rbp), %rdx
callq 0x6110
jmp 0x25c1
leaq -0x28(%rbp), %rdi
callq 0x61e0
leaq -0x31(%rbp), %rdi
callq 0x6240
jmp 0x297e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x25fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x61e0
leaq -0x31(%rbp), %rdi
callq 0x6240
jmp 0x2987
movq -0x98(%rbp), %rdi
movl -0x10(%rbp), %eax
movq %rax, -0xc0(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
callq 0x5bc0
movq %rax, %rcx
movq -0xc0(%rbp), %rax
cmpq %rcx, %rax
jbe 0x26fb
movl $0x0, -0x48(%rbp)
movq -0x98(%rbp), %rdi
movl -0x48(%rbp), %eax
movq %rax, -0xc8(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0xd0(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
callq 0x5bc0
movq -0xd0(%rbp), %rcx
movq %rax, %rdx
movq -0xc8(%rbp), %rax
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x26f6
movl $0x0, -0x4c(%rbp)
movq -0x98(%rbp), %rdi
movl -0x4c(%rbp), %eax
movq %rax, -0xd8(%rbp)
callq 0x5b70
movq %rax, %rcx
movq -0xd8(%rbp), %rax
cmpq %rcx, %rax
jae 0x26e6
movq -0x98(%rbp), %rdi
movl -0x4c(%rbp), %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
leaq -0x58(%rbp), %rsi
callq 0x6260
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x2691
jmp 0x26e8
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x2645
jmp 0x27d2
movq -0x98(%rbp), %rdi
movl -0x10(%rbp), %eax
movq %rax, -0xe0(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
callq 0x5bc0
movq %rax, %rcx
movq -0xe0(%rbp), %rax
cmpq %rcx, %rax
jae 0x27d0
movl $0x0, -0x5c(%rbp)
movq -0x98(%rbp), %rdi
movl -0x5c(%rbp), %eax
movq %rax, -0xe8(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
callq 0x5bc0
movq %rax, %rcx
movq -0xe8(%rbp), %rax
movl -0x10(%rbp), %edx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x27ce
movl $0x0, -0x60(%rbp)
movq -0x98(%rbp), %rdi
movl -0x60(%rbp), %eax
movq %rax, -0xf0(%rbp)
callq 0x5b70
movq %rax, %rcx
movq -0xf0(%rbp), %rax
cmpq %rcx, %rax
jae 0x27be
movq -0x98(%rbp), %rdi
movl -0x60(%rbp), %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
callq 0x6290
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x2775
jmp 0x27c0
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x2737
jmp 0x27d0
jmp 0x27d2
movq -0x98(%rbp), %rdi
movl -0xc(%rbp), %eax
movq %rax, -0xf8(%rbp)
callq 0x5b70
movq %rax, %rcx
movq -0xf8(%rbp), %rax
cmpq %rcx, %rax
jbe 0x2900
movl $0x0, -0x64(%rbp)
movq -0x98(%rbp), %rdi
movl -0x64(%rbp), %eax
movq %rax, -0x100(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x108(%rbp)
callq 0x5b70
movq -0x108(%rbp), %rcx
movq %rax, %rdx
movq -0x100(%rbp), %rax
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x28fe
movq -0x98(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x118(%rbp)
movq $0x0, -0x88(%rbp)
leaq -0x89(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x6140
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rcx
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0x6160
jmp 0x2895
movq -0x120(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x62c0
jmp 0x28a7
leaq -0x80(%rbp), %rdi
callq 0x61e0
leaq -0x89(%rbp), %rdi
callq 0x6240
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2802
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x28ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x61e0
leaq -0x89(%rbp), %rdi
callq 0x6240
jmp 0x2987
jmp 0x297e
movq -0x98(%rbp), %rdi
movl -0xc(%rbp), %eax
movq %rax, -0x128(%rbp)
callq 0x5b70
movq %rax, %rcx
movq -0x128(%rbp), %rax
cmpq %rcx, %rax
jae 0x297c
movl $0x0, -0x90(%rbp)
movq -0x98(%rbp), %rdi
movl -0x90(%rbp), %eax
movq %rax, -0x130(%rbp)
callq 0x5b70
movq %rax, %rcx
movq -0x130(%rbp), %rax
movl -0xc(%rbp), %edx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x297a
movq -0x98(%rbp), %rdi
callq 0x62f0
movl -0x90(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x90(%rbp)
jmp 0x292f
jmp 0x297c
jmp 0x297e
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x22a0