// File: /workspace/github_cpp_makefile_star2_O3/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), %rcx
movq %rcx, %rdi
subq %rsi, %rdi
movq %rcx, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movl %ebp, 0x18(%rbx)
movl %edx, 0x1c(%rbx)
movl %edx, %r14d
subq %rsi, %rax
je 0x252f
movq (%rsi), %rdx
movq 0x8(%rsi), %r9
subq %rdx, %r9
je 0x252f
sarq $0x3, %rdi
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r12, %rdi
leaq 0x8(%rsi), %r8
sarq $0x3, %r9
cmpq %r14, %r9
jae 0x2584
movl %ebp, 0x2c(%rsp)
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
movq %rcx, %rax
cmpq %rsi, %rax
je 0x24f5
movl $0x1, %ebp
xorl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq (%rsi,%rax,8), %rdi
movq $0x0, 0x10(%rsp)
movq 0x8(%rdi), %rax
cmpq 0x10(%rdi), %rax
je 0x24c4
movq $0x0, (%rax)
addq $0x8, %rax
movq %rax, 0x8(%rdi)
jmp 0x24d6
movq %rax, %rsi
movq %r15, %rdx
callq 0x4a32
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl %ebp, %eax
movq %rcx, %rdx
subq %rsi, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
incl %ebp
cmpq %rax, %rdx
ja 0x2498
movq (%rsi), %rdx
movq %rcx, %rax
jmp 0x24f8
movq %rsi, %rax
incl %r13d
movq 0x8(%rsi), %rdi
subq %rdx, %rdi
sarq $0x3, %rdi
movq %r14, %r8
subq %rdi, %r8
cmpq %r13, %r8
ja 0x248c
movq %rcx, %rax
subq %rsi, %rax
movq %rax, %rdi
sarq $0x3, %rdi
imulq %r12, %rdi
movl 0x2c(%rsp), %ebp
jmp 0x25ba
movq %rbx, %rdi
callq 0x47ba
leaq 0x30(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movq %r14, %rsi
callq 0x43e0
movl %ebp, %esi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4804
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x26a2
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
jmp 0x26a2
jbe 0x25ba
xorl %r9d, %r9d
movl $0x1, %r10d
movq %r8, %r11
addq $-0x8, (%r11)
movl %r10d, %r15d
addq $0x18, %r11
incl %r10d
cmpq %r15, %rdi
ja 0x2592
movq (%r8), %r10
incl %r9d
subq %rdx, %r10
sarq $0x3, %r10
subq %r14, %r10
cmpq %r9, %r10
ja 0x2589
movl %ebp, %ebp
cmpq %rbp, %rdi
jae 0x2657
sarq $0x3, %rax
movabsq $0x5555555555555555, %rcx # imm = 0x5555555555555555
imulq %rcx, %rax
addq %rbp, %rax
je 0x26a2
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 0x43e0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4b56
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x262e
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 0x25f0
jmp 0x26a2
jbe 0x26a2
movl $0x1, %r14d
leaq -0x18(%rcx), %rax
movq %rax, 0x8(%rbx)
movq -0x18(%rcx), %rdi
testq %rdi, %rdi
je 0x2683
movq -0x8(%rcx), %rsi
subq %rdi, %rsi
callq 0x2140
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
movl %r14d, %edx
movq %rax, %rdi
subq %rsi, %rdi
sarq $0x3, %rdi
imulq %r12, %rdi
subq %rbp, %rdi
incl %r14d
movq %rax, %rcx
cmpq %rdx, %rdi
ja 0x265f
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26ba
jmp 0x26b5
movq %rax, %rbx
jmp 0x26d4
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x26d4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0