// File: /workspace/github_cpp_makefile_star2_O1/cmaureir[P]strip-packing/scattersearch.cpp
// Function: check_flags(int, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool check_flags(int argc, char *argv[], string &path){

    po::options_description desc("Allowed options");
    desc.add_options()
        ("help,h"     , "Shows help message")
        ("input,i"    , po::value<std::string>() , "Path to the input file")
    ;

    po::variables_map vm;
    po::store(po::parse_command_line(argc, argv, desc), vm);
    po::notify(vm);

    if (vm.count("help")) {
        cout << desc << endl;
        return false;
    }

    if (vm.count("input")) {
        path = vm["input"].as<std::string>();
        cout << "Using input file: " << path << endl;
    } else { cout << "You must set the «input file»" << endl; cout << desc << endl; return false;}


    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %ebp
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x7a58(%rip), %rsi      # 0xd070
leaq 0x7a60(%rip), %rdx      # 0xd07f
leaq 0xb0(%rsp), %rdi
callq 0x8fa8
movq 0xc975(%rip), %rax      # 0x11fa8
movl (%rax), %edx
movl %edx, %ecx
shrl %ecx
leaq 0x30(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x4330
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5668
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4290
leaq 0x30(%rsp), %rdi
callq 0x42f0
leaq 0xb0(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x79fc(%rip), %rsi      # 0xd080
leaq 0x79fc(%rip), %rdx      # 0xd087
callq 0x4480
movq %rax, %r15
xorl %edi, %edi
callq 0x9038
leaq 0x79f9(%rip), %rsi      # 0xd09a
leaq 0x79fa(%rip), %rcx      # 0xd0a2
movq %r15, %rdi
movq %rax, %rdx
callq 0x44c0
leaq 0xb0(%rsp), %rdi
callq 0x4100
xorps %xmm0, %xmm0
leaq 0x150(%rsp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rcx
movl %ebp, %esi
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0x8979
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
xorl %edx, %edx
callq 0x4440
leaq 0x8(%rsp), %rdi
callq 0x8bd4
leaq 0x150(%rsp), %rdi
callq 0x8a74
leaq 0xb0(%rsp), %rdi
callq 0x4160
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7985(%rip), %rsi      # 0xd0b9
leaq 0x7982(%rip), %rdx      # 0xd0bd
leaq 0x8(%rsp), %rdi
callq 0x8fa8
leaq 0xc0(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xa7fe
movq %rax, %r15
leaq 0xc8(%rsp), %r13
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x577c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
cmpq %r13, %r15
je 0x57c3
movq 0xc850(%rip), %rdi      # 0x11fd8
leaq 0x30(%rsp), %rsi
callq 0x4070
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4180
xorl %ebp, %ebp
jmp 0x58bd
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x78ec(%rip), %rsi      # 0xd0be
leaq 0x78ea(%rip), %rdx      # 0xd0c3
callq 0x8fa8
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xa7fe
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5805
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
cmpq %r13, %r15
je 0x5975
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x78a1(%rip), %rsi      # 0xd0be
leaq 0x789f(%rip), %rdx      # 0xd0c3
callq 0x8fa8
leaq 0xb0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x42b0
movq %rax, %rdi
callq 0xa887
movq %r14, %rdi
movq %rax, %rsi
callq 0x4140
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5865
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
movq 0xc76c(%rip), %rdi      # 0x11fd8
leaq 0x7851(%rip), %rsi      # 0xd0c4
movl $0x12, %edx
callq 0x42e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xc74d(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movb $0x1, %bpl
movq %rax, %rdi
callq 0x4180
movq 0xc71c(%rip), %rax      # 0x11fe0
addq $0x10, %rax
leaq 0x120(%rsp), %rdi
movq %rax, -0x70(%rdi)
callq 0x8ce8
leaq 0xf0(%rsp), %rdi
callq 0x8d7a
movq %rbx, %rdi
callq 0x8df2
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x8eb6
movq -0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x5939
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x4290
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movl %eax, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movl %eax, 0x88(%rsp)
movq %rax, 0x90(%rsp)
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x8ef8
movq -0x28(%rbx), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5961
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4290
movl %ebp, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc65c(%rip), %r14      # 0x11fd8
leaq 0x7754(%rip), %rsi      # 0xd0d7
movl $0x1f, %edx
movq %r14, %rdi
callq 0x42e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq 0xc62a(%rip), %rdi      # 0x11fd8
callq 0x4040
movq %rax, %rdi
callq 0x4180
movq 0xc616(%rip), %rdi      # 0x11fd8
leaq 0x30(%rsp), %rsi
callq 0x4070
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
jmp 0x57a9
jmp 0x5a5d
jmp 0x59f0
jmp 0x5a5d
jmp 0x59f0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a60
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
jmp 0x5a60
jmp 0x5a5d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8bd4
jmp 0x5a20
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0x8a74
jmp 0x5a60
jmp 0x5a58
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5a77
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4290
jmp 0x5a77
movq %rax, %rbx
jmp 0x5a77
movq %rax, %rbx
jmp 0x5a6d
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x8aac
leaq 0x30(%rsp), %rdi
callq 0x8ade
movq %rbx, %rdi
callq 0x4450