// File: /workspace/github_cpp_makefile_star2_O1/salihbektas[P]Simple-CPU-emulator/CPUProgramDyn.cpp
// Function: CPUProgramDyn::operator+=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
const CPUProgramDyn CPUProgramDyn::operator+=(string instraction)
{
    if( instraction != ""){
        CPUProgramDyn temp;
        temp = *this;
        delete [] fileString;
        fileString = new string[numberOfLines+1];
        for(int i = 0; i < numberOfLines; ++i)
        {
            fileString[i] = temp.fileString[i];
        }
        fileString[numberOfLines] = instraction;
        ++numberOfLines;
        return *this;
    }

    else{
        cout << "Error: Empty string try to add object." << endl
             << "+= not proceed." << endl;

        CPUProgramDyn emptyObj;
        return emptyObj;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r13
leaq 0x1951(%rip), %rsi      # 0x92c5
movq %rdx, %rdi
callq 0x2070
testl %eax, %eax
je 0x7ad6
leaq -0x60(%rbp), %rdi
callq 0x6ef8
leaq -0x90(%rbp), %rdi
movq %r14, %rsi
callq 0x7024
leaq -0xc0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x76fa
leaq -0xc0(%rbp), %rdi
callq 0x7300
leaq -0x90(%rbp), %rdi
callq 0x7300
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x7a1e
movq %r15, -0x30(%rbp)
movq %r13, %r15
leaq -0x8(%rax), %r12
movq -0x8(%rax), %r13
testq %r13, %r13
je 0x7a0f
shlq $0x5, %r13
leaq (%rax,%r13), %rbx
addq $-0x10, %rbx
negq %r13
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x7a05
callq 0x2110
addq $-0x20, %rbx
addq $0x20, %r13
jne 0x79f7
movq %r12, %rdi
callq 0x2170
movq %r15, %r13
movq -0x30(%rbp), %r15
movl (%r14), %eax
leal 0x1(%rax), %ecx
movslq %ecx, %rbx
movq %rbx, %r12
shlq $0x5, %r12
leaq 0x8(%r12), %rcx
cmpl $-0x1, %eax
movq $-0x1, %rdi
cmovgeq %rcx, %rdi
callq 0x2030
movq %rbx, (%rax)
leaq 0x8(%rax), %rcx
testl %ebx, %ebx
je 0x7a6e
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r12
jne 0x7a55
movq %rcx, 0x8(%r14)
movl (%r14), %eax
testl %eax, %eax
jle 0x7aa7
movq %r13, %rbx
xorl %r12d, %r12d
xorl %r13d, %r13d
movq -0x58(%rbp), %rsi
addq %r12, %rsi
movq 0x8(%r14), %rdi
addq %r12, %rdi
callq 0x20a0
incq %r13
movslq (%r14), %rax
addq $0x20, %r12
cmpq %rax, %r13
jl 0x7a82
movq %rbx, %r13
movslq %eax, %rdi
shlq $0x5, %rdi
addq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x20a0
incl (%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x7024
leaq -0x60(%rbp), %rdi
callq 0x7300
jmp 0x7b5e
movq 0x44f3(%rip), %r14      # 0xbfd0
leaq 0x17a7(%rip), %rsi      # 0x928b
movl $0x26, %edx
movq %r14, %rdi
callq 0x2130
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20c0
movq %rax, %r14
leaq 0x1790(%rip), %rsi      # 0x92b2
movl $0xf, %edx
movq %rax, %rdi
callq 0x2130
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20c0
movq %r13, %rdi
callq 0x6ef8
movq %r13, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x7300
jmp 0x7b89
jmp 0x7b86
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x7300
movq %rbx, %rdi
callq 0x21c0