// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
leaq 0x19fd(%rip), %rsi      # 0x92c5
movq %rdx, %rdi
callq 0x2070
testl %eax, %eax
je 0x79fb
movq %rbx, -0x30(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x6e28
leaq -0x90(%rbp), %rdi
movq %r14, %rsi
callq 0x6f54
leaq -0xc0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x7636
leaq -0xc0(%rbp), %rdi
callq 0x7232
leaq -0x90(%rbp), %rdi
callq 0x7232
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x7968
leaq -0x8(%rax), %r12
movq -0x8(%rax), %r13
testq %r13, %r13
je 0x7960
shlq $0x5, %r13
leaq (%rax,%r13), %rbx
addq $-0x10, %rbx
negq %r13
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x7956
callq 0x2110
addq $-0x20, %rbx
addq $0x20, %r13
jne 0x7948
movq %r12, %rdi
callq 0x2170
movslq (%r14), %r12
leal 0x1(%r12), %eax
movslq %eax, %rbx
movq %rbx, %r13
shlq $0x5, %r13
leaq 0x8(%r13), %rax
cmpq $-0x1, %r12
movq $-0x1, %rdi
cmovgeq %rax, %rdi
callq 0x2030
movq %rbx, (%rax)
leaq 0x8(%rax), %rcx
testl %ebx, %ebx
je 0x7a88
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r13
jne 0x79a5
movq %rcx, 0x8(%r14)
testl %r12d, %r12d
jle 0x7a8c
xorl %r13d, %r13d
xorl %ebx, %ebx
movq -0x58(%rbp), %rsi
addq %r13, %rsi
movq 0x8(%r14), %rdi
addq %r13, %rdi
callq 0x20a0
incq %rbx
movslq (%r14), %r12
addq $0x20, %r13
cmpq %r12, %rbx
jl 0x79d0
movq 0x8(%r14), %rcx
jmp 0x7a8c
movq 0x45ce(%rip), %r14      # 0xbfd0
leaq 0x1882(%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 0x186b(%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 %rbx, %rdi
callq 0x6e28
movq %rbx, %rax
jmp 0x7aba
movq %rcx, 0x8(%r14)
shlq $0x5, %r12
addq %rcx, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x20a0
incl (%r14)
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x6f54
leaq -0x60(%rbp), %rdi
callq 0x7232
movq -0x30(%rbp), %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 0x7232
jmp 0x7ae2
jmp 0x7adf
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x7232
movq %rbx, %rdi
callq 0x21c0
nop