// File: /workspace/github_c_makefile_star2_O1/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 0xa26a
leaq 0x17957(%rip), %rsi     # 0x210b5
movq %r15, %rdi
callq 0x8680
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x9cef
leaq -0x210(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x8, %edx
callq 0x85a0
leaq -0x210(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x85f0
movq 0x1e819(%rip), %rsi     # 0x27fb8
leaq -0x210(%rbp), %rdi
callq 0x84a0
leaq -0x198(%rbp), %rdi
callq 0x8100
leaq -0x58(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x97d0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x97e5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x68(%rbp), %r15
movq %r13, (%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa26a
leaq 0x178b8(%rip), %rsi     # 0x210bd
movq %r15, %rdi
callq 0x8680
leaq -0x210(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x9cef
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x9832
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x48(%rbp), %rdi
movq %r12, (%rdi)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0xa26a
leaq 0x1787c(%rip), %rsi     # 0x210cb
leaq -0x48(%rbp), %rdi
callq 0x8680
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x9cef
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x987a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x80(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xa26a
leaq 0x17835(%rip), %rsi     # 0x210d4
leaq -0x90(%rbp), %rdi
callq 0x8680
leaq -0x48(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x9cef
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x98d3
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x8320
cmpq $0x0, -0x208(%rbp)
jne 0x9906
cmpq $0x0, -0x60(%rbp)
jne 0x9906
cmpq $0x0, -0x40(%rbp)
jne 0x9906
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x18ea7(%rip), %rdx     # 0x227a0
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x9f82
jmp 0x9926
movq -0x210(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq -0x48(%rbp), %r8
leaq 0x177c0(%rip), %rsi     # 0x210dc
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9462
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x993b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x9950
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x200(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x996f
movq -0x200(%rbp), %rsi
incq %rsi
callq 0x8320
movq %rbx, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9986
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x99ba
movq -0x38(%rbp), %rsi
jmp 0x99ad
jmp 0x999a
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x99ba
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x8320
jmp 0x99ba
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x99e8
movq -0x58(%rbp), %rsi
jmp 0x99db
jmp 0x99cb
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x99e8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
jmp 0x99e8
movq %rax, %rbx
leaq -0x200(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a71
movq -0x200(%rbp), %rsi
jmp 0x9a69
jmp 0x9a03
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x9a71
movq -0x58(%rbp), %rsi
jmp 0x9a69
movq %rax, %rbx
movq 0x1e599(%rip), %rsi     # 0x27fb8
leaq -0x210(%rbp), %rdi
callq 0x84a0
leaq -0x198(%rbp), %rdi
callq 0x8100
jmp 0x9a3c
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a5c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
jmp 0x9a5c
jmp 0x9a59
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9a71
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
movq %rbx, %rdi
callq 0x8600