// File: /workspace/github_cpp_makefile_star2_O3/solaldunckel[P]webserv/srcs/Config/ServerConfig.cpp
// Function: ServerConfig::location_loop(__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, std::vector<ServerConfig, std::allocator<ServerConfig>>&)
void ServerConfig::location_loop(std::vector<std::string>::iterator &it, std::vector<ServerConfig> &locations) {
  if (is_loc_modifier(*it)) {
    if (*it == "=")
      modifier_ = EXACT;
    else if (*it == "~")
      modifier_ = CASE_SENSITIVE_REG;
    else if (*it == "~*")
      modifier_ = CASE_INSENSITIVE_REG;
    else if (*it == "^~")
      modifier_ = LONGEST;
    else
      throw std::runtime_error("unknown modifier in location");
    it++;
  }
  else
    modifier_ = NONE;
  uri_ = *it++;
  if (*it != "{")
    throw std::runtime_error("missing opening bracket in server block");
  while (*(++it) != "}") {
    if (ServerConfig::directive_[*it])
      (this->*(ServerConfig::directive_[*it]))(++it);
    else
      throw std::runtime_error("invalid directive '" + *it + "' in 'location'");
  }
  locations.push_back(*this);;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rsi), %rdi
callq 0xc8fc
testb %al, %al
je 0xc9ef
movq (%rbx), %rdi
leaq 0x18f68(%rip), %rsi     # 0x258ef
callq 0x40f0
testl %eax, %eax
je 0xc9fc
movq (%rbx), %rdi
leaq 0x18bb0(%rip), %rsi     # 0x2554a
callq 0x40f0
testl %eax, %eax
je 0xca03
movq (%rbx), %rdi
leaq 0x18b99(%rip), %rsi     # 0x25546
callq 0x40f0
testl %eax, %eax
je 0xca0a
movq (%rbx), %rdi
leaq 0x18b89(%rip), %rsi     # 0x25549
callq 0x40f0
movl $0x4, %ecx
testl %eax, %eax
je 0xca0f
movl $0x10, %edi
callq 0x41d0
movq %rax, %r14
leaq 0x18b6a(%rip), %rsi     # 0x2554c
movq %rax, %rdi
callq 0x4170
jmp 0xcb92
movl $0x0, 0x70(%r15)
movq (%rbx), %rsi
jmp 0xca1d
movl $0x1, %ecx
jmp 0xca0f
movl $0x2, %ecx
jmp 0xca0f
movl $0x3, %ecx
movl %ecx, 0x70(%r15)
movq (%rbx), %rsi
addq $0x20, %rsi
movq %rsi, (%rbx)
leaq 0x20(%rsi), %rax
movq %rax, (%rbx)
leaq 0x50(%r15), %rdi
callq 0x4230
movq (%rbx), %rdi
leaq 0x18672(%rip), %rsi     # 0x250a9
callq 0x40f0
testl %eax, %eax
jne 0xcb76
movq (%rbx), %rdi
addq $0x20, %rdi
movq %rdi, (%rbx)
leaq 0x18656(%rip), %rsi     # 0x250ab
callq 0x40f0
testl %eax, %eax
je 0xcabe
leaq 0x25a93(%rip), %r12     # 0x324f8
leaq 0x1863f(%rip), %r13     # 0x250ab
movq (%rbx), %rsi
movq %r12, %rdi
callq 0xce4c
cmpq $0x0, (%rax)
je 0xcad7
movq (%rbx), %rsi
movq %r12, %rdi
callq 0xce4c
movq (%rax), %rcx
movq 0x8(%rax), %rdi
addq %r15, %rdi
testb $0x1, %cl
je 0xca9f
movq (%rdi), %rax
movq -0x1(%rax,%rcx), %rcx
addq $0x20, (%rbx)
movq %rbx, %rsi
callq *%rcx
movq (%rbx), %rdi
addq $0x20, %rdi
movq %rdi, (%rbx)
movq %r13, %rsi
callq 0x40f0
testl %eax, %eax
jne 0xca6c
movq %r14, %rdi
movq %r15, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6b48
movl $0x10, %edi
callq 0x41d0
movq %rax, %r14
movq (%rbx), %rdx
leaq 0x18905(%rip), %rsi     # 0x253f3
leaq 0x8(%rsp), %rdi
callq 0x568a
leaq 0x18a6a(%rip), %rsi     # 0x25569
leaq 0x8(%rsp), %rdi
callq 0x4840
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xcb2a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0xcb37
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r14, %rdi
callq 0x46e0
xorl %ebp, %ebp
movq 0x25489(%rip), %rsi     # 0x31ff0
movq 0x2543a(%rip), %rdx     # 0x31fa8
movq %r14, %rdi
callq 0x4760
movl $0x10, %edi
callq 0x41d0
movq %rax, %r14
leaq 0x18841(%rip), %rsi     # 0x253cb
movq %rax, %rdi
callq 0x4170
movq 0x25457(%rip), %rsi     # 0x31ff0
movq 0x25408(%rip), %rdx     # 0x31fa8
movq %r14, %rdi
callq 0x4760
jmp 0xcc08
jmp 0xcc08
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xcbc6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcbe1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
testb %bpl, %bpl
jne 0xcc0b
jmp 0xcc13
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcc0b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0xcc0b
movq %rax, %rbx
movq %r14, %rdi
callq 0x4310
movq %rbx, %rdi
callq 0x4790
nop