// File: ewhitebloom[P]fetch/src/././header.cc
// Function: parseHeaders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector <Header> parseHeaders(string headers) {
  vector<Header> headersVectorized;

  if (headers.length()) {
    vector <string> SplitVec;
    split( SplitVec, headers, boost::is_any_of("\n"), boost::token_compress_on );

    for (string& row : SplitVec) {
      size_t found = row.find(":");
      if (found != string::npos) {
        vector <string> ParsedRow;
        split( ParsedRow, row, boost::is_any_of(":"), boost::token_compress_on );

        struct Header header;
        header.header = ParsedRow[0];
        header.value = ParsedRow[1];
        headersVectorized.push_back(header);
      }
    }
  }

  return headersVectorized;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rsi, -0xf8(%rbp)
movq %rdi, -0x108(%rbp)
movq %rdi, %rax
movq %rax, -0x100(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x6ff0
movq -0xf8(%rbp), %rdi
callq 0x5230
cmpq $0x0, %rax
je 0x5911
leaq -0x30(%rbp), %rdi
callq 0x7010
leaq 0xaa8a(%rip), %rsi      # 0x10184
leaq -0x48(%rbp), %rdi
callq 0x7100
jmp 0x5705
movq -0xf8(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rdx
xorl %ecx, %ecx
callq 0x7030
jmp 0x571d
leaq -0x48(%rbp), %rdi
callq 0x7150
leaq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0x71a0
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
callq 0x71d0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x7200
testb $0x1, %al
jne 0x575e
jmp 0x58ef
leaq -0x68(%rbp), %rdi
callq 0x7240
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
leaq 0xaa10(%rip), %rsi      # 0x10186
xorl %eax, %eax
movl %eax, %edx
callq 0x5030
movq %rax, -0x80(%rbp)
cmpq $-0x1, -0x80(%rbp)
je 0x58df
leaq -0x98(%rbp), %rdi
callq 0x7010
movq -0x78(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0xa9da(%rip), %rsi      # 0x10186
leaq -0xb0(%rbp), %rdi
callq 0x7100
jmp 0x57ba
movq -0x110(%rbp), %rsi
leaq -0x98(%rbp), %rdi
leaq -0xb0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x7030
jmp 0x57d8
leaq -0xb0(%rbp), %rdi
callq 0x7150
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x7260
xorl %eax, %eax
movl %eax, %esi
leaq -0x98(%rbp), %rdi
callq 0x7290
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x5440
jmp 0x5818
leaq -0x98(%rbp), %rdi
movl $0x1, %esi
callq 0x7290
movq %rax, %rsi
leaq -0xd0(%rbp), %rdi
callq 0x5440
jmp 0x583a
movq -0x108(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x72b0
jmp 0x584f
leaq -0xf0(%rbp), %rdi
callq 0x7320
leaq -0x98(%rbp), %rdi
callq 0x7350
jmp 0x58df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x58fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x7150
jmp 0x58fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x58d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x7150
jmp 0x58d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x7320
leaq -0x98(%rbp), %rdi
callq 0x7350
jmp 0x58fa
jmp 0x58e1
leaq -0x68(%rbp), %rdi
callq 0x73b0
jmp 0x5748
leaq -0x30(%rbp), %rdi
callq 0x7350
jmp 0x5911
leaq -0x30(%rbp), %rdi
callq 0x7350
movq -0x108(%rbp), %rdi
callq 0x73d0
jmp 0x5937
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x5927
movq -0x108(%rbp), %rdi
callq 0x73d0
movq -0x100(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x5270