// File: /workspace/github_cpp_makefile_star2_O1/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, -0x30(%rbp)
movq %rdi, %rbx
leaq 0x18(%rcx), %r12
leaq 0x3055(%rip), %rsi      # 0x111f5
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
movq %rbx, -0x38(%rbp)
jne 0xe1cc
movq -0x30(%rbp), %rax
leaq 0x18(%rax), %rdi
leaq 0x3036(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xe46e
leaq 0x3022(%rip), %rsi      # 0x111f5
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
je 0xe1fb
movq -0x30(%rbp), %rax
leaq 0x18(%rax), %rdi
leaq 0x3007(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xe39d
leaq 0x2ff3(%rip), %rsi      # 0x111f5
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
je 0xe2a5
leaq 0x2fdc(%rip), %r13      # 0x111f5
movq %r12, %rdi
movq %r13, %rsi
callq 0x30e0
movq -0x30(%rbp), %r15
leaq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0x30e0
movl (%r14), %esi
movl 0x4(%r14), %edx
xorpd %xmm0, %xmm0
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xa1a2
movslq (%r14), %rax
testq %rax, %rax
jle 0xe551
movl 0x4(%r14), %ecx
movq 0x8(%r15), %rdx
movq 0x8(%r14), %rsi
movq -0x38(%rbp), %rdi
movq 0x8(%rdi), %rdi
xorl %r8d, %r8d
testl %ecx, %ecx
jle 0xe298
movq (%rdx,%r8,8), %r9
movq (%rsi,%r8,8), %r10
movq (%rdi,%r8,8), %r11
xorl %ebx, %ebx
movsd (%r9,%rbx,8), %xmm0
divsd (%r10,%rbx,8), %xmm0
movsd %xmm0, (%r11,%rbx,8)
incq %rbx
cmpq %rbx, %rcx
jne 0xe27e
incq %r8
cmpq %rax, %r8
jne 0xe26c
jmp 0xe551
movq -0x30(%rbp), %rax
leaq 0x18(%rax), %rdi
leaq 0x2f41(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xe212
leaq -0x48(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2f25(%rip), %rsi      # 0x111f5
leaq 0x2f25(%rip), %rdx      # 0x111fc
leaq -0x58(%rbp), %r12
movq %r12, %rdi
callq 0x9334
movl (%r14), %edx
movl 0x4(%r14), %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %rbx, %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x10518
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0xe315
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3300
cmpl $0x0, (%r14)
movq -0x30(%rbp), %rcx
jle 0xe551
xorl %r12d, %r12d
movq -0x38(%rbp), %r15
cmpl $0x0, 0x4(%r14)
jle 0xe38d
movl $0x1, %r13d
xorl %ebx, %ebx
movq 0x8(%rcx), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%r14), %rcx
movq (%rcx,%r12,8), %rcx
movsd (%rax,%rbx,8), %xmm0
movsd -0x8(%rcx,%r13,8), %xmm2
movsd (%rcx,%r13,8), %xmm3
xorpd %xmm1, %xmm1
callq 0x31f0
movq -0x30(%rbp), %rcx
movq 0x10(%r15), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, -0x8(%rax,%r13,8)
movsd %xmm1, (%rax,%r13,8)
incq %rbx
movslq 0x4(%r14), %rax
addq $0x2, %r13
cmpq %rax, %rbx
jl 0xe339
incq %r12
movslq (%r14), %rax
cmpq %rax, %r12
jl 0xe32a
jmp 0xe551
leaq -0x68(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2e49(%rip), %rsi      # 0x111f5
leaq 0x2e49(%rip), %rdx      # 0x111fc
leaq -0x78(%rbp), %r12
movq %r12, %rdi
callq 0x9334
movl (%r14), %edx
movl 0x4(%r14), %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %rbx, %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x10518
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0xe3f1
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3300
cmpl $0x0, (%r14)
movq -0x30(%rbp), %r9
jle 0xe551
xorl %eax, %eax
movq -0x38(%rbp), %r8
cmpl $0x0, 0x4(%r14)
jle 0xe45e
movl $0x1, %ecx
xorl %edx, %edx
movq 0x10(%r9), %rsi
movq (%rsi,%rax,8), %rsi
movq 0x8(%r14), %rdi
movq (%rdi,%rax,8), %rdi
movsd -0x8(%rsi,%rcx,8), %xmm0
movsd (%rsi,%rcx,8), %xmm1
movsd (%rdi,%rdx,8), %xmm2
divsd %xmm2, %xmm0
divsd %xmm2, %xmm1
movq 0x10(%r8), %rsi
movq (%rsi,%rax,8), %rsi
movsd %xmm0, -0x8(%rsi,%rcx,8)
movsd %xmm1, (%rsi,%rcx,8)
incq %rdx
movslq 0x4(%r14), %rsi
addq $0x2, %rcx
cmpq %rsi, %rdx
jl 0xe413
incq %rax
movslq (%r14), %rcx
cmpq %rcx, %rax
jl 0xe405
jmp 0xe551
leaq -0x88(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2d75(%rip), %rsi      # 0x111f5
leaq 0x2d75(%rip), %rdx      # 0x111fc
leaq -0x98(%rbp), %r12
movq %r12, %rdi
callq 0x9334
movl (%r14), %edx
movl 0x4(%r14), %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %rbx, %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x10518
movq -0x98(%rbp), %rdi
cmpq %r13, %rdi
je 0xe4ce
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3300
cmpl $0x0, (%r14)
movq -0x30(%rbp), %rcx
jle 0xe551
xorl %r12d, %r12d
movq -0x38(%rbp), %r15
cmpl $0x0, 0x4(%r14)
jle 0xe546
movl $0x8, %r13d
xorl %ebx, %ebx
movq 0x10(%rcx), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%r14), %rcx
movq (%rcx,%r12,8), %rcx
movsd -0x8(%rax,%r13), %xmm0
movsd (%rax,%r13), %xmm1
movsd -0x8(%rcx,%r13), %xmm2
movsd (%rcx,%r13), %xmm3
callq 0x31f0
movq -0x30(%rbp), %rcx
movq 0x10(%r15), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, -0x8(%rax,%r13)
movsd %xmm1, (%rax,%r13)
incq %rbx
movslq 0x4(%r14), %rax
addq $0x10, %r13
cmpq %rax, %rbx
jl 0xe4ee
incq %r12
movslq (%r14), %rax
cmpq %rax, %r12
jl 0xe4df
movq -0x38(%rbp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0xe580
movq %rax, %rbx
movq -0x58(%rbp), %rdi
jmp 0xe580
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0xe591
movq (%r13), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
callq 0x3520