// File: /workspace/github_c_makefile_star2_O3/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 0xa1e2
leaq 0x1667a(%rip), %rsi     # 0x200d4
movq %r15, %rdi
callq 0x8670
movq -0x48(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
callq 0x9c8d
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9a87
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
cmpq $0x0, -0xa0(%rbp)
je 0x9acd
movq -0xa8(%rbp), %rdx
leaq 0x16646(%rip), %rsi     # 0x200e5
leaq -0x48(%rbp), %rdi
xorl %eax, %eax
callq 0x943b
leaq -0xa8(%rbp), %rdi
movq %r15, %rsi
callq 0x83f0
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x9acd
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0xa1e2
leaq 0x165fd(%rip), %rsi     # 0x200ec
leaq -0x68(%rbp), %rdi
callq 0x8670
movq -0x68(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x9c8d
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b1a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0xa1e2
leaq 0x165b7(%rip), %rsi     # 0x200f6
leaq -0x88(%rbp), %rdi
callq 0x8670
movq -0x88(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x9c8d
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x9b73
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x8310
movq -0x48(%rbp), %rdx
movq -0x68(%rbp), %rcx
movq -0xa8(%rbp), %r8
leaq 0x16578(%rip), %rsi     # 0x20101
movq %rbx, %rdi
xorl %eax, %eax
callq 0x943b
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9ba8
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9bbd
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9bdc
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x8310
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9c4f
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9c24
movq -0x58(%rbp), %rsi
jmp 0x9c17
jmp 0x9c04
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x9c24
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x8310
jmp 0x9c24
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9c52
movq -0x38(%rbp), %rsi
jmp 0x9c45
jmp 0x9c35
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x9c52
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x8310
jmp 0x9c52
movq %rax, %rbx
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9c85
movq -0x98(%rbp), %rsi
jmp 0x9c7d
jmp 0x9c6d
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x9c85
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x8310
movq %rbx, %rdi
callq 0x85f0