LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/impl/write.hpp
// Function: asio::detail::write_op<asio::basic_stream_socket<asio::ip::tcp, asio::executor>, asio::const_buffers_1, asio::const_buffer const*, asio::detail::transfer_all_t, Session::read_next_line(std::shared_ptr<Session>)::'lambda'(std::error_code const&, unsigned long)::operator()(std::error_code const&, unsigned long) const::'lambda'(std::error_code const&, unsigned long)>::operator()(std::error_code const&, unsigned long, int)
void operator()(const asio::error_code& ec,
        std::size_t bytes_transferred, int start = 0)
    {
      std::size_t max_size;
      switch (start_ = start)
      {
        case 1:
        max_size = this->check_for_completion(ec, buffers_.total_consumed());
        do
        {
          stream_.async_write_some(buffers_.prepare(max_size),
              ASIO_MOVE_CAST(write_op)(*this));
          return; default:
          buffers_.consume(bytes_transferred);
          if ((!ec && bytes_transferred == 0) || buffers_.empty())
            break;
          max_size = this->check_for_completion(ec, buffers_.total_consumed());
        } while (max_size > 0);

        handler_(ec, buffers_.total_consumed());
      }
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r8
movl %ecx, 0x20(%rdi)
cmpl $0x1, %ecx
jne 0xe99d
xorl %ecx, %ecx
cmpl $0x0, (%rsi)
sete %cl
shll $0x10, %ecx
movq 0x10(%r8), %rsi
movq 0x18(%r8), %rax
jmp 0xe9cb
movq 0x18(%r8), %rax
addq %rdx, %rax
movq %rax, 0x18(%r8)
movl (%rsi), %esi
testl %esi, %esi
setne %cl
testq %rdx, %rdx
setne %dl
testl %esi, %esi
jne 0xea09
orb %cl, %dl
je 0xea09
movq 0x10(%r8), %rsi
movl $0x10000, %ecx          # imm = 0x10000
cmpq %rsi, %rax
jae 0xea09
cmpq %rax, %rsi
cmovbq %rsi, %rax
subq %rax, %rsi
addq 0x8(%r8), %rax
cmpq %rcx, %rsi
cmovaeq %rcx, %rsi
movq (%r8), %r9
movq %rsp, %rdx
movq %rax, (%rdx)
movq %rsi, 0x8(%rdx)
movq (%r9), %rdi
addq $0x28, %rdi
leaq 0x8(%r9), %rsi
addq $0x20, %r9
xorl %ecx, %ecx
callq 0xea74
addq $0x10, %rsp
popq %rbx
retq
movq 0xa598(%rip), %rbx      # 0x18fa8
leaq 0x2ded(%rip), %rsi      # 0x11804
movl $0x9, %edx
movq %rbx, %rdi
callq 0x53b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5350
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/detail/reactive_socket_send_op.hpp
// Function: asio::detail::reactive_socket_send_op_base<asio::const_buffers_1>::do_perform(asio::detail::reactor_op*)
static status do_perform(reactor_op* base)
  {
    reactive_socket_send_op_base* o(
        static_cast<reactive_socket_send_op_base*>(base));

    buffer_sequence_adapter<asio::const_buffer,
        ConstBufferSequence> bufs(o->buffers_);

    status result = socket_ops::non_blocking_send(o->socket_,
          bufs.buffers(), bufs.count(), o->flags_,
          o->ec_, o->bytes_transferred_) ? done : not_done;

    if (result == done)
      if ((o->state_ & socket_ops::stream_oriented) != 0)
        if (o->bytes_transferred_ < bufs.total_size())
          result = done_and_exhausted;

    ASIO_HANDLER_REACTOR_OPERATION((*o, "non_blocking_send",
          o->ec_, o->bytes_transferred_));

    return result;
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rcx, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movl 0x38(%rdi), %edi
movl 0x50(%rbx), %ecx
leaq 0x18(%rbx), %r8
leaq 0x28(%rbx), %r14
movl $0x1, %edx
movq %r14, %r9
callq 0xf419
xorl %ecx, %ecx
testb %al, %al
je 0xf40f
movl $0x1, %ecx
testb $0x10, 0x3c(%rbx)
je 0xf40f
movq (%r14), %rcx
cmpq 0x10(%rsp), %rcx
movzbl %al, %eax
movl $0x2, %ecx
cmovael %eax, %ecx
movl %ecx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/impl/read.hpp
// Function: void asio::detail::initiate_async_read_buffer_sequence<asio::basic_stream_socket<asio::ip::tcp, asio::executor>>::operator()<Session::read_body(std::shared_ptr<Session>)::'lambda'(std::error_code const&, unsigned long), asio::mutable_buffers_1, asio::detail::transfer_all_t>(Session::read_body(std::shared_ptr<Session>)::'lambda'(std::error_code const&, unsigned long)&&, asio::mutable_buffers_1 const&, asio::detail::transfer_all_t&&) const
void operator()(ASIO_MOVE_ARG(ReadHandler) handler,
        const MutableBufferSequence& buffers,
        ASIO_MOVE_ARG(CompletionCondition) completion_cond) const
    {
      // If you get an error on the following line it means that your handler
      // does not meet the documented type requirements for a ReadHandler.
      ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;

      non_const_lvalue<ReadHandler> handler2(handler);
      non_const_lvalue<CompletionCondition> completion_cond2(completion_cond);
      start_read_buffer_sequence_op(stream_, buffers,
          asio::buffer_sequence_begin(buffers),
          completion_cond2.value, handler2.value);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq (%rdi), %rax
leaq 0x10(%rsp), %rbx
movq %rax, (%rbx)
movups (%rdx), %xmm0
movups %xmm0, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movl %eax, 0x20(%rbx)
movups (%rsi), %xmm0
movq %rax, 0x8(%rsi)
movups %xmm0, 0x28(%rbx)
movq %rax, (%rsi)
movq %rsp, %r14
movl %eax, (%r14)
callq 0x5220
movq %rax, 0x8(%r14)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xf770
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf74e
callq 0x7000
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf768
callq 0x7000
movq %rbx, %rdi
callq 0x55d0
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/impl/read.hpp
// Function: asio::detail::read_op<asio::basic_stream_socket<asio::ip::tcp, asio::executor>, asio::mutable_buffers_1, asio::mutable_buffer const*, asio::detail::transfer_all_t, Session::read_body(std::shared_ptr<Session>)::'lambda'(std::error_code const&, unsigned long)>::operator()(std::error_code const&, unsigned long, int)
void operator()(const asio::error_code& ec,
        std::size_t bytes_transferred, int start = 0)
    {
      std::size_t max_size;
      switch (start_ = start)
      {
        case 1:
        max_size = this->check_for_completion(ec, buffers_.total_consumed());
        do
        {
          stream_.async_read_some(buffers_.prepare(max_size),
              ASIO_MOVE_CAST(read_op)(*this));
          return; default:
          buffers_.consume(bytes_transferred);
          if ((!ec && bytes_transferred == 0) || buffers_.empty())
            break;
          max_size = this->check_for_completion(ec, buffers_.total_consumed());
        } while (max_size > 0);

        handler_(ec, buffers_.total_consumed());
      }
    }

// Assembly:
movq %rdi, %r8
movl %ecx, 0x20(%rdi)
cmpl $0x1, %ecx
jne 0xf790
xorl %ecx, %ecx
cmpl $0x0, (%rsi)
sete %cl
shll $0x10, %ecx
movq 0x10(%r8), %rsi
movq 0x18(%r8), %rax
jmp 0xf7be
movq 0x18(%r8), %rax
addq %rdx, %rax
movq %rax, 0x18(%r8)
movl (%rsi), %esi
testl %esi, %esi
setne %cl
testq %rdx, %rdx
setne %dl
testl %esi, %esi
jne 0xf800
orb %cl, %dl
je 0xf800
movq 0x10(%r8), %rsi
movl $0x10000, %ecx          # imm = 0x10000
cmpq %rsi, %rax
jae 0xf800
subq $0x18, %rsp
cmpq %rax, %rsi
cmovbq %rsi, %rax
subq %rax, %rsi
addq 0x8(%r8), %rax
cmpq %rcx, %rsi
cmovaeq %rcx, %rsi
movq (%r8), %r9
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rsi, 0x8(%rdx)
movq (%r9), %rdi
addq $0x28, %rdi
leaq 0x8(%r9), %rsi
addq $0x20, %r9
xorl %ecx, %ecx
callq 0xf802
addq $0x18, %rsp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/detail/reactive_socket_accept_op.hpp
// Function: asio::detail::reactive_socket_accept_op_base<asio::basic_socket<asio::ip::tcp, asio::executor>, asio::ip::tcp>::do_perform(asio::detail::reactor_op*)
static status do_perform(reactor_op* base)
  {
    reactive_socket_accept_op_base* o(
        static_cast<reactive_socket_accept_op_base*>(base));

    socket_type new_socket = invalid_socket;
    status result = socket_ops::non_blocking_accept(o->socket_,
        o->state_, o->peer_endpoint_ ? o->peer_endpoint_->data() : 0,
        o->peer_endpoint_ ? &o->addrlen_ : 0, o->ec_, new_socket)
    ? done : not_done;
    o->new_socket_.reset(new_socket);

    ASIO_HANDLER_REACTOR_OPERATION((*o, "non_blocking_accept", o->ec_));

    return result;
  }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movl $0xffffffff, (%r14)     # imm = 0xFFFFFFFF
movl 0x38(%rdi), %edi
movzbl 0x3c(%rbx), %esi
movq 0x58(%rbx), %rdx
leaq 0x60(%rbx), %rcx
testq %rdx, %rdx
cmoveq %rdx, %rcx
leaq 0x18(%rbx), %r8
movq %r14, %r9
callq 0x100b3
movzbl %al, %ebp
leaq 0x40(%rbx), %rdi
movl (%r14), %r14d
callq 0x1026e
movl %r14d, 0x40(%rbx)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/detail/socket_holder.hpp
// Function: asio::detail::socket_holder::reset()
void reset()
  {
    if (socket_ != invalid_socket)
    {
      asio::error_code ec;
      socket_ops::state_type state = 0;
      socket_ops::close(socket_, state, true, ec);
      socket_ = invalid_socket;
    }
  }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl (%rdi), %ebp
cmpl $-0x1, %ebp
je 0x102b2
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
movl $0x0, (%r14)
callq 0x5220
movq %rax, 0x8(%r14)
leaq 0xf(%rsp), %rsi
movb $0x0, (%rsi)
movl %ebp, %edi
movl $0x1, %edx
movq %r14, %rcx
callq 0xa720
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/detail/reactive_socket_service.hpp
// Function: std::error_code asio::detail::reactive_socket_service<asio::ip::tcp>::set_option<asio::detail::socket_option::boolean<1, 2>>(asio::detail::reactive_socket_service<asio::ip::tcp>::implementation_type&, asio::detail::socket_option::boolean<1, 2> const&, std::error_code&)
asio::error_code set_option(implementation_type& impl,
      const Option& option, asio::error_code& ec)
  {
    socket_ops::setsockopt(impl.socket_, impl.state_,
        option.level(impl.protocol_), option.name(impl.protocol_),
        option.data(impl.protocol_), option.size(impl.protocol_), ec);
    return ec;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl (%rsi), %ebp
cmpl $-0x1, %ebp
je 0x10330
movq %rdx, %r14
callq 0x5060
movq %rax, %r15
movl $0x0, (%rax)
movl %ebp, %edi
movl $0x1, %esi
movl $0x2, %edx
movq %r14, %rcx
movl $0x4, %r8d
callq 0x55f0
movl %eax, %r14d
movl (%r15), %ebp
movb 0x90fc(%rip), %al       # 0x19400
testb %al, %al
je 0x10350
movl %ebp, (%rbx)
leaq 0x9047(%rip), %rdx      # 0x19358
movq %rdx, 0x8(%rbx)
testl %r14d, %r14d
jne 0x10343
callq 0x5220
movq %rax, %rdx
movl $0x0, (%rbx)
movq %rax, 0x8(%rbx)
xorl %ebp, %ebp
jmp 0x10343
movq %rbx, %rdi
movl $0x9, %esi
callq 0xa898
movl (%rbx), %ebp
movq 0x8(%rbx), %rdx
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x5b06
jmp 0x10308
nop
// File: /workspace/github_cpp_makefile_star2_O3/thunlp[P]KB2E/TransR/Test_TransR.cpp
// Function: Test::calc_sum(int, int, int)
double calc_sum(int e1,int e2,int rel)
    {
        vector<double> e1_vec;
        e1_vec.resize(m);
        vector<double> e2_vec;
        e2_vec.resize(m);
        for (int ii=0; ii<m; ii++)
            for (int jj=0; jj<n; jj++)
            {
                e1_vec[ii]+=A[rel][jj][ii]*entity_vec[e1][jj];
                e2_vec[ii]+=A[rel][jj][ii]*entity_vec[e2][jj];
            }
        double sum=0;
        for (int ii=0; ii<m; ii++)
            sum+=-fabs(e2_vec[ii]-e1_vec[ii]-relation_vec[rel][ii]);
        return sum;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movslq 0x6a65(%rip), %rsi      # 0xc158
callq 0x5610
leaq 0x30(%rsp), %rdi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movslq 0x6a44(%rip), %rsi      # 0xc158
callq 0x5610
movslq 0x6a38(%rip), %rax      # 0xc158
movq 0x30(%rsp), %rdi
testq %rax, %rax
jle 0x5804
movl 0x6a28(%rip), %edx      # 0xc15c
movslq %r15d, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (,%rcx,8), %rsi
addq 0xd8(%rbx), %rsi
movslq %r14d, %r8
movq 0x18(%rbx), %r10
leaq (%r8,%r8,2), %r8
leaq (%r10,%r8,8), %r8
movq 0x10(%rsp), %r9
movslq %ebp, %r11
leaq (%r11,%r11,2), %r11
leaq (%r10,%r11,8), %r10
xorl %r11d, %r11d
testl %edx, %edx
jle 0x57bd
movq (%rsi), %r14
movq (%r8), %r15
movq (%r10), %r12
xorl %r13d, %r13d
movq (%r14), %rbp
movsd (%rbp,%r11,8), %xmm0
mulsd (%r15,%r13,8), %xmm0
addsd (%r9,%r11,8), %xmm0
movsd %xmm0, (%r9,%r11,8)
movsd (%rbp,%r11,8), %xmm0
mulsd (%r12,%r13,8), %xmm0
addsd (%rdi,%r11,8), %xmm0
movsd %xmm0, (%rdi,%r11,8)
incq %r13
addq $0x18, %r14
cmpq %r13, %rdx
jne 0x577c
incq %r11
cmpq %rax, %r11
jne 0x576c
testl %eax, %eax
jle 0x5804
movq 0x10(%rsp), %rdx
movq (%rbx), %rsi
movq (%rsi,%rcx,8), %rcx
xorpd %xmm0, %xmm0
xorl %esi, %esi
movapd 0x286d(%rip), %xmm2     # 0x8050
movsd (%rdi,%rsi,8), %xmm1
subsd (%rdx,%rsi,8), %xmm1
subsd (%rcx,%rsi,8), %xmm1
andpd %xmm2, %xmm1
subsd %xmm1, %xmm0
incq %rsi
cmpq %rsi, %rax
jne 0x57e3
jmp 0x580d
xorpd %xmm0, %xmm0
testq %rdi, %rdi
je 0x5826
movsd %xmm0, 0x8(%rsp)
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movsd 0x8(%rsp), %xmm0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5849
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
movsd %xmm0, 0x8(%rsp)
callq 0x2190
movsd 0x8(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5877
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
jmp 0x5877
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x588e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]succ/main.cpp
// Function: replaceTabsWithSpaces(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static std::string replaceTabsWithSpaces(const std::string& str)
{
	const std::string tabAsSpaces = repeatChar(' ', kTabWidth);

	std::string result;
	for (const auto& c : str) {
		if (c == '\t') {
			result += tabAsSpaces;
		} else {
			result += c;
		}
	}
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x48(%rbp), %rdi
movl $0x4, %edx
movl $0x20, %esi
callq 0x573a
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq 0x8(%r14), %r12
testq %r12, %r12
je 0x56eb
movq (%r14), %r14
xorl %r13d, %r13d
movb (%r14,%r13), %al
cmpb $0x9, %al
jne 0x56d8
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x13f98
jmp 0x56e3
movsbl %al, %esi
movq %rbx, %rdi
callq 0x76e6
incq %r13
cmpq %r13, %r12
jne 0x56be
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5704
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4210
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x5729
movq (%r15), %rsi
incq %rsi
callq 0x4210
leaq -0x48(%rbp), %rdi
callq 0x48be
movq %r14, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]succ/main.cpp
// Function: repeatChar[abi:cxx11](char, unsigned long)
static std::string repeatChar(char c, size_t count)
{
	std::string buffer;
	buffer.resize(count);
	memset(buffer.data(), c ? c : ' ', count);
	return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rdx, %rsi
xorl %edx, %edx
callq 0x1400a
movq (%r14), %rdi
movzbl %r15b, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4130
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x5799
movq (%r12), %rsi
incq %rsi
callq 0x4210
movq %rbx, %rdi
callq 0x43c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/match.cpp
// Function: path_tree(array2d&, tree const&, tree const&, int, int, int)
int path_tree(array2d& dp, const tree& t1, const tree& t2, const int lx, int x, int y)
{
    // trivial case: empty path
    if (x == lx)
        return 0;

    // memoization
    int& sol = dp(x, y);
    if (sol != NINF)
        return sol;

    // TODO: select the correct child
    // x's only child
    int w = t1.adj[x].front();

    // delete path node
    sol = max(sol, path_tree(dp, t1, t2, lx, w, y));
    for (int z : t2.adj[y])
    {
        // match x and y
        sol = max(sol, 1 + path_tree(dp, t1, t2, lx, w, z));
        // delete tree node
        sol = max(sol, path_tree(dp, t1, t2, lx, x, z));
    }
    return sol;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
xorl %eax, %eax
movl %r8d, 0x4(%rsp)
cmpl %ecx, %r8d
je 0x37e0
movl %r9d, %ebp
movl %ecx, %r12d
movl 0x4(%rdi), %eax
imull 0x4(%rsp), %eax
addl %r9d, %eax
movslq %eax, %rbx
movq 0x8(%rdi), %r15
movl (%r15,%rbx,4), %eax
movl %eax, %ecx
negl %ecx
jno 0x37e0
movslq 0x4(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq 0x48(%rsi,%rax,8), %rax
movl (%rax), %r8d
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rsi
movq %rdx, 0x8(%rsp)
movq 0x8(%rsp), %rdx
movl %r12d, %ecx
movl %r8d, 0x24(%rsp)
movl %ebp, %r9d
callq 0x36cc
movq 0x8(%rsp), %rdx
movl (%r15,%rbx,4), %esi
cmpl %eax, %esi
cmovgl %esi, %eax
movl %eax, (%r15,%rbx,4)
movslq %ebp, %rsi
leaq (%rsi,%rsi,2), %rsi
movq 0x48(%rdx,%rsi,8), %r14
movq 0x50(%rdx,%rsi,8), %rbp
cmpq %rbp, %r14
je 0x37e0
movl %r12d, %ecx
movl (%r14), %r13d
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdx
movl 0x24(%rsp), %r8d
movl %r13d, %r9d
callq 0x36cc
incl %eax
movl (%r15,%rbx,4), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, (%r15,%rbx,4)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdx
movl %r12d, %ecx
movl 0x4(%rsp), %r8d
movl %r13d, %r9d
callq 0x36cc
movl %r12d, %ecx
movl (%r15,%rbx,4), %edx
cmpl %eax, %edx
cmovgl %edx, %eax
movl %eax, (%r15,%rbx,4)
addq $0x4, %r14
cmpq %rbp, %r14
jne 0x377a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/match.cpp
// Function: bipartite(array2d const&, array2d&, array2d&, int, unsigned long long)
int bipartite(const array2d& D, array2d& dp, array2d& pdp, int k, mask m)
{
    // nothing left to match
    if (k == D.n || m == 0)
        return 0;

    // memoization
    int& sol = dp(k, m);
    if (sol != NINF)
        return sol;

    // don't match kth tree with anyone
    sol = bipartite(D, dp, pdp, k + 1, m);

    // try to match kth tree in t1 with any avaliable tree in t2
    for (mask mi = m; mi != 0; mi -= ls(mi))
    {
        int nsol = D(k, tz(mi)) + bipartite(D, dp, pdp, k + 1, m ^ ls(mi));
        if (nsol > sol)
            sol = nsol, pdp(k, m) = tz(mi);
    }
    return sol;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
xorl %eax, %eax
movq %r8, 0x8(%rsp)
testq %r8, %r8
je 0x3aee
movl %ecx, %ebp
cmpl %ecx, (%rdi)
je 0x3aee
movq 0x10(%rsp), %rcx
movl 0x4(%rcx), %eax
imull %ebp, %eax
addl 0x8(%rsp), %eax
movslq %eax, %r15
movq 0x8(%rcx), %r14
movl (%r14,%r15,4), %eax
movl %eax, %ecx
negl %ecx
jno 0x3aee
leal 0x1(%rbp), %ecx
movq %rdi, 0x28(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl %ecx, 0x24(%rsp)
movq 0x8(%rsp), %r12
movq %r12, %r8
callq 0x39f0
movl %eax, (%r14,%r15,4)
bsfq %r12, %rcx
movq 0x28(%rsp), %rdi
movl 0x4(%rdi), %eax
imull %ebp, %eax
movq %rcx, 0x30(%rsp)
addl %ecx, %eax
cltq
movq 0x8(%rdi), %rcx
movq %r15, %r13
movq %rbp, %r15
movl (%rcx,%rax,4), %ebp
movq %r12, %rbx
negq %rbx
andq %r12, %rbx
movq %rbx, %r8
xorq 0x8(%rsp), %r8
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl 0x24(%rsp), %ecx
callq 0x39f0
addl %ebp, %eax
movq %r15, %rbp
movq %r13, %r15
cmpl (%r14,%r13,4), %eax
jle 0x3ae5
movl %eax, (%r14,%r15,4)
movq 0x18(%rsp), %rcx
movl 0x4(%rcx), %eax
imull %ebp, %eax
addl 0x8(%rsp), %eax
cltq
movq 0x8(%rcx), %rcx
movq 0x30(%rsp), %rdx
movl %edx, (%rcx,%rax,4)
subq %rbx, %r12
jne 0x3a6d
movl (%r14,%r15,4), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/match.cpp
// Function: recover_matching_aux(tree const&, tree const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>>&, array2d const&, int, int, int, int)
void recover_matching_aux(const tree& t1, const tree& t2, vector<pair<int, int>>& matching, const array2d& tdp, const int lx, const int ly, int x, int y)
{
    if (x == lx || y == ly)
        return;

    switch (tdp(x, y))
    {
        case DEL_1:
            recover_matching_aux(t1, t2, matching, tdp, lx, ly, t1.par[x], y);
            break;
        case DEL_2:
            recover_matching_aux(t1, t2, matching, tdp, lx, ly, x, t2.par[y]);
            break;
        case MATCH:
            matching.emplace_back(x, y);
            recover_matching_aux(t1, t2, matching, tdp, lx, ly, t1.par[x], t2.par[y]);
            break;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movl 0x48(%rsp), %eax
movl 0x40(%rsp), %ecx
cmpl %r8d, %ecx
sete %dl
cmpl %r9d, %eax
sete %sil
orb %dl, %sil
jne 0x4a40
movl %r9d, %ebx
movl %r8d, %ebp
movq %rdi, %r13
movl 0x4(%r14), %edx
movq 0x8(%r14), %rsi
movl %edx, %edi
imull %ecx, %edi
leal (%rdi,%rax), %r8d
movslq %r8d, %r8
movl (%rsi,%r8,4), %r8d
cmpl $0x1, %r8d
jne 0x49c8
cltq
movl 0x5f14(%r12,%rax,4), %eax
movl %ecx, 0x40(%rsp)
movl %eax, 0x48(%rsp)
cmpl %ebx, %eax
jne 0x499f
jmp 0x4a40
cmpl $0x2, %r8d
je 0x49f0
testl %r8d, %r8d
jne 0x4a40
movslq %ecx, %rcx
movl 0x5f14(%r13,%rcx,4), %ecx
movl %ecx, 0x40(%rsp)
movl %eax, 0x48(%rsp)
cmpl %ebp, %ecx
je 0x4a40
cmpl %ebx, %eax
jne 0x499a
jmp 0x4a40
leaq 0x40(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
callq 0x5cd6
leaq 0x40(%rsp), %rax
movslq (%rax), %rax
movl 0x5f14(%r13,%rax,4), %eax
leaq 0x48(%rsp), %rcx
movslq (%rcx), %rcx
movl 0x5f14(%r12,%rcx,4), %r10d
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebp, %r8d
movl %ebx, %r9d
pushq %r10
pushq %rax
callq 0x4957
addq $0x10, %rsp
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/match.cpp
// Function: array2d::transpose() const
array2d transpose() const
    {
        array2d D(m, n);
        for (int i = 0; i < n; ++i)
            for (int j = 0; j < m; ++j)
                D(j, i) = (*this)(i, j);
        return D;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %edx
movl 0x4(%rsi), %esi
movl $0x80000000, %ecx       # imm = 0x80000000
callq 0x5968
movl (%r14), %edi
testl %edi, %edi
jle 0x595c
movq 0x8(%r14), %rax
movq 0x8(%rbx), %rcx
movl 0x4(%r14), %esi
xorl %edx, %edx
testl %esi, %esi
jle 0x5956
xorl %edi, %edi
imull %edx, %esi
movslq %esi, %rsi
addq %rdi, %rsi
movl (%rax,%rsi,4), %esi
movl 0x4(%rbx), %r8d
imull %edi, %r8d
addl %edx, %r8d
movslq %r8d, %r8
movl %esi, (%rcx,%r8,4)
movl 0x4(%r14), %esi
incq %rdi
cmpl %esi, %edi
jl 0x592a
movl (%r14), %edi
incl %edx
cmpl %edi, %edx
jl 0x5924
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/read_csv.cpp
// Function: CSVReader::getStringData[abi:cxx11](int, int)
std::vector<std::vector<std::string> > CSVReader::getStringData(int from_row, int to_row)
{
	std::ifstream file(fileName);

	std::vector<std::vector<std::string> > dataList;

	std::string line = "";
	// Iterate through each line and split the content using delimeter
    int count = 0;
	while (getline(file, line))
	{
        if (count >= to_row) {
            break;
        }
		std::vector<std::string> vec;
        if (count >= from_row){
            boost::algorithm::split(vec, line, boost::is_any_of(delimeter));
            dataList.push_back(vec);
        }
        count ++;
	}
	// Close the File
	file.close();

	return dataList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x70(%rsp), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x3350
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, (%rsp)
movq $0x0, 0x10(%rbx)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3b68(%rip), %rdx      # 0xc0b0
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x7318
xorl %r13d, %r13d
leaq 0x50(%rsp), %rbx
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3210
movsbl %al, %edx
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3410
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8622
cmpl %ebp, %r13d
jge 0x8622
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
cmpl %r14d, %r13d
jl 0x8612
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
addq %rax, %rcx
movq %rax, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x9040
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movl $0x1, %ecx
callq 0x8dcb
cmpq $0x11, 0x38(%rsp)
jb 0x8606
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x8606
callq 0x32a0
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x8f60
incl %r13d
movq %rbx, %rdi
callq 0x69f8
jmp 0x855d
leaq 0x70(%rsp), %rdi
callq 0x3080
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x8648
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x70(%rsp), %rdi
callq 0x3090
movq (%rsp), %rax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x869a
movq %rax, %rbx
jmp 0x86b9
movq %rax, %rbx
cmpq $0x11, 0x38(%rsp)
jb 0x868e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x868e
callq 0x32a0
jmp 0x868e
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x69f8
jmp 0x869d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x86b9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3230
movq (%rsp), %rdi
callq 0x8f8c
leaq 0x70(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/read_csv.cpp
// Function: CSVReader::getDoubleFromStringData(int, int)
std::vector<std::vector<double> > CSVReader::getDoubleFromStringData(int from_row, int to_row) {
    vector<vector<double> > data;
    std::vector<std::vector<string> > dataList = getStringData();
    for (int i = from_row; i < std::min(to_row, (int) dataList.size()); ++i)
    {
        vector<double> temp;
        for (const auto & u: dataList.at(i))
        {
            temp.push_back(std::stod(u));
        }
        data.push_back(temp);
    }
    return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %ebp
movl %edx, %ebx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, (%rsp)
movq $0x0, 0x10(%rdi)
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
movl $0xf4240, %ecx          # imm = 0xF4240
callq 0x84f8
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
cmpl %ebp, %edx
movl %ebp, %ecx
cmovll %edx, %ecx
cmpl %ebx, %ecx
jle 0x884e
movslq %ebx, %rbx
leaq 0x50(%rsp), %r12
movl %ebp, 0xc(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpq %rbx, %rdx
jbe 0x8883
movq %rbx, 0x40(%rsp)
leaq (%rbx,%rbx,2), %rcx
movq (%rax,%rcx,8), %r13
movq 0x8(%rax,%rcx,8), %r15
cmpq %r15, %r13
je 0x87eb
callq 0x3060
movq %rax, %rbx
movq (%r13), %rbp
movl (%rbx), %r14d
movl $0x0, (%rbx)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x31d0
cmpq %rbp, 0x50(%rsp)
je 0x886b
movl (%rbx), %eax
testl %eax, %eax
je 0x87af
cmpl $0x22, %eax
jne 0x87b2
jmp 0x8877
movl %r14d, (%rbx)
movsd %xmm0, 0x48(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x87d3
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x87e2
leaq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xae04
addq $0x20, %r13
cmpq %r15, %r13
jne 0x877c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x8fd4
movl 0xc(%rsp), %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
movq 0x40(%rsp), %rbx
je 0x8819
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
incq %rbx
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
cmpl %ebp, %edx
movl %ebp, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rbx
jl 0x8743
leaq 0x28(%rsp), %rdi
callq 0x8f8c
movq (%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a15(%rip), %rdi      # 0xc287
callq 0x3160
leaq 0x3a09(%rip), %rdi      # 0xc287
callq 0x32f0
leaq 0x3a20(%rip), %rdi      # 0xc2aa
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3320
movq %rax, %r15
jmp 0x88ce
jmp 0x889d
jmp 0x889d
movq %rax, %r15
jmp 0x88ad
movq %rax, %r15
cmpl $0x0, (%rbx)
jne 0x88ad
movl %r14d, (%rbx)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x88c4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3230
leaq 0x28(%rsp), %rdi
callq 0x8f8c
movq (%rsp), %rdi
callq 0x65f4
movq %r15, %rdi
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/main.cpp
// Function: traverse_world(world const&, std::function<void (int, int, int)>)
void traverse_world(const world &w, std::function<void(int, int, int)> f) {
	int cx, cy, cz;
	for (cz=0; cz<32; ++cz) {
		for (cx=0; cx<32; ++cx) {
			for (cy=0; cy<16; ++cy) {
				if (w.has_world_data(cx, cy, cz)) {
					int x, y, z;
					for (z=0; z<16; ++z) {
						for (x=0; x<16; ++x) {
							for (y=0; y<16; ++y) {
								f((cx << 4) | x, (cy << 4) | y, (cz << 4) | z);
							}
						}
					}
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, 0x18(%rsp)
xorl %ecx, %ecx
movl %ecx, %eax
shll $0x4, %eax
movq %rax, 0x20(%rsp)
xorl %esi, %esi
movl %ecx, 0xc(%rsp)
movl %esi, %eax
shll $0x4, %eax
movq %rax, 0x30(%rsp)
xorl %r12d, %r12d
xorl %edx, %edx
movl %esi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movl %edx, 0x14(%rsp)
callq 0x528e
testb %al, %al
je 0x2605
xorl %ecx, %ecx
movq 0x20(%rsp), %rax
movq %rcx, 0x28(%rsp)
leal (%rcx,%rax), %r13d
xorl %ebp, %ebp
movq 0x30(%rsp), %rax
leal (%rax,%rbp), %r14d
xorl %r15d, %r15d
leal (%r12,%r15), %edx
movq %rbx, %rdi
movl %r14d, %esi
movl %r13d, %ecx
callq 0x335e
incl %r15d
cmpl $0x10, %r15d
jne 0x25d7
incl %ebp
cmpl $0x10, %ebp
jne 0x25cb
movq 0x28(%rsp), %rcx
incl %ecx
cmpl $0x10, %ecx
jne 0x25bb
movl 0x14(%rsp), %edx
incl %edx
addl $0x10, %r12d
cmpl $0x10, %edx
movl 0xc(%rsp), %ecx
movl 0x10(%rsp), %esi
jne 0x25a7
incl %esi
cmpl $0x20, %esi
jne 0x2594
incl %ecx
cmpl $0x20, %ecx
jne 0x2584
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: need_progress(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int need_progress(int stage, string name) {
	if (stage == 0 && name == "") return 1;
	else if (stage == 1 && name == "Level") return 2;
	else if (stage == 2 && name == "Sections") return 3;
	else if (stage == 3 && name == "Palette") return 4;
	else if (stage == 4 && name == "Properties") return 5;
	return stage;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
cmpl $0x4, %edi
ja 0x3c5d
movl %ebx, %eax
leaq 0x471b(%rip), %rcx      # 0x82e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x497f(%rip), %rax      # 0x8554
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2050
testl %eax, %eax
jne 0x3c5d
movl $0x1, %ebx
jmp 0x3c5d
leaq 0x47a5(%rip), %rax      # 0x8397
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2050
testl %eax, %eax
jne 0x3c5d
movl $0x5, %ebx
jmp 0x3c5d
leaq 0x4777(%rip), %rax      # 0x8386
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2050
testl %eax, %eax
jne 0x3c5d
movl $0x3, %ebx
jmp 0x3c5d
leaq 0x4763(%rip), %rax      # 0x838f
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2050
testl %eax, %eax
jne 0x3c5d
movl $0x4, %ebx
jmp 0x3c5d
leaq 0x4737(%rip), %rax      # 0x8380
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2050
testl %eax, %eax
jne 0x3c5d
movl $0x2, %ebx
movl %ebx, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::flush_section()
void chunk::flush_section() {
	if (0 <= this->y && this->y < 16) {
		if (!this->br.init_needed()) {
			if (this->world_data[this->y]) {
				fprintf(stderr, "Error: duplicate section y = %d; did you edit the world using hex editor?\n", this->y);
				throw DUPLICATE_Y_SECTION_ERROR;
			}
			this->world_data[this->y] = new byte[4096];
			const int needed_bit = this->palette.size() < 2U ? 4 : std::max(4, 32 - __builtin_clz((int)this->palette.size() - 1));
			for (int i=0; i<4096; ++i) {
				int x = this->br.read(needed_bit);
				this->world_data[this->y][i] = this->palette[x];
			}
		}
	}
	this->block = 0;
	this->y = 255;
	this->palette.clear();
	this->br.init(nullptr);
#ifdef CHUNK_DEBUG
	printf("section end\n");
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpl $0xf, 0x4(%rdi)
ja 0x44ba
leaq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x4ece
testb %al, %al
jne 0x44ba
movq 0x30(%rbx), %r12
movslq 0x4(%rbx), %r15
cmpq $0x0, (%r12,%r15,8)
jne 0x44ee
movl $0x1000, %edi           # imm = 0x1000
callq 0x2030
movq %rax, (%r12,%r15,8)
movq 0x20(%rbx), %rax
subq 0x18(%rbx), %rax
sarq $0x2, %rax
movl $0x4, %ebp
cmpq $0x2, %rax
jb 0x4488
decl %eax
bsrl %eax, %eax
xorl $-0x20, %eax
addl $0x21, %eax
cmpl $0x5, %eax
cmovael %eax, %ebp
xorl %r15d, %r15d
movq %r14, %rdi
movl %ebp, %esi
callq 0x4e30
cltq
movq 0x18(%rbx), %rcx
movq 0x30(%rbx), %rdx
movb (%rcx,%rax,4), %al
movslq 0x4(%rbx), %rcx
movq (%rdx,%rcx,8), %rcx
movb %al, (%rcx,%r15)
incq %r15
cmpq $0x1000, %r15           # imm = 0x1000
jne 0x448b
movl $0x0, 0xc(%rbx)
movl $0xff, 0x4(%rbx)
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x44d6
movq %rax, 0x20(%rbx)
addq $0x38, %rbx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4ec2
movl %r15d, %edi
callq 0x23ad
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::flush_block()
void chunk::flush_block() {
	this->palette.push_back(this->block);
	// attribute validation
	const int attributes[] = {
		0, 0, 0, 0, ATTR_POWER | ATTR_EAST | ATTR_WEST | ATTR_SOUTH | ATTR_NORTH /* wire */,
		ATTR_LIT /* torch */, ATTR_LIT | ATTR_FACING /* wall torch */,
		ATTR_FACING | ATTR_MODE | ATTR_POWERED /* comparator */,
		ATTR_DELAY | ATTR_FACING | ATTR_LOCKED | ATTR_POWERED,
		ATTR_DELAY | ATTR_FACING | ATTR_LOCKED | ATTR_POWERED /* repeater */,
		ATTR_LIT /* lamp */, ATTR_FACE | ATTR_FACING | ATTR_POWERED /* lever */, 0
	};
	if (attributes[this->block >> 4] != this->attr) {
		fprintf(stderr, "Error: block has missing or extra attribute; did you edit the world using hex editor?\n");
		throw ATTR_MISMATCH_ERROR;
	}
#ifdef CHUNK_DEBUG
	printf("block = %02X\n", this->block);
#endif
	this->block = 0;
	this->attr = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rsi
cmpq 0x28(%rdi), %rsi
je 0x4513
movl 0xc(%rbx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rbx)
jmp 0x4523
leaq 0xc(%rbx), %rdx
leaq 0x18(%rbx), %rdi
callq 0x3470
movl 0xc(%rbx), %eax
sarl $0x4, %eax
cltq
leaq 0x3e01(%rip), %rcx      # 0x8330
movl (%rcx,%rax,4), %eax
cmpl 0x10(%rbx), %eax
jne 0x4541
movq $0x0, 0xc(%rbx)
popq %rbx
retq
callq 0x23e7
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::~chunk()
chunk::~chunk() {
	if (this->world_data) {
		int i;
		for (i=0; i<16; ++i) {
			if (this->world_data[i]) {
				delete [](this->world_data[i]);
			}
		}
		delete []this->world_data;
		this->world_data = nullptr;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x30(%rdi)
je 0x4bf0
xorl %r14d, %r14d
movq 0x30(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x4bd1
callq 0x21c0
incq %r14
cmpq $0x10, %r14
jne 0x4bbf
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x4be8
callq 0x21c0
movq $0x0, 0x30(%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x4c0c
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2150
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::getXYZ(int, int, int)
byte chunk::getXYZ(int x, int y, int z) {
	if (!this->world_data) return AIR;
	int idx = y >> 4;
	if (!this->world_data[idx]) return AIR;
	return this->world_data[idx][((y & 15) << 8) | ((z & 15) << 4) | (x & 15)];
}

// Assembly:
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x4c45
movl %edx, %edi
sarl $0x4, %edi
movslq %edi, %rdi
movq (%rax,%rdi,8), %rax
testq %rax, %rax
je 0x4c45
andl $0xf, %edx
shll $0x8, %edx
shll $0x4, %ecx
movzbl %cl, %ecx
andl $0xf, %esi
orl %edx, %esi
orl %ecx, %esi
movb (%rax,%rsi), %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::troubleshoot(int, int)
bool chunk::troubleshoot(int x, int z) {
	const int target = (int)this->palette.size();
	if (0 <= this->y && this->y < 16 && !this->br.init_needed()) {
		for (int i=0; i<4096; ++i) {
			int x = this->br.read(this->troubleshoot_bit);
			if (x == target) {
				const int y_coord = (this->y << 4) | (i >> 8);
				if (0 <= y_coord && y_coord < 256) {
					fprintf(stderr, "exact location might be (%d, %d, %d)\n", (x << 4) | (i & 15), y_coord, (z << 4) | ((i >> 4) & 15));
				} else {
					fprintf(stderr, "exact location might be (%d, ?, %d)\n", (x << 4) | (i & 15), (z << 4) | ((i >> 4) & 15));
				}
				return true;
			}
		}
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $0xf, 0x4(%rdi)
ja 0x4cb0
movl %edx, %ebp
movq %rdi, %r14
movq 0x20(%rdi), %r12
subq 0x18(%rdi), %r12
leaq 0x38(%rdi), %r15
movq %r15, %rdi
callq 0x4ece
xorl %ebx, %ebx
testb %al, %al
jne 0x4cb2
shrq $0x2, %r12
movl 0x14(%r14), %esi
movq %r15, %rdi
callq 0x4e30
cmpl %r12d, %eax
je 0x4cbd
incl %ebx
cmpl $0x1000, %ebx           # imm = 0x1000
jne 0x4c95
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%r14), %eax
shll $0x4, %eax
movl %ebx, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
testl %eax, %eax
setns %al
cmpl $0x100, %ecx            # imm = 0x100
setl %sil
andb %al, %sil
movq 0x72fc(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
shll $0x4, %r12d
movl %ebx, %edx
andl $0xf, %edx
orl %r12d, %edx
shll $0x4, %ebp
shrl $0x4, %ebx
andl $0xf, %ebx
orl %ebp, %ebx
cmpb $0x1, %sil
jne 0x4d17
leaq 0x3909(%rip), %rsi      # 0x8614
movl %ebx, %r8d
xorl %eax, %eax
callq 0x21d0
jmp 0x4d27
leaq 0x391c(%rip), %rsi      # 0x863a
movl %ebx, %ecx
xorl %eax, %eax
callq 0x21d0
movb $0x1, %bl
jmp 0x4cb2
nop
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/bitstream.cpp
// Function: bitreader::read(int)
int bitreader::read(int bit) {
	int x = 0, u = 0;
	if (this->remaining < bit) {
		x = this->temp;
		bit -= this->remaining;
		u = this->remaining;
		this->remaining = 64;
		this->temp = 0;
		for (int i=0; i<8; ++i) {
			(this->temp <<= 8) |= this->data[this->pos++];
		}
	}
	x |= (this->temp & ((1ULL << bit) - 1)) << u;
	this->temp >>= bit;
	this->remaining -= bit;
	return x;
}

// Assembly:
movl 0xc(%rdi), %r9d
movl %esi, %ecx
movq 0x10(%rdi), %r8
subl %r9d, %ecx
jle 0x4e92
movl %r9d, %edx
movl $0x40, 0xc(%rdi)
movq $0x0, 0x10(%rdi)
movslq 0x8(%rdi), %rsi
leal 0x1(%rsi), %eax
addq (%rdi), %rsi
xorl %r9d, %r9d
xorl %r10d, %r10d
leal (%rax,%r9), %r11d
movl %r11d, 0x8(%rdi)
movzbl (%rsi,%r9), %r11d
shlq $0x8, %r10
orq %r11, %r10
movq %r10, 0x10(%rdi)
incq %r9
cmpl $0x8, %r9d
jne 0x4e61
movslq %r8d, %rax
movl $0x40, %r9d
movq %r10, %r8
movl %ecx, %esi
jmp 0x4e96
xorl %eax, %eax
xorl %edx, %edx
movq $-0x1, %r10
movl %esi, %ecx
shlq %cl, %r10
notl %r10d
andl %r8d, %r10d
movl %edx, %ecx
shlq %cl, %r10
orl %r10d, %eax
movl %esi, %ecx
shrq %cl, %r8
movq %r8, 0x10(%rdi)
subl %esi, %r9d
movl %r9d, 0xc(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/world.cpp
// Function: world::getXYZ(int, int, int) const
byte world::getXYZ(int x, int y, int z) const {
	if (!(0 <= x && x < 512 && 0 <= y && y < 255 && 0 <= z && z < 512)) return AIR;
	if (!this->world_data) return AIR;
	int idx = ((x >> 4) & 31) | (((z >> 4) & 31) << 5);
	if (!this->world_data[idx]) return AIR;
	return this->world_data[idx]->getXYZ(x, y, z);
}

// Assembly:
cmpl $0xff, %edx
setae %al
movl %ecx, %r8d
orl %esi, %r8d
cmpl $0x200, %r8d            # imm = 0x200
setae %r8b
orb %al, %r8b
jne 0x5233
movq (%rdi), %rax
testq %rax, %rax
je 0x5233
movl %esi, %edi
shrl $0x4, %edi
movl %ecx, %r8d
andl $0x1f0, %r8d            # imm = 0x1F0
leal (%rdi,%r8,2), %edi
movq (%rax,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x4c14
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/world.cpp
// Function: world::~world()
world::~world() {
	if (this->world_data) {
		int i;
		for (i=0; i<1024; ++i) {
			if (this->world_data[i]) {
				delete this->world_data[i];
			}
		}
		delete []this->world_data;
		this->world_data = nullptr;
	}
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x528d
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x5268
movq %r14, %rdi
callq 0x4bae
movl $0x50, %esi
movq %r14, %rdi
callq 0x2150
incq %r15
cmpq $0x400, %r15            # imm = 0x400
jne 0x5247
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5281
callq 0x21c0
movq $0x0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/world.cpp
// Function: world::has_world_data(int, int, int) const
bool world::has_world_data(int cx, int cy, int cz) const {
	if (!(0 <= cx && cx < 32 && 0 <= cy && cy < 16 && 0 <= cz && cz < 32)) return false;
	if (!this->world_data) return false;
	if (!this->world_data[(cz << 5) | cx]) return false;
	return this->world_data[(cz << 5) | cx]->has_world_data(cy);
}

// Assembly:
cmpl $0x10, %edx
setae %al
movl %ecx, %r8d
orl %esi, %r8d
cmpl $0x20, %r8d
setae %r8b
orb %al, %r8b
jne 0x52c4
movq (%rdi), %rax
testq %rax, %rax
je 0x52c4
shll $0x5, %ecx
orl %esi, %ecx
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x52c4
movl %edx, %esi
jmp 0x4c48
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/analyze.cpp
// Function: test_facing(world const&, int, int, int, std::function<bool (world const&, int, int, int)>)
bool test_facing(const world &w, int x, int y, int z, std::function<bool(const world &, int, int, int)> f) {
	byte b = w.getXYZ(x, y, z);
	switch (b & 3) {
		case EAST:
			++x;
			break;
		case WEST:
			--x;
			break;
		case SOUTH:
			++z;
			break;
		case NORTH:
			--z;
			break;
	}
	return f(w, x, y, z);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r12
callq 0x51ec
andb $0x3, %al
movzbl %al, %eax
leaq 0x33c6(%rip), %rcx      # 0x86f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
incl %r15d
jmp 0x5343
incl %ebx
jmp 0x5343
decl %r15d
jmp 0x5343
decl %ebx
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %ebp, %ecx
movl %ebx, %r8d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7922
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/check.cpp
// Function: is_redstone_component(world const&, int, int, int)
bool is_redstone_component(const world &w, int x, int y, int z) {
	byte fetched = w.getXYZ(x, y, z);
	if ((fetched & BLOCK_ONLY) == REDSTONE_WALL_TORCH || (fetched & BLOCK_ONLY) == LEVER) {
		switch (fetched & 3) {
			case EAST: --x; break;
			case WEST: ++x; break;
			case SOUTH: --z; break;
			case NORTH: ++z; break;
		}
		if (!is_opaque(w.getXYZ(x, y, z))) {
			throw NO_SUPPORTING_BLOCK_ERROR;
		}
		return true;
	} else if ((fetched & BLOCK_ONLY) == REDSTONE_WIRE || (fetched & BLOCK_ONLY) == REDSTONE_TORCH || is_repeater(fetched) || (fetched & BLOCK_ONLY) == COMPARATOR) {
		if (!is_opaque(w.getXYZ(x, y-1, z))) {
			throw NO_SUPPORTING_BLOCK_ERROR;
		}
		return true;
	}
	return (fetched & BLOCK_ONLY) == REDSTONE_LAMP;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
callq 0x51ec
movzbl %al, %edi
leal -0x40(%rdi), %eax
shrl $0x4, %eax
cmpl $0x2, %eax
jb 0x7a94
cmpl $0x7, %eax
je 0x7a63
cmpl $0x2, %eax
jne 0x7a7b
andl $0x3, %edi
leaq 0x119b(%rip), %rax      # 0x8c08
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
decl %r14d
jmp 0x7a96
movl %edi, %r12d
andl $-0x10, %r12d
callq 0x7c4f
xorb $0x1, %al
cmpl $0x70, %r12d
setne %cl
testb %al, %cl
jne 0x7acb
decl %ebp
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x51ec
movzbl %al, %edi
callq 0x7c5a
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
je 0x7ad7
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
decl %ebx
jmp 0x7a96
incl %r14d
jmp 0x7a96
incl %ebx
jmp 0x7a96
cmpl $0xa0, %r12d
sete %al
jmp 0x7ab5
movl $0x4, %edi
callq 0x20a0
movl $0xfffffffa, (%rax)     # imm = 0xFFFFFFFA
movq 0x44da(%rip), %rsi      # 0xbfc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/kipa00[P]AplusB-mc/compiler/block.cpp
// Function: block_to_string[abi:cxx11](unsigned char)
string block_to_string(byte block) {
	switch (block & BLOCK_ONLY) {
		case AIR: return "air";
		case BEDROCK: return "bedrock";
		case STONE: return "stone";
		case SANDSTONE: return "sandstone";
		case REDSTONE_WIRE: return "redstone_wire";
		case REDSTONE_TORCH:
		case REDSTONE_WALL_TORCH: return "redstone_torch";
		case COMPARATOR: return "comparator";
		case REPEATER:
		case REPEATER | 16: return "repeater";
		case REDSTONE_LAMP: return "redstone_lamp";
		case LEVER: return "lever";
		case CONCRETE: return "concrete";
	}
	return "unknown";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
shrb $0x4, %sil
cmpb $0xc, %sil
ja 0x7be8
movzbl %sil, %eax
leaq 0x1103(%rip), %rcx      # 0x8c18
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x8dc(%rip), %rsi       # 0x8408
leaq 0x8e3(%rip), %rdx       # 0x8416
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x8f9(%rip), %rsi       # 0x843f
leaq 0x8fa(%rip), %rdx       # 0x8447
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x91f(%rip), %rsi       # 0x847f
leaq 0x91d(%rip), %rdx       # 0x8484
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x917(%rip), %rsi       # 0x8491
leaq 0x918(%rip), %rdx       # 0x8499
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x85c(%rip), %rsi       # 0x83f0
leaq 0x862(%rip), %rdx       # 0x83fd
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x8a4(%rip), %rsi       # 0x8452
leaq 0x8a7(%rip), %rdx       # 0x845c
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x804(%rip), %rsi       # 0x83cc
leaq 0x802(%rip), %rdx       # 0x83d1
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x7fd(%rip), %rsi       # 0x83dc
leaq 0x7ff(%rip), %rdx       # 0x83e5
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1056(%rip), %rsi      # 0x8c4c
leaq 0x1056(%rip), %rdx      # 0x8c53
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x79f(%rip), %rsi       # 0x83ac
leaq 0x79b(%rip), %rdx       # 0x83af
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x796(%rip), %rsi       # 0x83ba
leaq 0x796(%rip), %rdx       # 0x83c1
jmp 0x7c42
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x82c(%rip), %rsi       # 0x8467
leaq 0x832(%rip), %rdx       # 0x8474
movq %rbx, %rdi
callq 0x33da
movq %rbx, %rax
popq %rbx
retq