// File: /workspace/github_cpp_makefile_star2_O1/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 0x10a8cb
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 0xf32a
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 0xf32a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x10aa07
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x10aa07
movl %r9d, %r15d
leal 0x1(%r15), %edx
cmpq %rdx, %rcx
jne 0x10a8fe
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 0xf32a
jmp 0x10aa07
movq 0x8c6eb(%rip), %r13     # 0x196ff0
leaq 0x4e872(%rip), %rsi     # 0x15917e
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 0x4e851(%rip), %rsi     # 0x159186
movl $0x10, %edx
movq %rax, %rdi
callq 0x44e0
movl %r12d, %esi
movq %r13, %rdi
callq 0x42b0
movq %rax, %r12
leaq 0x4e840(%rip), %rsi     # 0x159197
movl $0x4, %edx
movq %rax, %rdi
callq 0x44e0
movl %r15d, %esi
movq %r12, %rdi
callq 0x42b0
movq %rax, %r15
leaq 0x4e823(%rip), %rsi     # 0x15919c
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 0x4e806(%rip), %rsi     # 0x1591ac
movl $0x1a, %edx
movq %rax, %rdi
callq 0x44e0
leaq 0x4ab74(%rip), %r15     # 0x15552e
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x44e0
leaq 0x4bbe1(%rip), %rsi     # 0x1565b2
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 0x45987(%rip), %rdx     # 0x150383
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x2263c
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 0x10aa31
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780