// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: void cxxopts::values::integer_parser<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int&)
void
    integer_parser(const std::string& text, T& value)
    {
      std::smatch match;
      std::regex_match(text, match, integer_pattern);

      if (match.length() == 0)
      {
        throw argument_incorrect_type(text);
      }

      if (match.length(4) > 0)
      {
        value = 0;
        return;
      }

      using US = typename std::make_unsigned<T>::type;

      constexpr auto umax = (std::numeric_limits<US>::max)();
      constexpr bool is_signed = std::numeric_limits<T>::is_signed;
      const bool negative = match.length(1) > 0;
      const uint8_t base = match.length(2) > 0 ? 16 : 10;

      auto value_match = match[3];

      US result = 0;

      for (auto iter = value_match.first; iter != value_match.second; ++iter)
      {
        US digit = 0;

        if (*iter >= '0' && *iter <= '9')
        {
          digit = *iter - '0';
        }
        else if (base == 16 && *iter >= 'a' && *iter <= 'f')
        {
          digit = *iter - 'a' + 10;
        }
        else if (base == 16 && *iter >= 'A' && *iter <= 'F')
        {
          digit = *iter - 'A' + 10;
        }
        else
        {
          throw argument_incorrect_type(text);
        }

        if (umax - digit < result * base)
        {
          throw argument_incorrect_type(text);
        }

        result = result * base + digit;
      }

      detail::check_signed_range<T>(negative, result, text);

      if (negative)
      {
        value = checked_negate<T>(result,
          text,
          std::integral_constant<bool, is_signed>());
      }
      else
      {
        value = result;
      }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq (%rdi), %rdi
movq 0x8(%rbx), %rsi
addq %rdi, %rsi
leaq 0x2c9d9(%rip), %rcx     # 0x51910
xorl %r8d, %r8d
callq 0x2222d
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
je 0x24f6f
movq (%rdi), %rcx
cmpq %rcx, 0x8(%rdi)
setne %cl
andb 0x10(%rdi), %cl
cmpq $0x48, %rax
jne 0x24f99
movl $0x3, %edx
testb %cl, %cl
jne 0x24fd0
jmp 0x2516b
cmpb $0x1, -0x38(%rdi,%rax)
jne 0x2516b
movq -0x40(%rdi,%rax), %rcx
subq -0x48(%rdi,%rax), %rcx
je 0x2516b
testq %rcx, %rcx
jg 0x24fe6
xorl %ecx, %ecx
xorl %r15d, %r15d
jmp 0x25064
testb %cl, %cl
je 0x2516b
movq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
leaq -0x8(%rdx), %rcx
cmpq $-0x5, %rcx
jae 0x24fd0
cmpb $0x1, 0x70(%rdi)
jne 0x24ff2
movq 0x68(%rdi), %rcx
subq 0x60(%rdi), %rcx
jmp 0x24fe1
cmpb $0x1, -0x38(%rdi,%rax)
jne 0x24ff2
movq -0x40(%rdi,%rax), %rcx
subq -0x48(%rdi,%rax), %rcx
testq %rcx, %rcx
jle 0x24ff2
movl $0x0, (%r14)
jmp 0x2510b
leaq -0x5(%rdx), %rcx
cmpq $-0x2, %rcx
jae 0x2503a
movq 0x20(%rdi), %rcx
subq 0x18(%rdi), %rcx
testq %rcx, %rcx
setg %r15b
andb 0x28(%rdi), %r15b
leaq -0x6(%rdx), %rcx
cmpq $-0x3, %rcx
jae 0x25050
movq 0x38(%rdi), %rcx
subq 0x30(%rdi), %rcx
testq %rcx, %rcx
setg %cl
andb 0x40(%rdi), %cl
addq $-0x7, %rdx
cmpq $-0x5, %rdx
ja 0x25064
addq $0x48, %rdi
jmp 0x2506b
movq -0x40(%rdi,%rax), %rcx
subq -0x48(%rdi,%rax), %rcx
testq %rcx, %rcx
setg %r15b
andb -0x38(%rdi,%rax), %r15b
movq -0x40(%rdi,%rax), %rcx
subq -0x48(%rdi,%rax), %rcx
testq %rcx, %rcx
setg %cl
andb -0x38(%rdi,%rax), %cl
addq %rax, %rdi
addq $-0x48, %rdi
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
cmpq %rax, %rdx
je 0x250df
testb %cl, %cl
movl $0x10, %edi
movl $0xa, %esi
cmovnel %edi, %esi
xorl %ebp, %ebp
movzbl (%rax), %edi
leal -0x30(%rdi), %r9d
movl $0xffffffd0, %r8d       # imm = 0xFFFFFFD0
cmpb $0xa, %r9b
jb 0x250ca
testb %cl, %cl
je 0x2513d
cmpb $0x61, %dil
jl 0x250ba
movl $0xffffffa9, %r8d       # imm = 0xFFFFFFA9
cmpb $0x67, %dil
jb 0x250ca
jmp 0x2513d
leal -0x41(%rdi), %r9d
movl $0xffffffc9, %r8d       # imm = 0xFFFFFFC9
cmpb $0x6, %r9b
jae 0x2513d
addl %edi, %r8d
imull %esi, %ebp
addl %r8d, %ebp
jb 0x25123
incq %rax
cmpq %rdx, %rax
jne 0x25088
jmp 0x250e1
xorl %ebp, %ebp
movzbl %r15b, %esi
leaq 0xf(%rsp), %rdi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x251d0
movl %ebp, %eax
negl %eax
testb %r15b, %r15b
cmovel %ebp, %eax
movq 0x10(%rsp), %rdi
movl %eax, (%r14)
testq %rdi, %rdi
je 0x25118
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x7210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21fbc
jmp 0x25155
movl $0x28, %edi
callq 0x7210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21fbc
leaq 0x2b744(%rip), %rsi     # 0x508a0
leaq -0x2f65(%rip), %rdx     # 0x221fe
movq %r14, %rdi
callq 0x7710
movl $0x28, %edi
callq 0x7210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21fbc
leaq 0x2b716(%rip), %rsi     # 0x508a0
leaq -0x2f93(%rip), %rdx     # 0x221fe
movq %r14, %rdi
callq 0x7710
jmp 0x251ae
jmp 0x251a1
jmp 0x251ae
jmp 0x251a1
movq %rax, %rbx
movq %r14, %rdi
callq 0x7340
jmp 0x251b1
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x251c8
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rdi
callq 0x7740