LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/get_next_line.cpp
// Function: ft_strjoin(char const*, char const*)
char	*ft_strjoin(char const *s1, char const *s2)
{
	char	*str;

	if (!(str = (char*)ft_calloc(strlen(s1) + strlen(s2)
		+ 1, sizeof(char))))
		return (NULL);
	strcpy(str, s1);
	strcat(str, s2);
	return (str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4190
movq %rax, %r15
movq %rbx, %rdi
callq 0x4190
leaq (%r15,%rax), %r12
incq %r12
movq %r12, %rdi
callq 0x4590
testq %rax, %rax
je 0x20ce7
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x4250
jmp 0x20cea
xorl %r15d, %r15d
testq %r15, %r15
je 0x20d10
movq %r15, %rdi
movq %r14, %rsi
callq 0x4400
movq %r15, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4790
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/get_next_line.cpp
// Function: ft_substr(char const*, unsigned int, unsigned long)
char	*ft_substr(char const *s, unsigned int start, size_t len)
{
	char	*str;
	int		i;

	i = 0;
	if (!s)
		return (NULL);
	if (start > strlen(s))
		return (NULL);
	if (!(str = (char*)ft_calloc(len + 1, sizeof(char))))
		return (NULL);
	while (s[start] && len)
	{
		str[i] = s[start];
		i++;
		start++;
		len--;
	}
	str[i] = '\0';
	return (str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x20dbf
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %esi, %ebp
callq 0x4190
cmpq %rbp, %rax
jb 0x20dbf
leaq 0x1(%r14), %r13
movq %r13, %rdi
callq 0x4590
testq %rax, %rax
je 0x20d7e
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x4250
jmp 0x20d80
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x20dbf
movb (%r12,%rbp), %al
testb %al, %al
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
jne 0x20dd3
decq %r14
incl %r15d
xorl %ecx, %ecx
movb %al, (%rbx,%rcx)
leaq 0x1(%rcx), %rdx
leal (%r15,%rcx), %eax
movb (%r12,%rax), %al
testb %al, %al
je 0x20dbb
cmpq %rcx, %r14
movq %rdx, %rcx
jne 0x20da0
movl %edx, %eax
jmp 0x20dd5
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
movb $0x0, (%rbx,%rax)
jmp 0x20dc1
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/get_next_line.cpp
// Function: ft_is_in_stri(char, char*)
int		ft_is_in_stri(char c, char *str)
{
	int		i;

	i = 0;
	while (str[i])
	{
		if (str[i] == c)
			return (i);
		i++;
	}
	return (-1);
}

// Assembly:
movb (%rsi), %dl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testb %dl, %dl
je 0x20df8
xorl %ecx, %ecx
cmpb %dil, %dl
je 0x20df9
movb 0x1(%rsi,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x20de8
retq
movl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/get_next_line.cpp
// Function: get_next_line(int, char**)
int				get_next_line(int fd, char **line)
{
	static char		*s[10240];
	char			buf[BUFFER_SIZE + 1];
	int				ret;
	char			*tmp;

	if (fd < 0 || !line || BUFFER_SIZE < 1 || read(fd, buf, 0) < 0)
		return (-1);
	if (!s[fd] && !(s[fd] = (char*)ft_calloc(1, sizeof(char *))))
		return (-1);
	while ((ft_is_in_stri('\n', s[fd])) < 0 && (ret = read(fd, buf, BUFFER_SIZE)) > 0)
	{
		buf[ret] = '\0';
		tmp = s[fd];
		s[fd] = ft_strjoin(s[fd], buf);
		free(tmp);
	}
	if (s[fd])
		*line = ft_substr(s[fd], 0, ft_strlen_c(s[fd], '\n'));
	if (!handle_line(s, fd))
		return (0);
	return (1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
testl %edi, %edi
sets %al
testq %rsi, %rsi
sete %cl
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
orb %al, %cl
jne 0x20f8f
movq %rsi, %rbx
movl %edi, %ebp
movq %rsp, %rsi
xorl %edx, %edx
callq 0x45d0
testq %rax, %rax
js 0x20f8f
movl %ebp, %r12d
leaq 0x11748(%rip), %r13     # 0x32590
cmpq $0x0, (%r13,%r12,8)
jne 0x20e78
movl $0x8, %edi
callq 0x4590
testq %rax, %rax
je 0x20e68
movq $0x0, (%rax)
jmp 0x20e6a
xorl %eax, %eax
movq %rax, (%r13,%r12,8)
testq %rax, %rax
je 0x20f8f
movq %rsp, %r14
movq (%r13,%r12,8), %rax
movb (%rax), %cl
testb %cl, %cl
je 0x20e97
incq %rax
cmpb $0xa, %cl
je 0x20ed2
movb (%rax), %cl
incq %rax
testb %cl, %cl
jne 0x20e89
movl $0x80, %edx
movl %ebp, %edi
movq %r14, %rsi
callq 0x45d0
testl %eax, %eax
jle 0x20ed2
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, (%rsp,%rax)
movq (%r13,%r12,8), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x20ca3
movq %rax, (%r13,%r12,8)
movq %r15, %rdi
callq 0x4540
jmp 0x20e7b
movq (%r13,%r12,8), %rdi
testq %rdi, %rdi
je 0x20efe
movq $-0x1, %rdx
movzbl 0x1(%rdi,%rdx), %eax
incq %rdx
cmpl $0xa, %eax
je 0x20ef4
testl %eax, %eax
jne 0x20ee3
xorl %esi, %esi
callq 0x20d36
movq %rax, (%rbx)
movq (%r13,%r12,8), %rbx
movb (%rbx), %al
testb %al, %al
je 0x20f34
leaq 0x1(%rbx), %rcx
movl %eax, %edx
cmpb $0xa, %dl
je 0x20f4a
movb (%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x20f0f
testb %al, %al
je 0x20f34
movq %rbx, %rdi
callq 0x4540
movq $0x0, (%r13,%r12,8)
jmp 0x20f89
movq %rbx, %rdi
callq 0x4540
movq $0x0, (%r13,%r12,8)
xorl %r14d, %r14d
jmp 0x20f8f
xorl %ebp, %ebp
testb %al, %al
je 0x20f67
movl $0x1, %ecx
cmpb $0xa, %al
je 0x20f65
movb (%rbx,%rcx), %al
incq %rcx
testb %al, %al
jne 0x20f55
jmp 0x20f67
movl %ecx, %ebp
movq %rbx, %rdi
callq 0x4190
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x20d36
movq %rax, (%r13,%r12,8)
movq %rbx, %rdi
callq 0x4540
movl $0x1, %r14d
movl %r14d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/Logger.cpp
// Function: Logger::print(LogLevel, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void Logger::print(LogLevel level, std::string str, std::string color, bool error) {
  (void)error;
  if (level <= level_) {
    struct tm	*tm;
    time_t rawtime;
    char buf[32];

    time(&rawtime);
    tm = localtime (&rawtime);
    int ret = strftime(buf, 32, "%T", tm);
    buf[ret] = '\0';

    pthread_mutex_lock(&g_write);

    if (error) {
      std::cerr << CYAN << "[" << buf << "] " << RESET;
      std::cerr << color << str << RESET;
      std::cerr << "\n";
    } else {
      std::cout << CYAN << "[" << buf << "] " << RESET;
      std::cout << color << str << RESET;
      std::cout << "\n";
    }
    pthread_mutex_unlock(&g_write);
  }
}

// Assembly:
cmpl %esi, (%rdi)
jl 0x210ea
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebp
movq %rcx, %r15
movq %rdx, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x43e0
movq %r14, %rdi
callq 0x4330
leaq 0x4f64(%rip), %rdx      # 0x25f4d
leaq 0x10(%rsp), %r13
movl $0x20, %esi
movq %r13, %rdi
movq %rax, %rcx
callq 0x4370
cltq
movb $0x0, 0x10(%rsp,%rax)
leaq 0x1148c(%rip), %r14     # 0x32498
movq %r14, %rdi
callq 0x4600
testb %bpl, %bpl
je 0x21022
movq 0x10fc8(%rip), %r12     # 0x31fe8
jmp 0x21029
movq 0x10f8f(%rip), %r12     # 0x31fb8
leaq 0x4f20(%rip), %rsi      # 0x25f50
movl $0x5, %edx
movq %r12, %rdi
callq 0x44d0
leaq 0x456e(%rip), %rsi      # 0x255b2
movl $0x1, %edx
movq %r12, %rdi
callq 0x44d0
movq %r13, %rdi
callq 0x4190
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x44d0
leaq 0x4ee8(%rip), %rsi      # 0x25f56
movl $0x2, %edx
movq %r12, %rdi
callq 0x44d0
leaq 0x4ed7(%rip), %r13      # 0x25f59
movl $0x4, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x44d0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x44d0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %rax, %rdi
callq 0x44d0
movl $0x4, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44d0
leaq 0x4146(%rip), %rsi      # 0x2520d
movl $0x1, %edx
movq %r12, %rdi
callq 0x44d0
movq %r14, %rdi
callq 0x4340
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/MimeTypes.cpp
// Function: MimeTypes::getType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string MimeTypes::getType(std::string extension) {
  if (!extension.length())
    return "application/octet-stream";
  if (mimes_.count(extension))
    return mimes_[extension];
  return "application/octet-stream";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdx)
je 0x2382f
movq %rdx, %r14
movq %rsi, %r15
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1235c
leaq 0x8(%r15), %rcx
cmpq %rcx, %rax
je 0x2382f
movq %r15, %rdi
movq %r14, %rsi
callq 0xa86c
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x6bac
jmp 0x2384c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26f7(%rip), %rsi      # 0x25f34
leaq 0x2708(%rip), %rdx      # 0x25f4c
movq %rbx, %rdi
callq 0x578e
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/StringUtils.cpp
// Function: ft::trim_left(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char)
std::string trim_left(std::string str, char c) {
    size_t startpos = str.find_first_not_of(c);
    if (startpos != std::string::npos)
      str.erase(0, startpos);
    return str;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movl %edx, %esi
xorl %edx, %edx
callq 0x43c0
cmpq $-0x1, %rax
je 0x2428b
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40b0
leaq 0x10(%r14), %rcx
movq %rcx, (%r14)
movq (%rbx), %rdx
leaq 0x10(%rbx), %rax
cmpq %rax, %rdx
je 0x242aa
movq %rdx, (%r14)
movq (%rax), %rcx
movq %rcx, 0x10(%r14)
jmp 0x242b0
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%r14)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/StringUtils.cpp
// Function: ft::trim_right(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char)
std::string trim_right(std::string str, char c) {
    size_t lastpos = str.find_last_not_of(c);
    if (lastpos == std::string::npos)
      return "";
    str.erase(lastpos + 1, str.length());
    return str;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movl %edx, %esi
movq $-0x1, %rdx
callq 0x42c0
cmpq $-0x1, %rax
je 0x24324
incq %rax
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x40b0
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%r14), %rdx
leaq 0x10(%r14), %rax
cmpq %rax, %rdx
je 0x2433f
movq %rdx, (%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x24345
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1746(%rip), %rdx      # 0x25a78
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x578e
jmp 0x2435d
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movb $0x0, 0x10(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/StringUtils.cpp
// Function: ft::to_hex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
size_t to_hex(std::string &str) {
    std::stringstream ss;
    size_t hex;

    ss << std::hex << str;
    ss >> hex;

    return hex;
  }

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x42e0
leaq 0x18(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl 0x30(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x30(%rsp,%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x44d0
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x4240
movq (%rsp), %rbx
movq 0xdbcd(%rip), %rsi      # 0x31f88
leaq 0x8(%rsp), %rdi
callq 0x4320
leaq 0x88(%rsp), %rdi
callq 0x4130
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq %rax, %rbx
movq 0xdba0(%rip), %rsi      # 0x31f88
leaq 0x8(%rsp), %rdi
callq 0x4320
leaq 0x88(%rsp), %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/StringUtils.cpp
// Function: ft::strdup(char const*)
char *strdup(const char *str) {
    if (!str)
      return NULL;
    char *newstr = (char*)malloc(sizeof(char) * (strlen(str) + 1));

    if (!newstr)
      return NULL;

    size_t i = 0;

    while (str[i]) {
      newstr[i] = str[i];
      i++;
    }

    newstr[i] = '\0';
    return newstr;
  }

// Assembly:
testq %rdi, %rdi
je 0x2443d
pushq %rbx
movq %rdi, %rbx
callq 0x4190
leaq 0x1(%rax), %rdi
callq 0x4590
testq %rax, %rax
je 0x24440
movb (%rbx), %dl
xorl %ecx, %ecx
testb %dl, %dl
je 0x24437
movb %dl, (%rax,%rcx)
movb 0x1(%rbx,%rcx), %dl
incq %rcx
jmp 0x24427
movb $0x0, (%rax,%rcx)
jmp 0x24442
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/StringUtils.cpp
// Function: ft::unique_char(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string unique_char(std::string str) {
    std::string::iterator it = str.begin();

    while (it != str.end()) {
      if (*it == '/') {
        it++;
        while (it != str.end() && *it == '/') {
          it = str.erase(it);
        }
      }
      else
        it++;
    }
    return str;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x244b3
leaq 0x1(%rax), %r15
cmpb $0x2f, (%rax)
jne 0x2449e
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
addq %rcx, %rax
cmpq %rax, %r15
je 0x2449e
cmpb $0x2f, (%r15)
jne 0x2449e
subq %rcx, %r15
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4520
movq (%rbx), %rcx
leaq (%rcx,%r15), %rax
cmpq 0x8(%rbx), %r15
movq %rax, %r15
jne 0x24473
jmp 0x244a1
movq %r15, %rax
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
leaq (%rdx,%rcx), %rsi
cmpq %rsi, %rax
jne 0x2445b
jmp 0x244b6
movq %rax, %rdx
leaq 0x10(%r14), %rsi
movq %rsi, (%r14)
leaq 0x10(%rbx), %rax
cmpq %rax, %rdx
je 0x244d2
movq %rdx, (%r14)
movq (%rax), %rdx
movq %rdx, 0x10(%r14)
jmp 0x244d8
movups (%rax), %xmm0
movups %xmm0, (%rsi)
movq %rcx, 0x8(%r14)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/Utils.cpp
// Function: isValidMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool isValidMethod(std::string const &str) {
  return (str == "GET" ||
          str == "POST" ||
          str == "HEAD" ||
          str == "PUT" ||
          str == "DELETE");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x107d(%rip), %rsi      # 0x2579b
callq 0x40f0
movb $0x1, %bl
testl %eax, %eax
je 0x24776
leaq 0xe5f(%rip), %rsi       # 0x2558f
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24776
leaq 0x105c(%rip), %rsi      # 0x2579f
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24776
leaq 0x1041(%rip), %rsi      # 0x25797
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24776
leaq 0x103b(%rip), %rsi      # 0x257a4
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
sete %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/Utils.cpp
// Function: isValidDirective(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool isValidDirective(std::string const &str) {
  return (str == "listen" ||
          str == "server_name" ||
          str == "root" ||
          str == "auth" ||
          str == "error_page" ||
          str == "upload" ||
          str == "autoindex" ||
          str == "index" ||
          str == "cgi" ||
          str == "cgi_bin");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xbeb(%rip), %rsi       # 0x25379
callq 0x40f0
movb $0x1, %bl
testl %eax, %eax
je 0x24851
leaq 0xbdc(%rip), %rsi       # 0x25380
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xbe1(%rip), %rsi       # 0x2539c
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xbc5(%rip), %rsi       # 0x25397
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xba7(%rip), %rsi       # 0x2538c
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xbc0(%rip), %rsi       # 0x253b8
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xba3(%rip), %rsi       # 0x253ae
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xb94(%rip), %rsi       # 0x253b2
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xb8e(%rip), %rsi       # 0x253bf
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x24851
leaq 0xb7f(%rip), %rsi       # 0x253c3
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
sete %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/Utils.cpp
// Function: ft::inet_ntop[abi:cxx11](void const*)
std::string inet_ntop(const void *s) {
    const u_char *src = (const u_char*)s;
    std::ostringstream oss;

    oss << ft::to_string(src[0]) << '.' << ft::to_string(src[1]) << '.' <<
      ft::to_string(src[2]) << '.' << ft::to_string(src[3]);
    return oss.str();
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x88(%rsp), %rdi
callq 0x45a0
movzbl (%r14), %esi
leaq 0x68(%rsp), %rdi
callq 0x24b64
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x88(%rsp), %rdi
callq 0x44d0
leaq 0x48(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x44d0
movq %rax, %r15
movzbl 0x1(%r14), %esi
leaq 0x48(%rsp), %rdi
callq 0x24b64
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r15, %rdi
callq 0x44d0
leaq 0x28(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x44d0
movq %rax, %r15
movzbl 0x2(%r14), %esi
leaq 0x28(%rsp), %rdi
callq 0x24b64
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r15, %rdi
callq 0x44d0
leaq 0x8(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x44d0
movq %rax, %r15
movzbl 0x3(%r14), %esi
leaq 0x8(%rsp), %rdi
callq 0x24b64
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x44d0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24965
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24980
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2499b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x249b6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x46a0
movq 0xd5e3(%rip), %rsi      # 0x31fb0
leaq 0x88(%rsp), %rdi
callq 0x4220
leaq 0xf8(%rsp), %rdi
callq 0x4130
movq %rbx, %rax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
jmp 0x24a1f
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24a27
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x24a27
jmp 0x24a24
jmp 0x24a44
jmp 0x24a64
movq %rax, %rbx
jmp 0x24a82
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24a47
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x24a47
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24a67
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x24a67
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24a82
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0xd527(%rip), %rsi      # 0x31fb0
leaq 0x88(%rsp), %rdi
callq 0x4220
leaq 0xf8(%rsp), %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x4780
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/Utils.cpp
// Function: ft::free_tab(char**)
void free_tab(char **tab) {
    int i = 0;

    while (tab[i]) {
      if (tab[i])
        free(tab[i]);
      tab[i] = NULL;
      i++;
    }
    free(tab);
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x24adc
leaq 0x8(%rbx), %r14
callq 0x4540
movq $0x0, -0x8(%r14)
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x24ac3
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4540
// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/Utils.cpp
// Function: ft::get_http_date[abi:cxx11]()
std::string get_http_date() {
    struct timeval tv;
    char buf[32];
    gettimeofday(&tv, NULL);

    struct tm	*tm;
    tm = gmtime(&tv.tv_sec);
    int ret = strftime(buf, 32, "%a, %d %b %Y %T GMT", tm);
    return std::string(buf, ret);
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x46c0
movq %r14, %rdi
callq 0x4390
leaq 0x13fa(%rip), %rdx      # 0x25f0d
movq %rsp, %r14
movl $0x20, %esi
movq %r14, %rdi
movq %rax, %rcx
callq 0x4370
cltq
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
leaq (%rsp,%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x578e
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/attractivechaos[P]udb2/phmap/./phmap.h
// Function: phmap::container_internal::raw_hash_set<phmap::container_internal::FlatHashMapPolicy<unsigned int, unsigned int>, Hash32, phmap::EqualTo<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>::erase(phmap::container_internal::raw_hash_set<phmap::container_internal::FlatHashMapPolicy<unsigned int, unsigned int>, Hash32, phmap::EqualTo<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>::iterator)
iterator& operator++() {
            ++ctrl_;
            ++slot_;
            skip_empty_or_deleted();
            return *this;
        }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x1(%rsi), %rax
leaq 0x8(%rdx), %rbx
cmpb $-0x2, 0x1(%rsi)
jg 0x1746
movdqu (%rax), %xmm0
pcmpeqd %xmm1, %xmm1
pcmpgtb %xmm0, %xmm1
pmovmskb %xmm1, %ecx
incl %ecx
bsfl %ecx, %ecx
leaq (%rax,%rcx), %r14
leaq (%rbx,%rcx,8), %rbx
cmpb $-0x1, (%rax,%rcx)
movq %r14, %rax
jl 0x171e
jmp 0x1749
movq %rax, %r14
callq 0x2132
movq %r14, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/attractivechaos[P]udb2/phmap/./phmap.h
// Function: std::pair<phmap::container_internal::raw_hash_set<phmap::container_internal::FlatHashMapPolicy<unsigned int, unsigned int>, Hash32, phmap::EqualTo<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>::iterator, bool> phmap::container_internal::raw_hash_set<phmap::container_internal::FlatHashMapPolicy<unsigned int, unsigned int>, Hash32, phmap::EqualTo<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>::emplace_decomposable<unsigned int, std::piecewise_construct_t const&, std::tuple<unsigned int&&>, std::tuple<unsigned int&&>>(unsigned int const&, unsigned long, std::piecewise_construct_t const&, std::tuple<unsigned int&&>&&, std::tuple<unsigned int&&>&&)
std::pair<iterator, bool> emplace_decomposable(const K& key, size_t hash, 
                                                   Args&&... args)
    {
        auto res = find_or_prepare_insert(key, hash);
        if (res.second) {
            emplace_at(res.first, std::forward<Args>(args)...);
        }
        return {iterator_at(res.first), res.second};
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %r13
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x1882
movq %rax, %r12
movl %edx, %ebp
testb $0x1, %dl
je 0x1857
movq 0x40(%rsp), %r8
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x198c
movq (%r14), %rax
addq %r12, %rax
shlq $0x3, %r12
addq 0x8(%r14), %r12
movq %rax, (%rbx)
movq %r12, 0x8(%rbx)
movb %bpl, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/j-faria[P]kima/examples/activity_correlations/kima_setup.cpp
// Function: main
int main(int argc, char** argv)
{
    /* Four options to demonstrate the linear correlations with indicators */

    // Load the first file without any correlation (just reads time, RV, error)
    datafile = "simulated1.txt";
    load(datafile, "ms", 4);

    /* Load the first file with linear correlation with indicator "b", in the 4th column */
    // datafile = "simulated1.txt";
    // indicators = {"b"};
    // load(datafile, "ms", 4, indicators);

    /* Load the second file with linear correlation with indicator "b" only */
    // datafile = "simulated2.txt";
    // indicators = {"b"};
    // load(datafile, "ms", 4, indicators);

    /* Load the second file, with linear correlation with "b" and "c", skip 5th column */
    // datafile = "simulated2.txt";
    // indicators = {"b", "", "indc"};
    // load(datafile, "ms", 4, indicators);


    Sampler<RVmodel> sampler = setup<RVmodel>(argc, argv);
    sampler.run(50);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x6c0, %rsp            # imm = 0x6C0
movq %rsi, %rbx
movl %edi, %ebp
movq 0x33507(%rip), %rdx     # 0x54548
leaq 0x334f8(%rip), %r14     # 0x54540
leaq 0x25342(%rip), %rcx     # 0x46391
movl $0xe, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x6600
leaq 0x8(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x1f478(%rip), %rsi     # 0x404e9
movq %r14, %rdi
callq 0x21269
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x2136c
movq %r14, %rdi
movl $0x32, %esi
callq 0x2143e
leaq 0x8(%rsp), %rdi
callq 0x2161c
xorl %eax, %eax
addq $0x6c0, %rsp            # imm = 0x6C0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2161c
movq %rbx, %rdi
callq 0x6710
nop
// File: /workspace/github_cpp_makefile_star2_O1/brianwu02[P]ImageProcessing/unordered_dither.cpp
// Function: main
int main(int argc, char** argv) {
    int	n;
    double gamma;
    imageP	I1, I2, tmp_img;
    // read input image (I1) and reserve space for output (I2)
    I1 = IP_readImage(argv[1]);
    I2 = NEWIMAGE;
    tmp_img = NEWIMAGE;

    // read n and gamma from STDIN
    n = atoi(argv[2]);
    gamma = atof(argv[3]);

    // threshold image and save result in file
    unordered_dither(I1, n, gamma, I2, tmp_img);
    IP_saveImage(I2, argv[4]);

    // free up image structures/memory
    IP_freeImage(I1);
    IP_freeImage(I2);
    IP_freeImage(tmp_img);
    cout << "done" << endl;

	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq 0x8(%rsi), %rdi
callq 0x2638
movq %rax, %rbx
movl $0x10, %edi
callq 0x2180
movq %rax, %r15
movl $0x10, %edi
callq 0x2180
movq %rax, %r12
movq 0x10(%r14), %rdi
callq 0x21c0
movl %eax, %ebp
movq 0x18(%r14), %rdi
callq 0x2150
cvtsd2ss %xmm0, %xmm0
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0x2439
movq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x285e
movq %rbx, %rdi
callq 0x2a0f
movq %r15, %rdi
callq 0x2a0f
movq %r12, %rdi
callq 0x2a0f
movq 0x2be0(%rip), %rbx      # 0x4fd0
leaq 0xc29(%rip), %rsi       # 0x3020
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2120
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]randomsampling/test.cpp
// Function: testall(std::vector<double, std::allocator<double>>&)
void testall(std::vector<double> &v) {
  std::cout << "Input Data" << std::endl;
  for (size_t i = 0; i < v.size(); i++) {
    std::cout << i << ":" << v[i] << std::endl;
  }
  std::cout << std::endl;
  test<walker_alias>(v);
  test<cumulative_sum>(v);
  test<binary_tree>(v);

  int uindex = 2;
  double uvalue = 6.0;
  std::cout << "Partial Update" << std::endl;
  std::cout << uindex << ":" << v[uindex] << "->" << uvalue << std::endl;
  std::cout << std::endl;
  test_with_update<binary_tree>(v, uindex, uvalue);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x5d17(%rip), %r14      # 0x6fd8
leaq 0x3df4(%rip), %rsi      # 0x50bc
movl $0xa, %edx
movq %r14, %rdi
callq 0x10f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x1382
xorl %r15d, %r15d
movq 0x5cc9(%rip), %r12      # 0x6fd8
leaq 0x3db1(%rip), %r13      # 0x50c7
movq %r12, %rdi
movq %r15, %rsi
callq 0x1070
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x10f0
movq (%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbp, %rdi
callq 0x1110
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x10c0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
cmpq %rax, %r15
jb 0x1316
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq %rbx, %rdi
callq 0x1558
movq %rbx, %rdi
callq 0x187f
movq %rbx, %rdi
callq 0x1bb7
leaq 0x3d01(%rip), %rsi      # 0x50c9
movl $0xe, %edx
movq %r14, %rdi
callq 0x10f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq %r14, %rdi
movl $0x2, %esi
callq 0x1130
movq %rax, %r15
leaq 0x3cb4(%rip), %rsi      # 0x50c7
movl $0x1, %edx
movq %rax, %rdi
callq 0x10f0
movq (%rbx), %rax
movsd 0x10(%rax), %xmm0
movq %r15, %rdi
callq 0x1110
movq %rax, %r15
leaq 0x3c9e(%rip), %rsi      # 0x50d8
movl $0x2, %edx
movq %rax, %rdi
callq 0x10f0
movsd 0x3bb9(%rip), %xmm0     # 0x5008
movq %r15, %rdi
callq 0x1110
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x10c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq %rbx, %rdi
movl $0x2, %esi
movsd 0x3b50(%rip), %xmm0     # 0x5008
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1e89
// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]randomsampling/./cumulative_sum.hpp
// Function: cumulative_sum::cumulative_sum(std::vector<double, std::allocator<double>>&)
cumulative_sum(std::vector<double> &list) {
    double sum = 0.0;
    for (auto v : list) {
      c_sum.push_back(sum);
      sum += v;
    }
    ud.param(std::uniform_real_distribution<double>::param_type(0, sum));
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rdi)
movupd %xmm0, (%rdi)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x20(%rdi)
movq $0x0, 0x8(%rsp)
movq (%rsi), %r15
movq 0x8(%rsi), %r12
cmpq %r12, %r15
je 0x3b1e
leaq 0x8(%rsp), %r14
movsd (%r15), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3af8
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3b03
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3b5c
movsd 0x10(%rsp), %xmm0
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
addq $0x8, %r15
cmpq %r12, %r15
jne 0x3acf
movsd 0x8(%rsp), %xmm0
movq $0x0, 0x18(%rbx)
movsd %xmm0, 0x20(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3b54
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10e0
movq %r14, %rdi
callq 0x1140
// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]randomsampling/./binary_tree.hpp
// Function: binary_tree::binary_tree(std::vector<double, std::allocator<double>>&)
binary_tree(std::vector<double> &list) {
    int n = twopow(list.size());
    list_size = n;
    root_index = 2 * n - 2;
    tree.resize(2 * n - 1, 0.0);
    std::copy(list.begin(), list.end(), tree.begin());
    int s = 0;
    for (int j = 0; (1 << j) < n; j++) {
      for (int i = 0; i < (n >> (j + 1)); i++) {
        tree[s + (n >> j) + i] = tree[s + i * 2] + tree[s + i * 2 + 1];
      }
      s += n >> j;
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %r15
subq (%rsi), %r15
shrq $0x3, %r15
testl %r15d, %r15d
je 0x3dac
leal -0x1(%r15), %eax
testl %eax, %r15d
je 0x3daf
bsrl %r15d, %ecx
xorl $0x1f, %ecx
negb %cl
movl $0x1, %r15d
shll %cl, %r15d
jmp 0x3daf
xorl %r15d, %r15d
movslq %r15d, %rax
movq %rax, 0x20(%rbx)
leal -0x2(,%rax,2), %ecx
movl %ecx, 0x18(%rbx)
leal -0x1(,%rax,2), %eax
movslq %eax, %rsi
leaq 0x8(%rsp), %rdx
movq $0x0, (%rdx)
movq %rbx, %rdi
callq 0x26cc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
subq %rsi, %rdx
je 0x3df2
movq (%rbx), %rdi
callq 0x1120
cmpl $0x2, %r15d
jl 0x3e6b
movq (%rbx), %rsi
leaq 0x8(%rsi), %rdi
xorl %eax, %eax
xorl %r8d, %r8d
leal 0x1(%rax), %edx
movl %r15d, %r9d
movl %edx, %ecx
shrl %cl, %r9d
testl %r9d, %r9d
jle 0x3e50
movl %r15d, %r10d
movl %eax, %ecx
shrl %cl, %r10d
addl %r8d, %r10d
movl %r8d, %r11d
movl %r9d, %ecx
leaq (%rsi,%r10,8), %r9
leaq (%rdi,%r11,8), %r10
shlq $0x3, %rcx
xorl %r11d, %r11d
movsd -0x8(%r10,%r11,2), %xmm0
addsd (%r10,%r11,2), %xmm0
movsd %xmm0, (%r9,%r11)
addq $0x8, %r11
cmpq %r11, %rcx
jne 0x3e34
movl %r15d, %r9d
movl %eax, %ecx
shrl %cl, %r9d
movl $0x2, %r10d
shll %cl, %r10d
addl %r9d, %r8d
movl %edx, %eax
cmpl %r15d, %r10d
jl 0x3e04
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e8c
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x10e0
movq %r14, %rdi
callq 0x1140
// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]randomsampling/./binary_tree.hpp
// Function: binary_tree::select(std::mersenne_twister_engine<unsigned long, 32ul, 624ul, 397ul, 31ul, 2567483615ul, 11ul, 4294967295ul, 7ul, 2636928640ul, 15ul, 4022730752ul, 18ul, 1812433253ul>&)
int select(std::mt19937 &mt) {
    std::uniform_real_distribution<double> ud(0.0, 1.0);
    int index = root_index;
    int base = root_index;
    for (int i = 0; index >= list_size; i++) {
      double v = ud(mt) * tree[index];
      int local_index = index - base;
      base -= (2 << i);
      int left = base + local_index * 2;
      int right = left + 1;
      if (v < tree[left]) {
        index = left;
      } else {
        index = right;
      }
    }
    return index;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x18(%rdi), %ebx
movslq %ebx, %r12
cmpq %r12, 0x20(%rdi)
ja 0x3f02
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
movl %ebx, %r13d
movq %r14, %rdi
callq 0x3c3b
addsd 0x1162(%rip), %xmm0     # 0x5028
movq (%r15), %rax
mulsd (%rax,%r12,8), %xmm0
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl %ebp, %ecx
shll %cl, %edx
subl %r13d, %ebx
addl %r13d, %edx
leal (%rdx,%rbx,2), %ecx
movslq %ecx, %rbx
movsd (%rax,%rbx,8), %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
setbe %al
addl %eax, %ebx
incl %ebp
movslq %ebx, %r12
movl %edx, %r13d
cmpq %r12, 0x20(%r15)
jbe 0x3eb6
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaityo256[P]randomsampling/./binary_tree.hpp
// Function: binary_tree::update(int, double)
void update(int index, double value) {
    tree[index] = value;
    int base = 0;
    for (int i = 0; index != root_index; i++) {
      int local_index = index - base;
      base += (list_size >> i);
      index = (index >> 1) << 1;
      int pindex = base + local_index / 2;
      tree[pindex] = tree[index] + tree[index + 1];
      index = pindex;
    }
  }

// Assembly:
movslq %esi, %rcx
movq (%rdi), %rax
movsd %xmm0, (%rax,%rcx,8)
movl 0x18(%rdi), %edx
cmpl %ecx, %edx
je 0x3f80
movq 0x20(%rdi), %rdi
xorl %ecx, %ecx
xorl %r9d, %r9d
movl %esi, %r10d
subl %r9d, %r10d
movq %rdi, %r8
shrq %cl, %r8
addl %r9d, %r8d
movl %esi, %r9d
andl $-0x2, %r9d
movl %r10d, %r11d
shrl $0x1f, %r11d
addl %r10d, %r11d
sarl %r11d
addl %r8d, %r11d
movslq %r9d, %r9
movsd (%rax,%r9,8), %xmm0
orl $0x1, %esi
movslq %esi, %rsi
addsd (%rax,%rsi,8), %xmm0
movslq %r11d, %r10
movsd %xmm0, (%rax,%r10,8)
incq %rcx
movl %r11d, %esi
movl %r8d, %r9d
cmpl %edx, %r10d
jne 0x3f2f
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/lerp.cpp
// Function: ApplyInterpolation(interpolation_t const*, int, int const*, float (*) [3])
static void ApplyInterpolation (const interpolation_t *interp, int numstyles, const int *styles, vec3_t *outs
#ifdef ZHLT_XASH
								, vec3_t *outs_direction
#endif
								)
{
	int i;
	int j;

	for (j = 0; j < numstyles; j++)
	{
		VectorClear (outs[j]);
#ifdef ZHLT_XASH
		VectorClear (outs_direction[j]);
#endif
	}
	if (interp->totalweight <= 0)
	{
		return;
	}
	for (i = 0; i < (int)interp->points.size (); i++)
	{
		for (j = 0; j < numstyles; j++)
		{
#ifdef ZHLT_XASH
			const vec3_t *b_direction;
#endif
			const vec3_t *b = GetTotalLight (&g_patches[interp->points[i].patchnum], styles[j]
#ifdef ZHLT_XASH
											, b_direction
#endif
											);
			VectorMA (outs[j], interp->points[i].weight / interp->totalweight, *b, outs[j]);
#ifdef ZHLT_XASH
			VectorMA (outs_direction[j], interp->points[i].weight / interp->totalweight, *b_direction, outs_direction[j]);
#endif
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
testl %esi, %esi
jle 0xfa92
movl %ebp, %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4190
movq %rbx, 0x8(%rsp)
xorps %xmm0, %xmm0
ucomiss 0x4(%r15), %xmm0
jae 0xfb97
movq 0x10(%r15), %rax
subq 0x8(%r15), %rax
shrq $0x3, %rax
testl %eax, %eax
jle 0xfb97
movl %ebp, %r12d
addq $0x8, 0x8(%rsp)
xorl %r13d, %r13d
leaq 0x53a8f14(%rip), %rcx   # 0x53b89e0
movl %ebp, 0x4(%rsp)
movq %r14, 0x10(%rsp)
testl %ebp, %ebp
jle 0xfb79
movq 0x8(%rsp), %rbp
xorl %ebx, %ebx
movq 0x8(%r15), %rax
movslq (%rax,%r13,8), %rax
imulq $0x138, %rax, %rdi      # imm = 0x138
addq (%rcx), %rdi
movl (%r14,%rbx,4), %esi
movq %rcx, %r14
callq 0x22445
movq 0x8(%r15), %rcx
movss 0x4(%rcx,%r13,8), %xmm0
divss 0x4(%r15), %xmm0
mulss (%rax), %xmm0
addss -0x8(%rbp), %xmm0
movss %xmm0, -0x8(%rbp)
movq 0x8(%r15), %rcx
movss 0x4(%rcx,%r13,8), %xmm0
divss 0x4(%r15), %xmm0
mulss 0x4(%rax), %xmm0
addss -0x4(%rbp), %xmm0
movss %xmm0, -0x4(%rbp)
movq 0x8(%r15), %rcx
movss 0x4(%rcx,%r13,8), %xmm0
movq %r14, %rcx
movq 0x10(%rsp), %r14
divss 0x4(%r15), %xmm0
mulss 0x8(%rax), %xmm0
addss (%rbp), %xmm0
movss %xmm0, (%rbp)
incq %rbx
addq $0xc, %rbp
cmpq %rbx, %r12
jne 0xfae4
movq 0x10(%r15), %rax
subq 0x8(%r15), %rax
incq %r13
shrq $0x3, %rax
cltq
cmpq %rax, %r13
movl 0x4(%rsp), %ebp
jl 0xfad5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/lerp.cpp
// Function: GetTriangulationPatches(int, int*, int const**)
void GetTriangulationPatches (int facenum, int *numpatches, const int **patches)
{
	const facetriangulation_t *facetrian;

	facetrian = g_facetriangulations[facenum];
	*numpatches = (int)facetrian->usedpatches.size ();
	*patches = facetrian->usedpatches.data ();
}

// Assembly:
movslq %edi, %rax
leaq 0x20b9efb(%rip), %rcx   # 0x20cc910
movq (%rcx,%rax,8), %rax
movq 0x58(%rax), %rcx
subq 0x50(%rax), %rcx
shrq $0x2, %rcx
movl %ecx, (%rsi)
movq 0x50(%rax), %rax
movq %rax, (%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/lerp.cpp
// Function: FreeTriangulations()
void FreeTriangulations ()
{
	try
	{

	int i;
	int j;
	facetriangulation_t *facetrian;

	for (i = 0; i < g_numfaces; i++)
	{
		facetrian = g_facetriangulations[i];

		for (j = 0; j < (int)facetrian->localtriangulations.size (); j++)
		{
			FreeLocalTriangulation (facetrian->localtriangulations[j]);
		}

		delete facetrian;
		g_facetriangulations[i] = NULL;
	}

	}
	catch (std::bad_alloc)
	{
		hlassume (false, assume_NoMemory);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x1b9e9b3(%rip), %r15   # 0x1bb13f4
cmpl $0x0, (%r15)
jle 0x12b76
xorl %r12d, %r12d
leaq 0x20b9ebb(%rip), %r13   # 0x20cc910
movq (%r13,%r12,8), %rbx
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x12af8
xorl %ebp, %ebp
movq (%rax,%rbp,8), %r14
testq %r14, %r14
je 0x12ada
movq 0x88(%r14), %rdi
testq %rdi, %rdi
je 0x12a97
movq 0x98(%r14), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x70(%r14), %rdi
testq %rdi, %rdi
je 0x12aaf
movq 0x80(%r14), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x58(%r14), %rdi
testq %rdi, %rdi
je 0x12ac4
movq 0x68(%r14), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x18(%r14), %rdi
callq 0xc410
movl $0xa0, %esi
movq %r14, %rdi
callq 0x4300
incq %rbp
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rbp
jl 0x12a73
testq %rbx, %rbx
je 0x12b5e
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x12b12
movq 0x60(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x12b27
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x12b3c
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x12b51
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movl $0x68, %esi
movq %rbx, %rdi
callq 0x4300
movq $0x0, (%r13,%r12,8)
incq %r12
movslq (%r15), %rax
cmpq %rax, %r12
jl 0x12a55
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/lerp.cpp
// Function: GetDirection(float const*, float const*, float*)
static vec_t GetDirection (const vec3_t spot, const vec3_t normal, vec3_t direction_out)
{
	vec_t dot;

	dot = DotProduct (spot, normal);
	VectorMA (spot, -dot, normal, direction_out);
	return VectorNormalize (direction_out);
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movss (%rsi), %xmm1
movss (%rdi), %xmm0
movss 0x4(%rdi), %xmm2
mulss 0x4(%rsi), %xmm2
movaps %xmm0, %xmm3
mulss %xmm1, %xmm3
movss 0x8(%rdi), %xmm4
mulss 0x8(%rsi), %xmm4
addss %xmm2, %xmm3
addss %xmm3, %xmm4
mulss %xmm4, %xmm1
subss %xmm1, %xmm0
movss %xmm0, (%rdx)
movss 0x4(%rdi), %xmm1
movss 0x4(%rsi), %xmm2
mulss %xmm4, %xmm2
subss %xmm2, %xmm1
movss %xmm1, 0x4(%rdx)
mulss 0x8(%rsi), %xmm4
movss 0x8(%rdi), %xmm2
subss %xmm4, %xmm2
movss %xmm2, 0x8(%rdx)
mulss %xmm1, %xmm1
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
mulss %xmm2, %xmm2
addss %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtss2sd %xmm2, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x12c14
sqrtsd %xmm0, %xmm0
jmp 0x12c19
callq 0x4240
movsd 0x254ef(%rip), %xmm1    # 0x38110
ucomisd %xmm0, %xmm1
jbe 0x12c3a
movl $0x0, 0x8(%rbx)
movq $0x0, (%rbx)
xorps %xmm0, %xmm0
jmp 0x12c6a
cvtps2pd (%rbx), %xmm1
movapd %xmm0, %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
divpd %xmm2, %xmm1
cvtpd2ps %xmm1, %xmm1
movlpd %xmm1, (%rbx)
xorps %xmm1, %xmm1
cvtss2sd 0x8(%rbx), %xmm1
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0x8(%rbx)
cvtsd2ss %xmm0, %xmm0
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/lerp.cpp
// Function: GetAngle(float const*, float const*, float const*)
static vec_t GetAngle (const vec3_t leftdirection, const vec3_t rightdirection, const vec3_t normal)
{
	vec_t angle;
	vec3_t v;
	
	CrossProduct (rightdirection, leftdirection, v);
	angle = atan2 (DotProduct (v, normal), DotProduct (rightdirection, leftdirection));

	return angle;
}

// Assembly:
movss (%rsi), %xmm2
movss 0x4(%rsi), %xmm3
movss 0x8(%rdi), %xmm6
movss 0x8(%rsi), %xmm1
movss (%rdi), %xmm4
movss 0x4(%rdi), %xmm8
movaps %xmm3, %xmm5
movaps %xmm4, %xmm7
mulss %xmm3, %xmm7
movaps %xmm2, %xmm0
mulss %xmm8, %xmm0
mulss %xmm8, %xmm3
mulss %xmm1, %xmm8
mulss %xmm6, %xmm5
subss %xmm8, %xmm5
movaps %xmm1, %xmm8
mulss %xmm6, %xmm1
mulss %xmm2, %xmm6
mulss %xmm4, %xmm8
subss %xmm6, %xmm8
mulss 0x4(%rdx), %xmm8
subss %xmm7, %xmm0
mulss (%rdx), %xmm5
addss %xmm8, %xmm5
mulss 0x8(%rdx), %xmm0
addss %xmm5, %xmm0
mulss %xmm4, %xmm2
addss %xmm3, %xmm2
addss %xmm2, %xmm1
jmp 0x4430
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/lerp.cpp
// Function: GetFrac(float const*, float const*, float const*, float const*)
static vec_t GetFrac (const vec3_t leftspot, const vec3_t rightspot, const vec3_t direction, const vec3_t normal)
{
	vec3_t v;
	vec_t dot1;
	vec_t dot2;
	vec_t frac;

	CrossProduct (direction, normal, v);
	dot1 = DotProduct (leftspot, v);
	dot2 = DotProduct (rightspot, v);
	
	// dot1 <= 0 < dot2
	if (dot1 >= -NORMAL_EPSILON)
	{
		if (g_drawlerp && dot1 > ON_EPSILON)
		{
			Developer (DEVELOPER_LEVEL_SPAM, "Debug: triangulation: internal error 1.\n");
		}
		frac = 0.0;
	}
	else if (dot2 <= NORMAL_EPSILON)
	{
		if (g_drawlerp && dot2 < -ON_EPSILON)
		{
			Developer (DEVELOPER_LEVEL_SPAM, "Debug: triangulation: internal error 2.\n");
		}
		frac = 1.0;
	}
	else
	{
		frac = dot1 / (dot1 - dot2);
		frac = qmax (0, qmin (frac, 1));
	}

	return frac;
}

// Assembly:
pushq %rax
movss (%rdx), %xmm0
movss 0x4(%rdx), %xmm3
movss 0x8(%rcx), %xmm4
movss 0x8(%rdx), %xmm1
movss (%rcx), %xmm5
movss 0x4(%rcx), %xmm6
movaps %xmm3, %xmm2
mulss %xmm4, %xmm2
mulss %xmm0, %xmm4
mulss %xmm6, %xmm0
mulss %xmm1, %xmm6
subss %xmm6, %xmm2
mulss %xmm5, %xmm1
subss %xmm4, %xmm1
mulss %xmm3, %xmm5
subss %xmm5, %xmm0
movss 0x4(%rdi), %xmm3
mulss %xmm1, %xmm3
movss (%rdi), %xmm4
mulss %xmm2, %xmm4
addss %xmm3, %xmm4
movss 0x8(%rdi), %xmm3
mulss %xmm0, %xmm3
addss %xmm4, %xmm3
xorps %xmm4, %xmm4
cvtss2sd %xmm3, %xmm4
ucomisd 0x288ea(%rip), %xmm4    # 0x3b650
jae 0x12daf
mulss 0x4(%rsi), %xmm1
mulss (%rsi), %xmm2
addss %xmm1, %xmm2
mulss 0x8(%rsi), %xmm0
addss %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
movsd 0x25383(%rip), %xmm2    # 0x38110
ucomisd %xmm1, %xmm2
jae 0x12de0
movaps %xmm3, %xmm1
subss %xmm0, %xmm1
divss %xmm1, %xmm3
minss 0x25392(%rip), %xmm3    # 0x38138
xorps %xmm0, %xmm0
maxss %xmm3, %xmm0
jmp 0x12e1d
ucomisd 0x28891(%rip), %xmm4    # 0x3b648
xorps %xmm0, %xmm0
jbe 0x12e1d
leaq 0x54e7c7e(%rip), %rax   # 0x54faa41
cmpb $0x0, (%rax)
je 0x12e1d
leaq 0x28a13(%rip), %rsi     # 0x3b7e2
movl $0x5, %edi
xorl %eax, %eax
callq 0xa52e
xorps %xmm0, %xmm0
jmp 0x12e1d
movsd 0x28858(%rip), %xmm0    # 0x3b640
ucomisd %xmm1, %xmm0
movss 0x25344(%rip), %xmm0    # 0x38138
jbe 0x12e1d
leaq 0x54e7c44(%rip), %rax   # 0x54faa41
cmpb $0x0, (%rax)
je 0x12e1d
leaq 0x28a02(%rip), %rsi     # 0x3b80b
movl $0x5, %edi
xorl %eax, %eax
callq 0xa52e
movss 0x2531b(%rip), %xmm0    # 0x38138
popq %rax
retq