// File: gasparfm[P]anapache/anapacheapp.cpp
// Function: AnapacheApp::AnapacheApp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
AnapacheApp::AnapacheApp(std::string exec)
{
  std::string configFile;
  std::ifstream confFile;
  GCommon::GlobalSettings::basics("Anapache", "anapache", exec, "0.1");
  try
    {
      if (!GCommon::findConfigFile(configFile, "ini"))
	throw AnaException("No config file found");

      confFile.open(configFile);
      if (confFile.fail())
	throw AnaException("Error reading config file");

      INI::Parser config(confFile);
      std::stringstream out;
      confFile.close();
      logFormat = fixLogFormat(config.top()("Apache")["LogFormat"]);
    }
  catch (AnaException& e)
    {
      panic (e.what());
    }
  fromDate = 0;
  toDate = 0;
  /* std::cout << "LF: "<<logFormat<<std::endl; */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8f0, %rsp            # imm = 0x8F0
movq %rsi, -0x860(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x850(%rbp)
leaq 0x1627c(%rip), %rax     # 0x1bcf8
movq %rax, (%rdi)
addq $0x8, %rdi
movq %rdi, -0x858(%rbp)
callq 0x45e0
movq -0x850(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0x848(%rbp)
callq 0x8350
leaq -0x30(%rbp), %rdi
callq 0x45e0
leaq -0x238(%rbp), %rdi
callq 0x44e0
jmp 0x5abd
leaq -0x269(%rbp), %rdi
movq %rdi, -0x868(%rbp)
callq 0x46e0
movq -0x868(%rbp), %rdx
leaq 0xd692(%rip), %rsi      # 0x13170
leaq -0x268(%rbp), %rdi
callq 0x5700
jmp 0x5aec
leaq -0x291(%rbp), %rdi
movq %rdi, -0x870(%rbp)
callq 0x46e0
movq -0x870(%rbp), %rdx
leaq 0xd66c(%rip), %rsi      # 0x13179
leaq -0x290(%rbp), %rdi
callq 0x5700
jmp 0x5b1b
movq -0x860(%rbp), %rsi
leaq -0x2b8(%rbp), %rdi
callq 0x41e0
jmp 0x5b30
leaq -0x2d9(%rbp), %rdi
movq %rdi, -0x878(%rbp)
callq 0x46e0
movq -0x878(%rbp), %rdx
leaq 0xd631(%rip), %rsi      # 0x13182
leaq -0x2d8(%rbp), %rdi
callq 0x5700
jmp 0x5b5f
leaq -0x268(%rbp), %rdi
leaq -0x290(%rbp), %rsi
leaq -0x2b8(%rbp), %rdx
leaq -0x2d8(%rbp), %rcx
callq 0x102f0
jmp 0x5b82
leaq -0x2d8(%rbp), %rdi
callq 0x47a8
leaq -0x2d9(%rbp), %rdi
callq 0x4490
leaq -0x2b8(%rbp), %rdi
callq 0x47a8
leaq -0x290(%rbp), %rdi
callq 0x47a8
leaq -0x291(%rbp), %rdi
callq 0x4490
leaq -0x268(%rbp), %rdi
callq 0x47a8
leaq -0x269(%rbp), %rdi
callq 0x4490
leaq -0x301(%rbp), %rdi
movq %rdi, -0x880(%rbp)
callq 0x46e0
movq -0x880(%rbp), %rdx
leaq 0xd58f(%rip), %rsi      # 0x13186
leaq -0x300(%rbp), %rdi
callq 0x5700
jmp 0x5c05
xorps %xmm0, %xmm0
movaps %xmm0, -0x320(%rbp)
movq $0x0, -0x310(%rbp)
leaq -0x320(%rbp), %rdi
movq %rdi, -0x890(%rbp)
callq 0x8370
movq -0x890(%rbp), %rdx
leaq -0x30(%rbp), %rdi
leaq -0x300(%rbp), %rsi
callq 0xff60
movb %al, -0x881(%rbp)
jmp 0x5c4c
movb -0x881(%rbp), %al
xorb $-0x1, %al
movb %al, -0x891(%rbp)
leaq -0x320(%rbp), %rdi
callq 0x8390
leaq -0x300(%rbp), %rdi
callq 0x47a8
leaq -0x301(%rbp), %rdi
callq 0x4490
movb -0x891(%rbp), %al
testb $0x1, %al
jne 0x5c8d
jmp 0x5e31
movl $0x30, %edi
callq 0x4210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x8a0(%rbp)
leaq 0xd4df(%rip), %rsi      # 0x1318a
xorl %edx, %edx
callq 0x83b0
jmp 0x5cb4
movq -0x8a0(%rbp), %rdi
leaq 0x1600e(%rip), %rsi     # 0x1bcd0
leaq 0x2787(%rip), %rdx      # 0x8450
callq 0x46a0
jmp 0x62bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x6288
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x5d97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x5d7f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x5d73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x5d5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
leaq -0x2d8(%rbp), %rdi
callq 0x47a8
leaq -0x2d9(%rbp), %rdi
callq 0x4490
leaq -0x2b8(%rbp), %rdi
callq 0x47a8
leaq -0x290(%rbp), %rdi
callq 0x47a8
leaq -0x291(%rbp), %rdi
callq 0x4490
leaq -0x268(%rbp), %rdi
callq 0x47a8
leaq -0x269(%rbp), %rdi
callq 0x4490
jmp 0x627c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x5de6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
leaq -0x320(%rbp), %rdi
callq 0x8390
leaq -0x300(%rbp), %rdi
callq 0x47a8
leaq -0x301(%rbp), %rdi
callq 0x4490
jmp 0x614a
movq -0x8a0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
callq 0x4310
jmp 0x614a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x614a
leaq -0x238(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0x8, %edx
callq 0x43a0
jmp 0x5e48
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x238(%rbp,%rax), %rdi
callq 0x4040
movb %al, -0x8a1(%rbp)
jmp 0x5e68
movb -0x8a1(%rbp), %al
testb $0x1, %al
jne 0x5e74
jmp 0x5edd
movl $0x30, %edi
callq 0x4210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x8b0(%rbp)
leaq 0xd30d(%rip), %rsi      # 0x1319f
xorl %edx, %edx
callq 0x83b0
jmp 0x5e9b
movq -0x8b0(%rbp), %rdi
leaq 0x15e27(%rip), %rsi     # 0x1bcd0
leaq 0x25a0(%rip), %rdx      # 0x8450
callq 0x46a0
jmp 0x62bd
movq -0x8b0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
callq 0x4310
jmp 0x614a
leaq -0x5f8(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x8490
jmp 0x5ef2
leaq -0x780(%rbp), %rdi
callq 0x42e0
jmp 0x5f00
leaq -0x238(%rbp), %rdi
callq 0x40f0
jmp 0x5f0e
leaq -0x5f8(%rbp), %rdi
callq 0x8550
movq %rax, -0x8b8(%rbp)
jmp 0x5f23
leaq -0x7e1(%rbp), %rdi
movq %rdi, -0x8c0(%rbp)
callq 0x46e0
movq -0x8c0(%rbp), %rdx
leaq 0xd275(%rip), %rsi      # 0x131b9
leaq -0x7e0(%rbp), %rdi
callq 0x5700
jmp 0x5f52
movq -0x8b8(%rbp), %rdi
leaq -0x7e0(%rbp), %rsi
callq 0x8560
movq %rax, -0x8c8(%rbp)
jmp 0x5f6e
leaq -0x809(%rbp), %rdi
movq %rdi, -0x8d0(%rbp)
callq 0x46e0
movq -0x8d0(%rbp), %rdx
leaq 0xd231(%rip), %rsi      # 0x131c0
leaq -0x808(%rbp), %rdi
callq 0x5700
jmp 0x5f9d
movq -0x8c8(%rbp), %rdi
leaq -0x808(%rbp), %rsi
callq 0x8590
movq %rax, -0x8d8(%rbp)
jmp 0x5fb9
movq -0x8d8(%rbp), %rsi
leaq -0x7c0(%rbp), %rdi
callq 0x41e0
jmp 0x5fce
movq -0x850(%rbp), %rsi
leaq -0x7a0(%rbp), %rdi
leaq -0x7c0(%rbp), %rdx
callq 0x62c0
jmp 0x5fea
movq -0x850(%rbp), %rdi
addq $0x8, %rdi
leaq -0x7a0(%rbp), %rsi
callq 0x4560
leaq -0x7a0(%rbp), %rdi
callq 0x47a8
leaq -0x7c0(%rbp), %rdi
callq 0x47a8
leaq -0x808(%rbp), %rdi
callq 0x47a8
leaq -0x809(%rbp), %rdi
callq 0x4490
leaq -0x7e0(%rbp), %rdi
callq 0x47a8
leaq -0x7e1(%rbp), %rdi
callq 0x4490
leaq -0x780(%rbp), %rdi
callq 0x4330
leaq -0x5f8(%rbp), %rdi
callq 0x85c0
jmp 0x61ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x613e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x6132
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x6126
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x611a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x610e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x6102
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
leaq -0x7c0(%rbp), %rdi
callq 0x47a8
leaq -0x808(%rbp), %rdi
callq 0x47a8
leaq -0x809(%rbp), %rdi
callq 0x4490
leaq -0x7e0(%rbp), %rdi
callq 0x47a8
leaq -0x7e1(%rbp), %rdi
callq 0x4490
leaq -0x780(%rbp), %rdi
callq 0x4330
leaq -0x5f8(%rbp), %rdi
callq 0x85c0
movl -0x244(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x627c
movq -0x240(%rbp), %rdi
callq 0x41c0
movq %rax, -0x818(%rbp)
movq -0x818(%rbp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, -0x8e8(%rbp)
leaq -0x839(%rbp), %rdi
movq %rdi, -0x8e0(%rbp)
callq 0x46e0
movq -0x8e8(%rbp), %rsi
movq -0x8e0(%rbp), %rdx
leaq -0x838(%rbp), %rdi
callq 0x5700
jmp 0x61b6
movq -0x850(%rbp), %rdi
leaq -0x838(%rbp), %rsi
callq 0x64e0
jmp 0x61cb
leaq -0x838(%rbp), %rdi
callq 0x47a8
leaq -0x839(%rbp), %rdi
callq 0x4490
callq 0x4670
jmp 0x61ea
jmp 0x61ec
movq -0x850(%rbp), %rax
movq $0x0, 0x28(%rax)
movq $0x0, 0x30(%rax)
leaq -0x238(%rbp), %rdi
callq 0x4120
leaq -0x30(%rbp), %rdi
callq 0x47a8
addq $0x8f0, %rsp            # imm = 0x8F0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x6253
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
leaq -0x838(%rbp), %rdi
callq 0x47a8
leaq -0x839(%rbp), %rdi
callq 0x4490
callq 0x4670
jmp 0x627a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x627c
jmp 0x627c
leaq -0x238(%rbp), %rdi
callq 0x4120
leaq -0x30(%rbp), %rdi
callq 0x47a8
movq -0x848(%rbp), %rdi
callq 0x8600
movq -0x858(%rbp), %rdi
callq 0x47a8
movq -0x240(%rbp), %rdi
callq 0x46c0
movq %rax, %rdi
callq 0x57b0
nopl (%rax)