// File: /workspace/github_cpp_makefile_star2_O1/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, -0x148(%rbp)
movq %r8, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq (%rdx), %r12
movq 0x8(%rdx), %rax
movq %rax, -0x40(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x5aa4
leaq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0xb0(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0x5aa4
leaq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0x70(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x5aa4
leaq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x5aa4
leaq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x54e4
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x54f9
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
leaq -0x80(%rbp), %rdi
movq %r13, (%rdi)
movq -0x140(%rbp), %rsi
movq -0x138(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
movq %r14, -0x38(%rbp)
movq %rbx, -0x30(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
movq %rax, (%rdi)
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
addq %rsi, %rdx
callq 0x5aa4
movq -0x40(%rbp), %rbx
subq %r12, %rbx
movq %rbx, %r14
sarq $0x7, %r14
testq %r14, %r14
jle 0x55ca
andq $-0x80, %rbx
addq %r12, %rbx
incq %r14
leaq -0x80(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x59f6
testb %al, %al
jne 0x5618
leaq 0x20(%r12), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x59f6
testb %al, %al
jne 0x561b
leaq 0x40(%r12), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x59f6
testb %al, %al
jne 0x561b
leaq 0x60(%r12), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x59f6
testb %al, %al
jne 0x561b
subq $-0x80, %r12
decq %r14
cmpq $0x1, %r14
jg 0x5560
movq %rbx, %r12
leaq -0xb0(%rbp), %r15
movq -0x40(%rbp), %rax
subq %r12, %rax
sarq $0x5, %rax
cmpq $0x1, %rax
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
je 0x5636
cmpq $0x2, %rax
je 0x5603
cmpq $0x3, %rax
jne 0x562c
leaq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x59f6
testb %al, %al
jne 0x5613
addq $0x20, %r12
leaq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x59f6
testb %al, %al
je 0x5632
movq %r12, %r13
jmp 0x564c
movq %r12, %r13
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
leaq -0xb0(%rbp), %r15
jmp 0x564c
movq -0x40(%rbp), %r13
jmp 0x564c
addq $0x20, %r12
leaq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x59f6
testb %al, %al
movq -0x40(%rbp), %r13
cmovneq %r12, %r13
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x5665
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x567e
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x56a0
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x56c2
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x56e4
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xc0(%rbp), %rdi
cmpq %r15, %rdi
je 0x56ff
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x5721
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x5743
movq -0xf0(%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 0x5aa4
movq 0x8(%r14), %rax
cmpq %rax, %r13
je 0x5799
leaq 0x20(%r13), %rsi
cmpq %rax, %rsi
je 0x578e
movq %rbx, %rdi
callq 0x3140
leaq 0x40(%r13), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x5bb6
jmp 0x5799
movq %r14, %rdi
movq %r13, %rsi
callq 0x5b3e
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x57b2
jmp 0x57b2
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq %r15, %rdi
je 0x5862
movq (%r15), %rsi
jmp 0x58ac
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x57ea
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x57ea
movq %rax, %r14
leaq -0x140(%rbp), %rdi
callq 0x59b0
jmp 0x584a
movq %rax, %r14
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x5822
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5822
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0x58b6
jmp 0x584a
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x584a
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x584a
movq %rax, %r14
leaq -0xc0(%rbp), %rdi
callq 0x58b6
leaq -0x100(%rbp), %rdi
callq 0x58b6
movq %r14, %rdi
callq 0x3430
movq %rax, %r14
movq -0xc0(%rbp), %rdi
cmpq %r15, %rdi
je 0x5856
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5856
movq %rax, %r14
jmp 0x5856
movq %rax, %r14
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x5862
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x5862