// File: solaldunckel[P]webserv/includes/Utils/Utils.hpp
// Function: webserv_exception::webserv_exception(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
webserv_exception(std::string msg, int err_num = 0, std::string arg = "") : errno_(err_num) {
    error_msg_ = msg;
    if (error_msg_.find('%') != std::string::npos)
      error_msg_.replace(error_msg_.find('%'), 1, arg);
    if (errno_) {
      error_msg_ = error_msg_ + " (" + ft::to_string(errno_) + ": " + strerror(errno_) + ")";
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rsi, -0xf8(%rbp)
movq %rcx, -0x110(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x9530
movq -0x108(%rbp), %rdi
leaq 0x5317a(%rip), %rax     # 0x5bd40
movq %rax, (%rdi)
movq %rax, (%rdi)
movl -0x14(%rbp), %eax
movl %eax, 0x8(%rdi)
addq $0x10, %rdi
movq %rdi, -0x100(%rbp)
callq 0x57b0
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x5050
jmp 0x8bf7
movq -0x108(%rbp), %rdi
addq $0x10, %rdi
movl $0x25, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x5730
cmpq $-0x1, %rax
je 0x8c66
movq -0x108(%rbp), %rdi
addq $0x10, %rdi
movq %rdi, -0x118(%rbp)
xorl %eax, %eax
movl %eax, %edx
movl $0x25, %esi
callq 0x5730
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rcx
movq %rax, %rsi
movl $0x1, %edx
callq 0x51b0
jmp 0x8c53
jmp 0x8c66
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8e01
movq -0x108(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x8df8
movq -0x108(%rbp), %rsi
addq $0x10, %rsi
leaq 0x3a4c3(%rip), %rdx     # 0x4314c
leaq -0xd0(%rbp), %rdi
callq 0x8f70
jmp 0x8c97
movq -0x108(%rbp), %rax
movl 0x8(%rax), %esi
leaq -0xf0(%rbp), %rdi
callq 0x9070
jmp 0x8caf
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x9550
jmp 0x8ccb
leaq 0x3ad58(%rip), %rdx     # 0x43a2a
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x6a80
jmp 0x8ce7
movq -0x108(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x5170
movq %rax, %rdx
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x6a80
jmp 0x8d0b
leaq 0x3a46b(%rip), %rdx     # 0x4317d
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x6a80
jmp 0x8d21
movq -0x108(%rbp), %rdi
addq $0x10, %rdi
leaq -0x50(%rbp), %rsi
callq 0x56d0
leaq -0x50(%rbp), %rdi
callq 0x5aa8
leaq -0x70(%rbp), %rdi
callq 0x5aa8
leaq -0x90(%rbp), %rdi
callq 0x5aa8
leaq -0xb0(%rbp), %rdi
callq 0x5aa8
leaq -0xf0(%rbp), %rdi
callq 0x5aa8
leaq -0xd0(%rbp), %rdi
callq 0x5aa8
jmp 0x8df8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8dea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8dde
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8dd2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8dc6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x5aa8
leaq -0x90(%rbp), %rdi
callq 0x5aa8
leaq -0xb0(%rbp), %rdi
callq 0x5aa8
leaq -0xf0(%rbp), %rdi
callq 0x5aa8
leaq -0xd0(%rbp), %rdi
callq 0x5aa8
jmp 0x8e01
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x100(%rbp), %rdi
callq 0x5aa8
movq -0x108(%rbp), %rdi
callq 0x59f0
movq -0x28(%rbp), %rdi
callq 0x5950
nopw %cs:(%rax,%rax)
nopl (%rax)