// File: /workspace/github_cpp_makefile_star2_O2/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 $0x28, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rbx), %rcx
movq %rcx, %rax
subq %rdi, %rax
pushq $0x18
popq %r12
cqto
idivq %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movl %esi, 0x18(%rbx)
movl %r14d, 0x1c(%rbx)
cmpq %rdi, %rcx
je 0x2462
movq (%rdi), %rdx
movq 0x8(%rdi), %rsi
movq %rsi, %r8
subq %rdx, %r8
je 0x2462
sarq $0x3, %r8
movl %r14d, %r14d
cmpq %r14, %r8
jae 0x24ad
movl %ebp, 0x4(%rsp)
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
subq %rdx, %rsi
movl %r13d, %eax
sarq $0x3, %rsi
movq %r14, %rdx
subq %rsi, %rdx
cmpq %rax, %rdx
jbe 0x24e4
xorl %eax, %eax
movl %eax, %ebp
movq %rcx, %rax
subq %rdi, %rax
cqto
idivq %r12
cmpq %rbp, %rax
jbe 0x2456
imulq $0x18, %rbp, %rax
addq %rax, %rdi
andq $0x0, 0x10(%rsp)
movq %r15, %rsi
callq 0x4518
leal 0x1(%rbp), %eax
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
jmp 0x2423
incl %r13d
movq (%rdi), %rdx
movq 0x8(%rdi), %rsi
jmp 0x2408
movq %rbx, %rdi
callq 0x3dc6
movl %r14d, %esi
leaq 0x8(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x3(%rsp), %rcx
callq 0x3dce
movl %ebp, %esi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x42dc
leaq 0x10(%rsp), %rdi
callq 0x426e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jbe 0x24f3
xorl %r8d, %r8d
movl %r8d, %r9d
subq %rdx, %rsi
sarq $0x3, %rsi
subq %r14, %rsi
cmpq %r9, %rsi
jbe 0x24f3
xorl %esi, %esi
movl %esi, %esi
cmpq %rsi, %rax
jbe 0x24db
imulq $0x18, %rsi, %r9
addq $-0x8, 0x8(%rdi,%r9)
incl %esi
jmp 0x24c6
incl %r8d
movq 0x8(%rdi), %rsi
jmp 0x24b2
movq %rcx, %rax
subq %rdi, %rax
cqto
idivq %r12
movl 0x4(%rsp), %ebp
movl %ebp, %ebp
cmpq %rbp, %rax
jae 0x255c
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
leaq 0x3(%rsp), %r13
subq %rdi, %rcx
movl %r12d, %esi
movq %rcx, %rax
cqto
pushq $-0x18
popq %rcx
idivq %rcx
addq %rbp, %rax
cmpq %rsi, %rax
jbe 0x249e
andq $0x0, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8(%rsp), %rdx
movq %r13, %rcx
callq 0x3dce
movq %rbx, %rdi
movq %r15, %rsi
callq 0x465a
movq %r15, %rdi
callq 0x426e
incl %r12d
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
jmp 0x2507
jbe 0x249e
xorl %r14d, %r14d
subq %rdi, %rcx
movl %r14d, %esi
movq %rcx, %rax
cqto
idivq %r12
subq %rbp, %rax
cmpq %rsi, %rax
jbe 0x249e
movq %rbx, %rdi
callq 0x3e24
incl %r14d
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
jmp 0x2565
jmp 0x259c
jmp 0x2597
movq %rax, %rbx
jmp 0x25a9
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x426e
movq %rbx, %rdi
callq 0x21f0
nop