// File: /workspace/github_cpp_makefile_star2_O3/ef-gy[P]libefgy/include/ef.gy/cli.h
// Function: efgy::cli::processor<efgy::cli::option, efgy::cli::hint>::apply(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
void apply(const std::vector<std::string> &args) {
    bool doneWithArgs = false;
    bool firstArg = true;

    for (const auto &arg : args) {
      if (arg == "--") {
        doneWithArgs = true;
        continue;
      }

      bool haveMatch = false;

      if (!doneWithArgs) {
        for (const auto &opt : opts) {
          std::smatch match;
          if (std::regex_match(arg, match, opt->match) && opt->handler(match)) {
            matches++;
            haveMatch = true;
          }
        }
      }

      if (!haveMatch && !firstArg) {
        remainder.push_back(arg);
      }

      firstArg = false;
    }

    if (showUsage && (matches == 0) && (args.size() > 0) &&
        (remainder.size() == 0)) {
      usage(std::cout, args[0]);
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rsi), %r15
movq %rsi, 0x8(%rsp)
movq 0x8(%rsi), %r13
cmpq %r13, %r15
je 0x1118e
leaq 0x8(%rbx), %rax
movq %rax, 0x18(%rsp)
movb $0x1, %al
movl %eax, (%rsp)
xorl %r12d, %r12d
leaq 0x3b37(%rip), %r14      # 0x14ba9
leaq 0x20(%rsp), %rbp
movq %r13, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x4070
testl %eax, %eax
je 0x110a2
testb $0x1, %r12b
je 0x110aa
testb $0x1, (%rsp)
je 0x1116d
movl $0x0, (%rsp)
movb $0x1, %r12b
jmp 0x11181
movl %r12d, 0x4(%rsp)
movq 0x28(%rbx), %r12
movq 0x18(%r12), %r14
addq $0x8, %r12
cmpq %r12, %r14
je 0x1114f
xorl %r13d, %r13d
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x20(%r14), %rcx
addq $0x60, %rcx
movq (%r15), %rdi
movq 0x8(%r15), %rsi
addq %rdi, %rsi
movq %rbp, %rdx
xorl %r8d, %r8d
callq 0x1140a
testb %al, %al
je 0x11119
movq 0x20(%r14), %rax
cmpq $0x0, 0x30(%rax)
je 0x111d0
leaq 0x20(%rax), %rdi
movq %rbp, %rsi
callq *0x38(%rax)
testb %al, %al
je 0x11119
incq (%rbx)
movb $0x1, %r13b
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x11130
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4240
movq %r14, %rdi
callq 0x42c0
movq %rax, %r14
cmpq %r12, %rax
jne 0x110c8
orb (%rsp), %r13b
testb $0x1, %r13b
movq 0x10(%rsp), %r13
jmp 0x11153
testb $0x1, (%rsp)
leaq 0x3a4f(%rip), %r14      # 0x14ba9
movl 0x4(%rsp), %r12d
je 0x1116d
movl $0x0, (%rsp)
xorl %r12d, %r12d
jmp 0x11181
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0xdc68
movl $0x0, (%rsp)
addq $0x20, %r15
cmpq %r13, %r15
jne 0x1107c
cmpb $0x1, 0x20(%rbx)
jne 0x111c1
cmpq $0x0, (%rbx)
jne 0x111c1
movq 0x8(%rsp), %rax
movq (%rax), %rdx
cmpq %rdx, 0x8(%rax)
je 0x111c1
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rax
jne 0x111c1
movq 0xbdff(%rip), %rsi      # 0x1cfb8
movq %rbx, %rdi
callq 0x10d2e
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x40c0
jmp 0x111d7
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x111f1
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4240
movq %rbx, %rdi
callq 0x43b0
nop