// File: /workspace/github_cpp_makefile_star2_O2/bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::rdivide(Matrix const&, Matrix const&)
Matrix Matrix::rdivide(const Matrix&s, const Matrix& m)
{
	if(m.type=="complex"&&s.type=="complex")
	{
		Matrix result("complex",m.nRows,m.nColumns);
    for (int i=0; i<m.nRows; i++)
    {
        for (int j=0; j<m.nColumns; j++)
            result.cvalues[i][j] = ( s.cvalues[i][j] / m.cvalues[i][j] );
		}
		return result;
	}
	else if(m.type!="complex"&&s.type=="complex")
	{
		Matrix result("complex",m.nRows,m.nColumns);
		for (int i=0; i<m.nRows; i++)
		{
				for (int j=0; j<m.nColumns; j++)
						result.cvalues[i][j] = ( s.cvalues[i][j] / m.values[i][j] );
		}
		return result;
	 }
	 else if(m.type=="complex"&&s.type!="complex")
	{
		Matrix result("complex",m.nRows,m.nColumns);
		for (int i=0; i<m.nRows; i++)
		{
				for (int j=0; j<m.nColumns; j++)
						result.cvalues[i][j] = ( s.values[i][j] / m.cvalues[i][j] );
		}
		return result;
	 }
	 else if(m.type!="complex"&&s.type!="complex")
	{
		Matrix result(m.nRows,m.nColumns);
		for (int i=0; i<m.nRows; i++)
		{
				for (int j=0; j<m.nColumns; j++)
						result.values[i][j] = ( s.values[i][j] / m.values[i][j] );
		}
		return result;
	 }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r14
movq %rdx, -0x38(%rbp)
movq %rdi, %r13
leaq 0x18(%rcx), %r12
leaq 0x2ddd(%rip), %rsi      # 0xf1f5
movq %r12, %rdi
callq 0x795a
testb %al, %al
je 0xc4e5
movq -0x38(%rbp), %rax
leaq 0x18(%rax), %rdi
leaq 0x2dbe(%rip), %rsi      # 0xf1f5
callq 0x795a
testb %al, %al
je 0xc4e5
leaq 0x2daa(%rip), %rsi      # 0xf1f5
leaq -0xa0(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x7844
movl (%r14), %edx
movl 0x4(%r14), %ecx
leaq -0xa0(%rbp), %rsi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r13, %rdi
xorl %r8d, %r8d
callq 0xe29a
leaq -0xa0(%rbp), %rdi
callq 0x3170
xorl %r12d, %r12d
movslq (%r14), %rax
cmpq %rax, %r12
jge 0xc734
xorl %ebx, %ebx
xorl %r15d, %r15d
movslq 0x4(%r14), %rax
cmpq %rax, %r15
jge 0xc4e0
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax,%r12,8), %rdi
addq %rbx, %rdi
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rsi
addq %rbx, %rsi
callq 0xe5dd
movq 0x10(%r13), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, (%rax,%rbx)
movsd %xmm1, 0x8(%rax,%rbx)
incq %r15
addq $0x10, %rbx
jmp 0xc49c
incq %r12
jmp 0xc48b
leaq 0x2d09(%rip), %rsi      # 0xf1f5
movq %r12, %rdi
callq 0x78c0
testb %al, %al
je 0xc5c0
movq -0x38(%rbp), %rax
leaq 0x18(%rax), %rdi
leaq 0x2cea(%rip), %rsi      # 0xf1f5
callq 0x795a
testb %al, %al
je 0xc5c0
leaq 0x2cd6(%rip), %rsi      # 0xf1f5
leaq -0x80(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x7844
movl (%r14), %edx
movl 0x4(%r14), %ecx
leaq -0x80(%rbp), %rsi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r13, %rdi
xorl %r8d, %r8d
callq 0xe29a
leaq -0x80(%rbp), %rdi
callq 0x3170
xorl %eax, %eax
pushq $0x1
popq %rcx
movslq (%r14), %rdx
cmpq %rdx, %rax
jge 0xc734
movq %rcx, %rdx
xorl %esi, %esi
movslq 0x4(%r14), %rdi
cmpq %rdi, %rsi
jge 0xc5bb
movq -0x38(%rbp), %rdi
movq 0x10(%rdi), %rdi
movq (%rdi,%rax,8), %rdi
movq 0x8(%r14), %r8
movq (%r8,%rax,8), %r8
movsd -0x8(%rdi,%rdx,8), %xmm0
movsd (%rdi,%rdx,8), %xmm1
movsd (%r8,%rsi,8), %xmm2
divsd %xmm2, %xmm0
divsd %xmm2, %xmm1
movq 0x10(%r13), %rdi
movq (%rdi,%rax,8), %rdi
movsd %xmm0, -0x8(%rdi,%rdx,8)
movsd %xmm1, (%rdi,%rdx,8)
incq %rsi
addq $0x2, %rdx
jmp 0xc569
incq %rax
jmp 0xc558
leaq 0x2c2e(%rip), %rsi      # 0xf1f5
movq %r12, %rdi
callq 0x795a
testb %al, %al
movq %r13, -0x40(%rbp)
je 0xc69e
movq -0x38(%rbp), %rax
leaq 0x18(%rax), %rdi
leaq 0x2c0b(%rip), %rsi      # 0xf1f5
callq 0x78c0
testb %al, %al
je 0xc69e
leaq 0x2bf7(%rip), %rsi      # 0xf1f5
leaq -0x60(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x7844
movl (%r14), %edx
movl 0x4(%r14), %ecx
leaq -0x60(%rbp), %rsi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r13, %rdi
xorl %r8d, %r8d
callq 0xe29a
leaq -0x60(%rbp), %rdi
callq 0x3170
xorl %r12d, %r12d
movslq (%r14), %rax
cmpq %rax, %r12
jge 0xc734
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r15d, %r15d
movslq 0x4(%r14), %rax
cmpq %rax, %r15
jge 0xc695
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rsi
addq %rbx, %rsi
callq 0xe5ab
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, (%rax,%rbx)
movsd %xmm1, 0x8(%rax,%rbx)
incq %r15
addq $0x10, %rbx
addq $0x8, %r13
jmp 0xc649
incq %r12
movq -0x40(%rbp), %r13
jmp 0xc635
leaq 0x2b50(%rip), %r13      # 0xf1f5
movq %r12, %rdi
movq %r13, %rsi
callq 0x78c0
movq -0x38(%rbp), %rax
leaq 0x18(%rax), %rdi
movq %r13, %rsi
movq -0x40(%rbp), %r13
callq 0x78c0
movl (%r14), %esi
movl 0x4(%r14), %edx
xorl %r12d, %r12d
xorpd %xmm0, %xmm0
movq %r13, %rdi
xorl %ecx, %ecx
callq 0x8ace
movl 0x4(%r14), %eax
testl %eax, %eax
cmovlel %r12d, %eax
movl (%r14), %ecx
testl %ecx, %ecx
cmovlel %r12d, %ecx
cmpq %rcx, %r12
je 0xc734
movq -0x38(%rbp), %rdx
movq 0x8(%rdx), %rdx
movq 0x8(%r14), %rsi
movq 0x8(%r13), %rdi
xorl %r8d, %r8d
cmpq %r8, %rax
je 0xc72f
movq (%rdx,%r12,8), %r9
movsd (%r9,%r8,8), %xmm0
movq (%rsi,%r12,8), %r9
divsd (%r9,%r8,8), %xmm0
movq (%rdi,%r12,8), %r9
movsd %xmm0, (%r9,%r8,8)
incq %r8
jmp 0xc707
incq %r12
jmp 0xc6ef
movq %r13, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x60(%rbp), %rdi
jmp 0xc766
jmp 0xc76d
movq %rax, %r14
leaq -0x80(%rbp), %rdi
jmp 0xc766
jmp 0xc76d
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0x3170
jmp 0xc77e
movq %rax, %r14
jmp 0xc77e
movq %rax, %r14
movq -0x40(%rbp), %rdi
callq 0x8a24
movq %r14, %rdi
callq 0x3520