// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/common/packetinterface-linux.cpp
// Function: CPacketInterfaceLinux::GetInterfaceNames(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&) const
bool CPacketInterfaceLinux::GetInterfaceNames(std::set<std::string>& setIfNames) const
{
    bool bResult = false;
    std::ifstream devfile("/proc/net/dev");
    if (devfile.is_open())
    {
        std::string buf;
        getline(devfile, buf);
        getline(devfile, buf);
        for (;;)
        {
            getline(devfile, buf);
            if (devfile.good() == false) break;
            std::string::size_type nameStart = 0, nameEnd;
            while (nameStart < buf.size() && isspace(buf[nameStart])) nameStart++;
            nameEnd = nameStart;
            while (nameEnd < buf.size() && buf[nameEnd] && buf[nameEnd] != ':' && !isspace(buf[nameEnd])) nameEnd++;
            if (nameStart != nameEnd && nameEnd < buf.size() && buf[nameEnd] == ':' && (nameEnd - nameStart) < IFNAMSIZ)
            {
                setIfNames.insert(buf.substr(nameStart, nameEnd-nameStart));
            }
        }
        devfile.close();
        bResult = true;
    }
    return bResult;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rsi, %r14
leaq 0x2916(%rip), %rsi      # 0x14733
leaq 0x50(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x4440
leaq 0xc8(%rsp), %rdi
callq 0x40b0
movl %eax, %ebx
testb %al, %al
je 0x11f5c
movb %bl, 0xf(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4090
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4090
leaq 0x50(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r13
movabsq $0x400000100000001, %rbp # imm = 0x400000100000001
movabsq $0x100003e00, %rbx      # imm = 0x100003E00
movq %r15, %rdi
movq %r12, %rsi
callq 0x4090
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x70(%rsp,%rax)
jne 0x11f44
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rsi
xorl %edx, %edx
cmpq %rdx, %rsi
je 0x11edc
movzbl (%rax,%rdx), %ecx
cmpq $0x20, %rcx
ja 0x11edf
btq %rcx, %rbx
jae 0x11edf
incq %rdx
jmp 0x11ec2
movq %rsi, %rdx
addq %rdx, %rax
xorl %ecx, %ecx
leaq (%rdx,%rcx), %rdi
cmpq %rsi, %rdi
jae 0x11e97
movzbl (%rax,%rcx), %edi
cmpq $0x3a, %rdi
ja 0x11efd
btq %rdi, %rbp
jb 0x11f0c
leal -0xe(%rdi), %r8d
cmpb $-0x6, %r8b
ja 0x11f0c
incq %rcx
jmp 0x11ee4
testq %rcx, %rcx
je 0x11e97
cmpb $0x3a, %dil
jne 0x11e97
cmpq $0xf, %rcx
ja 0x11e97
movq %r13, %rdi
movq %r12, %rsi
callq 0x42a0
movq %r14, %rdi
movq %r13, %rsi
callq 0x13244
movq %r13, %rdi
callq 0x4170
jmp 0x11e97
leaq 0x50(%rsp), %rdi
callq 0x40a0
leaq 0x10(%rsp), %rdi
callq 0x4170
movb 0xf(%rsp), %bl
leaq 0x50(%rsp), %rdi
callq 0x40e0
movl %ebx, %eax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11f8d
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x4170
jmp 0x11f90
jmp 0x11f8d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4170
leaq 0x50(%rsp), %rdi
callq 0x40e0
movq %rbx, %rdi
callq 0x4410