// File: bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::floor(Matrix&)
Matrix Matrix::floor(Matrix&s)
{if(s.type=="complex")
    {
Matrix m("complex",s.nRows,s.nColumns);
    for (int iR = 0;iR<m.nRows;iR++)
    {
		for (int iC = 0;iC<m.nColumns;iC++)
		{
	complex<double> x(std::floor(s.cvalues[iR][iC].real()),std::floor(s.cvalues[iR][iC].imag()));
            m.cvalues[iR][iC]=x;

		}
    }
    return m;
    }
    else
    {
    Matrix m(s.nRows,s.nColumns);
    for (int iR = 0;iR<m.nRows;iR++)
    {
		for (int iC = 0;iC<m.nColumns;iC++)
		{
            m.values[iR][iC]=std::floor(s.values[iR][iC]);
		}
    }
    return m;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x98(%rbp)
movq %rdi, %rax
movq %rax, -0x90(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
leaq 0x2742(%rip), %rsi      # 0x1b405
callq 0xafa0
testb $0x1, %al
jne 0x18cd1
jmp 0x18ed4
movb $0x0, -0x11(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x3640
movq -0xa0(%rbp), %rdx
leaq 0x2712(%rip), %rsi      # 0x1b405
leaq -0x38(%rbp), %rdi
callq 0xab40
jmp 0x18cfe
movq -0x10(%rbp), %rax
movl (%rax), %ecx
movl %ecx, -0xa8(%rbp)
movl 0x4(%rax), %eax
movl %eax, -0xa4(%rbp)
leaq -0x60(%rbp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x19810
jmp 0x18d24
movl -0xa4(%rbp), %ecx
movl -0xa8(%rbp), %edx
movq -0x98(%rbp), %rdi
movsd -0x60(%rbp), %xmm0
movsd -0x58(%rbp), %xmm1
leaq -0x38(%rbp), %rsi
xorl %r8d, %r8d
callq 0x19470
jmp 0x18d4f
leaq -0x38(%rbp), %rdi
callq 0x3270
leaq -0x39(%rbp), %rdi
callq 0x3410
movl $0x0, -0x64(%rbp)
movq -0x98(%rbp), %rcx
movl -0x64(%rbp), %eax
cmpl (%rcx), %eax
jge 0x18eb9
movl $0x0, -0x68(%rbp)
movq -0x98(%rbp), %rcx
movl -0x68(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0x18ea9
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x68(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x19890
movsd %xmm0, -0xb0(%rbp)
jmp 0x18dbe
movsd -0xb0(%rbp), %xmm0
callq 0x35e0
movsd %xmm0, -0xc0(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x68(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x19870
movsd %xmm0, -0xb8(%rbp)
jmp 0x18dfd
movsd -0xb8(%rbp), %xmm0
callq 0x35e0
movaps %xmm0, %xmm1
movsd -0xc0(%rbp), %xmm0
leaq -0x78(%rbp), %rdi
callq 0x19810
jmp 0x18e20
movq -0x98(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x68(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x78(%rbp), %rcx
movq %rcx, (%rax)
movq -0x70(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x18d81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x18e7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3270
leaq -0x39(%rbp), %rdi
callq 0x3410
jmp 0x18fb0
movq -0x98(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
callq 0xe650
jmp 0x18fb0
jmp 0x18eab
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x18d68
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x18ecf
movq -0x98(%rbp), %rdi
callq 0xe650
jmp 0x18fa0
movq -0x98(%rbp), %rdi
movb $0x0, -0x79(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %esi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edx
xorl %ecx, %ecx
xorps %xmm0, %xmm0
callq 0xe7c0
movl $0x0, -0x80(%rbp)
movq -0x98(%rbp), %rcx
movl -0x80(%rbp), %eax
cmpl (%rcx), %eax
jge 0x18f88
movl $0x0, -0x84(%rbp)
movq -0x98(%rbp), %rcx
movl -0x84(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0x18f78
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x80(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x84(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x35e0
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x80(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x84(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18f15
jmp 0x18f7a
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x18efd
movb $0x1, -0x79(%rbp)
testb $0x1, -0x79(%rbp)
jne 0x18f9e
movq -0x98(%rbp), %rdi
callq 0xe650
jmp 0x18fa0
movq -0x90(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x3630
nopl (%rax)