// File: solaldunckel[P]webserv/srcs/Config/RequestConfig.cpp
// Function: RequestConfig::log[abi:cxx11](LogLevel)
std::string RequestConfig::log(LogLevel level) {
  std::string ret;

  ret = ret + "[method: " + getMethod() + "]";
  ret = ret + " [target: " + getRequestTarget() + "]";
  ret = ret + " [server: " + ft::to_string(server_->id_) + "]";
  ret = ret + " [location: " + getUri() + "]";
  if (level > INFO) {
    for (std::map<std::string, std::string>::iterator it = getHeaders().begin(); it != getHeaders().end(); it++)
      ret = ret + "\n" + it->first + ": " + it->second;
  }
  return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x290, %rsp            # imm = 0x290
movq %rdi, -0x268(%rbp)
movq %rdi, %rax
movq %rax, -0x278(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x270(%rbp)
movb $0x0, -0x15(%rbp)
callq 0x57b0
movq -0x268(%rbp), %rsi
leaq 0x30240(%rip), %rdx     # 0x43349
leaq -0x78(%rbp), %rdi
callq 0x8f70
jmp 0x13114
movq -0x270(%rbp), %rdi
callq 0x13030
movq %rax, %rdx
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x6a30
jmp 0x13132
leaq 0x3021a(%rip), %rdx     # 0x43353
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x6a80
jmp 0x13148
movq -0x268(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movq %rsi, -0x280(%rbp)
callq 0x56d0
movq -0x280(%rbp), %rdi
callq 0x5aa8
leaq -0x58(%rbp), %rdi
callq 0x5aa8
leaq -0x78(%rbp), %rdi
callq 0x5aa8
movq -0x268(%rbp), %rsi
leaq 0x305a0(%rip), %rdx     # 0x4372b
leaq -0xe8(%rbp), %rdi
callq 0x8f70
jmp 0x13199
movq -0x270(%rbp), %rdi
callq 0x12de0
movq %rax, %rdx
leaq -0xc8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x6a30
jmp 0x131bd
leaq 0x3018f(%rip), %rdx     # 0x43353
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x6a80
jmp 0x131d9
movq -0x268(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
movq %rsi, -0x288(%rbp)
callq 0x56d0
movq -0x288(%rbp), %rdi
callq 0x5aa8
leaq -0xc8(%rbp), %rdi
callq 0x5aa8
leaq -0xe8(%rbp), %rdi
callq 0x5aa8
movq -0x268(%rbp), %rsi
leaq 0x30130(%rip), %rdx     # 0x43355
leaq -0x148(%rbp), %rdi
callq 0x8f70
jmp 0x13233
movq -0x270(%rbp), %rax
movq 0x20(%rax), %rax
movl (%rax), %esi
leaq -0x168(%rbp), %rdi
callq 0x9070
jmp 0x1324e
leaq -0x128(%rbp), %rdi
leaq -0x148(%rbp), %rsi
leaq -0x168(%rbp), %rdx
callq 0x9550
jmp 0x1326a
leaq 0x300e2(%rip), %rdx     # 0x43353
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x6a80
jmp 0x13286
movq -0x268(%rbp), %rdi
leaq -0x108(%rbp), %rsi
movq %rsi, -0x290(%rbp)
callq 0x56d0
movq -0x290(%rbp), %rdi
callq 0x5aa8
leaq -0x128(%rbp), %rdi
callq 0x5aa8
leaq -0x168(%rbp), %rdi
callq 0x5aa8
leaq -0x148(%rbp), %rdi
callq 0x5aa8
movq -0x268(%rbp), %rsi
leaq 0x30082(%rip), %rdx     # 0x43360
leaq -0x1c8(%rbp), %rdi
callq 0x8f70
jmp 0x132ec
movq -0x270(%rbp), %rdi
callq 0x12ef0
movq %rax, %rdx
leaq -0x1a8(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x6a30
jmp 0x13310
leaq 0x3003c(%rip), %rdx     # 0x43353
leaq -0x188(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x6a80
jmp 0x1332c
movq -0x268(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x56d0
leaq -0x188(%rbp), %rdi
callq 0x5aa8
leaq -0x1a8(%rbp), %rdi
callq 0x5aa8
leaq -0x1c8(%rbp), %rdi
callq 0x5aa8
cmpl $0x1, -0x14(%rbp)
jle 0x13615
movq -0x270(%rbp), %rdi
callq 0x13080
movq %rax, %rdi
callq 0x13db0
movq %rax, -0x1d0(%rbp)
movq -0x270(%rbp), %rdi
callq 0x13080
movq %rax, %rdi
callq 0x13e10
movq %rax, -0x1d8(%rbp)
leaq -0x1d0(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x13de0
testb $0x1, %al
jne 0x133bf
jmp 0x13613
movq -0x268(%rbp), %rsi
leaq 0x2fe2a(%rip), %rdx     # 0x431f7
leaq -0x258(%rbp), %rdi
callq 0x8f70
jmp 0x133db
leaq -0x1d0(%rbp), %rdi
callq 0x13e40
movq %rax, %rdx
leaq -0x238(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x6a30
jmp 0x133ff
leaq 0x30624(%rip), %rdx     # 0x43a2a
leaq -0x218(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x6a80
jmp 0x1341b
leaq -0x1d0(%rbp), %rdi
callq 0x13e40
movq %rax, %rdx
addq $0x20, %rdx
leaq -0x1f8(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0x6a30
jmp 0x13443
movq -0x268(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x56d0
leaq -0x1f8(%rbp), %rdi
callq 0x5aa8
leaq -0x218(%rbp), %rdi
callq 0x5aa8
leaq -0x238(%rbp), %rdi
callq 0x5aa8
leaq -0x258(%rbp), %rdi
callq 0x5aa8
leaq -0x1d0(%rbp), %rdi
xorl %esi, %esi
callq 0x13e60
movq %rax, -0x260(%rbp)
jmp 0x13388
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x1363b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x134dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x5aa8
leaq -0x78(%rbp), %rdi
callq 0x5aa8
jmp 0x1363b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13517
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x5aa8
leaq -0xe8(%rbp), %rdi
callq 0x5aa8
jmp 0x1363b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13571
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13565
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x5aa8
leaq -0x168(%rbp), %rdi
callq 0x5aa8
leaq -0x148(%rbp), %rdi
callq 0x5aa8
jmp 0x1363b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x135ae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x5aa8
leaq -0x1c8(%rbp), %rdi
callq 0x5aa8
jmp 0x1363b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13605
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x135f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x5aa8
leaq -0x238(%rbp), %rdi
callq 0x5aa8
leaq -0x258(%rbp), %rdi
callq 0x5aa8
jmp 0x1363b
jmp 0x13615
movb $0x1, -0x15(%rbp)
testb $0x1, -0x15(%rbp)
jne 0x1362b
movq -0x268(%rbp), %rdi
callq 0x5aa8
movq -0x278(%rbp), %rax
addq $0x290, %rsp            # imm = 0x290
popq %rbp
retq
movq -0x268(%rbp), %rdi
callq 0x5aa8
movq -0x80(%rbp), %rdi
callq 0x5950