// File: /workspace/github_cpp_makefile_star2_O1/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 0xdefe
movq %rax, %r14
leaq 0xb0(%rbx), %rax
cmpq %rax, %r14
je 0xa27e
movb $0x0, 0x7(%rsp)
testb $0x1, 0x15(%r15)
jne 0x9b1a
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 0xc7aa(%rip), %rdx      # 0x16249
leaq 0x130(%rsp), %rdi
movq %rdx, %rsi
callq 0x6476
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 0x6476
leaq 0xc578(%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 0x9b8a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9b92
movq %rbx, 0x168(%rsp)
movq 0x1a0(%r14), %r12
leaq 0x190(%r14), %rbp
cmpq %rbp, %r12
je 0xa23e
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 0xe3b4
leaq 0x40(%r12), %rcx
cmpq %rcx, %rax
jne 0x9c42
movq %r12, %rdi
callq 0x41d0
movq %rax, %r12
cmpq %rbp, %rax
jne 0x9b45
jmp 0xa23e
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 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2(%rax,%r15), %rdx
leaq 0x68(%rsp), %rdi
callq 0x6476
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x9c0f
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9c2e
movl $0xf, %esi
cmpq %r13, 0x68(%rsp)
je 0x9c25
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9ce5
movq 0x68(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x40e0
jmp 0x9cf3
movzwl 0x4(%rbx), %eax
movw %ax, 0x8c(%rsp)
movl (%rbx), %eax
movl %eax, 0x88(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xc5e2(%rip), %rdx      # 0x16249
leaq 0x48(%rsp), %rdi
movq %rdx, %rsi
callq 0x6476
movzbl 0x1a(%r15), %eax
cmpb $0x3f, %al
movl $0x3f, %ecx
cmovbl %eax, %ecx
movzbl %cl, %eax
leaq 0x1b(%r15), %rsi
leaq 0x78(%rsp), %rcx
movq %rcx, -0x10(%rcx)
leaq 0x1b(%r15,%rax), %rdx
leaq 0x68(%rsp), %rdi
callq 0x6476
leaq 0xc3b3(%rip), %rsi      # 0x1605c
leaq 0x68(%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 0x9f0d
movq %rsi, 0x28(%rsp)
movq (%rdx), %rsi
movq %rsi, 0x38(%rsp)
jmp 0x9f13
leaq 0x68(%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 0x9d17
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9d1d
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 0x70ce
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 0x88(%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 0x81d6
addq $0x40, %rsp
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e11
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 0x9e40
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x78(%rsp), %r13
je 0x9e62
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x9e87
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4270
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ea2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x9eb9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9ed0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9ee7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x130(%rsp), %rdi
cmpq %r14, %rdi
je 0xa269
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa269
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 0x6476
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x98(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x9f98
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9fb9
movl $0xf, %esi
cmpq %r13, 0x90(%rsp)
je 0x9fb4
movq 0xa0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9fcd
movq 0x90(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x40e0
jmp 0x9fde
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 0xa002
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xa008
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 0x70ce
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
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%rcx)
movaps %xmm0, 0x18(%rcx)
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 0x88(%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 0x8748
addq $0x50, %rsp
leaq 0x130(%rsp), %rdi
callq 0x612a
movq 0x110(%rsp), %rdi
cmpq %r13, %rdi
je 0xa143
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xf0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x58(%rsp), %rbx
leaq 0x78(%rsp), %r12
leaq 0x38(%rsp), %r13
je 0xa16f
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xa194
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xa1b9
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4270
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa1d4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa1f9
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xa210
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0xa227
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4270
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa23e
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 0xf512
movq 0x168(%rsp), %rbx
cmpb $0x1, 0x7(%rsp)
jne 0xa27e
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0xa27e
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 0x612a
leaq 0xb0(%rsp), %rdi
callq 0xc160
jmp 0xa2b2
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa2d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa2d2
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa2fc
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa2fc
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa31d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa31d
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xa33e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa33e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xa422
movq 0x58(%rsp), %rsi
jmp 0xa415
jmp 0xa41f
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xc160
jmp 0xa375
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa395
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa395
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xa3b6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa3b6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa3d7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa3d7
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa3f8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa3f8
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0xa422
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0xa422
movq %rax, %rbx
movq %rbx, %rdi
callq 0x43e0