// File: /workspace/github_c_makefile_star2_O3/patriciogonzalezvivo[P]tprint/include/serial/list_ports_linux.cc
// Function: usb_sysfs_friendly_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string
usb_sysfs_friendly_name(const string& sys_usb_path)
{
    unsigned int device_number = 0;

    istringstream( read_line(sys_usb_path + "/devnum") ) >> device_number;

    string manufacturer = read_line( sys_usb_path + "/manufacturer" );

    string product = read_line( sys_usb_path + "/product" );

    string serial = read_line( sys_usb_path + "/serial" );

    if( manufacturer.empty() && product.empty() && serial.empty() )
        return "";

    return format("%s %s %s", manufacturer.c_str(), product.c_str(), serial.c_str() );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %r14
movq %rdi, %rbx
movl $0x0, -0x6c(%rbp)
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0xa1e2
leaq 0x169b3(%rip), %rsi     # 0x200b5
movq %r15, %rdi
callq 0x8670
movq -0x48(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x9c8d
leaq -0x210(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x8, %edx
callq 0x8590
leaq -0x210(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x85e0
movq 0x1d875(%rip), %rsi     # 0x26fb8
leaq -0x210(%rbp), %rdi
callq 0x8490
leaq -0x198(%rbp), %rdi
callq 0x8100
leaq -0x58(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x9774
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9789
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x68(%rbp), %r15
movq %r13, (%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa1e2
leaq 0x16914(%rip), %rsi     # 0x200bd
movq %r15, %rdi
callq 0x8670
movq -0x68(%rbp), %rsi
leaq -0x210(%rbp), %rdi
callq 0x9c8d
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x97d6
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x48(%rbp), %rdi
movq %r12, (%rdi)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0xa1e2
leaq 0x168d8(%rip), %rsi     # 0x200cb
leaq -0x48(%rbp), %rdi
callq 0x8670
movq -0x48(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x9c8d
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x981e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x80(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xa1e2
leaq 0x16891(%rip), %rsi     # 0x200d4
leaq -0x90(%rbp), %rdi
callq 0x8670
movq -0x90(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x9c8d
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x9877
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x8310
cmpq $0x0, -0x208(%rbp)
jne 0x98aa
cmpq $0x0, -0x60(%rbp)
jne 0x98aa
cmpq $0x0, -0x40(%rbp)
jne 0x98aa
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x17f0f(%rip), %rdx     # 0x217ac
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x9f1e
jmp 0x98ca
movq -0x210(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq -0x48(%rbp), %r8
leaq 0x1681c(%rip), %rsi     # 0x200dc
movq %rbx, %rdi
xorl %eax, %eax
callq 0x943b
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x98df
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x98f4
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x200(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9913
movq -0x200(%rbp), %rsi
incq %rsi
callq 0x8310
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9927
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x995b
movq -0x38(%rbp), %rsi
jmp 0x994e
jmp 0x993b
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x995b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x8310
jmp 0x995b
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x9989
movq -0x58(%rbp), %rsi
jmp 0x997c
jmp 0x996c
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9989
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
jmp 0x9989
movq %rax, %rbx
leaq -0x200(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a12
movq -0x200(%rbp), %rsi
jmp 0x9a0a
jmp 0x99a4
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x9a12
movq -0x58(%rbp), %rsi
jmp 0x9a0a
movq %rax, %rbx
movq 0x1d5f8(%rip), %rsi     # 0x26fb8
leaq -0x210(%rbp), %rdi
callq 0x8490
leaq -0x198(%rbp), %rdi
callq 0x8100
jmp 0x99dd
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x99fd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
jmp 0x99fd
jmp 0x99fa
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9a12
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
movq %rbx, %rdi
callq 0x85f0