// File: /workspace/github_cpp_makefile_star2_O3/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, %r13
movq (%rsi), %r14
movq 0x8(%rsi), %rbx
leaq -0xa8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0x5b10
leaq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
addq %rsi, %rdx
leaq -0xf8(%rbp), %rdi
callq 0x5b10
leaq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0x60(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x5b10
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0x128(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x138(%rbp), %rdi
callq 0x5b10
leaq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %r12
cmpq %r12, %rdi
je 0x5050
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x5065
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3260
leaq -0x70(%rbp), %rdi
movq %r15, (%rdi)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0x50(%rbp), %rdi
movq %r12, (%rdi)
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
movq %rbx, -0x78(%rbp)
movq %rbx, %rax
subq %r14, %rax
movq %rax, %rbx
sarq $0x7, %rbx
testq %rbx, %rbx
jle 0x513b
movq %r13, -0x30(%rbp)
andq $-0x80, %rax
movq %rax, %r12
addq %r14, %r12
incq %rbx
leaq -0x70(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x59b2
testb %al, %al
jne 0x5181
leaq 0x20(%r14), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x59b2
testb %al, %al
jne 0x5184
leaq 0x40(%r14), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x59b2
testb %al, %al
jne 0x5184
leaq 0x60(%r14), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x59b2
testb %al, %al
jne 0x5184
subq $-0x80, %r14
decq %rbx
cmpq $0x1, %rbx
jg 0x50ce
movq -0x78(%rbp), %r15
movq %r15, %rax
subq %r12, %rax
movq -0x30(%rbp), %r13
jmp 0x5142
movq %r14, %r12
movq -0x78(%rbp), %r15
sarq $0x5, %rax
cmpq $0x1, %rax
je 0x518e
cmpq $0x2, %rax
je 0x516c
cmpq $0x3, %rax
jne 0x51a0
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x59b2
testb %al, %al
jne 0x517c
addq $0x20, %r12
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x59b2
testb %al, %al
je 0x518a
movq %r12, %r15
jmp 0x51a0
movq %r14, %r15
movq -0x30(%rbp), %r13
jmp 0x51a0
addq $0x20, %r12
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x59b2
testb %al, %al
cmovneq %r12, %r15
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
leaq -0xa8(%rbp), %rbx
leaq -0xe8(%rbp), %r14
leaq -0xc8(%rbp), %r12
je 0x51ce
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x51e7
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x5209
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x522b
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xd8(%rbp), %rdi
cmpq %r12, %rdi
je 0x5246
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xf8(%rbp), %rdi
cmpq %r14, %rdi
je 0x5261
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x5283
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x529e
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3260
movq 0x8(%r13), %rbx
cmpq %rbx, %r15
je 0x52b2
movq %r13, %rdi
movq %r15, %rsi
callq 0x5bae
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 -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x52e7
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x52e7
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x596c
jmp 0x5340
movq %rax, %rbx
movq -0x138(%rbp), %rdi
cmpq %r12, %rdi
je 0x5318
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5318
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x53a6
jmp 0x5340
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x5340
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5340
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
callq 0x53a6
leaq -0xb8(%rbp), %rdi
callq 0x53a6
movq %rbx, %rdi
callq 0x3430
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0x534c
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x534c
movq %rax, %rbx
jmp 0x534c
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r12, %rdi
je 0x5358
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5358
nop