// File: /workspace/github_cpp_makefile_star2_O3/davmac314[P]dinit/src/includes/load-service.h
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> dinit_load::read_value_resolved<load_service(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, service_record*, 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, service_record*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<dir_entry, std::allocator<dir_entry>> const&)::$_0>(char const*, file_pos_ref, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, char const*, load_service(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, service_record*, 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, service_record*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<dir_entry, std::allocator<dir_entry>> const&)::$_0 const&)
inline string read_value_resolved(const char *setting_name, file_pos_ref input_pos, string_iterator &i,
        string_iterator end, const char *argval, const resolve_var_t &resolve_var)
{
    string rval;
    read_setting_value(rval, setting_op_t::ASSIGN, input_pos, i, end, nullptr);

    std::list<std::pair<unsigned,unsigned>> offsets;
    offsets.emplace_back(0, rval.size());
    value_var_subst(setting_name, rval, offsets, resolve_var, argval);
    return rval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
xorl %esi, %esi
pushq $0x20
pushq %rax
callq 0x16e34
addq $0x10, %rsp
leaq 0x10(%rsp), %rbp
movq %rbp, 0x8(%rbp)
movq %rbp, (%rbp)
movq $0x0, 0x10(%rbp)
movq 0x8(%rbx), %r15
movl $0x18, %edi
callq 0x4390
movq 0x68(%rsp), %r12
movq 0x60(%rsp), %r13
movl $0x0, 0x10(%rax)
movl %r15d, 0x14(%rax)
leaq 0x10(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x4070
incq 0x10(%r15)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0xb838
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0xf980
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x43a0
movq %rbx, %rdi
cmpq %r15, %rbx
jne 0xf96b
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf991
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf9b8
movq (%rdi), %r15
movl $0x18, %esi
callq 0x43a0
movq %r15, %rdi
cmpq %rbp, %r15
jne 0xf99e
jmp 0xf9b8
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x8(%rsp), %rdi
je 0xf9d2
movq 0x8(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x43a0
movq %r14, %rdi
callq 0x4630