// File: /workspace/github_cpp_makefile_star2_O1/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 0x54d1
movslq %r15d, %rax
movq -0x8(%r14,%rax,8), %rsi
leaq 0x40(%rsp), %rdi
movl $0x8, %edx
callq 0x2350
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 0x60ee
leaq 0x40(%rsp), %rdi
callq 0x2040
jmp 0x561d
movq %rsi, %r12
movq %r13, 0x10(%rsp)
leaq 0x3ba1(%rip), %rcx      # 0x9081
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x22e0
movslq (%r12), %rbp
leal -0x1(%r15), %ecx
leal 0x1(%rbp), %eax
movl %ecx, 0x1c(%rsp)
cmpl %ecx, %eax
jge 0x55ce
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 0x2c9c
movq %r12, %rdi
movq %r13, %rsi
callq 0x2370
movq %r12, %rdi
leaq 0x3b39(%rip), %rsi      # 0x907e
callq 0x2370
leaq 0x50(%rsp), %r13
movq %r13, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5572
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x557a
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 0x2250
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x55ae
callq 0x2200
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x55c2
callq 0x2200
incq %rbp
cmpl %ebp, %r15d
jne 0x550f
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 0x2c9c
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x2370
leaq 0x40(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2250
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x561d
callq 0x2200
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 0x5679
jmp 0x567e
jmp 0x5660
movq %r13, 0x10(%rsp)
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x2040
jmp 0x567e
jmp 0x5660
movq %r13, 0x10(%rsp)
jmp 0x5660
movq %rax, %r14
jmp 0x567e
jmp 0x5667
movq %rax, %r14
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x567e
callq 0x2200
movq (%rbx), %rdi
cmpq 0x10(%rsp), %rdi
je 0x568d
callq 0x2200
movq %r14, %rdi
callq 0x2330
nop