// File: /workspace/github_cpp_makefile_star2_O2/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 0xad96
testb %al, %al
je 0xae1e
movq (%rbx), %rdi
leaq 0x11a7d(%rip), %rsi     # 0x1c88e
callq 0x610b
testb %al, %al
je 0xae28
pushq $0x1
jmp 0xae6f
andl $0x0, 0x70(%r15)
movq (%rbx), %rsi
jmp 0xae7e
movq (%rbx), %rdi
leaq 0x11702(%rip), %rsi     # 0x1c534
callq 0x610b
testb %al, %al
je 0xae3f
pushq $0x2
jmp 0xae6f
movq (%rbx), %rdi
leaq 0x116e7(%rip), %rsi     # 0x1c530
callq 0x610b
testb %al, %al
je 0xae56
pushq $0x3
jmp 0xae6f
movq (%rbx), %rdi
leaq 0x116d3(%rip), %rsi     # 0x1c533
callq 0x610b
testb %al, %al
je 0xafad
pushq $0x4
popq %rax
movl %eax, 0x70(%r15)
movq (%rbx), %rsi
addq $0x20, %rsi
movq %rsi, (%rbx)
leaq 0x20(%rsi), %rax
movq %rax, (%rbx)
leaq 0x50(%r15), %rdi
callq 0x4240
movq (%rbx), %rdi
leaq 0x111fb(%rip), %rsi     # 0x1c093
callq 0x61cb
testb %al, %al
jne 0xaf7d
leaq 0x111e9(%rip), %r12     # 0x1c095
leaq 0x20645(%rip), %r13     # 0x2b4f8
movq (%rbx), %rdi
addq $0x20, %rdi
movq %rdi, (%rbx)
movq %r12, %rsi
callq 0x61cb
testb %al, %al
je 0xaf07
movq (%rbx), %rsi
movq %r13, %rdi
callq 0xb154
cmpq $0x0, (%rax)
je 0xaf20
movq (%rbx), %rsi
movq %r13, %rdi
callq 0xb154
movq (%rax), %rcx
movq 0x8(%rax), %rdi
addq %r15, %rdi
testb $0x1, %cl
je 0xaefc
movq (%rdi), %rax
movq -0x1(%rax,%rcx), %rcx
addq $0x20, (%rbx)
movq %rbx, %rsi
callq *%rcx
jmp 0xaeb3
movq %r14, %rdi
movq %r15, %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x619c
pushq $0x10
popq %rdi
callq 0x41e0
movq %rax, %r14
movq (%rbx), %rdx
leaq 0x114a8(%rip), %rsi     # 0x1c3dd
leaq 0x8(%rsp), %rdi
callq 0x52b1
leaq 0x1160d(%rip), %rdx     # 0x1c553
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5292
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x46e0
xorl %ebp, %ebp
movq 0x20082(%rip), %rsi     # 0x2aff0
movq 0x2003b(%rip), %rdx     # 0x2afb0
movq %r14, %rdi
callq 0x4730
pushq $0x10
popq %rdi
callq 0x41e0
movq %rax, %r14
leaq 0x11426(%rip), %rsi     # 0x1c3b5
movq %rax, %rdi
callq 0x4170
movq 0x20052(%rip), %rsi     # 0x2aff0
movq 0x2000b(%rip), %rdx     # 0x2afb0
movq %r14, %rdi
callq 0x4730
pushq $0x10
popq %rdi
callq 0x41e0
movq %rax, %r14
leaq 0x11577(%rip), %rsi     # 0x1c536
movq %rax, %rdi
callq 0x4170
jmp 0xaf97
jmp 0xaff3
jmp 0xaff3
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4898
jmp 0xafe2
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x4898
testb %bpl, %bpl
jne 0xaff6
jmp 0xaffe
movq %rax, %rbx
movq %r14, %rdi
callq 0x4310
movq %rbx, %rdi
callq 0x4750