LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]fastscancount/benchmark/linux-perf-events.h
// Function: LinuxEvents<0>::LinuxEvents(int)
LinuxEvents(int config) : fd(0) {
        memset(&attribs, 0, sizeof(attribs));
        attribs.type        = TYPE;
        attribs.size        = sizeof(attribs);
        attribs.config      = config;
        attribs.disabled        = 1;
        attribs.exclude_kernel  = 1;
        attribs.exclude_hv      = 1;

        const int pid = 0;    // the current process
        const int cpu = -1;   // all CPUs
        const int group = -1; // no group
        const unsigned long flags = 0;
        fd = syscall(__NR_perf_event_open, &attribs, pid, cpu, group, flags);
        if (fd == -1) {
            report_error("perf_event_open");
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl $0x0, (%rdi)
leaq 0x8(%rdi), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movl $0x80, 0xc(%rdi)
movslq %esi, %rcx
movq %rcx, 0x10(%rdi)
movq $0x61, 0x30(%rdi)
movl $0x12a, %edi            # imm = 0x12A
movq %rax, %rsi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x2060
movl %eax, (%rbx)
cmpl $-0x1, %eax
jne 0x6132
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x20ff(%rip), %rsi      # 0x81fe
leaq 0x2107(%rip), %rdx      # 0x820d
movq %rsp, %r14
movq %r14, %rdi
callq 0x72ac
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6462
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6132
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6155
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]fastscancount/benchmark/linux-perf-events-wrapper.h
// Function: LinuxEventsWrapper::end()
void end() {
#ifdef __linux__
      for (const auto& [ecode, ptr]: event_obj) {
        event_res[ecode] = ptr->end();  
      }
#endif
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r12
testq %r12, %r12
je 0x7383
movq %rdi, %rbx
addq $0x38, %rbx
leaq 0x8(%r12), %r14
movq 0x10(%r12), %rdi
callq 0x74ae
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x759c
movq %r15, (%rax)
movq (%r12), %r12
testq %r12, %r12
jne 0x735a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]fastscancount/benchmark/linux-perf-events-wrapper.h
// Function: LinuxEventsWrapper::get_result(int)
unsigned long get_result(int ecode) {
#ifdef __linux__
      return event_res.at(ecode);
#else
      return 0;
#endif
    }

// Assembly:
pushq %rax
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
addq $0x38, %rdi
movq %rax, %rsi
callq 0x7652
testq %rax, %rax
je 0x73af
movq 0x10(%rax), %rax
popq %rcx
retq
leaq 0xfc3(%rip), %rdi       # 0x8379
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]fastscancount/benchmark/linux-perf-events.h
// Function: LinuxEvents<0>::start()
void start() {
        if (ioctl(fd, PERF_EVENT_IOC_RESET, 0) == -1) {
            report_error("ioctl(PERF_EVENT_IOC_RESET)");
        }

        if (ioctl(fd, PERF_EVENT_IOC_ENABLE, 0) == -1) {
            report_error("ioctl(PERF_EVENT_IOC_ENABLE)");
        }
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
movl $0x2403, %esi           # imm = 0x2403
xorl %edx, %edx
xorl %eax, %eax
callq 0x2290
cmpl $-0x1, %eax
jne 0x7420
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xf32(%rip), %rsi       # 0x831d
leaq 0xf46(%rip), %rdx       # 0x8338
leaq 0x8(%rsp), %rdi
callq 0x72ac
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6462
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7420
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movl (%rbx), %edi
movl $0x2400, %esi           # imm = 0x2400
xorl %edx, %edx
xorl %eax, %eax
callq 0x2290
cmpl $-0x1, %eax
jne 0x747a
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xef4(%rip), %rsi       # 0x8339
leaq 0xf09(%rip), %rdx       # 0x8355
leaq 0x8(%rsp), %rdi
callq 0x72ac
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6462
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x747a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x7484
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x74a5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x74a5
jmp 0x74a2
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]fastscancount/benchmark/linux-perf-events.h
// Function: LinuxEvents<0>::end()
unsigned long end() {
        if (ioctl(fd, PERF_EVENT_IOC_DISABLE, 0) == -1) {
            report_error("ioctl(PERF_EVENT_IOC_DISABLE)");
        }

        unsigned long result;
        if (read(fd, &result, sizeof(result)) == -1) {
            report_error("read");
        }

        return result;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
movl $0x2401, %esi           # imm = 0x2401
xorl %edx, %edx
xorl %eax, %eax
callq 0x2290
cmpl $-0x1, %eax
jne 0x750d
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe79(%rip), %rsi       # 0x8356
leaq 0xe8f(%rip), %rdx       # 0x8373
movq %rsp, %rdi
callq 0x72ac
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6462
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x750d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movl (%rbx), %edi
leaq 0x20(%rsp), %rsi
movl $0x8, %edx
callq 0x22a0
cmpq $-0x1, %rax
jne 0x7564
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe40(%rip), %rsi       # 0x8374
leaq 0xe3d(%rip), %rdx       # 0x8378
movq %rsp, %rdi
callq 0x72ac
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6462
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x7564
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x20(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x7573
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x7593
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x7593
jmp 0x7590
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]fastscancount/benchmark/maropuparser.h
// Function: MaropuGapReader::ReadQty(unsigned int&)
bool ReadQty(uint32_t &qty) {
    qty = 0;
    if (fd == NULL) {
      throw std::runtime_error("You forgot to open the file.");
    }
    errno = 0;
    size_t result = fread(&qty, sizeof(qty), 1, fd);
    if (errno) {
      std::stringstream err;
      err << "Error opening file, IO status: " << strerror(errno);
      throw std::runtime_error(err.str());
    }
    if (result != 1) {
      return false;
    }
    if (qty > 1 << 29) {
      std::cout << "warning: reading a very large array (" << qty
                << " integers) : is your input file in the right format?" << std::endl;
    }
    return true;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl $0x0, (%rsi)
movq 0x20(%rdi), %rbx
testq %rbx, %rbx
je 0x7b93
movq %rsi, %r14
callq 0x2050
movq %rax, %r15
movl $0x0, (%rax)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x22d0
cmpl $0x0, (%r15)
jne 0x7bc5
movq %rax, %rbx
cmpq $0x1, %rax
jne 0x7b7e
cmpl $0x20000001, (%r14)     # imm = 0x20000001
jb 0x7b7e
movq 0x44a7(%rip), %r15      # 0xbfc8
leaq 0x8eb(%rip), %rsi       # 0x8413
movl $0x25, %edx
movq %r15, %rdi
callq 0x2260
movl (%r14), %esi
movq %r15, %rdi
callq 0x2160
movq %rax, %r14
leaq 0x8ef(%rip), %rsi       # 0x8439
movl $0x34, %edx
movq %rax, %rdi
callq 0x2260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
cmpq $0x1, %rbx
sete %al
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x82f(%rip), %rsi       # 0x83d6
movq %rax, %rdi
callq 0x20f0
movq 0x443a(%rip), %rsi      # 0xbff0
movq 0x43fb(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
leaq 0x20(%rsp), %rdi
callq 0x2180
leaq 0x30(%rsp), %rbx
leaq 0x818(%rip), %rsi       # 0x83f3
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x2260
movl (%r15), %edi
callq 0x20d0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2200
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x2320
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2350
xorl %ebp, %ebp
movq 0x43c4(%rip), %rsi      # 0xbff0
movq 0x4385(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c59
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
testb %bpl, %bpl
jne 0x7c63
jmp 0x7c7d
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
jmp 0x7c7d
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
jmp 0x7c9b
movq %rax, %r14
movq 0x431c(%rip), %rsi      # 0xbfa0
leaq 0x20(%rsp), %rdi
callq 0x21b0
leaq 0xa0(%rsp), %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::run()
bool run(){
		running = true;
		char buf[1001];

		while(running && fgets(buf, 1000, in)){
			string line(buf);

			trim(line);

			if(line.length() == 0 || line[0] == '#')
				continue;

			GTPResponse response = cmd(line);

			if(out){
				string output = response.to_s();

				fwrite(output.c_str(), 1, output.length(), out);
				fflush(out);
			}
		}
		return running;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4a8, %rsp            # imm = 0x4A8
leaq 0x18(%rsp), %rbp
leaq 0x58(%rsp), %r13
leaq 0xb0(%rsp), %r14
leaq 0x8(%rsp), %r15
leaq 0x48(%rsp), %r12
movq %rdi, %rbx
movb $0x1, 0x34(%rdi)
movq (%rbx), %rdx
movl $0x3e8, %esi            # imm = 0x3E8
movq %r14, %rdi
callq 0x44d0
testq %rax, %rax
je 0x7b61
movq %r14, %rdi
movq %rbp, 0x8(%rsp)
callq 0x4120
leaq 0xb0(%rsp,%rax), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xa810
movq %r15, %rdi
callq 0x1575a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x7b47
cmpb $0x23, (%rsi)
je 0x7b47
addq %rsi, %rdx
movq %r13, 0x48(%rsp)
movq %r12, %rdi
callq 0x8e30
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x76a8
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x7ac6
callq 0x42b0
cmpq $0x0, 0x8(%rbx)
je 0x7b11
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xa5e2
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x8(%rbx), %rcx
movl $0x1, %esi
callq 0x4630
movq 0x8(%rbx), %rdi
callq 0x4370
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7b11
callq 0x42b0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x7b2b
callq 0x42b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x7b42
callq 0x42b0
movq 0x8(%rsp), %rsi
cmpq %rbp, %rsi
je 0x7b54
movq %rsi, %rdi
callq 0x42b0
movb 0x34(%rbx), %al
testb %al, %al
jne 0x7a3a
jmp 0x7b64
movb 0x34(%rbx), %al
andb $0x1, %al
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x68(%rsp), %rdi
movq %rax, %rbx
callq 0x79da
jmp 0x7ba0
movq 0x48(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x7ba0
callq 0x42b0
jmp 0x7ba0
jmp 0x7b9d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7baf
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::gtp_list_commands(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>>>>, bool)
GTPResponse gtp_list_commands(vecstr args, bool showdesc){
		string ret = "\n";
		for(unsigned int i = 0; i < callbacks.size(); i++){
			ret += callbacks[i].name;
			if(showdesc && callbacks[i].desc.length() > 0){
				ret += string(longest_cmd + 2 - callbacks[i].name.length(), ' ');
				ret += callbacks[i].desc;
			}
			ret += "\n";
		}
		return GTPResponse(true, ret);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, 0x40(%rsp)
leaq 0x30(%rsp), %rax
leaq 0x202c2(%rip), %rsi     # 0x28ae2
leaq 0x202bc(%rip), %rdx     # 0x28ae3
leaq 0x20(%rsp), %rdi
movl %ecx, %ebp
movq %rax, -0x10(%rax)
callq 0xa810
movq 0x18(%r14), %rax
cmpq %rax, 0x20(%r14)
je 0x8918
movl $0x1, %r12d
leaq 0x20(%rsp), %r15
leaq 0x2028b(%rip), %r13     # 0x28ae2
xorl %ecx, %ecx
leaq (%rcx,%rcx,2), %rbx
shlq $0x5, %rbx
movq 0x8(%rax,%rbx), %rdx
movq (%rax,%rbx), %rsi
movq %r15, %rdi
callq 0x40b0
testb %bpl, %bpl
je 0x88e1
movq 0x18(%r14), %rax
cmpq $0x0, 0x28(%rax,%rbx)
je 0x88e1
movl 0x30(%r14), %esi
addq %rbx, %rax
addl $0x2, %esi
subq 0x8(%rax), %rsi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movl $0x20, %edx
movq %rsp, %rdi
callq 0x4350
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %r15, %rdi
callq 0x40b0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x88cb
callq 0x42b0
movq 0x18(%r14), %rax
movq 0x28(%rax,%rbx), %rdx
movq 0x20(%rax,%rbx), %rsi
movq %r15, %rdi
callq 0x40b0
movq %r15, %rdi
movq %r13, %rsi
callq 0x4610
movq 0x18(%r14), %rax
movq 0x20(%r14), %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
movl %r12d, %ecx
incl %r12d
subq %rax, %rdx
sarq $0x5, %rdx
imulq %rsi, %rdx
cmpq %rcx, %rdx
ja 0x8859
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x8e30
movq 0x40(%rsp), %r14
leaq 0x48(%rsp), %rdx
movl $0x1, %esi
movq %r14, %rdi
callq 0x8dba
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x895e
callq 0x42b0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8972
callq 0x42b0
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
jne 0x89a6
jmp 0x89b2
jmp 0x89af
movq (%rsp), %rdi
movq %rax, %r14
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x89b2
callq 0x42b0
jmp 0x89b2
jmp 0x89af
movq %rax, %r14
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x89c6
callq 0x42b0
movq %r14, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::gtp_logfile(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>>>>)
GTPResponse gtp_logfile(vecstr args){
		if(args.size() != 1)
			return GTPResponse(false, "Wrong number of arguments");

		FILE * fd = fopen(args[0].c_str(), "w");
		if(!fd)
			return GTPResponse(false, "Couldn't open file " + args[0]);

		setlogfile(fd);

		return GTPResponse(true);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
movq %rdi, %rbx
subq %rax, %rcx
cmpq $0x20, %rcx
jne 0x8b3a
movq (%rax), %rdi
movq %rsi, %r14
leaq 0x21195(%rip), %rsi     # 0x29c72
movq %rdx, %r15
callq 0x4380
testq %rax, %rax
je 0x8b89
movq 0x10(%r14), %rdi
movq %rax, %r12
testq %rdi, %rdi
je 0x8aff
callq 0x42d0
movq %r12, 0x10(%r14)
leaq 0x18(%rsp), %r15
leaq 0x1ffd4(%rip), %rdx     # 0x28ae3
leaq 0x8(%rsp), %r14
movq %r15, -0x10(%r15)
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa810
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8dba
movq 0x8(%rsp), %rdi
jmp 0x8b70
leaq 0x38(%rsp), %r15
leaq 0x28(%rsp), %r14
leaq 0x1fe54(%rip), %rsi     # 0x2899f
leaq 0x1fe66(%rip), %rdx     # 0x289b8
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xa810
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8dba
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x8b7a
callq 0x42b0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq (%r15), %rdx
leaq 0x48(%rsp), %r14
leaq 0x1fe21(%rip), %rsi     # 0x289b9
movq %r14, %rdi
callq 0x7bb7
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8dba
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x8b75
jmp 0x8b7a
leaq 0x58(%rsp), %rcx
movq %rax, %rbx
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
jne 0x8be4
jmp 0x8be9
movq 0x8(%rsp), %rdi
jmp 0x8bdc
movq 0x28(%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x8be9
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./game.h
// Function: Game::getboard(int) const
Board getboard(int offset = 0) const {
		Board board;
		if(offset <= 0)
			offset += hist.size();
		for(int i = 0; i < offset; i++)
			board.move(hist[i]);
		return board;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
vxorps %xmm0, %xmm0, %xmm0
movq %rsi, %r14
movq %rdi, %rbx
vmovups %xmm0, 0x9(%rdi)
vmovups %xmm0, (%rdi)
movw $0xfc01, 0x19(%rdi)     # imm = 0xFC01
movb $0x8, 0x1b(%rdi)
movw $0xdead, 0x1c(%rdi)     # imm = 0xDEAD
movq $0x0, 0x20(%rdi)
testl %edx, %edx
jg 0x9256
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x2, %rax
addl %edx, %eax
movl %eax, %edx
testl %eax, %eax
jle 0x9273
movl %edx, %r15d
xorl %r12d, %r12d
movq (%r14), %rax
movq %rbx, %rdi
movl (%rax,%r12,4), %esi
callq 0x9282
incq %r12
cmpq %r12, %r15
jne 0x925c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./board.h
// Function: Board::move(Move)
bool move(Move mo){
		assert(outcome < 0);

		orient();
		Move m = mo.rotate(orientation);

		//TODO: only call valid_move if the move didn't come from an iterator?
		if(!valid_move(m))
			return false;

		if(m == M_SWAP){
			swap(sides[1], sides[2]);
			to_play = 1;
			return true;
		}

		sides[to_play] |= xybits[m.l];

		if (m.direction() == 0) {
			sides[1] = rotate_quad_ccw(sides[1], m.quadrant());
			sides[2] = rotate_quad_ccw(sides[2], m.quadrant());
		} else {
			sides[1] = rotate_quad_cw(sides[1], m.quadrant());
			sides[2] = rotate_quad_cw(sides[2], m.quadrant());
		}
		sides[0] = sides[1] | sides[2];

		nummoves++;
		to_play = 3 - to_play;
		outcome = -4;
		cached_score = default_score;
		cached_hash = 0;
		orientation = 8; //start with an unoriented board


//		if(m != mo)
//			logerr(mo.to_s(true) + " -> " + m.to_s(true) + " -> " + to_str(orient()) + "\n");

		return true;
	}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl %esi, 0xc(%rsp)
cmpb $0x0, 0x1a(%rdi)
jns 0x93a0
cmpq $0x0, 0x20(%rdi)
movq %rdi, %rbx
jne 0x92a7
movq %rbx, %rdi
callq 0x96fe
movzbl 0x1b(%rbx), %esi
leaq 0xc(%rsp), %rdi
callq 0x93c0
leaq 0x20d14(%rip), %rdx     # 0x29fd0
movl %eax, %ecx
movsbq %cl, %rax
movq (%rdx,%rax,8), %rsi
testq %rsi, (%rbx)
sete %dl
btl $0xb, %ecx
setae %al
andb %dl, %al
cmpb $0x1, %al
jne 0x939a
cmpb $-0x1, %cl
jne 0x92f7
vpermilps $0x4e, 0x8(%rbx), %xmm0 # xmm0 = mem[2,3,0,1]
vmovups %xmm0, 0x8(%rbx)
movb $0x1, 0x19(%rbx)
jmp 0x939a
movzbl 0x19(%rbx), %edx
movl $0xff, %r8d
orq %rsi, (%rbx,%rdx,8)
movl %ecx, %esi
andl $0x100, %esi            # imm = 0x100
sete %dil
shrl $0x9, %ecx
movq 0x10(%rbx), %r9
shrl $0x8, %esi
andb $0x3, %cl
shlb $0x2, %sil
shlb $0x2, %dil
movzbl %cl, %ecx
orb $0x2, %sil
orb $0x2, %dil
leal (%rcx,%rcx,8), %ecx
shlxq %rcx, %r8, %rcx
movq 0x8(%rbx), %r8
andnq %r8, %rcx, %r10
andq %rcx, %r8
shrxq %rsi, %r8, %r11
shlxq %rdi, %r8, %r8
orq %r11, %r8
andnq %r9, %rcx, %r11
andq %rcx, %r9
shrxq %rsi, %r9, %rsi
shlxq %rdi, %r9, %rdi
andq %rcx, %r8
orq %rsi, %rdi
orq %r10, %r8
andq %rcx, %rdi
movq %r8, 0x8(%rbx)
movb $0x3, %cl
orq %r11, %rdi
subb %dl, %cl
movq %rdi, 0x10(%rbx)
orq %r8, %rdi
movq %rdi, (%rbx)
incb 0x18(%rbx)
movb %cl, 0x19(%rbx)
movl $0xdead08fc, 0x1a(%rbx) # imm = 0xDEAD08FC
movq $0x0, 0x20(%rbx)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x1f626(%rip), %rdi     # 0x289cd
leaq 0x1f62b(%rip), %rsi     # 0x289d9
leaq 0x1f62e(%rip), %rcx     # 0x289e3
movl $0x9d, %edx
callq 0x41b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./board.h
// Function: Board::full_hash() const
uint64_t full_hash() const {
		//make sure this matches Move::rotate
		Board b(*this);

		uint64_t h, m = ~0;
		uint8_t o = 0;
		choose(m, (h = b.simple_hash()), o, 0);
		choose(m, (h = rotate_hash(h) ), o, 1);
		choose(m, (h = rotate_hash(h) ), o, 2);
		choose(m, (    rotate_hash(h) ), o, 3);
		b.flip_board();
		choose(m, (h = b.simple_hash()), o, 4);
		choose(m, (h = rotate_hash(h) ), o, 5);
		choose(m, (h = rotate_hash(h) ), o, 6);
		choose(m, (    rotate_hash(h) ), o, 7);

		orientation = o;
		return m;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x20(%rdi), %rax
movq %rsp, %r15
movq %rdi, %rbx
movq %rax, 0x20(%r15)
vmovups (%rdi), %ymm0
movq %r15, %rdi
vmovups %ymm0, (%r15)
vzeroupper
callq 0x9864
movq %rax, %r14
movl %r14d, %ecx
andl $0x7fff, %ecx           # imm = 0x7FFF
movl $0x2d0f, %r12d          # imm = 0x2D0F
movl %r14d, %esi
movabsq $0xfffe00000000000, %r13 # imm = 0xFFFE00000000000
movl $0x3, %ebp
movq %r15, %rdi
bextrq %r12, %rax, %rax
shlq $0x2d, %rcx
orq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %r14
movq %rcx, %rdx
seta %al
cmovbq %r14, %rdx
andl $0x3fff8000, %esi       # imm = 0x3FFF8000
shrq $0xf, %rcx
shlq $0x1e, %rsi
orq %rcx, %rsi
movl $0x2, %ecx
cmpq %rsi, %rdx
cmovaeq %rsi, %rdx
cmovbel %eax, %ecx
shlq $0xf, %r14
shrq $0xf, %rsi
andq %r13, %r14
orq %rsi, %r14
cmpq %r14, %rdx
cmovbq %rdx, %r14
cmovbel %ecx, %ebp
callq 0x9900
movq %r15, %rdi
callq 0x9864
cmpq %rax, %r14
movl $0x4, %ecx
movl %eax, %esi
cmovaeq %rax, %r14
cmovbel %ebp, %ecx
andl $0x7fff, %esi           # imm = 0x7FFF
bextrq %r12, %rax, %rdx
shlq $0x2d, %rsi
orq %rdx, %rsi
movl $0x5, %edx
cmpq %rsi, %r14
cmovbel %ecx, %edx
cmovaeq %rsi, %r14
movl %eax, %ecx
andl $0x3fff8000, %ecx       # imm = 0x3FFF8000
shrq $0xf, %rsi
shlq $0x1e, %rcx
orq %rsi, %rcx
movl $0x6, %esi
cmpq %rcx, %r14
cmovaeq %rcx, %r14
cmovbel %edx, %esi
shlq $0xf, %rax
shrq $0xf, %rcx
andq %r13, %rax
orq %rcx, %rax
movl $0x7, %ecx
cmpq %rax, %r14
cmovbel %esi, %ecx
cmovbq %r14, %rax
movb %cl, 0x1b(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::find_callback(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int find_callback(const string & name){
		for(unsigned int i = 0; i < callbacks.size(); i++)
			if(callbacks[i].name == name)
				return i;
		return -1;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %r12
movq 0x20(%rdi), %rax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
subq %r12, %rax
je 0xa415
movq (%rsi), %r14
movq 0x8(%rsi), %r15
sarq $0x5, %rax
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
xorl %ebp, %ebp
imulq %rax, %r13
leaq (%rbp,%rbp,2), %rax
shlq $0x5, %rax
cmpq %r15, 0x8(%r12,%rax)
jne 0xa40a
testq %r15, %r15
je 0xa413
addq %r12, %rax
movq %r14, %rsi
movq %r15, %rdx
movq (%rax), %rdi
callq 0x42f0
testl %eax, %eax
je 0xa413
incl %ebp
cmpq %rbp, %r13
ja 0xa3e0
jmp 0xa415
movl %ebp, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_mcts(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>>>>)
GTPResponse PentagoGTP::gtp_mcts(vecstr args){
	delete agent;
	agent = new AgentMCTS();
	agent->set_board(game.getboard());
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x90(%rsi), %rdi
movq %rsi, %r14
testq %rdi, %rdi
je 0xb13f
movq (%rdi), %rax
callq *0x8(%rax)
movl $0xb68, %edi            # imm = 0xB68
callq 0x42e0
movq %rax, %r15
movq %rax, %rdi
callq 0x1c8f0
movq %r15, 0x90(%r14)
addq $0x38, %r14
leaq 0x20(%rsp), %r12
xorl %edx, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x920c
movq (%r15), %rax
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq *0x20(%rax)
leaq 0x10(%rsp), %r15
leaq 0x1d955(%rip), %rdx     # 0x28ae3
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
movq %r15, -0x10(%r15)
callq 0xa810
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8dba
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb1be
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
jne 0xb1e1
jmp 0xb1e6
movq %rax, %rbx
movq %r15, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_pns(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>>>>)
GTPResponse PentagoGTP::gtp_pns(vecstr args){
	delete agent;
	agent = new AgentPNS();
	agent->set_board(game.getboard());
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x90(%rsi), %rdi
movq %rsi, %r14
testq %rdi, %rdi
je 0xb211
movq (%rdi), %rax
callq *0x8(%rax)
movl $0xb00, %edi            # imm = 0xB00
callq 0x42e0
movq %rax, %r15
movq %rax, %rdi
callq 0xcea8
movq %r15, 0x90(%r14)
addq $0x38, %r14
leaq 0x20(%rsp), %r12
xorl %edx, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x920c
movq (%r15), %rax
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq *0x20(%rax)
leaq 0x10(%rsp), %r15
leaq 0x1d883(%rip), %rdx     # 0x28ae3
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
movq %r15, -0x10(%r15)
callq 0xa810
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8dba
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb290
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
jne 0xb2b3
jmp 0xb2b8
movq %rax, %rbx
movq %r15, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_ab(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>>>>)
GTPResponse PentagoGTP::gtp_ab(vecstr args){
	delete agent;
	agent = new AgentAB();
	agent->set_board(game.getboard());
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x90(%rsi), %rdi
movq %rsi, %r14
testq %rdi, %rdi
je 0xb2e3
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x70, %edi
callq 0x42e0
movq %rax, %r15
movq %rax, %rdi
callq 0xcffe
movq %r15, 0x90(%r14)
addq $0x38, %r14
leaq 0x20(%rsp), %r12
xorl %edx, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x920c
movq (%r15), %rax
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq *0x20(%rax)
leaq 0x10(%rsp), %r15
leaq 0x1d7b1(%rip), %rdx     # 0x28ae3
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
movq %r15, -0x10(%r15)
callq 0xa810
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8dba
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb362
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
jne 0xb385
jmp 0xb38a
movq %rax, %rbx
movq %r15, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::won_str[abi:cxx11](int) const
string PentagoGTP::won_str(int outcome) const {
	switch(outcome){
		case -3: return "none";
		case -2: return "black_or_draw";
		case -1: return "white_or_draw";
		case 0:  return "draw";
		case 1:  return "white";
		case 2:  return "black";
		case 3:  return "draw by simultaneous win";
		default: return "unknown";
	}
}

// Assembly:
pushq %rbx
leaq 0x10(%rdi), %rax
addl $0x3, %edx
movq %rdi, %rbx
movq %rax, (%rdi)
cmpl $0x6, %edx
ja 0xb69b
leaq 0x1d96e(%rip), %rax     # 0x28fc0
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x1d442(%rip), %rsi     # 0x28aa4
leaq 0x1d43f(%rip), %rdx     # 0x28aa8
jmp 0xb6d9
leaq 0x1cee1(%rip), %rsi     # 0x28553
leaq 0x1cedf(%rip), %rdx     # 0x28558
jmp 0xb6d9
leaq 0x1d968(%rip), %rsi     # 0x28fea
leaq 0x1d96e(%rip), %rdx     # 0x28ff7
jmp 0xb6d9
leaq 0x1d961(%rip), %rsi     # 0x28ff3
leaq 0x1d95e(%rip), %rdx     # 0x28ff7
jmp 0xb6d9
leaq 0x1d3fa(%rip), %rsi     # 0x28a9c
leaq 0x1d3fa(%rip), %rdx     # 0x28aa3
jmp 0xb6d9
leaq 0x1d92a(%rip), %rsi     # 0x28fdc
leaq 0x1d930(%rip), %rdx     # 0x28fe9
jmp 0xb6d9
leaq 0x1cebd(%rip), %rsi     # 0x2857f
leaq 0x1cebb(%rip), %rdx     # 0x28584
jmp 0xb6d9
leaq 0x1d926(%rip), %rsi     # 0x28ff8
leaq 0x1d937(%rip), %rdx     # 0x29010
movq %rbx, %rdi
callq 0xa810
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_clearboard(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>>>>)
GTPResponse PentagoGTP::gtp_clearboard(vecstr args){
	game.clear();
	set_board();

	time_remain = time.game;

	log("clear_board");
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq 0x38(%r14), %rax
addq $0x38, %rsi
movq %rdi, %rbx
cmpq %rax, 0x40(%r14)
je 0xb709
movq %rax, 0x40(%r14)
movq 0x90(%r14), %r15
movq %rsp, %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x920c
movq (%r15), %rax
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq *0x20(%rax)
vmovsd 0x68(%r14), %xmm0
leaq 0x10(%rsp), %r15
vmovsd %xmm0, 0x80(%r14)
movq %r15, -0x10(%r15)
leaq 0x1cd99(%rip), %rsi     # 0x284e6
leaq 0x1cd9d(%rip), %rdx     # 0x284f1
movq %rsp, %rdi
callq 0xa810
movq %rsp, %rsi
movq %r14, %rdi
callq 0x9136
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb775
callq 0x42b0
leaq 0x38(%rsp), %r15
leaq 0x1d362(%rip), %rdx     # 0x28ae3
leaq 0x28(%rsp), %r14
movq %r15, -0x10(%r15)
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa810
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8dba
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xb7b4
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x28(%rsp), %rdi
jmp 0xb7ce
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0xb7e0
callq 0x42b0
jmp 0xb7e0
movq %rax, %rbx
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_undo(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>>>>)
GTPResponse PentagoGTP::gtp_undo(vecstr args){
	int num = 1;
	if(args.size() >= 1)
		num = from_str<int>(args[0]);

	while(num--){
		game.undo();
		log("undo");
	}
	set_board(false);
	if(verbose >= 2)
		logerr(game.getboard().to_s(colorboard) + "\n");
	return GTPResponse(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rax
movq (%rdx), %rdi
movq %rsi, %r14
movq %rax, 0x8(%rsp)
cmpq %rdi, 0x8(%rdx)
je 0xb81a
callq 0xd201
movl %eax, %ebp
testl %eax, %eax
jne 0xb81f
jmp 0xb87a
movl $0x1, %ebp
leaq 0x20(%rsp), %rbx
leaq 0x1cd80(%rip), %r15     # 0x285ab
leaq 0x1cd7d(%rip), %r12     # 0x285af
leaq 0x10(%rsp), %r13
movq 0x40(%r14), %rax
cmpq 0x38(%r14), %rax
je 0xb849
addq $-0x4, %rax
movq %rax, 0x40(%r14)
movq %rbx, 0x10(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xa810
movq %r14, %rdi
movq %r13, %rsi
callq 0x9136
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb876
callq 0x42b0
decl %ebp
jne 0xb837
movq 0x90(%r14), %r12
leaq 0x38(%r14), %r15
leaq 0x10(%rsp), %r13
xorl %edx, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x920c
movq (%r12), %rax
movl $0x1, %edx
movq %r12, %rdi
movq %r13, %rsi
callq *0x20(%rax)
cmpl $0x2, 0x50(%r14)
jge 0xb909
leaq 0x48(%rsp), %rbx
leaq 0x1d227(%rip), %rdx     # 0x28ae3
leaq 0x38(%rsp), %r14
movq %rbx, -0x10(%rbx)
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa810
movq 0x8(%rsp), %r15
movl $0x1, %esi
movq %r14, %rdx
movq %r15, %rdi
callq 0x8dba
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb8f4
callq 0x42b0
movq %r15, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r12
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rdi
callq 0x920c
movzbl 0x54(%r14), %edx
leaq 0x58(%rsp), %r14
movq %r12, %rsi
movq %r14, %rdi
callq 0x15e7a
leaq 0x1d1ab(%rip), %rsi     # 0x28ae2
movq %r14, %rdi
callq 0x4610
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rax, %rsi
callq 0x46ea
jmp 0xb8b0
leaq 0x68(%rsp), %rcx
movq %rax, %r14
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
jne 0xb987
jmp 0xb98c
movq 0x38(%rsp), %rdi
jmp 0xb97f
movq %rax, %r14
jmp 0xb98c
movq 0x10(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
je 0xb98c
callq 0x42b0
movq %r14, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_all_legal(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>>>>)
GTPResponse PentagoGTP::gtp_all_legal(vecstr args){
	string ret;
	for(MoveIterator move(game.getboard()); !move.done(); ++move)
		ret += move->to_s() + " ";
	return GTPResponse(true, ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
leaq 0x48(%rsp), %rax
movq %rdi, 0x8(%rsp)
addq $0x38, %rsi
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
callq 0x920c
leaq 0x98(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xd282
leaq 0xc8(%rsp), %r14
leaq 0x20(%rsp), %rbx
leaq 0x78(%rsp), %r15
leaq 0x1fe5b(%rip), %r12     # 0x2b859
leaq 0x38(%rsp), %r13
leaq 0x98(%rsp), %rbp
cmpb $0x24, 0xc8(%rsp)
jge 0xbab9
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x999a
movq %r15, %rdi
movq %r12, %rsi
callq 0x4610
movq %rbx, 0x10(%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0xba54
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xba5c
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x40b0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xba95
callq 0x42b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xbaac
callq 0x42b0
movq %rbp, %rdi
callq 0xd39c
jmp 0xba0b
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xbacb
callq 0x43d0
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x68(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x8e30
movq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rdx
movl $0x1, %esi
callq 0x8dba
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbb0e
callq 0x42b0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xbb22
callq 0x42b0
movq 0x8(%rsp), %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x58(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
je 0xbb9b
callq 0x42b0
jmp 0xbb9b
jmp 0xbb4f
movq %rax, %r14
jmp 0xbb9b
jmp 0xbb86
movq %rax, %r14
jmp 0xbb6d
movq 0x10(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
je 0xbb6d
callq 0x42b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xbb89
callq 0x42b0
jmp 0xbb89
movq %rax, %r14
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xbb9b
callq 0x43d0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xbbaf
callq 0x42b0
movq %r14, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_history(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>>>>)
GTPResponse PentagoGTP::gtp_history(vecstr args){
	string ret;
	vector<Move> hist = game.get_hist();
	for(unsigned int i = 0; i < hist.size(); i++)
		ret += hist[i].to_s() + " ";
	return GTPResponse(true, ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
leaq 0x58(%rsp), %rax
movq %rdi, 0x40(%rsp)
addq $0x38, %rsi
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rdi
callq 0xd476
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0xbcd7
leaq 0x30(%rsp), %r13
movl $0x1, %ebx
leaq 0x98(%rsp), %rbp
leaq 0x88(%rsp), %r14
leaq 0x1fc38(%rip), %r15     # 0x2b859
leaq 0x48(%rsp), %r12
xorl %ecx, %ecx
leaq (%rax,%rcx,4), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x999a
movq %r14, %rdi
movq %r15, %rsi
callq 0x4610
movq %r13, 0x20(%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0xbc64
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xbc6e
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq %r12, %rdi
callq 0x40b0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xbca7
callq 0x42b0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbcb9
callq 0x42b0
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
movl %ebx, %ecx
incl %ebx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rcx, %rdx
ja 0xbc28
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x8e30
movq 0x40(%rsp), %rbx
leaq 0x68(%rsp), %rdx
movl $0x1, %esi
movq %rbx, %rdi
callq 0x8dba
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xbd1d
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xbd2c
callq 0x42b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xbd40
callq 0x42b0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x68(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
jne 0xbd94
jmp 0xbd99
jmp 0xbd6b
movq %rax, %rbx
jmp 0xbda8
movq %rax, %rbx
jmp 0xbd99
movq %rax, %rbx
jmp 0xbd87
movq 0x20(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0xbd87
callq 0x42b0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbd99
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xbda8
callq 0x42b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xbdbc
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_playgame(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>>>>)
GTPResponse PentagoGTP::gtp_playgame(vecstr args){
	GTPResponse ret(true);

	for(unsigned int i = 0; ret.success && i < args.size(); i++)
		ret = play(args[i], game.toplay());

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r14
leaq 0x28(%rsp), %r12
leaq 0x1c3a1(%rip), %rdx     # 0x28ae3
leaq 0x18(%rsp), %r15
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
movq %r12, -0x10(%r12)
movq %r15, %rdi
movq %rdx, %rsi
callq 0xa810
movl $0x1, %esi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x8dba
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0xc77e
callq 0x42b0
cmpb $0x1, (%rbx)
jne 0xc846
movq 0x8(%rsp), %rax
leaq 0x8(%rbx), %r13
leaq 0x28(%rbx), %rbp
xorl %r12d, %r12d
addq $0x38, %rax
movq %rax, 0x10(%rsp)
movq (%r14), %r15
movq 0x8(%r14), %rax
movl %r12d, %r12d
subq %r15, %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0xc846
movq 0x10(%rsp), %rsi
leaq 0x80(%rsp), %rdi
xorl %edx, %edx
callq 0x920c
movzbl 0x99(%rsp), %ecx
movq %r12, %rax
shlq $0x5, %rax
addq %rax, %r15
movq 0x8(%rsp), %rsi
leaq 0x38(%rsp), %rdi
movq %r15, %rdx
callq 0xbdc4
movb 0x38(%rsp), %al
leaq 0x40(%rsp), %rsi
movq %r13, %rdi
movb %al, (%rbx)
callq 0x43c0
leaq 0x60(%rsp), %rsi
movq %rbp, %rdi
callq 0x43c0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xc826
callq 0x42b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xc83a
callq 0x42b0
incl %r12d
cmpb $0x0, (%rbx)
jne 0xc7a0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rdi
movq %rax, %r14
cmpq %r12, %rdi
je 0xc87a
callq 0x42b0
jmp 0xc87a
movq %rbx, %rdi
movq %rax, %r14
callq 0x79da
movq %r14, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_play(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>>>>)
GTPResponse PentagoGTP::gtp_play(vecstr args){
	if(args.size() != 2)
		return GTPResponse(false, "Wrong number of arguments");

	char toplay = 0;
	switch(tolower(args[0][0])){
		case 'w': toplay = 1; break;
		case 'b': toplay = 2; break;
		default:
			return GTPResponse(false, "Invalid player selection");
	}

	return play(args[1], toplay);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq (%rdx), %r15
movq 0x8(%rdx), %rax
movq %rdi, %rbx
subq %r15, %rax
cmpq $0x40, %rax
jne 0xc8bd
movq (%r15), %rax
movq %rsi, %r14
movsbl (%rax), %edi
callq 0x4410
cmpl $0x77, %eax
je 0xc8f5
cmpl $0x62, %eax
jne 0xc90e
movl $0x2, %ecx
jmp 0xc8fa
leaq 0x30(%rsp), %r15
leaq 0x20(%rsp), %r14
leaq 0x1c0d1(%rip), %rsi     # 0x2899f
leaq 0x1c0e3(%rip), %rdx     # 0x289b8
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xa810
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8dba
movq 0x20(%rsp), %rdi
jmp 0xc941
movl $0x1, %ecx
addq $0x20, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xbdc4
jmp 0xc94b
leaq 0x10(%rsp), %r15
leaq 0x1c75b(%rip), %rsi     # 0x29075
leaq 0x1c76c(%rip), %rdx     # 0x2908d
movq %rsp, %r14
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xa810
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8dba
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xc94b
callq 0x42b0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq (%rsp), %rdi
jmp 0xc963
movq 0x20(%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0xc970
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./agentpns.h
// Function: AgentPNS::AgentPNS()
AgentPNS() {
		df = true;
		epsilon = 0.25;
		ties = 0;
		numthreads = 1;
		gclimit = 5;

		nodes = 0;
		reset();

		set_memlimit(1000*1024*1024);

		//no threads started until a board is set
		threadstate = Thread_Wait_Start;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq 0x28ce8(%rip), %rax     # 0x35ba0
vxorps %xmm0, %xmm0, %xmm0
leaq 0x50(%rdi), %r14
movq %rdi, %rbx
xorl %r15d, %r15d
vmovups %xmm0, 0x19(%rdi)
vmovups %xmm0, 0x10(%rdi)
movw $0xfc01, 0x29(%rdi)     # imm = 0xFC01
movb $0x8, 0x2b(%rdi)
movw $0xdead, 0x2c(%rdi)     # imm = 0xDEAD
movq %r15, 0x30(%rdi)
addq $0x10, %rax
movq %rax, (%rdi)
movq %r14, %rdi
callq 0xd66c
movq %r15, 0xa08(%rbx)
vxorps %xmm0, %xmm0, %xmm0
leaq 0xa10(%rbx), %r15
vmovups %xmm0, 0x9f8(%rbx)
movq %r15, %rdi
callq 0xd828
leaq 0xa70(%rbx), %r13
movl $0x1, 0xa68(%rbx)
movl $0x0, 0xa6c(%rbx)
movq %r13, %rdi
callq 0xd828
movl $0x1, %eax
xorl %ecx, %ecx
movl %eax, 0xac8(%rbx)
movl %ecx, 0xacc(%rbx)
movw $0x8efc, 0xaf4(%rbx)    # imm = 0x8EFC
movq %rcx, 0xaf8(%rbx)
movb $0x1, 0xad0(%rbx)
movq $0x3e800000, 0xad4(%rbx) # imm = 0x3E800000
movl %eax, 0xadc(%rbx)
movl $0x5, 0x48(%rbx)
movq %rcx, 0x38(%rbx)
movl %ecx, 0x9e0(%rbx)
movq %rcx, 0x9e8(%rbx)
movb $0x0, 0x8(%rbx)
movq (%rbx), %rax
movl $0x3e800000, %esi       # imm = 0x3E800000
movq %rbx, %rdi
callq *0x30(%rax)
movl $0x1, 0x9f0(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xae0(%rbx), %rdi
movq %rax, %r12
callq 0xd6fe
movq %r13, %rdi
callq 0xd756
jmp 0xcfcd
movq %rax, %r12
movq %r15, %rdi
callq 0xd756
jmp 0xcfda
movq %rax, %r12
addq $0x9f8, %rbx            # imm = 0x9F8
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xcfee
callq 0x42b0
movq %r14, %rdi
callq 0xd7a4
movq %r12, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./agentab.h
// Function: AgentAB::AgentAB()
AgentAB() : rand(std::rand()) {
		maxdepth = 0;
		nodes_seen = 0;
		time_used = 0;
		TT = NULL;
		set_memlimit(100*1024*1024);

		randomness = 2;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x28ccf(%rip), %rax     # 0x35cd8
vxorps %xmm0, %xmm0, %xmm0
movq %rdi, %rbx
xorl %r14d, %r14d
vmovups %xmm0, 0x19(%rdi)
vmovups %xmm0, 0x10(%rdi)
movw $0xfc01, 0x29(%rdi)     # imm = 0xFC01
movb $0x8, 0x2b(%rdi)
movw $0xdead, 0x2c(%rdi)     # imm = 0xDEAD
movq %r14, 0x30(%rdi)
addq $0x10, %rax
movq %rax, (%rdi)
callq 0x4080
testl %eax, %eax
movl $0x92d68ca2, %ecx       # imm = 0x92D68CA2
vxorps %xmm0, %xmm0, %xmm0
movl $0x6400000, %esi        # imm = 0x6400000
movq %rbx, %rdi
cmovnel %eax, %ecx
movl %ecx, 0x68(%rbx)
movl $0x0, 0x50(%rbx)
movq %r14, 0x38(%rbx)
vmovups %xmm0, 0x58(%rbx)
movq (%rbx), %rax
callq *0x30(%rax)
movl $0x2, 0x6c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./move.h
// Function: Move::Move(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int)
Move(const std::string & str, unsigned int O = 8){
		if(     str == "swap"    ){ l = M_SWAP;    r = 14; o = O; }
		else if(str == "resign"  ){ l = M_RESIGN;  r = 14; o = O; }
		else if(str == "none"    ){ l = M_NONE;    r = 14; o = O; }
		else if(str == "unknown" ){ l = M_UNKNOWN; r = 14; o = O; }
		else if(str.length() <= 2){ l = M_NONE;    r = 14; o = O; }
		else{
			unsigned int y = tolower(str[0]) - 'a'; //[abcdef]
			unsigned int x = str[1] - '1';          //[123456]
			l = y*6+x;

			char c = tolower(str[2]);
			if(     c >= '1' && c <= '8') r = c - '1'; //[12345678]
			else if(c >= 's' && c <= 'z') r = c - 's'; //[stuvwxyz]
			else if(c >= 'a' && c <= 'h') r = c - 'a'; //[abcdefgh]
			else r = 0; //unknown, but do something

			if(str.length() == 5) {
				assert(O == 8 && str[3] == ':');
				o = str[4] - '0';
			} else {
				o = O;
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
leaq 0x1ba1c(%rip), %rsi     # 0x28aa9
movq %rdi, %rbx
movq %r14, %rdi
movl %edx, %ebp
callq 0x40a0
testl %eax, %eax
je 0xd0ec
leaq 0x1ba09(%rip), %rsi     # 0x28aae
movq %r14, %rdi
callq 0x40a0
testl %eax, %eax
je 0xd0fa
leaq 0x1b9ec(%rip), %rsi     # 0x28aa4
movq %r14, %rdi
callq 0x40a0
testl %eax, %eax
je 0xd0de
leaq 0x1b9d1(%rip), %rsi     # 0x28a9c
movq %r14, %rdi
callq 0x40a0
testl %eax, %eax
je 0xd108
cmpq $0x2, 0x8(%r14)
ja 0xd116
shll $0xc, %ebp
orl $0xefd, %ebp            # imm = 0xEFD
jmp 0xd1c3
shll $0xc, %ebp
orl $0xeff, %ebp            # imm = 0xEFF
jmp 0xd1c3
shll $0xc, %ebp
orl $0xefe, %ebp            # imm = 0xEFE
jmp 0xd1c3
shll $0xc, %ebp
orl $0xefc, %ebp            # imm = 0xEFC
jmp 0xd1c3
movq (%r14), %r15
movsbl (%r15), %edi
callq 0x4410
movzbl 0x1(%r15), %ecx
movzbl 0x1(%rbx), %edx
leal (%rax,%rax,2), %eax
leal 0x89(%rcx,%rax,2), %eax
shll $0x8, %edx
movzbl %al, %r15d
orl %edx, %r15d
movw %r15w, (%rbx)
movq (%r14), %rax
movsbl 0x2(%rax), %edi
callq 0x4410
movsbl %al, %ecx
leal -0x31(%rcx), %edx
cmpl $0x7, %edx
ja 0xd168
shll $0x8, %eax
movl $0xf00, %ecx            # imm = 0xF00
addl %ecx, %eax
andl %ecx, %eax
jmp 0xd17d
leal -0x73(%rcx), %edx
cmpl $0x7, %edx
ja 0xd1d1
shll $0x8, %eax
addl $0xd00, %eax            # imm = 0xD00
andl $0xf00, %eax            # imm = 0xF00
andl $0xfffff0ff, %r15d      # imm = 0xFFFFF0FF
orl %eax, %r15d
movw %r15w, (%rbx)
cmpq $0x5, 0x8(%r14)
jne 0xd1b3
cmpl $0x8, %ebp
jne 0xd1e2
movq (%r14), %rax
cmpb $0x3a, 0x3(%rax)
jne 0xd1e2
movzbl 0x4(%rax), %eax
andl $0xfff, %r15d           # imm = 0xFFF
shll $0xc, %eax
orl %eax, %r15d
jmp 0xd1c0
shll $0xc, %ebp
andl $0xfff, %r15d           # imm = 0xFFF
orl %ebp, %r15d
movl %r15d, %ebp
movw %bp, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
addl $-0x61, %ecx
cmpl $0x7, %ecx
jbe 0xd15a
andl $0xf0ff, %r15d          # imm = 0xF0FF
jmp 0xd187
leaq 0x1c055(%rip), %rdi     # 0x2923e
leaq 0x1b81f(%rip), %rsi     # 0x28a0f
leaq 0x1c05f(%rip), %rcx     # 0x29256
movl $0x4a, %edx
callq 0x41b0