// File: WolfgangLechner[P]StructureAnalysis/molecular_system.cpp
// Function: CMolecularSystem::update_bondOrderHistogramms()
void CMolecularSystem::update_bondOrderHistogramms()
{

  double a,b;
  int n;
  int nop;
  nop = parameter->nop;
  a = OrderParameterHistoStart;
  b = OrderParameterHistoStop;
  n = OrderParameterHistoSize;

  for (int ti= 0;ti<this->parameter->nop;ti++)
  {
    q4Histo[get_HistoBox(this->molecules[ti].Q4,a,b,n)]   += 1;
    q6Histo[get_HistoBox(this->molecules[ti].Q6,a,b,n)]   += 1;
    aq4Histo[get_HistoBox(this->molecules[ti].AQ4,a,b,n)] += 1;
    aq6Histo[get_HistoBox(this->molecules[ti].AQ6,a,b,n)] += 1;
    q46Histo3d[get_HistoBox(this->molecules[ti].Q4,a,b,n)][get_HistoBox(this->molecules[ti].Q6,a,b,n)] += 1;
    aq46Histo3d[get_HistoBox(this->molecules[ti].AQ4,a,b,n)][get_HistoBox(this->molecules[ti].AQ6,a,b,n)] += 1;
  }
  this->normq4 += nop;
  this->normq6 += nop;
  this->normaq4 += nop;
  this->normaq6 += nop;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0xb4e8c0(%rax), %rax
movl 0x3208(%rax), %eax
movl %eax, -0x20(%rbp)
movsd 0x31ec(%rip), %xmm0     # 0xc168
movsd %xmm0, -0x10(%rbp)
movsd 0x30ef(%rip), %xmm0     # 0xc078
movsd %xmm0, -0x18(%rbp)
movl $0x3e8, -0x1c(%rbp)     # imm = 0x3E8
movl $0x0, -0x24(%rbp)
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %eax
movq 0xb4e8c0(%rcx), %rcx
cmpl 0x3208(%rcx), %eax
jge 0x920e
movq -0x30(%rbp), %rdi
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x820(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
cltq
movl 0x24(%rdi,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, 0x24(%rdi,%rax,4)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x818(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
cltq
movl 0xfc4(%rdi,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, 0xfc4(%rdi,%rax,4)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x840(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
cltq
movl 0x1f64(%rdi,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, 0x1f64(%rdi,%rax,4)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x838(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
cltq
movl 0x2f04(%rdi,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, 0x2f04(%rdi,%rax,4)
movq %rdi, %rax
addq $0x3ea4, %rax           # imm = 0x3EA4
movq %rax, -0x50(%rbp)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x820(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
movl %eax, %ecx
movq -0x50(%rbp), %rax
movslq %ecx, %rcx
imulq $0xfa0, %rcx, %rcx      # imm = 0xFA0
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x818(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
movl %eax, %ecx
movq -0x48(%rbp), %rax
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq %rdi, %rax
addq $0x3d47a4, %rax         # imm = 0x3D47A4
movq %rax, -0x40(%rbp)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x840(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movq -0x30(%rbp), %rdi
movl %eax, %ecx
movq -0x40(%rbp), %rax
movslq %ecx, %rcx
imulq $0xfa0, %rcx, %rcx      # imm = 0xFA0
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq 0xb4e8b8(%rdi), %rax
movslq -0x24(%rbp), %rcx
imulq $0x870, %rcx, %rcx      # imm = 0x870
addq %rcx, %rax
movsd 0x838(%rax), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x18(%rbp), %xmm2
movl -0x1c(%rbp), %esi
callq 0x8e70
movl %eax, %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x8f9c
movq -0x30(%rbp), %rax
movl -0x20(%rbp), %ecx
addl 0x7a50a4(%rax), %ecx
movl %ecx, 0x7a50a4(%rax)
movl -0x20(%rbp), %ecx
addl 0x7a50a8(%rax), %ecx
movl %ecx, 0x7a50a8(%rax)
movl -0x20(%rbp), %ecx
addl 0x7a50ac(%rax), %ecx
movl %ecx, 0x7a50ac(%rax)
movl -0x20(%rbp), %ecx
addl 0x7a50b0(%rax), %ecx
movl %ecx, 0x7a50b0(%rax)
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)