// File: /workspace/github_cpp_makefile_star2_O3/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 $0x248, %rsp            # imm = 0x248
movq %rsi, %r14
leaq 0x2d42(%rip), %rsi      # 0x16733
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x8, %edx
callq 0x4410
leaq 0xb8(%rsp), %rdi
callq 0x40a0
movl %eax, %ebx
testb %al, %al
je 0x13bab
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x40(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %edx
leaq 0x40(%rsp), %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x4420
movq 0x40(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %edx
leaq 0x40(%rsp), %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x4420
movq %rsp, %r12
leaq 0x20(%rsp), %r13
movabsq $0x400000100000001, %rbp # imm = 0x400000100000001
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x4420
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x60(%rsp,%rax)
jne 0x13b86
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x13af7
movq (%rsp), %rcx
xorl %edx, %edx
movzbl (%rcx,%rdx), %esi
leal -0x9(%rsi), %edi
cmpl $0x5, %edi
jae 0x13af0
incq %rdx
cmpq %rdx, %rax
jne 0x13ada
jmp 0x13a92
cmpl $0x20, %esi
je 0x13ae6
jmp 0x13af9
xorl %edx, %edx
subq %rdx, %rax
jbe 0x13a92
movq (%rsp), %rsi
addq %rdx, %rsi
xorl %ecx, %ecx
movzbl (%rsi,%rcx), %edi
cmpq $0x3a, %rdi
ja 0x13b17
btq %rdi, %rbp
jb 0x13b2e
leal -0xe(%rdi), %r8d
cmpb $-0x6, %r8b
ja 0x13b2e
incq %rcx
cmpq %rcx, %rax
jne 0x13b07
jmp 0x13a92
testq %rcx, %rcx
je 0x13a92
cmpb $0x3a, %dil
jne 0x13a92
cmpq $0xf, %rcx
ja 0x13a92
movq %r13, %rdi
movq %r12, %rsi
callq 0x4290
movq %r14, %rdi
movq %r13, %rsi
callq 0x150c8
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x13a92
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0x13a92
leaq 0x40(%rsp), %rdi
callq 0x4090
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x13bab
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4270
leaq 0x40(%rsp), %rdi
callq 0x40c0
movl %ebx, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x13bf1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0x13bf1
jmp 0x13bee
jmp 0x13bee
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x13c0c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4270
leaq 0x40(%rsp), %rdi
callq 0x40c0
movq %rbx, %rdi
callq 0x43e0