// File: demon386[P]git-store/./libs/program_options/src/value_semantic.cpp
// Function: boost::program_options::ambiguous_option::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
void ambiguous_option::substitute_placeholders(const string& original_error_template) const
    {
        // For short forms, all alternatives must be identical, by
        //      definition, to the specified option, so we don't need to
        //      display alternatives
        if (m_option_style == command_line_style::allow_dash_for_short || 
            m_option_style == command_line_style::allow_slash_for_short)
        {
            error_with_option_name::substitute_placeholders(original_error_template);
            return;
        }


        string error_template  = original_error_template;
        // remove duplicates using std::set
        std::set<std::string>   alternatives_set (m_alternatives.begin(), m_alternatives.end());
        std::vector<std::string> alternatives_vec (alternatives_set.begin(), alternatives_set.end());

        error_template += " and matches ";
        // Being very cautious: should be > 1 alternative!
        if (alternatives_vec.size() > 1)
        {
            for (unsigned i = 0; i < alternatives_vec.size() - 1; ++i)
                error_template += "'%prefix%" + alternatives_vec[i] + "', ";
            error_template += "and ";
        }

        // there is a programming error if multiple options have the same name...
        if (m_alternatives.size() > 1 && alternatives_vec.size() == 1)
            error_template += "different versions of ";

        error_template += "'%prefix%" + alternatives_vec.back() + "'";


        // use inherited logic
        error_with_option_name::substitute_placeholders(error_template);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
cmpl $0x4, 0x10(%rax)
je 0x3c311
movq -0x138(%rbp), %rax
cmpl $0x8, 0x10(%rax)
jne 0x3c326
movq -0x138(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3beb0
jmp 0x3c62b
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0xd230
movq -0x138(%rbp), %rdi
addq $0xb8, %rdi
movq %rdi, -0x140(%rbp)
callq 0x15e00
movq -0x140(%rbp), %rdi
movq %rax, -0x68(%rbp)
callq 0x15e30
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x3dc40
jmp 0x3c374
leaq -0x60(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x1e740
movq -0x150(%rbp), %rdi
movq %rax, -0xa0(%rbp)
callq 0x1e7a0
movq %rax, -0xa8(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x11e10
movq -0x148(%rbp), %rcx
movq -0xa0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq -0x98(%rbp), %rdi
callq 0x3dcc0
jmp 0x3c3d4
leaq -0xa9(%rbp), %rdi
callq 0x11eb0
leaq 0x25a88(%rip), %rsi     # 0x61e6f
leaq -0x30(%rbp), %rdi
callq 0xd5f0
jmp 0x3c3f2
leaq -0x98(%rbp), %rdi
callq 0x124d0
cmpq $0x1, %rax
jbe 0x3c552
movl $0x0, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
movq %rax, -0x158(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x124d0
movq %rax, %rcx
movq -0x158(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x3c53e
movl -0xb0(%rbp), %eax
movl %eax, %esi
leaq -0x98(%rbp), %rdi
callq 0x12820
movq %rax, %rdx
leaq 0x25a1d(%rip), %rsi     # 0x61e7d
leaq -0xf0(%rbp), %rdi
callq 0x267b0
jmp 0x3c46e
leaq 0x25a12(%rip), %rdx     # 0x61e87
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x1e9e0
jmp 0x3c48a
leaq -0x30(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xd800
jmp 0x3c49c
leaq -0xd0(%rbp), %rdi
callq 0xdca8
leaq -0xf0(%rbp), %rdi
callq 0xdca8
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x3c412
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3c67b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xa9(%rbp), %rdi
callq 0x11eb0
jmp 0x3c672
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3c666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3c52d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0xdca8
leaq -0xf0(%rbp), %rdi
callq 0xdca8
jmp 0x3c666
leaq 0x25946(%rip), %rsi     # 0x61e8b
leaq -0x30(%rbp), %rdi
callq 0xd5f0
jmp 0x3c550
jmp 0x3c552
movq -0x138(%rbp), %rdi
addq $0xb8, %rdi
callq 0x124d0
cmpq $0x1, %rax
jbe 0x3c591
leaq -0x98(%rbp), %rdi
callq 0x124d0
cmpq $0x1, %rax
jne 0x3c591
leaq 0x2590c(%rip), %rsi     # 0x61e90
leaq -0x30(%rbp), %rdi
callq 0xd5f0
jmp 0x3c58f
jmp 0x3c591
leaq -0x98(%rbp), %rdi
callq 0x3dd40
movq %rax, %rdx
leaq 0x258d6(%rip), %rsi     # 0x61e7d
leaq -0x130(%rbp), %rdi
callq 0x267b0
jmp 0x3c5b5
leaq 0x2385d(%rip), %rdx     # 0x5fe19
leaq -0x110(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x1e9e0
jmp 0x3c5d1
leaq -0x30(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0xd800
jmp 0x3c5e3
leaq -0x110(%rbp), %rdi
callq 0xdca8
leaq -0x130(%rbp), %rdi
callq 0xdca8
movq -0x138(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3beb0
jmp 0x3c60d
leaq -0x98(%rbp), %rdi
callq 0x11db0
leaq -0x60(%rbp), %rdi
callq 0x1e830
leaq -0x30(%rbp), %rdi
callq 0xdca8
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3c65a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0xdca8
leaq -0x130(%rbp), %rdi
callq 0xdca8
leaq -0x98(%rbp), %rdi
callq 0x11db0
leaq -0x60(%rbp), %rdi
callq 0x1e830
leaq -0x30(%rbp), %rdi
callq 0xdca8
movq -0x78(%rbp), %rdi
callq 0xdb30
nopl (%rax)