// File: /workspace/github_cpp_makefile_star2_O3/dguglielmi[P]dlan-linux-software/common/dlanmonitor.cpp
// Function: CDlanMonitor::OnTurboDeviceDescriptionResponse(CMACAddress const&, HomePlugMMEs::TurboDeviceDescription::CResponse const&)
void CDlanMonitor::OnTurboDeviceDescriptionResponse(
  const CMACAddress& adapter, 
  const HomePlugMMEs::TurboDeviceDescription::CResponse& mme)
{
  std::map<CMACAddress,NetwAdapter>::iterator itNIC;

  if((itNIC = m_mapNICs.find(adapter)) != m_mapNICs.end())
  {
    bool bUpdate = false;

    if(mme.IsRemote())
    {
      for(std::map<CMACAddress,LocalDevice>::iterator itLocalDevice = itNIC->second.mapLocalDevices.begin();
        (itLocalDevice != itNIC->second.mapLocalDevices.end()); ++itLocalDevice)
      {
        if(itLocalDevice->second.mapRemoteDeviceAges.find(mme.GetAddress()) != itLocalDevice->second.mapRemoteDeviceAges.end())
        {
          UpdateRemoteDevice(itLocalDevice->second, mme.GetAddress(), true, CDlanDevice::eTurbo, false, "", false, 
            UserDataResponse(mme.GetManufacturer() + " " + mme.GetProductName()), false, 0.0, 0.0, true, 
            std::map<CMACAddress, CDlanDataRates>(), true, CMACAddress(), true, bUpdate);
          break;
        }
      }

      itNIC->second.setRemoteTurboResponses.insert(mme.GetAddress());
    }
    else
    {
      UpdateLocalDevice(itNIC, mme.GetAddress(), true, CDlanDevice::eTurbo, false, "", false, 
        mme.GetManufacturer() + " " + mme.GetProductName(), false, CMACAddress::Null(), false, bUpdate);
    }

    if(bUpdate)
      OnUpdate();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, %r15
movq %rdi, %rbx
addq $0xa8, %rdi
callq 0xdc9e
movq %rax, %r14
leaq 0xb0(%rbx), %rax
cmpq %rax, %r14
je 0xa0f0
movb $0x0, 0x7(%rsp)
testb $0x1, 0x15(%r15)
jne 0x998e
movzwl 0xa(%r15), %eax
movw %ax, 0x94(%rsp)
movl 0x6(%r15), %eax
movl %eax, 0x90(%rsp)
leaq 0x140(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xc936(%rip), %rdx      # 0x16249
leaq 0x130(%rsp), %rdi
movq %rdx, %rsi
callq 0x642c
movzbl 0x1a(%r15), %eax
cmpb $0x3f, %al
movl $0x3f, %ecx
cmovbl %eax, %ecx
movzbl %cl, %eax
leaq 0x1b(%r15), %rsi
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
leaq 0x1b(%r15,%rax), %rdx
leaq 0x28(%rsp), %rdi
callq 0x642c
leaq 0xc704(%rip), %rsi      # 0x1605c
leaq 0x28(%rsp), %rdi
callq 0x4430
addq $0x1a, %r15
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x99fe
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9a06
movq %rbx, 0x168(%rsp)
movq 0x1a0(%r14), %r12
leaq 0x190(%r14), %rbp
cmpq %rbp, %r12
je 0xa0b0
leaq 0x6(%r15), %rbx
leaq 0xb0(%rsp), %r13
leaq 0x38(%r12), %rdi
movzwl 0x4(%rbx), %eax
movw %ax, 0xb4(%rsp)
movl (%rbx), %eax
movl %eax, 0xb0(%rsp)
movq %r13, %rsi
callq 0xe154
leaq 0x40(%r12), %rcx
cmpq %rcx, %rax
jne 0x9aba
movq %r12, %rdi
callq 0x41d0
movq %rax, %r12
cmpq %rbp, %rax
jne 0x99b9
jmp 0xa0b0
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movzbl (%r15), %eax
cmpb $0x3f, %al
movl $0x3f, %ecx
cmovbl %eax, %ecx
movzbl %cl, %eax
leaq (%r15,%rax), %rsi
addq $0x2, %rsi
movzbl -0x1(%rsi), %ecx
addq %rax, %r15
xorq $0x3f, %rax
cmpq %rcx, %rax
cmovaeq %rcx, %rax
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2(%rax,%r15), %rdx
leaq 0x70(%rsp), %rdi
callq 0x642c
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x9a86
movq 0x18(%rsp), %rdi
movq 0x70(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x9aab
movl $0xf, %edi
cmpq %r13, %rsi
je 0x9aa2
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x9b5a
leaq 0x8(%rsp), %rdi
callq 0x40e0
jmp 0x9b68
movzwl 0x4(%rbx), %eax
movw %ax, 0x6c(%rsp)
movl (%rbx), %eax
movl %eax, 0x68(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xc770(%rip), %rdx      # 0x16249
leaq 0x48(%rsp), %rdi
movq %rdx, %rsi
callq 0x642c
movzbl 0x1a(%r15), %eax
cmpb $0x3f, %al
movl $0x3f, %ecx
cmovbl %eax, %ecx
movzbl %cl, %eax
leaq 0x1b(%r15), %rsi
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
leaq 0x1b(%r15,%rax), %rdx
leaq 0x70(%rsp), %rdi
callq 0x642c
leaq 0xc53e(%rip), %rsi      # 0x1605c
leaq 0x70(%rsp), %rdi
callq 0x4430
leaq 0x1a(%r15), %rcx
leaq 0x38(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rsi
movq %rax, %rdx
addq $0x10, %rdx
cmpq %rdx, %rsi
je 0x9d85
movq %rsi, 0x28(%rsp)
movq (%rdx), %rsi
movq %rsi, 0x38(%rsp)
jmp 0x9d8b
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42b0
leaq 0x58(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9b8c
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9b92
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %r15
movq %r15, %rdi
callq 0x7004
leaq 0xe0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
xorl %eax, %eax
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x100(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x120(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x68(%rsp), %r10
movl %eax, (%r10)
movw $0x0, 0x4(%r10)
subq $0x8, %rsp
leaq 0xf(%rsp), %r11
leaq 0x98(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
pushq %r11
pushq %rax
pushq %r10
pushq %rax
pushq %r15
pushq %rax
leaq 0x168(%rsp), %rax
pushq %rax
callq 0x80e6
addq $0x40, %rsp
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x9c83
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x140(%rsp), %r14
leaq 0x38(%rsp), %r15
leaq 0x18(%rsp), %r12
je 0x9cb2
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x80(%rsp), %r13
je 0x9cd7
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x9cfc
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4270
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d17
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x9d31
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9d48
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9d5f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x130(%rsp), %rdi
cmpq %r14, %rdi
je 0xa0db
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa0db
movups (%rdx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rdx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movzbl (%rcx), %eax
cmpb $0x3f, %al
movl $0x3f, %edx
cmovbl %eax, %edx
movzbl %dl, %eax
leaq (%rcx,%rax), %rsi
addq $0x2, %rsi
movzbl -0x1(%rsi), %edx
addq %rax, %rcx
xorq $0x3f, %rax
cmpq %rdx, %rax
cmovaeq %rdx, %rax
leaq 0xa0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2(%rax,%rcx), %rdx
leaq 0x90(%rsp), %rdi
callq 0x642c
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x98(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %rbx, %rcx
je 0x9e10
movq 0x38(%rsp), %rdi
movq 0x90(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x9e34
movl $0xf, %edi
cmpq %r13, %rsi
je 0x9e2f
movq 0xa0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x9e40
leaq 0x28(%rsp), %rdi
callq 0x40e0
jmp 0x9e51
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42b0
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9e75
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9e7b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x7004
addq $0x28, %r12
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x100(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x120(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x138(%rsp), %rcx
movq %rax, 0x8(%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x170(%rsp), %rdi
movl %eax, (%rdi)
movw $0x0, 0x4(%rdi)
leaq 0x7(%rsp), %r10
movl $0x1, %r11d
leaq 0x130(%rsp), %rbx
leaq 0x68(%rsp), %rdx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %r12, %rsi
movl $0x1, %ecx
movl $0x1, %r8d
movl $0x0, %r9d
pushq %r10
pushq %r11
pushq %rdi
pushq %r11
pushq %rbx
pushq %r11
pushq %rax
leaq 0xe8(%rsp), %rdi
pushq %rdi
pushq %rax
leaq 0x90(%rsp), %rax
pushq %rax
callq 0x85ba
addq $0x50, %rsp
leaq 0x130(%rsp), %rdi
callq 0x60e0
movq 0x110(%rsp), %rdi
cmpq %r13, %rdi
je 0x9faf
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xf0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x58(%rsp), %rbx
leaq 0x80(%rsp), %r12
leaq 0x38(%rsp), %r13
je 0x9fde
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xa003
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xa028
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4270
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa043
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa068
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xa07f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0xa099
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa0b0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4270
addq $0x68, %r14
movzwl 0xa(%r15), %eax
leaq 0xb0(%rsp), %rsi
movw %ax, 0x4(%rsi)
movl 0x6(%r15), %eax
movl %eax, (%rsi)
movq %r14, %rdi
callq 0xf2c0
movq 0x168(%rsp), %rbx
cmpb $0x1, 0x7(%rsp)
jne 0xa0f0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0xa0f0
movq (%rdi), %rax
callq *(%rax)
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x60e0
leaq 0xb0(%rsp), %rdi
callq 0xbf00
jmp 0xa124
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa144
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa144
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa16e
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa16e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa18f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa18f
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa1b6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa1b6
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xa2a0
movq 0x58(%rsp), %rsi
jmp 0xa293
jmp 0xa29d
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xbf00
jmp 0xa1ed
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa20d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa20d
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa234
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa234
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa255
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa255
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa276
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa276
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0xa2a0
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa2a0
movq %rax, %rbx
movq %rbx, %rdi
callq 0x43e0