// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/InputReader.cpp
// Function: InputReader::parseStatesToString[abi:cxx11](int, char**, bool)
const string InputReader :: parseStatesToString(int argc, char** argv, bool isTxt) {
    string stringStates;
    if(isTxt){
        ifstream ifs(argv[argc-1]);
        stringStates.assign( (istreambuf_iterator<char>(ifs) ),
                (istreambuf_iterator<char>()    ) );
    }
    else{
        stringStates = "";
        for (int i = ALGORITHM_INDEX+1; i < argc-1; i++) {
            stringStates = stringStates + argv[i] + " ";
        }
        stringStates = stringStates + argv[argc-1];
    }    
    return stringStates;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rcx, %r14
movl %edx, %r15d
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
testl %r8d, %r8d
je 0x54c9
movslq %r15d, %rax
movq -0x8(%r14,%rax,8), %rsi
leaq 0x40(%rsp), %rdi
movl $0x8, %edx
callq 0x2340
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
movq 0x128(%rsp,%rax), %rcx
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq $0x0, 0x20(%rsp)
movl $0xffffffff, 0x28(%rsp) # imm = 0xFFFFFFFF
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x60aa
leaq 0x40(%rsp), %rdi
callq 0x2040
jmp 0x5615
movq %rsi, %r12
movq %r13, 0x10(%rsp)
leaq 0x3ba9(%rip), %rcx      # 0x9081
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x22d0
movslq (%r12), %rbp
leal -0x1(%r15), %ecx
leal 0x1(%rbp), %eax
movl %ecx, 0x1c(%rsp)
cmpl %ecx, %eax
jge 0x55c6
addl $-0x2, %r15d
leaq 0x20(%rsp), %r12
movq 0x8(%r14,%rbp,8), %r13
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2ca0
movq %r12, %rdi
movq %r13, %rsi
callq 0x2360
movq %r12, %rdi
leaq 0x3b41(%rip), %rsi      # 0x907e
callq 0x2360
leaq 0x50(%rsp), %r13
movq %r13, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x556a
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x5572
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
callq 0x2240
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x55a6
callq 0x21f0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x55ba
callq 0x21f0
incq %rbp
cmpl %ebp, %r15d
jne 0x5507
movslq 0x1c(%rsp), %rax
movq (%r14,%rax,8), %r14
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %r15
movq %r15, (%rdi)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0x2ca0
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x2360
leaq 0x40(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2240
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x5615
callq 0x21f0
movq %rbx, %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
jne 0x5671
jmp 0x5676
jmp 0x5658
movq %r13, 0x10(%rsp)
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x2040
jmp 0x5676
jmp 0x5658
movq %r13, 0x10(%rsp)
jmp 0x5658
movq %rax, %r14
jmp 0x5676
jmp 0x565f
movq %rax, %r14
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5676
callq 0x21f0
movq (%rbx), %rdi
cmpq 0x10(%rsp), %rdi
je 0x5685
callq 0x21f0
movq %r14, %rdi
callq 0x2320
nop