// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7b8, %rsp            # imm = 0x7B8
movq %rdi, %rbx
leaq 0x9ee5(%rip), %rax      # 0xdd08
movq %rax, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
xorl %eax, %eax
movb %al, 0x18(%rdi)
leaq 0x80(%rdi), %rcx
andl $0x0, 0x80(%rdi)
andq $0x0, 0x88(%rdi)
movq %rcx, 0x90(%rdi)
movq %rcx, 0x98(%rdi)
andq $0x0, 0xa0(%rdi)
movq %rsi, %r12
leaq 0x8(%rdi), %r14
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x2d8(%rsp), %rdi
callq 0x33a0
leaq 0x52d1(%rip), %rsi      # 0x9160
leaq 0x110(%rsp), %rdi
leaq 0x4e0(%rsp), %rdx
callq 0x3d2c
leaq 0x52be(%rip), %rsi      # 0x9169
leaq 0xf0(%rsp), %rdi
leaq 0x150(%rsp), %r15
movq %r15, %rdx
callq 0x3d2c
leaq 0xd0(%rsp), %rdi
movq %r12, %rsi
callq 0x3460
leaq 0x5298(%rip), %rsi      # 0x9172
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x3d2c
leaq 0x110(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
callq 0x722c
leaq 0xb0(%rsp), %rdi
callq 0x35d8
leaq 0xd0(%rsp), %rdi
callq 0x35d8
leaq 0xf0(%rsp), %rdi
callq 0x35d8
leaq 0x110(%rsp), %rdi
callq 0x35d8
leaq 0x5227(%rip), %rsi      # 0x9176
leaq 0x4e0(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x3d2c
movq %r15, 0x158(%rsp)
movq %r15, 0x150(%rsp)
andq $0x0, 0x160(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x4e0(%rsp), %rsi
movq %r15, %rdx
callq 0x709f
movl %eax, %ebp
leaq 0x150(%rsp), %rdi
callq 0x558c
leaq 0x4e0(%rsp), %rdi
callq 0x35d8
testb %bpl, %bpl
je 0x4105
leaq 0x2d8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x32d0
movq 0x2d8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x2f8(%rsp,%rax)
jne 0x4123
leaq 0x4e0(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x5380
leaq 0x150(%rsp), %rdi
callq 0x3230
leaq 0x2d8(%rsp), %rdi
callq 0x30c0
leaq 0x518d(%rip), %rsi      # 0x91a9
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3d2c
leaq 0x510(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5b30
movq %rax, %r15
leaq 0x5169(%rip), %rsi      # 0x91b0
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x3d2c
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x6446
leaq 0x70(%rsp), %rdi
movq %rax, %rsi
callq 0x3460
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x42fc
leaq 0x90(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3420
movq %r15, %rdi
callq 0x35d8
leaq 0x70(%rsp), %rdi
callq 0x35d8
leaq 0x30(%rsp), %rdi
callq 0x35d8
leaq 0x50(%rsp), %rdi
callq 0x35d8
leaq 0x150(%rsp), %rdi
callq 0x3270
leaq 0x4e0(%rsp), %rdi
callq 0x5414
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
leaq 0x2d8(%rsp), %rdi
callq 0x30e0
leaq 0x10(%rsp), %rdi
callq 0x35d8
addq $0x7b8, %rsp            # imm = 0x7B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdi
callq 0x31a0
movq %rax, %r13
leaq 0x5063(%rip), %rsi      # 0x917a
movq %rax, %rdi
xorl %edx, %edx
callq 0x531c
jmp 0x413f
pushq $0x30
popq %rdi
callq 0x31a0
movq %rax, %r13
leaq 0x505a(%rip), %rsi      # 0x918f
movq %rax, %rdi
xorl %edx, %edx
callq 0x531c
leaq 0x9b9a(%rip), %rsi      # 0xdce0
leaq 0x1213(%rip), %rdx      # 0x5360
movq %r13, %rdi
callq 0x3520
jmp 0x4157
movq %rdx, %r12
movq %rax, %r15
movq %r13, %rdi
callq 0x3250
jmp 0x426a
movq %rdx, %r12
movq %rax, %r15
leaq 0x70(%rsp), %rdi
callq 0x35d8
jmp 0x4234
jmp 0x4181
movq %rdx, %r12
movq %rax, %r15
jmp 0x423e
jmp 0x418e
movq %rdx, %r12
movq %rax, %r15
jmp 0x4248
movq %rdx, %r12
movq %rax, %r15
jmp 0x4255
jmp 0x4264
movq %rdx, %r12
movq %rax, %r15
leaq 0x150(%rsp), %rdi
callq 0x558c
leaq 0x4e0(%rsp), %rdi
callq 0x35d8
jmp 0x426a
jmp 0x4264
movq %rax, %r15
leaq 0xb0(%rsp), %rdi
callq 0x35d8
jmp 0x41e8
movq %rax, %r15
leaq 0xd0(%rsp), %rdi
callq 0x35d8
jmp 0x41fa
movq %rax, %r15
leaq 0xf0(%rsp), %rdi
callq 0x35d8
jmp 0x420c
movq %rax, %r15
leaq 0x110(%rsp), %rdi
callq 0x35d8
jmp 0x42c0
movq %rax, %r15
jmp 0x42c0
movq %rax, %r15
jmp 0x42cd
movq %rdx, %r12
movq %rax, %r15
leaq 0x30(%rsp), %rdi
callq 0x35d8
leaq 0x50(%rsp), %rdi
callq 0x35d8
leaq 0x150(%rsp), %rdi
callq 0x3270
leaq 0x4e0(%rsp), %rdi
callq 0x5414
jmp 0x426a
movq %rdx, %r12
movq %rax, %r15
cmpl $0x1, %r12d
jne 0x42c0
movq %r15, %rdi
callq 0x3160
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
leaq 0x130(%rsp), %rdi
leaq 0x4e0(%rsp), %rdx
movq %rax, %rsi
callq 0x3d2c
leaq 0x130(%rsp), %rsi
callq 0x4428
movq %rax, %r15
leaq 0x130(%rsp), %rdi
callq 0x35d8
jmp 0x42bb
movq %rax, %r15
callq 0x3500
leaq 0x2d8(%rsp), %rdi
callq 0x30e0
addq $0x78, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35d8
movq %rbx, %rdi
callq 0x6738
movq %r14, %rdi
callq 0x35d8
movq %r15, %rdi
callq 0x3530
movq %rax, %rdi
callq 0x3d67
nop