// File: gasparfm[P]anapache/anapacheapp.cpp
// Function: AnapacheApp::readLogData(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, bool, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>)
std::string AnapacheApp::readLogData(std::string::iterator& it, bool quotes, std::string::iterator strEnd)
{
  std::string out = "";
  bool brackets = false;
  int k = 0;

  if (*it=='[')
    {
      brackets=true;
      it++;
    }
  else if ( (*it == '-') && (!quotes) )
    {
      /* Information not available - */
      it++;
      return "-";
    }
  do
    {
      if ( it == strEnd)
	throw AnaException("Unexpected end of line");
      if ( (*it==']') && (brackets) )
	{
	  ++it;
	  return out;
	}
      else if ( (*it=='"') && (quotes) )
	  return out;
      else if ( (*it==' ') && (!quotes) && (!brackets) )
	  return out;
      else
	out+=*it;
      ++it;
    } while (1);
  return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x98(%rbp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, -0x90(%rbp)
movq %rdi, -0x8(%rbp)
movq %r8, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x46e0
movq -0x88(%rbp), %rdx
leaq 0xb8b8(%rip), %rsi      # 0x133c9
leaq -0x48(%rbp), %rdi
callq 0x5700
jmp 0x7b1c
leaq -0x49(%rbp), %rdi
callq 0x4490
movb $0x0, -0x5d(%rbp)
movl $0x0, -0x64(%rbp)
movq -0x20(%rbp), %rdi
callq 0x88b0
movsbl (%rax), %eax
cmpl $0x5b, %eax
jne 0x7b73
movb $0x1, -0x5d(%rbp)
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x8a00
movq %rax, -0x70(%rbp)
jmp 0x7bf6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x49(%rbp), %rdi
callq 0x4490
jmp 0x7d8c
movq -0x20(%rbp), %rdi
callq 0x88b0
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x7bf4
testb $0x1, -0x21(%rbp)
jne 0x7bf4
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x8a00
movq %rax, -0x78(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x46e0
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rdx
leaq 0xb4b8(%rip), %rsi      # 0x13076
callq 0x5700
jmp 0x7bc5
leaq -0x79(%rbp), %rdi
callq 0x4490
movl $0x1, -0x80(%rbp)
jmp 0x7d6a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x79(%rbp), %rdi
callq 0x4490
jmp 0x7d83
jmp 0x7bf6
jmp 0x7bf8
movq -0x20(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x89a0
testb $0x1, %al
jne 0x7c0b
jmp 0x7c7f
movl $0x30, %edi
callq 0x4210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
leaq 0xb604(%rip), %rsi      # 0x1322d
xorl %edx, %edx
callq 0x83b0
jmp 0x7c32
movq -0xa8(%rbp), %rdi
leaq 0x14090(%rip), %rsi     # 0x1bcd0
leaq 0x809(%rip), %rdx       # 0x8450
callq 0x46a0
jmp 0x7d95
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
callq 0x4310
jmp 0x7d83
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7d83
movq -0x20(%rbp), %rdi
callq 0x88b0
movsbl (%rax), %eax
cmpl $0x5d, %eax
jne 0x7cbb
testb $0x1, -0x5d(%rbp)
je 0x7cbb
movq -0x20(%rbp), %rdi
callq 0x89e0
movq -0x98(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x4280
movl $0x1, -0x80(%rbp)
jmp 0x7d6a
movq -0x20(%rbp), %rdi
callq 0x88b0
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x7ceb
testb $0x1, -0x21(%rbp)
je 0x7ceb
movq -0x98(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x4280
movl $0x1, -0x80(%rbp)
jmp 0x7d6a
movq -0x20(%rbp), %rdi
callq 0x88b0
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x7d21
testb $0x1, -0x21(%rbp)
jne 0x7d21
testb $0x1, -0x5d(%rbp)
jne 0x7d21
movq -0x98(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x4280
movl $0x1, -0x80(%rbp)
jmp 0x7d6a
movq -0x20(%rbp), %rdi
callq 0x88b0
movsbl (%rax), %esi
leaq -0x48(%rbp), %rdi
callq 0x4290
jmp 0x7d38
jmp 0x7d3a
jmp 0x7d3c
jmp 0x7d3e
movq -0x20(%rbp), %rdi
callq 0x89e0
movb $0x1, %al
testb $0x1, %al
jne 0x7bf8
jmp 0x7d53
movq -0x98(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x4280
movl $0x1, -0x80(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x47a8
movq -0x90(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
leaq -0x48(%rbp), %rdi
callq 0x47a8
movq -0x58(%rbp), %rdi
callq 0x46c0
nopw %cs:(%rax,%rax)