// File: /workspace/github_cpp_makefile_star2_O1/IlanPrice[P]Linear-Algebra-Library-in-Cplusplus/Matrix.cpp
// Function: Matrix::setElements(int, int, int, int, Matrix)
void Matrix:: setElements(int istart, int iend, int jstart, int jend, Matrix A)
{
	if (istart < 1 || jstart < 1 || iend < 1 || jend < 1)
	    {
	      throw Exception("out of range",
			  "accessing vector through () - index too small");
	    }
	  else if (iend > mRows || jend > mColumns || istart > mRows || jstart > mColumns)
	    {
	      throw Exception("length mismatch",
			  "accessing vector through () - index too high");
	    }

	int sRows = iend - istart + 1; int sColumns = jend - jstart + 1;
	Matrix slice(sRows, sColumns);
	for (int i = 0; i<sRows; i++)
	{
		for (int j = 0; j<sColumns; j++)
		{
			mElements[istart -1 + i][jstart -1 + j] = A.mElements[i][j];
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
testl %r8d, %r8d
jle 0x48e6
movl %edx, %ebp
testl %edx, %edx
jle 0x48e6
movl %esi, %r15d
testl %esi, %esi
jle 0x48e6
testl %ecx, %ecx
jle 0x48e6
movl 0x8(%rdi), %eax
cmpl %ebp, %eax
jl 0x4864
movl 0xc(%rdi), %edx
cmpl %ecx, %edx
jl 0x4864
cmpl %r15d, %eax
jl 0x4864
movl %r8d, %r14d
cmpl %r8d, %edx
jl 0x4864
movq %r9, %rbx
movq %rdi, 0x10(%rsp)
subl %r15d, %ebp
leal 0x1(%rbp), %r12d
subl %ecx, %r14d
leal 0x1(%r14), %r13d
leaq 0x18(%rsp), %rdi
movl %r12d, %esi
movl %r13d, %edx
movl %ecx, 0xc(%rsp)
callq 0x3df8
testl %ebp, %ebp
js 0x4848
movq 0x10(%rsp), %rax
movq (%rax), %rax
movl %r15d, %ecx
leaq (%rax,%rcx,8), %rax
addq $-0x8, %rax
movl 0xc(%rsp), %ecx
xorl %edx, %edx
testl %r14d, %r14d
js 0x4840
movq (%rbx), %rsi
movq (%rsi,%rdx,8), %rsi
movq (%rax,%rdx,8), %rdi
leaq (%rdi,%rcx,8), %rdi
addq $-0x8, %rdi
xorl %r8d, %r8d
movsd (%rsi,%r8,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
incq %r8
cmpq %r8, %r13
jne 0x482c
incq %rdx
cmpq %r12, %rdx
jne 0x4811
leaq 0x18(%rsp), %rdi
callq 0x4016
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x40, %edi
callq 0x2070
movq %rax, %rbx
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x78b3(%rip), %rsi      # 0xc134
leaq 0x78bb(%rip), %rdx      # 0xc143
leaq 0x48(%rsp), %rdi
callq 0x3c6e
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7975(%rip), %rsi      # 0xc218
leaq 0x799a(%rip), %rdx      # 0xc244
leaq 0x28(%rsp), %rdi
callq 0x3c6e
movb $0x1, %bpl
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x3d00
xorl %ebp, %ebp
leaq 0xb4c6(%rip), %rsi      # 0xfd98
leaq -0xc95(%rip), %rdx      # 0x3c44
movq %rbx, %rdi
callq 0x2190
jmp 0x496c
movl $0x40, %edi
callq 0x2070
movq %rax, %rbx
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x78d7(%rip), %rsi      # 0xc1dd
leaq 0x78dc(%rip), %rdx      # 0xc1e9
leaq 0x88(%rsp), %rdi
callq 0x3c6e
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x78bf(%rip), %rsi      # 0xc1ea
leaq 0x78e5(%rip), %rdx      # 0xc217
leaq 0x68(%rsp), %rdi
callq 0x3c6e
movb $0x1, %bpl
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
movq %rbx, %rdi
callq 0x3d00
xorl %ebp, %ebp
leaq 0xb43b(%rip), %rsi      # 0xfd98
leaq -0xd20(%rip), %rdx      # 0x3c44
movq %rbx, %rdi
callq 0x2190
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x4986
callq 0x2110
jmp 0x4986
movq %rax, %r14
movb $0x1, %bpl
movq 0x88(%rsp), %rdi
jmp 0x49af
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x49aa
callq 0x2110
jmp 0x49aa
movq %rax, %r14
movb $0x1, %bpl
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x49c3
callq 0x2110
jmp 0x49c3
jmp 0x49bd
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x49d0
movq %rbx, %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x21c0