// File: readmapping[P]alfalfa/src/performanceUtils.cpp
// Function: processCommaSepListInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<int, std::allocator<int>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int)
void processCommaSepListInt(string list, vector<int> & options, string name, int lowerBound, int upperBound){
    int beginPos = 0;
    int commaPos = list.find(',',beginPos);
    while(commaPos>=0){
        int value = atoi(list.substr(beginPos,commaPos-beginPos).c_str());
        if(value >= lowerBound && value <= upperBound)
            options.push_back(value);
        else{
            fprintf(stderr, "Value %d for parameter %s does not fall within logical bounds. This value will be ignored.\n", value, name.c_str());
        }
        beginPos = commaPos+1;
        commaPos = list.find(',',beginPos);
    }
    int value = atoi(list.substr(beginPos).c_str());
    if(value >= lowerBound && value <= upperBound)
        options.push_back(value);
    else{
        fprintf(stderr, "Value %d for parameter %s does not fall within logical bounds. This value will be ignored.\n", value, name.c_str());
    }
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movl %ecx, 0x8c(%rsp)
movl %r8d, 0x88(%rsp)
movl $0x0, 0x84(%rsp)
movslq 0x84(%rsp), %rdx
movl $0x2c, %esi
callq 0x8540
movl %eax, 0x80(%rsp)
cmpl $0x0, 0x80(%rsp)
jl 0x652c7
movq 0x20(%rsp), %rsi
movslq 0x84(%rsp), %rdx
movl 0x80(%rsp), %eax
subl 0x84(%rsp), %eax
movslq %eax, %rcx
leaq 0x58(%rsp), %rdi
callq 0x83a0
leaq 0x58(%rsp), %rdi
callq 0x8170
movq %rax, %rdi
callq 0x8670
movl %eax, 0x1c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x8858
movl 0x1c(%rsp), %eax
movl %eax, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
cmpl 0x8c(%rsp), %eax
jl 0x65258
movl 0x7c(%rsp), %eax
cmpl 0x88(%rsp), %eax
jg 0x65258
movq 0x98(%rsp), %rdi
leaq 0x7c(%rsp), %rsi
callq 0x4e030
jmp 0x65293
movq 0x28(%rsp), %rdi
movq 0x31d6c(%rip), %rax     # 0x96fd0
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movl 0x7c(%rsp), %eax
movl %eax, 0x18(%rsp)
callq 0x8170
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %edx
movq %rax, %rcx
leaq 0x197cd(%rip), %rsi     # 0x7ea59
movb $0x0, %al
callq 0x85c0
movq 0x20(%rsp), %rdi
movl 0x80(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x84(%rsp)
movslq 0x84(%rsp), %rdx
movl $0x2c, %esi
callq 0x8540
movl %eax, 0x80(%rsp)
jmp 0x651cc
movq 0x20(%rsp), %rsi
movslq 0x84(%rsp), %rdx
leaq 0x30(%rsp), %rdi
movq $-0x1, %rcx
callq 0x83a0
leaq 0x30(%rsp), %rdi
callq 0x8170
movq %rax, %rdi
callq 0x8670
movl %eax, 0xc(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x8858
movl 0xc(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
cmpl 0x8c(%rsp), %eax
jl 0x6533b
movl 0x54(%rsp), %eax
cmpl 0x88(%rsp), %eax
jg 0x6533b
movq 0x98(%rsp), %rdi
leaq 0x54(%rsp), %rsi
callq 0x4e030
jmp 0x65374
movq 0x28(%rsp), %rdi
movq 0x31c89(%rip), %rax     # 0x96fd0
movq (%rax), %rax
movq %rax, (%rsp)
movl 0x54(%rsp), %eax
movl %eax, 0x8(%rsp)
callq 0x8170
movq (%rsp), %rdi
movl 0x8(%rsp), %edx
movq %rax, %rcx
leaq 0x196ec(%rip), %rsi     # 0x7ea59
movb $0x0, %al
callq 0x85c0
addq $0xa8, %rsp
retq
nopl (%rax)