// File: 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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
movb $0x0, -0x11(%rbp)
movb $0x1, -0x12(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x17050
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x17080
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x16fc0
testb $0x1, %al
jne 0x2a78e
jmp 0x2a8ff
leaq -0x28(%rbp), %rdi
callq 0x17a30
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
leaq 0xa4af(%rip), %rsi      # 0x34c55
callq 0x14520
testb $0x1, %al
jne 0x2a7b1
jmp 0x2a7ba
movb $0x1, -0x11(%rbp)
jmp 0x2a8f1
movb $0x0, -0x39(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x2a8cd
movq -0x98(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0x2a2b0
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
callq 0x2a2e0
movq %rax, -0x58(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x28510
testb $0x1, %al
jne 0x2a807
jmp 0x2a8cb
leaq -0x50(%rbp), %rdi
callq 0x2a310
movq %rax, -0x60(%rbp)
leaq -0x80(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x2ac20
movq -0xa8(%rbp), %rsi
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rax
movq (%rax), %rdx
addq $0x60, %rdx
xorl %ecx, %ecx
callq 0x2ac60
movb %al, -0x99(%rbp)
jmp 0x2a849
movb -0x99(%rbp), %al
testb $0x1, %al
jne 0x2a855
jmp 0x2a8b4
movq -0x60(%rbp), %rax
movq (%rax), %rdi
addq $0x20, %rdi
leaq -0x80(%rbp), %rsi
callq 0x2acc0
movb %al, -0xa9(%rbp)
jmp 0x2a871
movb -0xa9(%rbp), %al
testb $0x1, %al
jne 0x2a87d
jmp 0x2a8b4
movq -0x98(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movb $0x1, -0x39(%rbp)
jmp 0x2a8b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x2ad00
jmp 0x2a96a
leaq -0x80(%rbp), %rdi
callq 0x2ad00
leaq -0x50(%rbp), %rdi
callq 0x2a330
jmp 0x2a7f1
jmp 0x2a8cd
testb $0x1, -0x39(%rbp)
jne 0x2a8ed
testb $0x1, -0x12(%rbp)
jne 0x2a8ed
movq -0x98(%rbp), %rdi
addq $0x8, %rdi
movq -0x38(%rbp), %rsi
callq 0x1f940
movb $0x0, -0x12(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x17980
jmp 0x2a778
movq -0x98(%rbp), %rax
testb $0x1, 0x20(%rax)
je 0x2a961
movq -0x98(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x2a961
movq -0x10(%rbp), %rdi
callq 0x19760
cmpq $0x0, %rax
jbe 0x2a961
movq -0x98(%rbp), %rdi
addq $0x8, %rdi
callq 0x19760
cmpq $0x0, %rax
jne 0x2a961
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2ad20
movq -0x98(%rbp), %rdi
movq %rax, %rdx
movq 0x23654(%rip), %rsi     # 0x4dfb0
callq 0x2a050
addq $0xb0, %rsp
popq %rbp
retq
movq -0x88(%rbp), %rdi
callq 0x55a0
nopw %cs:(%rax,%rax)