// File: /workspace/github_cpp_makefile_star2_O2/p-ranav[P]video_device_discovery/src/helpers.cpp
// Function: get_video_device_files[abi:cxx11]()
std::vector<fs::path> get_video_device_files() {
  std::vector<fs::path> result; 
  auto root = fs::path("/sys/class/video4linux");
  for(auto& p: fs::directory_iterator(root)) {
    if (fs::is_symlink(p)) {
      auto absolute_path = fs::read_symlink(p);
      if (absolute_path.is_relative()) {
	absolute_path = fs::canonical(root / absolute_path);
      }
      if (string_contains(absolute_path.filename().string(), std::string{"video"}))
	result.push_back(fs::path{"/dev"} / absolute_path.filename());
    }
  }
  return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x38(%rbp)
andq $0x0, 0x10(%rdi)
leaq 0x14225(%rip), %rsi     # 0x1dd34
leaq -0xd0(%rbp), %rdi
callq 0x9e6e
leaq -0x70(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x9ebe
leaq -0x90(%rbp), %rbx
leaq -0x70(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9fc4
movups (%rbx), %xmm0
leaq -0x40(%rbp), %rax
movups %xmm0, -0x8(%rax)
leaq -0x88(%rbp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rdi)
callq 0xa002
leaq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0x9fc4
leaq -0x58(%rbp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
leaq -0x78(%rbp), %rdi
callq 0xa002
leaq -0x1d0(%rbp), %r13
leaq -0x110(%rbp), %r14
leaq -0x150(%rbp), %r15
leaq -0x190(%rbp), %rbx
movq -0x40(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x9cdd
leaq -0x48(%rbp), %rdi
callq 0xb780
movq %rax, %r12
movq %rax, %rdi
callq 0x9ecc
testb %al, %al
je 0x9ccf
movq %r13, %rdi
movq %r12, %rsi
callq 0x120b0
movq %r13, %rdi
callq 0x9edc
testb %al, %al
je 0x9c27
movq %r14, %rdi
leaq -0xd0(%rbp), %rsi
movq %r13, %rdx
callq 0x9ee9
movq %r15, %rdi
callq 0xfe80
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x18530
movq %r13, %rdi
movq %rbx, %rsi
callq 0x8526
movq %rbx, %rdi
callq 0x68f2
movq %r15, %rdi
callq 0x68f2
movq %r14, %rdi
callq 0x68f2
movq %rbx, %rdi
movq %r13, %rsi
callq 0x9f22
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6774
movq %r15, %rdi
leaq 0x1341e(%rip), %rsi     # 0x1d065
leaq -0x29(%rbp), %rdx
callq 0x7038
movq %r14, %rdi
movq %r15, %rsi
callq 0x8a1e
movl %eax, %r12d
movq %r15, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x68f2
testb %r12b, %r12b
je 0x9cc7
movq %r14, %rdi
leaq 0x140c6(%rip), %rsi     # 0x1dd4b
callq 0x9f74
movq %r15, %rdi
movq %r13, %rsi
callq 0x9f22
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x9ee9
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0xa104
movq %rbx, %rdi
callq 0x68f2
movq %r15, %rdi
callq 0x68f2
movq %r14, %rdi
callq 0x68f2
movq %r13, %rdi
callq 0x68f2
leaq -0x48(%rbp), %rdi
callq 0xcd10
jmp 0x9b9b
leaq -0x58(%rbp), %rdi
callq 0xa002
leaq -0x40(%rbp), %rdi
callq 0xa002
leaq -0x68(%rbp), %rdi
callq 0xa002
leaq -0xd0(%rbp), %rdi
callq 0x68f2
movq -0x38(%rbp), %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x9db7
movq %rax, %rbx
jmp 0x9dc3
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x68f2
jmp 0x9d40
jmp 0x9d3d
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x68f2
jmp 0x9d53
jmp 0x9d50
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
jmp 0x9d7f
jmp 0x9d86
jmp 0x9d86
movq %rax, %rbx
jmp 0x9d78
jmp 0x9d99
jmp 0x9d86
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x4170
leaq -0x190(%rbp), %rdi
callq 0x68f2
jmp 0x9d89
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
callq 0x68f2
jmp 0x9d9c
jmp 0x9d99
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xa002
leaq -0x40(%rbp), %rdi
callq 0xa002
leaq -0x68(%rbp), %rdi
callq 0xa002
leaq -0xd0(%rbp), %rdi
callq 0x68f2
movq -0x38(%rbp), %rdi
callq 0x70b2
movq %rbx, %rdi
callq 0x45e0