// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/utils.h
// Function: Utils::tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::multimap<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::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, char)
inline void tokenize(const std::string &parameter_str, std::multimap<std::string, std::string> &parameters, char separator = ',') {
    for( size_t i = 0; i < parameter_str.size(); ++i ) {
        size_t first = i;
        int nesting_level = 0;
        while( i < parameter_str.size() ) {
            if( (parameter_str[i] == separator) && (nesting_level == 0) ) {
                break;
            } else if( parameter_str[i] == ')' ) {
                assert(nesting_level > 0);
                --nesting_level;
            } else if( parameter_str[i] == '(' ) {
                ++nesting_level;
            }
            ++i;
        }
        assert(nesting_level == 0);
        std::string par = parameter_str.substr(first, i - first);
        //std::cout << "parameter=|" << par << "|" << std::endl;
        size_t equal = par.find_first_of("=");
        assert(equal != std::string::npos);
        std::string key = par.substr(0, equal);
        std::string value = par.substr(equal + 1);
        //std::cout << "key=|" << key << "|, value=|" << value << "|" << std::endl;
        parameters.insert(std::make_pair(key, value));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, 0x10(%rsp)
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x8b92
movl %edx, %ebx
xorl %edx, %edx
leaq 0x18(%rsp), %r15
leaq 0x58(%rsp), %r14
leaq 0x78(%rsp), %r12
movq %rdx, %r13
movq %rdi, 0x8(%rsp)
movq (%rdi), %rsi
leaq 0x1(%rdx), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
xorl %eax, %eax
movb (%rsi,%r13), %r8b
cmpb %bl, %r8b
jne 0x8a50
testl %eax, %eax
je 0x8a80
cmpb $0x29, %r8b
jne 0x8a64
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
testl %eax, %eax
jg 0x8a6e
jmp 0x8ba4
xorl %edi, %edi
cmpb $0x28, %r8b
sete %dil
addl %edi, %eax
incq %r13
cmpq %r13, %rcx
leaq 0x18(%rsp), %r15
jne 0x8a43
movq %rcx, %r13
testl %eax, %eax
jne 0x8be2
movq %r13, %rcx
subq %rdx, %rcx
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x62b0
movl $0x1, %ecx
movq %r15, %rdi
leaq 0x24784(%rip), %rsi     # 0x2d22e
xorl %edx, %edx
callq 0x6390
cmpq $-0x1, %rax
je 0x8bc3
movq %rax, %rbp
leaq 0x38(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x62b0
incq %rbp
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq $-0x1, %rcx
callq 0x62b0
movq %r12, %rdi
leaq 0x38(%rsp), %rsi
movq %r14, %rdx
callq 0xe82a
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xe64a
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x8b24
callq 0x6260
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x8b3b
callq 0x6260
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x8b4f
callq 0x6260
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x8b63
callq 0x6260
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x8b77
callq 0x6260
incq %r13
movq 0x8(%r15), %rax
movq %r13, %rdx
cmpq %rax, %r13
movq %r15, %rdi
leaq 0x18(%rsp), %r15
jb 0x8a33
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24b50(%rip), %rdi     # 0x2d6fb
leaq 0x24b5b(%rip), %rsi     # 0x2d70d
leaq 0x24b66(%rip), %rcx     # 0x2d71f
movl $0x62, %edx
callq 0x61c0
leaq 0x24bc3(%rip), %rdi     # 0x2d78d
leaq 0x24b3c(%rip), %rsi     # 0x2d70d
leaq 0x24b47(%rip), %rcx     # 0x2d71f
movl $0x6d, %edx
callq 0x61c0
leaq 0x24b91(%rip), %rdi     # 0x2d77a
leaq 0x24b1d(%rip), %rsi     # 0x2d70d
leaq 0x24b28(%rip), %rcx     # 0x2d71f
movl $0x69, %edx
callq 0x61c0
movq %rax, %rbx
jmp 0x8c45
movq %rax, %rbx
jmp 0x8c31
movq %rax, %rbx
jmp 0x8c1d
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xe590
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x8c31
callq 0x6260
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x8c45
callq 0x6260
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x8c59
callq 0x6260
movq %rbx, %rdi
callq 0x6410
nop