// File: /workspace/github_cpp_makefile_star2_O3/gasparfm[P]anapache/anapacheapp.cpp
// Function: AnapacheApp::ipCount_Results(AnapacheApp::AnalizerOptions)
void AnapacheApp::ipCount_Results(AnalizerOptions opts)
{
  std::cout << "Found "<<ipCount_data.queryCount.size()<<" different IPs"<<std::endl;
  std::cout << "Ordering IPs.."<<std::endl;
  std::vector < std::pair<std::string, unsigned long> >orderedIps;
  for (auto ip : ipCount_data.queryCount)
    {
      auto pos = orderedIps.begin();

      while ( (pos!=orderedIps.end()) && (pos->second<ip.second) )
      	pos++;
      orderedIps.insert(pos, ip);
      /* std:: cout << ip.first <<": "<<ip.second<<std::endl; */
    }
  std::cout << "ready!"<<std::endl;
  for (auto ip : orderedIps)
    {
      std:: cout << ip.first <<": "<<ip.second<<std::endl;
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq 0x890e(%rip), %r14      # 0xdfb8
leaq 0x4c50(%rip), %rsi      # 0xa301
movl $0x6, %edx
movq %r14, %rdi
callq 0x33f0
movq 0xa0(%rbx), %rsi
movq %r14, %rdi
callq 0x3230
movq %rax, %r15
leaq 0x4c31(%rip), %rsi      # 0xa308
movl $0xe, %edx
movq %rax, %rdi
callq 0x33f0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3340
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
leaq 0x4c05(%rip), %rsi      # 0xa317
movl $0xe, %edx
movq %r14, %rdi
callq 0x33f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3340
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x90(%rbx), %r14
subq $-0x80, %rbx
cmpq %rbx, %r14
je 0x582e
leaq 0x18(%rsp), %r15
leaq 0x60(%rsp), %r13
leaq 0x50(%rsp), %r12
movq %r15, 0x8(%rsp)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x78d2
movq 0x40(%r14), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rbp
movq 0x38(%rsp), %rcx
cmpq %rcx, %rbp
je 0x57b8
cmpq %rax, 0x20(%rbp)
jae 0x57b8
addq $0x28, %rbp
jmp 0x57a7
movq %r13, 0x50(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x78d2
movq 0x28(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x7dc0
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x5803
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x581a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3390
movq %r14, %rdi
callq 0x3250
movq %rax, %r14
cmpq %rbx, %rax
jne 0x577a
movq 0x8783(%rip), %rbx      # 0xdfb8
leaq 0x4aea(%rip), %rsi      # 0xa326
movl $0x6, %edx
movq %rbx, %rdi
callq 0x33f0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3340
movsbl %al, %esi
movq 0x8751(%rip), %rdi      # 0xdfb8
callq 0x3040
movq %rax, %rdi
callq 0x3240
movq 0x30(%rsp), %r13
movq 0x38(%rsp), %rbx
cmpq %rbx, %r13
je 0x593d
leaq 0x18(%rsp), %rbp
movq 0x8725(%rip), %r14      # 0xdfb8
leaq 0x482b(%rip), %r15      # 0xa0c5
movq %rbp, 0x8(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x78d2
movq 0x20(%r13), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x33f0
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x33f0
movq 0x28(%rsp), %rsi
movq %r12, %rdi
callq 0x3230
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3340
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3240
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5930
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3390
addq $0x28, %r13
cmpq %rbx, %r13
jne 0x589a
leaq 0x30(%rsp), %rdi
callq 0x6332
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x595a
jmp 0x595a
movq %rax, %rbx
jmp 0x59a4
movq %rax, %rbx
jmp 0x597e
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x597e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x5997
jmp 0x59a4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x59a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3390
leaq 0x30(%rsp), %rdi
callq 0x6332
movq %rbx, %rdi
callq 0x3590