// File: /workspace/github_cpp_makefile_star2_O3/knei-knurow[P]lidar-visualizations/src/app.cpp
// Function: App::get_arg_value(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string App::get_arg_value(std::vector<std::string>& all_args,
                               const std::string& short_arg,
                               const std::string& long_arg,
                               const std::string& default_value) {
  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; });

  std::string value = default_value;
  if (it == all_args.end()) {
  } else if (it + 1 == all_args.end()) {
    all_args.erase(it);
  } else {
    value = *(it + 1);
    all_args.erase(it, it + 2);
  }
  return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %r9, %r15
movq %r8, %r14
movq %rdi, %rbx
movq (%rdx), %r12
movq %rdx, -0x38(%rbp)
movq 0x8(%rdx), %rax
movq %rax, -0x40(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0x5b10
leaq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0x130(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x5b10
leaq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0x70(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x140(%rbp), %rsi
movq -0x138(%rbp), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x5b10
leaq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
leaq -0xf0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x5b10
leaq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
movq -0x60(%rbp), %rdi
cmpq %r13, %rdi
je 0x5547
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x555c
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
leaq -0x80(%rbp), %rdi
movq %r14, (%rdi)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
movq %rbx, -0x30(%rbp)
leaq -0x60(%rbp), %rdi
movq %r13, (%rdi)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
addq %rsi, %rdx
callq 0x5b10
movq %r15, -0x148(%rbp)
movq -0x40(%rbp), %rax
subq %r12, %rax
movq %rax, %rbx
sarq $0x7, %rbx
testq %rbx, %rbx
jle 0x562e
andq $-0x80, %rax
movq %rax, %r15
addq %r12, %r15
incq %rbx
leaq -0x80(%rbp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x5a64
testb %al, %al
jne 0x567f
leaq 0x20(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x5a64
testb %al, %al
jne 0x5682
leaq 0x40(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x5a64
testb %al, %al
jne 0x5682
leaq 0x60(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x5a64
testb %al, %al
jne 0x5682
subq $-0x80, %r12
decq %rbx
cmpq $0x1, %rbx
jg 0x55c5
movq -0x40(%rbp), %rax
subq %r15, %rax
jmp 0x5631
movq %r12, %r15
sarq $0x5, %rax
cmpq $0x1, %rax
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
leaq -0xb0(%rbp), %r12
je 0x569d
cmpq $0x2, %rax
je 0x566a
cmpq $0x3, %rax
jne 0x5693
leaq -0x80(%rbp), %rdi
movq %r15, %rsi
callq 0x5a64
testb %al, %al
jne 0x567a
addq $0x20, %r15
leaq -0x80(%rbp), %rdi
movq %r15, %rsi
callq 0x5a64
testb %al, %al
je 0x5699
movq %r15, %r13
jmp 0x56b3
movq %r12, %r13
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
leaq -0xb0(%rbp), %r12
jmp 0x56b3
movq -0x40(%rbp), %r13
jmp 0x56b3
addq $0x20, %r15
leaq -0x80(%rbp), %rdi
movq %r15, %rsi
callq 0x5a64
testb %al, %al
movq -0x40(%rbp), %r13
cmovneq %r15, %r13
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x56cc
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x56e5
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x5707
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x5729
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x574b
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x576d
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x578f
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0x57aa
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x3260
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq -0x148(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x5b10
movq 0x8(%r14), %rax
cmpq %rax, %r13
je 0x5800
leaq 0x20(%r13), %rsi
cmpq %rax, %rsi
je 0x57f5
movq %rbx, %rdi
callq 0x3140
leaq 0x40(%r13), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x5c2a
jmp 0x5800
movq %r14, %rdi
movq %r13, %rsi
callq 0x5bae
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5819
jmp 0x5819
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq %r15, %rdi
je 0x58cf
movq (%r15), %rsi
jmp 0x591c
movq %r14, %rcx
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %rcx, %rdi
je 0x5854
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5854
movq %rax, %r14
leaq -0x100(%rbp), %rdi
callq 0x5a1e
jmp 0x58b7
movq %rax, %r14
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x588c
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x588c
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0x5926
jmp 0x58b7
movq %r14, %rcx
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %rcx, %rdi
je 0x58b7
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x58b7
movq %rax, %r14
leaq -0x140(%rbp), %rdi
callq 0x5926
leaq -0xc0(%rbp), %rdi
callq 0x5926
movq %r14, %rdi
callq 0x3430
movq %r14, %rcx
movq %rax, %r14
movq -0x140(%rbp), %rdi
cmpq %rcx, %rdi
je 0x58c3
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x58c3
movq %rax, %r14
jmp 0x58c3
movq %rax, %r14
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x58cf
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x58cf