// File: vsklad[P]cgen/main.cpp
// Function: generate_output_file_name_var(CGenCommandInfo&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void generate_output_file_name_var(CGenCommandInfo& info, const std::string variable_name, std::string& output_file_name) {
    auto map_entry = info.variables_map.find(variable_name);
    if (map_entry != info.variables_map.end()) {
        std::string prefix = variable_name;
        transform(prefix.begin(), prefix.end(), prefix.begin(), ::tolower);
        output_file_name += prefix;
        
        const CGenVariableInfo* p_value = &(map_entry->second);
        if (p_value->except_count > 0) {
            output_file_name += "v" + std::to_string(p_value->except_count);
        } else if (p_value->except_range_size) {
            output_file_name += "v" + std::to_string(p_value->except_range_size);
        } else {
            output_file_name += "c";
        };
    };
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rsi, -0x108(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
callq 0x26cc0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
addq $0x18, %rdi
callq 0x2e110
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x2e0e0
testb $0x1, %al
jne 0x57726
jmp 0x5793a
movq -0x108(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0xd130
movq -0x118(%rbp), %rdi
callq 0xd270
movq -0x118(%rbp), %rdi
movq %rax, -0x50(%rbp)
callq 0xd180
movq -0x118(%rbp), %rdi
movq %rax, -0x58(%rbp)
callq 0xd270
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq 0x2b838(%rip), %rcx     # 0x82fb8
callq 0x587d0
movq %rax, -0x110(%rbp)
jmp 0x5778e
movq -0x110(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xd3f0
jmp 0x577a8
leaq -0x20(%rbp), %rdi
callq 0x26cf0
addq $0x20, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jbe 0x5786f
movq -0x80(%rbp), %rax
movl 0x8(%rax), %esi
leaq -0xc0(%rbp), %rdi
callq 0x260b0
jmp 0x577dc
leaq 0xcf99(%rip), %rsi      # 0x6477c
leaq -0xa0(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
callq 0x2e060
jmp 0x577f8
movq -0x18(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0xd3f0
jmp 0x5780a
leaq -0xa0(%rbp), %rdi
callq 0xd1b0
leaq -0xc0(%rbp), %rdi
callq 0xd1b0
jmp 0x57924
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x5792f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x5785e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0xd1b0
leaq -0xc0(%rbp), %rdi
callq 0xd1b0
jmp 0x5792f
movq -0x80(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x5790e
movq -0x80(%rbp), %rax
movl 0x10(%rax), %esi
leaq -0x100(%rbp), %rdi
callq 0x260b0
jmp 0x57892
leaq 0xcee3(%rip), %rsi      # 0x6477c
leaq -0xe0(%rbp), %rdi
leaq -0x100(%rbp), %rdx
callq 0x2e060
jmp 0x578ae
movq -0x18(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0xd3f0
jmp 0x578c0
leaq -0xe0(%rbp), %rdi
callq 0xd1b0
leaq -0x100(%rbp), %rdi
callq 0xd1b0
jmp 0x57922
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x57900
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0xd1b0
leaq -0x100(%rbp), %rdi
callq 0xd1b0
jmp 0x5792f
movq -0x18(%rbp), %rdi
leaq 0x10aa4(%rip), %rsi     # 0x683bd
callq 0xd300
jmp 0x57920
jmp 0x57922
jmp 0x57924
leaq -0x48(%rbp), %rdi
callq 0xd1b0
jmp 0x5793a
leaq -0x48(%rbp), %rdi
callq 0xd1b0
jmp 0x57943
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0xd5a0
nopl (%rax)