// File: /workspace/github_cpp_makefile_star2_O2/bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::complex_parser(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
complex<double> Matrix::complex_parser(const string cs){
			string x=cs;double R=0,I=0;
			 if(cs.find('+')!=-1){
				R=atof((x.substr(0,x.find('+')+1)).c_str());
				x=x.substr(x.find('+'));
			}
			else if(x.find('-')!=-1){
				R=atof((x.substr(0,x.find('-')+1)).c_str());
				x=x.substr(x.find('-'));
			}
			if(x.find('i')!=-1){
				if(x.find('i')==1){
					if(x[0]=='+')
					I=1;
					else if(x[0]=='-')
                    I=-1;
					else
					{
						x = x.substr(0, 1);
						I = atof(x.c_str());
					}
				}
                else if(x.find('i')==0)I=1;
				else {
				x=x.substr(0,x.length()-1);
				I=atof(x.c_str());
				}
			}
            else if(x.find('I')!=-1){
				if(x.find('I')==1){
					if(x[0]=='+')
					I=1;
					else if(x[0]=='-')
                    I=-1;
					else
					{
						x = x.substr(0, 1);
						I = atof(x.c_str());
					}
				}
				else if(x.find('I')==0)I=1;
				else {
				x=x.substr(0,x.length()-1);
				I=atof(x.c_str());
				}
			}
			else R=atof(cs.c_str());
			complex<double> c(R,I);
			return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x3410
pushq $0x2b
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x33e0
cmpq $-0x1, %rax
je 0x9578
leaq -0x38(%rbp), %r14
pushq $0x2b
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x33e0
leaq 0x1(%rax), %rcx
leaq -0x60(%rbp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3360
leaq -0x60(%rbp), %r14
movq (%r14), %rdi
callq 0x3390
movsd %xmm0, -0x40(%rbp)
movq %r14, %rdi
callq 0x3170
leaq -0x38(%rbp), %r14
pushq $0x2b
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x33e0
leaq -0x60(%rbp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %rax, %rdx
callq 0x3360
jmp 0x95ef
leaq -0x38(%rbp), %rdi
pushq $0x2d
popq %rsi
xorl %edx, %edx
callq 0x33e0
cmpq $-0x1, %rax
je 0x96d0
leaq -0x38(%rbp), %r14
pushq $0x2d
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x33e0
leaq 0x1(%rax), %rcx
leaq -0x60(%rbp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3360
leaq -0x60(%rbp), %r14
movq (%r14), %rdi
callq 0x3390
movsd %xmm0, -0x40(%rbp)
movq %r14, %rdi
callq 0x3170
leaq -0x38(%rbp), %r14
pushq $0x2d
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x33e0
leaq -0x60(%rbp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %rax, %rdx
callq 0x3360
leaq -0x38(%rbp), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rsi
callq 0x3380
movq %r14, %rdi
callq 0x3170
leaq -0x38(%rbp), %rdi
pushq $0x69
popq %rsi
xorl %edx, %edx
callq 0x33e0
leaq -0x38(%rbp), %rdi
cmpq $-0x1, %rax
je 0x965b
pushq $0x69
popq %rsi
xorl %edx, %edx
callq 0x33e0
cmpq $0x1, %rax
jne 0x96a5
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2b, %eax
je 0x971a
cmpl $0x2d, %eax
je 0x9698
leaq -0x60(%rbp), %rdi
leaq -0x38(%rbp), %rsi
pushq $0x1
popq %rcx
xorl %edx, %edx
callq 0x3360
jmp 0x9736
pushq $0x49
popq %rsi
xorl %edx, %edx
callq 0x33e0
cmpq $-0x1, %rax
je 0x96dd
leaq -0x38(%rbp), %rdi
pushq $0x49
popq %rsi
xorl %edx, %edx
callq 0x33e0
cmpq $0x1, %rax
jne 0x96ef
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2b, %eax
je 0x971a
cmpl $0x2d, %eax
jne 0x9724
movsd 0x5ac0(%rip), %xmm0     # 0xf160
jmp 0x9759
leaq -0x38(%rbp), %rdi
pushq $0x69
popq %rsi
xorl %edx, %edx
callq 0x33e0
testq %rax, %rax
je 0x971a
leaq -0x38(%rbp), %rsi
movq 0x8(%rsi), %rcx
decq %rcx
leaq -0x60(%rbp), %rdi
xorl %edx, %edx
callq 0x3360
jmp 0x9736
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rbp)
jmp 0x9607
movq (%rbx), %rdi
callq 0x3390
movsd %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
jmp 0x9759
leaq -0x38(%rbp), %rdi
pushq $0x49
popq %rsi
xorl %edx, %edx
callq 0x33e0
testq %rax, %rax
je 0x971a
leaq -0x38(%rbp), %rsi
movq 0x8(%rsi), %rcx
decq %rcx
leaq -0x60(%rbp), %rdi
xorl %edx, %edx
callq 0x3360
jmp 0x9736
movsd 0x5a36(%rip), %xmm0     # 0xf158
jmp 0x9759
leaq -0x60(%rbp), %rdi
leaq -0x38(%rbp), %rsi
pushq $0x1
popq %rcx
xorl %edx, %edx
callq 0x3360
leaq -0x38(%rbp), %rbx
leaq -0x60(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3380
movq %r14, %rdi
callq 0x3170
movq (%rbx), %rdi
callq 0x3390
movsd %xmm0, -0x18(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3170
movsd -0x40(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x9788
jmp 0x9788
jmp 0x9788
jmp 0x9788
jmp 0x9788
jmp 0x9788
jmp 0x9788
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x3520