// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/arguments.cc
// Function: processFilename(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int, unsigned int)
string processFilename(vector<string> command, string name, string file_type, unsigned int num_args_1, unsigned int num_args_2){
    if(command.size() == (num_args_1 + 1)){
        return string(name).append(file_type);
    }
    else if (command.size() == (num_args_2 + 1)){
        return string(command[num_args_2]);
    }
    else {
        cerr << "Error: " << command[0] << " option accepts " << num_args_1 << " or " << num_args_2
        << " arguments but " << command.size() - 1 << " arguments were supplied. " << "\n"
        << "Exiting..." << "\n";
        //    exit(1);
        return "";
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %r8d, %r12d
movq %rcx, %r13
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
leal 0x1(%r12), %esi
cmpq %rsi, %rcx
jne 0x1095bf
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xf3ce
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r14, %rdi
callq 0x4190
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf3ce
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1096fb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x1096fb
movl %r9d, %r15d
leal 0x1(%r15), %edx
cmpq %rdx, %rcx
jne 0x1095f2
movl %r15d, %ecx
shlq $0x5, %rcx
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf3ce
jmp 0x1096fb
movq 0x8b9f7(%rip), %r13     # 0x194ff0
leaq 0x4dd3e(%rip), %rsi     # 0x15733e
movl $0x7, %edx
movq %r13, %rdi
callq 0x44e0
movq (%r14), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0x44e0
movq %rax, %r13
leaq 0x4dd1d(%rip), %rsi     # 0x157346
movl $0x10, %edx
movq %rax, %rdi
callq 0x44e0
movl %r12d, %esi
movq %r13, %rdi
callq 0x42b0
movq %rax, %r12
leaq 0x4dd0c(%rip), %rsi     # 0x157357
movl $0x4, %edx
movq %rax, %rdi
callq 0x44e0
movl %r15d, %esi
movq %r12, %rdi
callq 0x42b0
movq %rax, %r15
leaq 0x4dcef(%rip), %rsi     # 0x15735c
movl $0xf, %edx
movq %rax, %rdi
callq 0x44e0
movq 0x8(%r14), %rsi
subq (%r14), %rsi
sarq $0x5, %rsi
decq %rsi
movq %r15, %rdi
callq 0x42b0
movq %rax, %r14
leaq 0x4dcd2(%rip), %rsi     # 0x15736c
movl $0x1a, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0x49f70(%rip), %r15     # 0x15361e
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x44e0
leaq 0x4b005(%rip), %rsi     # 0x1546ca
movl $0xa, %edx
movq %r14, %rdi
callq 0x44e0
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x44e0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x44d03(%rip), %rdx     # 0x14e3f3
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x22538
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x109725
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780