// File: /workspace/github_cpp_makefile_star2_O1/vsklad[P]cgen/commandline.cpp
// Function: CGenCommandLineReader::parse_variable_pad(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CGenVariableInfo, 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, CGenVariableInfo>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void CGenCommandLineReader::parse_variable_pad(CGenVariablesMap& variables_map, const std::string& variable_name) {
    if (variable_name.empty()) {
        parse_error(ERROR_PAD_MUST_FOLLOW_DEFINITION);
    };
    if (is_binary_variable_name(variable_name)) {
        parse_error(ERROR_BINARY_VARIABLE_PAD_INCOMPATIBLE);
    };
    
    CGenVariableInfo& variable_value = variables_map.find(variable_name)->second;
    
    if (variable_value.mode != vmValue) {
        parse_error(ERROR_PAD_MUST_FOLLOW_VALUE);
    };
    
    skip_token();
    read_symbol(':');
    if (is_token("sha1") || is_token("SHA1")) {
        variable_value.data = acl::SHA1<bal::Literal<bal::Cnf>>::pad_message(variable_value.data.data(),
                                                                             variable_value.data.size());
        skip_token();
    } else if (is_token("sha256") || is_token("SHA256")) {
        variable_value.data = acl::SHA256<bal::Literal<bal::Cnf>>::pad_message(variable_value.data.data(),
                                                                               variable_value.data.size());
        skip_token();
    } else {
        parse_error(ERROR_PAD_UNKNOWN_VALUE);
    };
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdx)
jne 0x1ac73
movq (%rbx), %rax
leaq -0x78(%rbp), %rcx
movq -0x18(%rax), %r12
addq %rbx, %r12
movq %rcx, -0x10(%rcx)
leaq 0x2cad2(%rip), %rsi     # 0x4770f
leaq 0x2cb06(%rip), %rdx     # 0x4774a
leaq -0x88(%rbp), %r13
movq %r13, %rdi
callq 0x1f29e
movq %r12, %rdi
movq %r13, %rsi
callq 0x1de0a
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x1ac73
callq 0xc280
cmpq $0x0, 0x8(%r14)
je 0x1acd1
movq (%r14), %rax
movsbl (%rax), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x1acd1
movq (%rbx), %rax
leaq -0x58(%rbp), %rcx
movq -0x18(%rax), %r12
addq %rbx, %r12
movq %rcx, -0x10(%rcx)
leaq 0x2caaa(%rip), %rsi     # 0x4774b
leaq 0x2cad2(%rip), %rdx     # 0x4777a
leaq -0x68(%rbp), %r13
movq %r13, %rdi
callq 0x1f29e
movq %r12, %rdi
movq %r13, %rsi
callq 0x1de0a
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x1acd1
callq 0xc280
movq %r15, %rdi
movq %r14, %rsi
callq 0x1f570
movq %rax, %r14
cmpl $0x0, 0x40(%rax)
je 0x1ad33
movq (%rbx), %rax
leaq -0xb8(%rbp), %r13
movq -0x18(%rax), %r15
addq %rbx, %r15
movq %r13, -0x10(%r13)
leaq 0x2ca7a(%rip), %rsi     # 0x4777b
leaq 0x2cac5(%rip), %rdx     # 0x477cd
leaq -0xc8(%rbp), %r12
movq %r12, %rdi
callq 0x1f29e
movq %r15, %rdi
movq %r12, %rsi
callq 0x1de0a
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x1ad33
callq 0xc280
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq 0x10(%rbx,%rcx), %rdx
addq %rdx, 0x8(%rbx,%rcx)
movq $0x0, 0x10(%rbx,%rcx)
movl $0x0, 0x40(%rbx,%rcx)
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0x3a, %esi
callq 0x1df9e
movq (%rbx), %rax
movq -0x18(%rax), %r12
leaq (%rbx,%r12), %r15
movq %r15, %rdi
callq 0x1eae0
movq 0x10(%rbx,%r12), %rax
testq %rax, %rax
je 0x1adc6
movq 0x18(%r15), %rdx
addq 0x8(%r15), %rdx
xorl %esi, %esi
leaq 0x2ca3a(%rip), %rcx     # 0x477ce
cmpq $0x4, %rsi
je 0x1adb1
movb (%rdx,%rsi), %dil
cmpb (%rsi,%rcx), %dil
jne 0x1adc6
incq %rsi
cmpq %rsi, %rax
jne 0x1ad94
movq %rax, %rdx
jmp 0x1adb6
movl $0x4, %edx
cmpb $0x1, (%rdx,%rcx)
sbbl $-0x1, %edx
cmpq %rdx, %rax
je 0x1aee6
movq (%rbx), %rax
movq -0x18(%rax), %r12
leaq (%rbx,%r12), %r15
movq %r15, %rdi
callq 0x1eae0
movq 0x10(%rbx,%r12), %rax
testq %rax, %rax
je 0x1ae26
movq 0x18(%r15), %rdx
addq 0x8(%r15), %rdx
xorl %esi, %esi
leaq 0x2c9df(%rip), %rcx     # 0x477d3
cmpq $0x4, %rsi
je 0x1ae11
movb (%rdx,%rsi), %dil
cmpb (%rsi,%rcx), %dil
jne 0x1ae26
incq %rsi
cmpq %rsi, %rax
jne 0x1adf4
movq %rax, %rdx
jmp 0x1ae16
movl $0x4, %edx
cmpb $0x1, (%rdx,%rcx)
sbbl $-0x1, %edx
cmpq %rdx, %rax
je 0x1aee6
movq (%rbx), %rax
movq -0x18(%rax), %r12
leaq (%rbx,%r12), %r15
movq %r15, %rdi
callq 0x1eae0
movq 0x10(%rbx,%r12), %rax
testq %rax, %rax
je 0x1ae82
movq 0x18(%r15), %rdx
addq 0x8(%r15), %rdx
xorl %esi, %esi
leaq 0x2c984(%rip), %rcx     # 0x477d8
cmpq $0x6, %rsi
je 0x1ae71
movb (%rdx,%rsi), %dil
cmpb (%rsi,%rcx), %dil
jne 0x1ae82
incq %rsi
cmpq %rsi, %rax
jne 0x1ae54
movq %rax, %rdx
jmp 0x1ae76
movl $0x6, %edx
cmpb $0x1, (%rdx,%rcx)
sbbl $-0x1, %edx
cmpq %rdx, %rax
je 0x1aee6
movq (%rbx), %rax
movq -0x18(%rax), %r12
leaq (%rbx,%r12), %r15
movq %r15, %rdi
callq 0x1eae0
movq 0x10(%rbx,%r12), %rax
testq %rax, %rax
je 0x1af63
movq 0x18(%r15), %rdx
addq 0x8(%r15), %rdx
xorl %esi, %esi
leaq 0x2c92b(%rip), %rcx     # 0x477df
cmpq $0x6, %rsi
je 0x1aed5
movb (%rdx,%rsi), %dil
cmpb (%rsi,%rcx), %dil
jne 0x1af63
incq %rsi
cmpq %rsi, %rax
jne 0x1aeb4
movq %rax, %rdx
jmp 0x1aeda
movl $0x6, %edx
cmpb $0x1, (%rdx,%rcx)
sbbl $-0x1, %edx
cmpq %rdx, %rax
jne 0x1af63
movq 0x58(%r14), %rsi
movl 0x60(%r14), %edx
leaq -0x48(%rbp), %rdi
callq 0x1e69c
cmpl $0x0, 0x70(%r14)
je 0x1af1e
movq 0x58(%r14), %rdi
testq %rdi, %rdi
je 0x1af14
callq 0xc350
movq $0x0, 0x58(%r14)
xorl %eax, %eax
movl %eax, 0x60(%r14)
movl %eax, 0x70(%r14)
movq -0x48(%rbp), %rax
movq %rax, 0x58(%r14)
movl -0x30(%rbp), %eax
movl %eax, 0x70(%r14)
movl -0x40(%rbp), %eax
movl %eax, 0x60(%r14)
xorl %eax, %eax
movq %rax, -0x48(%rbp)
movl %eax, -0x30(%rbp)
movl %eax, -0x40(%rbp)
movl -0x2c(%rbp), %ecx
movl %ecx, 0x74(%r14)
movq (%rbx), %rcx
movq -0x18(%rcx), %rcx
movq 0x10(%rbx,%rcx), %rdx
addq %rdx, 0x8(%rbx,%rcx)
movq %rax, 0x10(%rbx,%rcx)
movl %eax, 0x40(%rbx,%rcx)
jmp 0x1afae
movq (%rbx), %rax
leaq -0x98(%rbp), %r15
addq -0x18(%rax), %rbx
movq %r15, -0x10(%r15)
leaq 0x2c86a(%rip), %rsi     # 0x477e6
leaq 0x2c8a3(%rip), %rdx     # 0x47826
leaq -0xa8(%rbp), %r14
movq %r14, %rdi
callq 0x1f29e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1de0a
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1afae
callq 0xc280
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
jmp 0x1afdb
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x1afe5
callq 0xc280
movq %rbx, %rdi
callq 0xc4e0
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x1afe0
jmp 0x1afe5
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
jne 0x1afe0
jmp 0x1afe5
nop