// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/src/includes/load-service.h
// Function: dinit_load::parse_unum_param(file_pos_ref, 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>> const&, unsigned long long)
inline unsigned long long parse_unum_param(file_pos_ref input_pos, const std::string &param,
        const std::string &service_name, unsigned long long max = std::numeric_limits<unsigned long long>::max())
{
    const char * num_err_msg = "specified value contains invalid numeric characters or is outside "
            "allowed range.";

    std::size_t ind = 0;
    try {
        unsigned long long v = std::stoull(param, &ind, 0);
        if (v > max || ind != param.length()) {
            throw service_description_exc(service_name, num_err_msg, input_pos);
        }
        return v;
    }
    catch (std::out_of_range &exc) {
        throw service_description_exc(service_name, num_err_msg, input_pos);
    }
    catch (std::invalid_argument &exc) {
        throw service_description_exc(service_name, num_err_msg, input_pos);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r14
movl %edi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
leaq 0x38(%rsp), %rsi
andq $0x0, (%rsi)
movq %rdx, %rdi
xorl %edx, %edx
callq 0x14114
cmpq %r15, %rax
ja 0x13550
movq 0x38(%rsp), %rcx
cmpq 0x8(%r14), %rcx
jne 0x13550
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x70
popq %rdi
callq 0x41d0
movq %rax, %r15
leaq 0x4ede(%rip), %rsi      # 0x18440
leaq 0x18(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xb9ce
movb $0x1, %bpl
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1205c
xorl %ebp, %ebp
leaq 0x1066e(%rip), %rsi     # 0x23c00
leaq -0x17bd(%rip), %rdx     # 0x11ddc
movq %r15, %rdi
callq 0x4610
jmp 0x13697
movq %rdx, %r12
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x41a0
testb %bpl, %bpl
jne 0x135c3
jmp 0x135d3
movq %rdx, %r12
movq %rax, %r14
movq %r15, %rdi
callq 0x42d0
jmp 0x135d3
movq %rdx, %r12
movq %rax, %r14
cmpl $0x2, %r12d
jne 0x13634
movq %r14, %rdi
callq 0x4160
pushq $0x70
popq %rdi
callq 0x41d0
movq %rax, %r15
leaq 0x4e4d(%rip), %rsi      # 0x18440
leaq 0x18(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xb9ce
movb $0x1, %bpl
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1205c
xorl %ebp, %ebp
leaq 0x105dd(%rip), %rsi     # 0x23c00
leaq -0x184e(%rip), %rdx     # 0x11ddc
movq %r15, %rdi
callq 0x4610
jmp 0x13697
cmpl $0x1, %r12d
jne 0x136e1
movq %r14, %rdi
callq 0x4160
pushq $0x70
popq %rdi
callq 0x41d0
movq %rax, %r15
leaq 0x4de8(%rip), %rsi      # 0x18440
leaq 0x18(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xb9ce
movb $0x1, %bpl
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1205c
xorl %ebp, %ebp
leaq 0x10578(%rip), %rsi     # 0x23c00
leaq -0x18b3(%rip), %rdx     # 0x11ddc
movq %r15, %rdi
callq 0x4610
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x41a0
testb %bpl, %bpl
jne 0x136ae
jmp 0x136b6
movq %rax, %r14
movq %r15, %rdi
callq 0x42d0
callq 0x4600
jmp 0x136e1
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x41a0
testb %bpl, %bpl
jne 0x136d4
jmp 0x136dc
movq %rax, %r14
movq %r15, %rdi
callq 0x42d0
callq 0x4600
movq %r14, %rdi
callq 0x4620
movq %rax, %rdi
callq 0xba09