// File: /workspace/github_c_makefile_star2_O1/patriciogonzalezvivo[P]tprint/include/serial/list_ports_linux.cc
// Function: usb_sysfs_hw_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string
usb_sysfs_hw_string(const string& sysfs_path)
{
    string serial_number = read_line( sysfs_path + "/serial" );

    if( serial_number.length() > 0 )
    {
        serial_number = format( "SNR=%s", serial_number.c_str() );
    }

    string vid = read_line( sysfs_path + "/idVendor" );

    string pid = read_line( sysfs_path + "/idProduct" );

    return format("USB VID:PID=%s:%s %s", vid.c_str(), pid.c_str(), serial_number.c_str() );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %rbx
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 0x1761b(%rip), %rsi     # 0x210d4
movq %r15, %rdi
callq 0x8680
leaq -0xa8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x9cef
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9ae6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
cmpq $0x0, -0xa0(%rbp)
je 0x9b2c
movq -0xa8(%rbp), %rdx
leaq 0x175e7(%rip), %rsi     # 0x210e5
leaq -0x48(%rbp), %rdi
xorl %eax, %eax
callq 0x9462
leaq -0xa8(%rbp), %rdi
movq %r15, %rsi
callq 0x8400
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x9b2c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0xa26a
leaq 0x1759e(%rip), %rsi     # 0x210ec
leaq -0x68(%rbp), %rdi
callq 0x8680
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x9cef
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b79
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0xa26a
leaq 0x17558(%rip), %rsi     # 0x210f6
leaq -0x88(%rbp), %rdi
callq 0x8680
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x9cef
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x9bd2
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x8320
movq -0x48(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq -0xa8(%rbp), %r8
leaq 0x17519(%rip), %rsi     # 0x21101
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9462
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9c07
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9c1c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9c3b
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x8320
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9cb1
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9c86
movq -0x58(%rbp), %rsi
jmp 0x9c79
jmp 0x9c66
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x9c86
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x8320
jmp 0x9c86
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9cb4
movq -0x38(%rbp), %rsi
jmp 0x9ca7
jmp 0x9c97
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9cb4
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8320
jmp 0x9cb4
movq %rax, %rbx
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ce7
movq -0x98(%rbp), %rsi
jmp 0x9cdf
jmp 0x9ccf
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9ce7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8320
movq %rbx, %rdi
callq 0x8600