// File: /workspace/github_cpp_makefile_star2_O2/knei-knurow[P]lidar-visualizations/src/app.cpp
// Function: App::check_arg(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>>>>&, 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&)
bool App::check_arg(std::vector<std::string>& all_args,
                    const std::string& short_arg,
                    const std::string& long_arg) {
  auto it = std::find_if(
      all_args.begin(), all_args.end(),
      [short_arg, long_arg](const std::string& s) { return s == short_arg || s == long_arg; });

  if (it == all_args.end()) {
    return false;
  }

  all_args.erase(it);
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, %r15
movq %rsi, %rbx
movq (%rsi), %r14
movq 0x8(%rsi), %r12
leaq -0xb8(%rbp), %rdi
movq %rdx, %rsi
callq 0x3350
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
callq 0x3350
leaq -0xf8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x4c02
leaq -0x78(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x4c72
leaq -0x138(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x4c72
movq %rbx, -0x30(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x48fc
leaq -0x78(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x4c02
movq %r12, -0x38(%rbp)
movq %r12, %rbx
subq %r14, %rbx
movq %rbx, %r13
sarq $0x7, %r13
leaq -0x78(%rbp), %r12
testq %r13, %r13
jle 0x47d2
movq %r12, %rdi
movq %r14, %rsi
callq 0x4c3c
testb %al, %al
jne 0x481d
leaq 0x20(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x4c3c
testb %al, %al
jne 0x4820
leaq 0x40(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x4c3c
testb %al, %al
jne 0x4820
leaq 0x60(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x4c3c
testb %al, %al
jne 0x4820
subq $-0x80, %r14
decq %r13
addq $-0x80, %rbx
jmp 0x4770
sarq $0x5, %rbx
cmpq $0x1, %rbx
je 0x487e
cmpq $0x2, %rbx
movq -0x30(%rbp), %r12
je 0x4808
cmpq $0x3, %rbx
jne 0x4884
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x4c3c
testb %al, %al
jne 0x4818
addq $0x20, %r14
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x4c3c
testb %al, %al
je 0x488a
movq %r14, %r15
jmp 0x4824
movq %r14, %r15
movq -0x30(%rbp), %r12
leaq -0x78(%rbp), %rdi
callq 0x48fc
leaq -0x138(%rbp), %rdi
callq 0x48fc
leaq -0xf8(%rbp), %rdi
callq 0x48fc
leaq -0xb8(%rbp), %rdi
callq 0x48fc
movq 0x8(%r12), %rbx
cmpq %rbx, %r15
je 0x4866
movq %r12, %rdi
movq %r15, %rsi
callq 0x4dde
cmpq %rbx, %r15
setne %al
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %r12
jmp 0x488e
movq -0x38(%rbp), %r15
jmp 0x4824
addq $0x20, %r14
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x4c3c
testb %al, %al
movq -0x38(%rbp), %r15
cmovneq %r14, %r15
jmp 0x4824
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
jmp 0x48bc
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x48fc
jmp 0x48c6
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
callq 0x48fc
jmp 0x48d7
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x48fc
jmp 0x48f4
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3480