// File: /workspace/github_cpp_makefile_star2_O3/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 %rdx, %rbx
movq %rdi, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
leaq 0x18(%rcx), %r12
leaq 0x2f32(%rip), %rsi      # 0x111f5
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
movq %rbx, -0x40(%rbp)
jne 0xe2eb
leaq 0x18(%rbx), %rdi
leaq 0x2f17(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xe59c
leaq 0x2f03(%rip), %rsi      # 0x111f5
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
je 0xe316
leaq 0x18(%rbx), %rdi
leaq 0x2eec(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xe4bf
leaq 0x2ed8(%rip), %rsi      # 0x111f5
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
je 0xe3c2
leaq 0x2ec1(%rip), %r13      # 0x111f5
movq %r12, %rdi
movq %r13, %rsi
callq 0x30e0
leaq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0x30e0
movq -0x38(%rbp), %rbx
movl (%rbx), %esi
movl 0x4(%rbx), %edx
xorpd %xmm0, %xmm0
movq -0x30(%rbp), %rdi
xorl %ecx, %ecx
callq 0xa262
movslq (%rbx), %rax
testq %rax, %rax
jle 0xe688
movl 0x4(%rbx), %ecx
movq -0x40(%rbp), %rdx
movq 0x8(%rdx), %rdx
movq 0x8(%rbx), %rsi
movq -0x30(%rbp), %rdi
movq 0x8(%rdi), %rdi
xorl %r8d, %r8d
testl %ecx, %ecx
jle 0xe3b5
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 0xe39b
incq %r8
cmpq %rax, %r8
jne 0xe389
jmp 0xe688
leaq 0x18(%rbx), %rdi
leaq 0x2e28(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xe32d
leaq -0x50(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2e0c(%rip), %rsi      # 0x111f5
leaq 0x2e0c(%rip), %rdx      # 0x111fc
leaq -0x60(%rbp), %r12
movq %r12, %rdi
callq 0x93ea
movq -0x38(%rbp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq -0x30(%rbp), %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x106da
movq -0x60(%rbp), %rdi
cmpq %r13, %rdi
je 0xe431
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3300
movq -0x38(%rbp), %rsi
movl (%rsi), %ecx
testl %ecx, %ecx
jle 0xe688
movl 0x4(%rsi), %eax
xorl %r12d, %r12d
movq -0x30(%rbp), %r15
movq -0x40(%rbp), %r14
testl %eax, %eax
jle 0xe4af
movl $0x1, %r13d
xorl %ebx, %ebx
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%rsi), %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 -0x38(%rbp), %rsi
movq 0x10(%r15), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, -0x8(%rax,%r13,8)
movsd %xmm1, (%rax,%r13,8)
incq %rbx
movslq 0x4(%rsi), %rax
addq $0x2, %r13
cmpq %rax, %rbx
jl 0xe459
movl (%rsi), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0xe44d
jmp 0xe688
leaq -0x70(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2d27(%rip), %rsi      # 0x111f5
leaq 0x2d27(%rip), %rdx      # 0x111fc
leaq -0x80(%rbp), %r12
movq %r12, %rdi
callq 0x93ea
movq -0x38(%rbp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq -0x30(%rbp), %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x106da
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0xe516
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3300
movq -0x38(%rbp), %r10
movl (%r10), %edx
testl %edx, %edx
jle 0xe688
movl 0x4(%r10), %ecx
xorl %eax, %eax
movq -0x30(%rbp), %r8
movq -0x40(%rbp), %r9
testl %ecx, %ecx
jle 0xe58c
movl $0x1, %edx
xorl %esi, %esi
movq 0x10(%r9), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x8(%r10), %rdi
movq (%rdi,%rax,8), %rdi
movsd -0x8(%rcx,%rdx,8), %xmm0
movsd (%rcx,%rdx,8), %xmm1
movsd (%rdi,%rsi,8), %xmm2
divsd %xmm2, %xmm0
divsd %xmm2, %xmm1
movq 0x10(%r8), %rcx
movq (%rcx,%rax,8), %rcx
movsd %xmm0, -0x8(%rcx,%rdx,8)
movsd %xmm1, (%rcx,%rdx,8)
incq %rsi
movslq 0x4(%r10), %rcx
addq $0x2, %rdx
cmpq %rcx, %rsi
jl 0xe53e
movl (%r10), %edx
incq %rax
movslq %edx, %rsi
cmpq %rsi, %rax
jl 0xe533
jmp 0xe688
leaq -0x90(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2c47(%rip), %rsi      # 0x111f5
leaq 0x2c47(%rip), %rdx      # 0x111fc
leaq -0xa0(%rbp), %r12
movq %r12, %rdi
callq 0x93ea
movq -0x38(%rbp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq -0x30(%rbp), %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x106da
movq -0xa0(%rbp), %rdi
cmpq %r13, %rdi
je 0xe5ff
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x3300
movq -0x38(%rbp), %rsi
movl (%rsi), %ecx
testl %ecx, %ecx
jle 0xe688
movl 0x4(%rsi), %eax
xorl %r12d, %r12d
movq -0x30(%rbp), %r15
movq -0x40(%rbp), %r14
testl %eax, %eax
jle 0xe67d
movl $0x8, %r13d
xorl %ebx, %ebx
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rax
movq 0x10(%rsi), %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 -0x38(%rbp), %rsi
movq 0x10(%r15), %rax
movq (%rax,%r12,8), %rax
movsd %xmm0, -0x8(%rax,%r13)
movsd %xmm1, (%rax,%r13)
incq %rbx
movslq 0x4(%rsi), %rax
addq $0x10, %r13
cmpq %rax, %rbx
jl 0xe623
movl (%rsi), %ecx
incq %r12
movslq %ecx, %rdx
cmpq %rdx, %r12
jl 0xe617
movq -0x30(%rbp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
jmp 0xe6b7
movq %rax, %rbx
movq -0x60(%rbp), %rdi
jmp 0xe6b7
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0xe6c8
movq (%r13), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
callq 0x3520