// File: /workspace/github_cpp_makefile_star2_O1/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, %r12
movq (%rsi), %r14
movq 0x8(%rsi), %rbx
leaq -0xa8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0x5aa4
leaq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
addq %rsi, %rdx
leaq -0xf8(%rbp), %rdi
callq 0x5aa4
leaq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0x68(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0x5aa4
leaq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0x128(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0x138(%rbp), %rdi
callq 0x5aa4
leaq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x4fd8
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
je 0x4fed
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3260
leaq -0x78(%rbp), %rdi
movq %r15, (%rdi)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
movq %rax, (%rdi)
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
movq %rbx, -0x38(%rbp)
subq %r14, %rbx
movq %rbx, %r13
sarq $0x7, %r13
testq %r13, %r13
jle 0x50b4
movq %r12, -0x30(%rbp)
andq $-0x80, %rbx
addq %r14, %rbx
incq %r13
leaq -0x78(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x5942
testb %al, %al
jne 0x5108
leaq 0x20(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x5942
testb %al, %al
jne 0x510b
leaq 0x40(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x5942
testb %al, %al
jne 0x510b
leaq 0x60(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x5942
testb %al, %al
jne 0x510b
subq $-0x80, %r14
decq %r13
cmpq $0x1, %r13
jg 0x5050
movq %rbx, %r14
movq -0x30(%rbp), %r12
leaq -0xa8(%rbp), %rbx
movq -0x38(%rbp), %rax
subq %r14, %rax
sarq $0x5, %rax
cmpq $0x1, %rax
leaq -0xe8(%rbp), %r13
je 0x5129
cmpq $0x2, %rax
je 0x50f3
cmpq $0x3, %rax
jne 0x511f
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x5942
testb %al, %al
jne 0x5103
addq $0x20, %r14
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x5942
testb %al, %al
je 0x5125
movq %r14, %r15
jmp 0x513f
movq %r14, %r15
movq -0x30(%rbp), %r12
leaq -0xa8(%rbp), %rbx
leaq -0xe8(%rbp), %r13
jmp 0x513f
movq -0x38(%rbp), %r15
jmp 0x513f
addq $0x20, %r14
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x5942
testb %al, %al
movq -0x38(%rbp), %r15
cmovneq %r14, %r15
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x5158
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x5171
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x5193
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x51b5
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x51d7
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x51f2
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x5214
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x522f
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3260
movq 0x8(%r12), %rbx
cmpq %rbx, %r15
je 0x5244
movq %r12, %rdi
movq %r15, %rsi
callq 0x5b3e
cmpq %rbx, %r15
setne %al
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x527d
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x527d
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x58fc
jmp 0x52d6
movq %rax, %rbx
movq -0x138(%rbp), %rdi
cmpq %r13, %rdi
je 0x52ae
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x52ae
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x533c
jmp 0x52d6
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
je 0x52d6
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x52d6
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
callq 0x533c
leaq -0xb8(%rbp), %rdi
callq 0x533c
movq %rbx, %rdi
callq 0x3430
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0x52e2
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x52e2
movq %rax, %rbx
jmp 0x52e2
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r13, %rdi
je 0x52ee
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x52ee
nop