// File: /workspace/github_cpp_makefile_star2_O2/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, -0x40(%rbp)
movq %r8, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq (%rdx), %r12
movq 0x8(%rdx), %rax
movq %rax, -0x48(%rbp)
leaq -0xc8(%rbp), %rdi
movq %rcx, %rsi
callq 0x3350
leaq -0xa8(%rbp), %rdi
movq %r15, %rsi
callq 0x3350
leaq -0x108(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x4cac
leaq -0x88(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x4d1c
leaq -0x148(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4d1c
movq %r14, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x4be2
leaq -0x88(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x4cac
movq -0x48(%rbp), %r14
subq %r12, %r14
movq %r14, %rbx
sarq $0x7, %rbx
leaq -0x88(%rbp), %r15
testq %rbx, %rbx
jle 0x4a40
movq %r15, %rdi
movq %r12, %rsi
callq 0x4ce6
testb %al, %al
jne 0x4a8e
leaq 0x20(%r12), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x4ce6
testb %al, %al
jne 0x4a91
leaq 0x40(%r12), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x4ce6
testb %al, %al
jne 0x4a91
leaq 0x60(%r12), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x4ce6
testb %al, %al
jne 0x4a91
subq $-0x80, %r12
decq %rbx
addq $-0x80, %r14
jmp 0x49db
sarq $0x5, %r14
cmpq $0x1, %r14
je 0x4b42
cmpq $0x2, %r14
movq -0x38(%rbp), %rbx
movq -0x40(%rbp), %r15
je 0x4b23
cmpq $0x3, %r14
jne 0x4b50
leaq -0x88(%rbp), %rdi
movq %r12, %rsi
callq 0x4ce6
testb %al, %al
movq -0x30(%rbp), %r14
jne 0x4b3a
addq $0x20, %r12
jmp 0x4b27
movq %r12, %r13
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
movq -0x40(%rbp), %r15
leaq -0x88(%rbp), %rdi
callq 0x4be2
leaq -0x148(%rbp), %rdi
callq 0x4be2
leaq -0x108(%rbp), %rdi
callq 0x4be2
leaq -0xc8(%rbp), %rdi
callq 0x4be2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3350
movq 0x8(%r14), %rax
cmpq %rax, %r13
je 0x4b0e
leaq 0x20(%r13), %rsi
cmpq %rax, %rsi
je 0x4b03
movq %rbx, %rdi
callq 0x3180
leaq 0x40(%r13), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x4de8
jmp 0x4b0e
movq %r14, %rdi
movq %r13, %rsi
callq 0x4dde
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %r14
leaq -0x88(%rbp), %rdi
movq %r12, %rsi
callq 0x4ce6
testb %al, %al
je 0x4b5d
movq %r12, %r13
jmp 0x4a9d
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
movq -0x40(%rbp), %r15
jmp 0x4b61
movq -0x48(%rbp), %r13
movq -0x30(%rbp), %r14
jmp 0x4a9d
addq $0x20, %r12
leaq -0x88(%rbp), %rdi
movq %r12, %rsi
callq 0x4ce6
testb %al, %al
movq -0x48(%rbp), %r13
cmovneq %r12, %r13
jmp 0x4a9d
jmp 0x4b83
jmp 0x4b83
movq %rax, %r14
movq -0x38(%rbp), %rdi
jmp 0x4bd5
movq %rax, %r14
leaq -0x148(%rbp), %rdi
jmp 0x4ba2
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x4be2
jmp 0x4bac
movq %rax, %r14
leaq -0x108(%rbp), %rdi
callq 0x4be2
jmp 0x4bbd
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0x4be2
jmp 0x4bda
movq %rax, %r14
leaq -0xc8(%rbp), %rdi
callq 0x3130
movq %r14, %rdi
callq 0x3480