// File: hitc8494[P]Matrix/matrix.cpp
// Function: Matrix::backSubstitution(Matrix&)
void Matrix::backSubstitution(Matrix& b){
  for( uint i = rows()-1; i > -1; i-- ){
    for( uint j = 0; j < rows(); j++ ){
      if( j != i ){
	addToRow( Matrix( _data[i] ) * _data[j][i], j );
	b.addToRow( Matrix( b._data[i] ) * b._data[j][i], j );
      }
    }    
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x6590
subl $0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $-0x1, -0x14(%rbp)
jbe 0x57e0
movl $0x0, -0x18(%rbp)
movq -0x1e0(%rbp), %rdi
movl -0x18(%rbp), %eax
movl %eax, -0x1e4(%rbp)
callq 0x6590
movl %eax, %ecx
movl -0x1e4(%rbp), %eax
cmpl %ecx, %eax
jae 0x57d0
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
je 0x57c0
movq -0x1e0(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rsi
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x64a0
movq -0x1f0(%rbp), %rsi
leaq -0xd8(%rbp), %rdi
callq 0x2aa0
jmp 0x55b7
movq -0x1e0(%rbp), %rdi
movl -0x18(%rbp), %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0x6360
movq %rax, %rdx
leaq -0x98(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x32a0
jmp 0x55ed
movq -0x1e0(%rbp), %rsi
movl -0x18(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x32e0
jmp 0x5609
leaq -0x58(%rbp), %rdi
callq 0x2c30
leaq -0x98(%rbp), %rdi
callq 0x2c30
leaq -0xd8(%rbp), %rdi
callq 0x2c30
leaq -0xf0(%rbp), %rdi
callq 0x61e0
movq -0x10(%rbp), %rdi
movq %rdi, -0x200(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rsi
leaq -0x1d8(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x64a0
movq -0x1f8(%rbp), %rsi
leaq -0x1c0(%rbp), %rdi
callq 0x2aa0
jmp 0x5676
movq -0x10(%rbp), %rdi
movl -0x18(%rbp), %eax
movl %eax, %esi
callq 0x5ba0
movq %rax, %rdi
movl -0x14(%rbp), %eax
movl %eax, %esi
callq 0x6360
movq %rax, %rdx
leaq -0x180(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x32a0
jmp 0x56a9
movq -0x200(%rbp), %rsi
movl -0x18(%rbp), %ecx
leaq -0x140(%rbp), %rdi
leaq -0x180(%rbp), %rdx
callq 0x32e0
jmp 0x56c8
leaq -0x140(%rbp), %rdi
callq 0x2c30
leaq -0x180(%rbp), %rdi
callq 0x2c30
leaq -0x1c0(%rbp), %rdi
callq 0x2c30
leaq -0x1d8(%rbp), %rdi
callq 0x61e0
jmp 0x57c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x574f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x5743
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x2c30
leaq -0xd8(%rbp), %rdi
callq 0x2c30
leaq -0xf0(%rbp), %rdi
callq 0x61e0
jmp 0x57e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x57b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x57a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x2c30
leaq -0x1c0(%rbp), %rdi
callq 0x2c30
leaq -0x1d8(%rbp), %rdi
callq 0x61e0
jmp 0x57e9
jmp 0x57c2
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x554a
jmp 0x57d2
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5539
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
movq -0xf8(%rbp), %rdi
callq 0x22a0
nopw %cs:(%rax,%rax)