LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/flightaware[P]beast-splitter/beast_output.cc
// Function: beast::SocketConnector::schedule_reconnect()
void SocketConnector::schedule_reconnect() {
        if (running) {
            std::cerr << host << ":" << port_or_service << ": reconnecting in " << std::chrono::duration_cast<std::chrono::seconds>(reconnect_interval).count() << " seconds" << std::endl;

            auto self(shared_from_this());
            reconnect_timer.expires_from_now(reconnect_interval);
            reconnect_timer.async_wait(std::bind(&SocketConnector::resolve_and_connect, self, std::placeholders::_1));
        }
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
cmpb $0x1, 0x1a0(%rdi)
jne 0x27f11
movq %rdi, %rbx
movq 0x128(%rdi), %rsi
movq 0x130(%rdi), %rdx
movq 0x4b21e(%rip), %rdi     # 0x72fd8
callq 0xf730
movq %rax, %r14
leaq 0x28251(%rip), %rsi     # 0x5001a
movl $0x1, %edx
movq %rax, %rdi
callq 0xf730
movq 0x148(%rbx), %rsi
movq 0x150(%rbx), %rdx
movq %r14, %rdi
callq 0xf730
movq %rax, %r14
leaq 0x2a06e(%rip), %rsi     # 0x51e64
movl $0x12, %edx
movq %rax, %rdi
callq 0xf730
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x10(%rbx)
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x7, %rdx
addq %rdx, %rsi
movq %r14, %rdi
callq 0xf5e0
movq %rax, %r14
leaq 0x2a046(%rip), %rsi     # 0x51e77
movl $0x8, %edx
movq %rax, %rdi
callq 0xf730
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xf5f0
movsbl %al, %esi
movq %r14, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf470
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ce24
leaq 0xb8(%rbx), %rdi
imulq $0xf4240, 0x10(%rbx), %rax # imm = 0xF4240
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
callq 0x14326
leaq -0xc49(%rip), %rax      # 0x2724c
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x27ed1
movq 0x4b0bd(%rip), %rcx     # 0x72f80
cmpb $0x0, (%rcx)
je 0x27ecd
incl 0x8(%rax)
jmp 0x27ed1
lock
incl 0x8(%rax)
movq 0xb8(%rbx), %rdi
leaq 0xc0(%rbx), %rsi
addq $0xf8, %rbx
leaq 0x18(%rsp), %rdx
movq %rbx, %rcx
callq 0x2bd9c
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x27f02
callq 0x1581a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x27f11
callq 0x1581a
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x27f30
callq 0x1581a
jmp 0x27f30
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x27f3f
callq 0x1581a
movq %rbx, %rdi
callq 0xfb40
nop
// File: /workspace/github_cpp_makefile_star2_O1/flightaware[P]beast-splitter/./modes_message.h
// Function: modes::Message::corrected_data() const
const std::vector<std::uint8_t> &corrected_data() const {
            if (!crc_bad()) {
                return m_data;
            }

            if (m_corrected_data.size() != 0) {
                // already corrected
                return m_corrected_data;
            }

            auto bit = crc_correctable_bit();
            if (bit < 0) {
                // not correctable
                return m_corrected_data; // empty vector
            }

            // copy the original data and do FEC
            m_corrected_data = m_data;
            m_corrected_data[bit / 8] ^= (1 << (7 - (bit & 7)));
            return m_corrected_data;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x1135a
testb %al, %al
je 0x2b1a7
leaq 0x38(%r14), %rbx
movq 0x40(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0x2b1ae
movq %r14, %rdi
callq 0x114d8
testl %eax, %eax
js 0x2b1ae
movl %eax, %r15d
leaq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2b6dc
movl %r15d, %ecx
notb %cl
andb $0x7, %cl
movl $0x1, %eax
shll %cl, %eax
shrl $0x3, %r15d
movq 0x38(%r14), %rcx
xorb %al, (%rcx,%r15)
jmp 0x2b1ae
addq $0x18, %r14
movq %r14, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/flightaware[P]beast-splitter/status_writer.cc
// Function: splitter::StatusWriter::start()
void StatusWriter::start() {
        auto self(shared_from_this());

        modes::Filter filter;
        filter.receive_status = true;
        filter_handle = distributor.add_client(std::bind(&StatusWriter::write, self, std::placeholders::_1), filter);

        reset_timeout();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x2e730
leaq 0x31(%rsp), %rdi
callq 0x10b18
movb $0x1, 0x54(%rsp)
movq 0x20(%rbx), %r15
movq (%rsp), %r12
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x2d05b
movq 0x45f35(%rip), %rax     # 0x72f80
cmpb $0x0, (%rax)
je 0x2d056
incl 0x8(%r14)
jmp 0x2d05b
lock
incl 0x8(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movl $0x20, %edi
callq 0xf620
leaq 0xd5(%rip), %rcx        # 0x2d14e
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %r14, 0x18(%rax)
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x16eb(%rip), %rax      # 0x2e786
movq %rax, 0x18(%rsi)
leaq 0x16fc(%rip), %rax      # 0x2e7a2
movq %rax, 0x10(%rsi)
leaq 0x31(%rsp), %rdx
movq %r15, %rdi
callq 0x10db4
movl %eax, 0x78(%rbx)
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x2d0d3
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x2d6c6
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d0ea
callq 0x1581a
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2d119
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x2d114
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorl %r14d, %r14d
jmp 0x2d124
movq %rax, %rdi
callq 0x10886
movq %rax, %rbx
testq %r14, %r14
je 0x2d136
movq %r14, %rdi
callq 0x1581a
jmp 0x2d136
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2d145
callq 0x1581a
movq %rbx, %rdi
callq 0xfb40
nop
// File: /workspace/github_cpp_makefile_star2_O1/flightaware[P]beast-splitter/status_writer.cc
// Function: splitter::StatusWriter::status_timeout(boost::system::error_code const&)
void StatusWriter::status_timeout(const boost::system::error_code &ec) {
        if (ec == boost::asio::error::operation_aborted)
            return;

        reset_timeout();
        if (input && input->is_connected() && input->receiver() == beast::ReceiverType::RADARCAPE) {
            // we should be getting status messages, but we are not.
            write_status_file("red", "No recent GPS status message received");
        } else {
            // Not connected or it's a regular Beast, no GPS status.
            write_status_file();
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
cmpl $0x7d, (%rsi)
jne 0x2d819
movq 0x8(%rsi), %rax
movabsq $-0x70502de1da3a1f65, %rcx # imm = 0x8FAFD21E25C5E09B
cmpq %rcx, 0x8(%rax)
je 0x2d8f4
movq %rbx, %rdi
callq 0x2d6c6
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x2d890
cmpb $0x1, 0x230(%rax)
jne 0x2d890
cmpl $0x2, 0x50(%rax)
jne 0x2d890
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24808(%rip), %rsi     # 0x52051
leaq 0x24804(%rip), %rdx     # 0x52054
leaq 0x20(%rsp), %rdi
callq 0x1469c
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x247eb(%rip), %rsi     # 0x52055
leaq 0x24809(%rip), %rdx     # 0x5207a
movq %rsp, %rdi
callq 0x1469c
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
movl $0xffffd8f1, %ecx       # imm = 0xFFFFD8F1
callq 0x2d942
jmp 0x2d8c7
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
movl $0xffffd8f1, %ecx       # imm = 0xFFFFD8F1
callq 0x2d942
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2d8dd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf650
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x2d8f4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf650
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2d90a
movq %rax, %rbx
jmp 0x2d923
movq %rax, %rbx
jmp 0x2d93a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2d923
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf650
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x2d93a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf650
movq %rbx, %rdi
callq 0xfb40
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::initialize_system()
void initialize_system()
{
	assert( !s_is_system_initialized );
	s_is_system_initialized = true;

	// UTF8 ワークアラウンド
	//setvbuf( stdout, nullptr, _IOFBF, 1024 );
	setvbuf( stderr, nullptr, _IOFBF, 1024 );

#if NHSP_CONFIG_MEMLEAK_DETECTION
	if ( s_memory_map_ == nullptr )
	{
		s_memory_map_ = reinterpret_cast<list_t*>( zmalloc( sizeof(list_t) ) );
		s_memory_map_->head_ = s_memory_map_->tail_ = nullptr;
	}
#endif
#if NHSP_CONFIG_VALUE_ALLOCATION_CACHE
	for( size_t i=0; i<MAX_VALUE_ALLOCATION_CACHE; ++i )
	{
		s_value_allocation_cache[i] = reinterpret_cast<value_t*>( xmalloc( sizeof(value_t) ) );
	}
	s_value_allocation_cache_idx = 0;
#endif
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x1, 0x14935(%rip)     # 0x17190
je 0x28b2
movb $0x1, 0x1492c(%rip)     # 0x17190
movq 0x14775(%rip), %rax     # 0x16fe0
movq (%rax), %rdi
xorl %ebx, %ebx
movl $0x400, %ecx            # imm = 0x400
xorl %esi, %esi
xorl %edx, %edx
callq 0x2040
leaq 0x1491b(%rip), %r14     # 0x171a0
movl $0x18, %edi
callq 0x21d0
movq %rax, (%rbx,%r14)
addq $0x8, %rbx
cmpq $0x200, %rbx            # imm = 0x200
jne 0x2885
movl $0x0, 0x14af6(%rip)     # 0x173a0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xb007(%rip), %rdi      # 0xd8c0
leaq 0xb019(%rip), %rsi      # 0xd8d9
leaq 0xb029(%rip), %rcx      # 0xd8f0
movl $0x4c4, %edx            # imm = 0x4C4
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::uninitialize_system()
void uninitialize_system()
{
	assert( s_is_system_initialized );
	s_is_system_initialized = false;

#if NHSP_CONFIG_VALUE_ALLOCATION_CACHE
	assert( s_value_allocation_cache_idx == 0 );
	for( size_t i=0; i<MAX_VALUE_ALLOCATION_CACHE; ++i )
	{
		if ( s_value_allocation_cache[i] != nullptr )
		{
			xfree( s_value_allocation_cache[i] );
			s_value_allocation_cache[i] = nullptr;
		}
	}
	s_value_allocation_cache_idx = 0;
#endif
#if NHSP_CONFIG_MEMLEAK_DETECTION
	if ( s_memory_map_ != nullptr )
	{
		printf( "====leaked memories\n" );
		auto node = s_memory_map_->head_;
		while( node != nullptr )
		{
			printf( "[%p]\n", node->value_ );
			node = node->next_;
		}
		printf( "----" );
	}
#endif
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, 0x148af(%rip)     # 0x17190
je 0x2931
movb $0x0, 0x148a6(%rip)     # 0x17190
cmpl $0x0, 0x14aaf(%rip)     # 0x173a0
jne 0x2950
xorl %ebx, %ebx
leaq 0x148a4(%rip), %r14     # 0x171a0
movq (%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x2912
callq 0x21a0
movq $0x0, (%rbx,%r14)
addq $0x8, %rbx
cmpq $0x200, %rbx            # imm = 0x200
jne 0x28fc
movl $0x0, 0x14a77(%rip)     # 0x173a0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xaf89(%rip), %rdi      # 0xd8c1
leaq 0xaf9a(%rip), %rsi      # 0xd8d9
leaq 0xafce(%rip), %rcx      # 0xd914
movl $0x4dd, %edx            # imm = 0x4DD
callq 0x20f0
leaq 0xafe3(%rip), %rdi      # 0xd93a
leaq 0xaf7b(%rip), %rsi      # 0xd8d9
leaq 0xafaf(%rip), %rcx      # 0xd914
movl $0x4e1, %edx            # imm = 0x4E1
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::create_string_buffer(unsigned long, int)
string_buffer_t* create_string_buffer( size_t initial_len, int expand_step )
{
	assert( initial_len > 0 );
	auto* const res = reinterpret_cast<string_buffer_t*>( xmalloc( sizeof( string_buffer_t ) ) );
	initialize_string_buffer( res, initial_len, expand_step );
	return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x29bd
movl %esi, %ebx
movq %rdi, %r14
movl $0x18, %edi
callq 0x21d0
movq %rax, %r15
leaq 0x1(%r14), %rdi
callq 0x21d0
movq %rax, (%r15)
movl %r14d, 0x8(%r15)
movl $0x0, 0xc(%r15)
movl %ebx, 0x10(%r15)
movb $0x0, (%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0xaf98(%rip), %rdi      # 0xd95c
leaq 0xaf0e(%rip), %rsi      # 0xd8d9
leaq 0xaf9a(%rip), %rcx      # 0xd96c
movl $0x52c, %edx            # imm = 0x52C
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::initialize_string_buffer(neteruhsp::string_buffer_t*, unsigned long, int)
void initialize_string_buffer( string_buffer_t* sb, size_t initial_len, int expand_step )
{
	sb->buffer_ = create_string( initial_len );
	sb->buffer_size_ = static_cast<int>( initial_len );
	sb->cursor_ = 0;
	sb->expand_step_ = expand_step;
	sb->buffer_[0] = '\0';
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1(%rsi), %rdi
callq 0x21d0
movq %rax, (%r15)
movl %r14d, 0x8(%r15)
movl $0x0, 0xc(%r15)
movl %ebx, 0x10(%r15)
movb $0x0, (%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::uninitialize_string_buffer(neteruhsp::string_buffer_t*)
void uninitialize_string_buffer( string_buffer_t* sb )
{
	assert( sb != nullptr );

	if ( sb->buffer_ != nullptr )
	{
		xfree( sb->buffer_ );
		sb->buffer_ = nullptr;
	}
	sb->buffer_size_ = 0;
	sb->cursor_ = 0;
	sb->expand_step_ = 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x2a4e
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x2a3d
callq 0x21a0
movq $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
popq %rbx
retq
leaq 0xaf55(%rip), %rdi      # 0xd9aa
leaq 0xae7d(%rip), %rsi      # 0xd8d9
leaq 0xaf55(%rip), %rcx      # 0xd9b8
movl $0x543, %edx            # imm = 0x543
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::string_buffer_append(neteruhsp::string_buffer_t*, char const*, int)
void string_buffer_append( string_buffer_t* sb, const char* s, int len )
{
	if ( len < 0 )
	{
		len = static_cast<int>( strlen( s ) );
	}

	if ( len == 0 )
	{
		return;
	}

	const auto left = sb->buffer_size_ - sb->cursor_;
	const auto required = len + 4;
	if ( left < required )
	{
		const int nexpand = ( required - left );
		const int expand_step = ( sb->expand_step_ <= 0 ? sb->buffer_size_/* x2 */ : sb->expand_step_ );
		const int expand = ( expand_step < nexpand ? nexpand : expand_step );
		const size_t nsize = sb->buffer_size_ + expand;
		sb->buffer_ = reinterpret_cast<char*>( xrealloc( sb->buffer_, static_cast<size_t>( nsize ) ) );
		sb->buffer_size_ = static_cast<int>( nsize );
	}

	memcpy( sb->buffer_ + sb->cursor_, s, len );
	sb->cursor_ += len;
	sb->buffer_[sb->cursor_] = '\0';
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
jns 0x2a8d
movq %r14, %rdi
callq 0x20b0
movq %rax, %r15
testl %r15d, %r15d
je 0x2aec
movl 0x8(%rbx), %eax
movl %eax, %edx
subl 0xc(%rbx), %edx
leal 0x4(%r15), %ecx
subl %edx, %ecx
jle 0x2ac6
movl 0x10(%rbx), %edx
testl %edx, %edx
cmovlel %eax, %edx
cmpl %ecx, %edx
cmovlel %ecx, %edx
addl %eax, %edx
movslq %edx, %r12
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x2280
movq %rax, (%rbx)
movl %r12d, 0x8(%rbx)
movslq 0xc(%rbx), %rdi
addq (%rbx), %rdi
movslq %r15d, %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x2120
movslq 0xc(%rbx), %rax
addq %r15, %rax
movl %eax, 0xc(%rbx)
movq (%rbx), %rcx
movb $0x0, (%rcx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::unlink_list_node(neteruhsp::list_node_t*)
bool unlink_list_node( list_node_t* node )
{
	if ( node->prev_==nullptr && node->next_==nullptr )
	{ 
		return false;
	}
	if ( node->prev_ != nullptr )
	{
		node->prev_->next_ = node->next_;
	}
	if ( node->next_ != nullptr )
	{
		node->next_->prev_ = node->prev_;
	}
	node->prev_ = node->next_ = nullptr;
	return true;
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x2b66
movq 0x8(%rdi), %rcx
movq %rcx, 0x8(%rax)
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x2b5d
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movb $0x1, %al
retq
cmpq $0x0, 0x8(%rdi)
je 0x2b74
testq %rax, %rax
jne 0x2b49
jmp 0x2b51
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::link_next(neteruhsp::list_node_t*, neteruhsp::list_node_t*)
void link_next( list_node_t* node, list_node_t* list )
{
	assert( node->prev_==nullptr && node->next_==nullptr );
	node->prev_ = list;
	node->next_ = list->next_;
	list->next_ = node;
}

// Assembly:
cmpq $0x0, (%rdi)
jne 0x2b94
cmpq $0x0, 0x8(%rdi)
jne 0x2b94
movq %rsi, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
movq %rdi, 0x8(%rsi)
retq
pushq %rax
leaq 0xae5a(%rip), %rdi      # 0xd9f6
leaq 0xad36(%rip), %rsi      # 0xd8d9
leaq 0xae79(%rip), %rcx      # 0xda23
movl $0x57e, %edx            # imm = 0x57E
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::link_prev(neteruhsp::list_node_t*, neteruhsp::list_node_t*)
void link_prev( list_node_t* node, list_node_t* list )
{
	assert( node->prev_==nullptr && node->next_==nullptr );
	node->prev_ = list->prev_;
	node->next_ = list;
	list->prev_ = node;
}

// Assembly:
cmpq $0x0, (%rdi)
jne 0x2bcf
cmpq $0x0, 0x8(%rdi)
jne 0x2bcf
movq (%rsi), %rax
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rdi, (%rsi)
retq
pushq %rax
leaq 0xae1f(%rip), %rdi      # 0xd9f6
leaq 0xacfb(%rip), %rsi      # 0xd8d9
leaq 0xae76(%rip), %rcx      # 0xda5b
movl $0x586, %edx            # imm = 0x586
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::list_prepend(neteruhsp::list_t&, neteruhsp::list_node_t*)
void list_prepend( list_t& list, list_node_t* node )
{
	if ( list.head_ == nullptr )
	{
		assert( list.tail_==nullptr );
		list.head_ = list.tail_ = node;
		return;
	}
	link_prev( node, list.head_ );
	list.head_ = node;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x2c23
movq %rbx, %rdi
callq 0x2bb4
jmp 0x2c2e
cmpq $0x0, 0x8(%r14)
jne 0x2c39
movq %rbx, 0x8(%r14)
movq %rbx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xae53(%rip), %rdi      # 0xda93
leaq 0xac92(%rip), %rsi      # 0xd8d9
leaq 0xae59(%rip), %rcx      # 0xdaa7
movl $0x5ae, %edx            # imm = 0x5AE
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::list_append(neteruhsp::list_t&, neteruhsp::list_node_t*)
void list_append( list_t& list, list_node_t* node )
{
	if ( list.tail_ == nullptr )
	{
		assert( list.head_==nullptr );
		list.head_ = list.tail_ = node;
		return;
	}
	link_next( node, list.tail_ );
	list.tail_ = node;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x8(%rdi), %r14
movq 0x8(%rdi), %rsi
testq %rsi, %rsi
je 0x2c79
movq %rbx, %rdi
callq 0x2b77
movq %r14, %rdi
jmp 0x2c82
cmpq $0x0, (%rdi)
jne 0x2c8d
movq %rbx, (%r14)
movq %rbx, (%rdi)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xae49(%rip), %rdi      # 0xdadd
leaq 0xac3e(%rip), %rsi      # 0xd8d9
leaq 0xae4f(%rip), %rcx      # 0xdaf1
movl $0x5ba, %edx            # imm = 0x5BA
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::list_erase(neteruhsp::list_t&, neteruhsp::list_node_t*)
void list_erase( list_t& list, list_node_t* node )
{
	if ( list.head_ == node )
	{
		list.head_ = node->next_;
	}
	if ( list.tail_ == node )
	{
		list.tail_ = node->prev_;
	}
	unlink_list_node( node );
}

// Assembly:
cmpq %rsi, (%rdi)
jne 0x2cb8
movq 0x8(%rsi), %rax
movq %rax, (%rdi)
cmpq %rsi, 0x8(%rdi)
jne 0x2cc5
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
testq %rax, %rax
je 0x2cd7
movq %rcx, 0x8(%rax)
jmp 0x2cdc
testq %rcx, %rcx
je 0x2cee
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x2ce8
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::list_free_all(neteruhsp::list_t&)
void list_free_all( list_t& list )
{
	auto* node = list.head_;
	while( node != nullptr )
	{
		auto next = node->next_;
		list_erase( list, node );
		xfree( node );
		node = next;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x2d35
movq %rdi, %rbx
movq 0x8(%r14), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2cac
movq %r14, %rdi
callq 0x21a0
movq %r15, %r14
testq %r15, %r15
jne 0x2d16
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::(anonymous namespace)::string_equal_igcase(char const*, char const*, int)
bool string_equal_igcase( const char* sl, const char* r, int len =-1 )
{
	const auto tol =[]( char c ) -> int
	{
		if ( c>='A' && c<='Z' )
		{ return c -'A' +'a'; }
		return c;
	};

	int iter =0;
	for( ; ; )
	{
		if ( sl[0]=='\0' || r[0]=='\0' )
		{
			if ( len < 0 )
			{
				if ( sl[0] != r[0] )
				{ return false; }
			}
			else
			{
				if ( sl[0]!='\0' || iter!=len )
				{ return false; }
			}
			break;
		}
		if ( tol( sl[0] ) != tol( r[0] ) )
		{ return false; }
		++sl, ++r; ++iter;
	}
	return true;
}

// Assembly:
movb (%rdi), %cl
xorl %eax, %eax
testb %cl, %cl
sete %r8b
je 0x2e0c
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x2e0c
movl $0x1, %r10d
movq %r10, %rax
movsbl %cl, %ecx
leal -0x41(%rcx), %r8d
movl %ecx, %r10d
orl $0x20, %r10d
cmpb $0x1a, %r8b
cmovael %ecx, %r10d
movsbl %r9b, %ecx
leal -0x41(%rcx), %r8d
movl %ecx, %r9d
orl $0x20, %r9d
cmpb $0x1a, %r8b
cmovael %ecx, %r9d
cmpl %r9d, %r10d
jne 0x2e21
movb (%rdi,%rax), %cl
testb %cl, %cl
sete %r8b
je 0x2e09
movb (%rsi,%rax), %r9b
leaq 0x1(%rax), %r10
testb %r9b, %r9b
jne 0x2dbc
addq %rax, %rsi
testl %edx, %edx
js 0x2e1d
cmpl %edx, %eax
sete %al
testb %al, %r8b
je 0x2e21
movb $0x1, %al
retq
cmpb (%rsi), %cl
je 0x2e1a
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::(anonymous namespace)::raise_error(char const*, ...)
void raise_error( const char* message, ... )
{
	va_list args;
	va_start( args, message );
	vfprintf( stderr, message, args );
	va_end( args );
	fflush( stderr );
	exit( -1 );
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x3507
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rdx)
movq 0x13ab2(%rip), %rbx     # 0x16fe0
movq (%rbx), %rdi
movq %r10, %rsi
callq 0x21e0
movq (%rbx), %rdi
callq 0x2180
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::create_token_string(char const*, unsigned long)
char* create_token_string( const char* str, size_t len )
{
	char* res = create_string( len );

	size_t w =0;
	for( size_t i=0; i<len; ++i, ++w )
	{
		if ( str[i]=='\\' && (i+1)<len )
		{
			switch( str[i+1] )
			{
				case 't':	res[w] = '\t'; break;
				case 'n':	res[w] = '\n'; break;
				case '\"':	res[w] = '\"'; break;
				default:
					raise_error( "読み取れないエスケープシーケンス@@ %c%c", str[i], str[i+1] );
					break;
			}
			++i;
		}
		else
		{
			res[w] = str[i];
		}
	}
	res[w] = '\0';
	return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %rdi
callq 0x21d0
testq %rbx, %rbx
je 0x35ad
xorl %edx, %edx
xorl %ecx, %ecx
movb (%r14,%rdx), %sil
cmpb $0x5c, %sil
jne 0x359c
leaq 0x1(%rdx), %rdi
cmpq %rbx, %rdi
jae 0x359c
movzbl (%r14,%rdi), %edx
cmpl $0x22, %edx
je 0x3596
movb $0x9, %sil
cmpl $0x74, %edx
je 0x3599
cmpl $0x6e, %edx
jne 0x35bb
movb $0xa, %sil
jmp 0x3599
movb $0x22, %sil
movq %rdi, %rdx
movb %sil, (%rax,%rcx)
incq %rdx
incq %rcx
cmpq %rbx, %rdx
jb 0x3567
jmp 0x35af
xorl %ecx, %ecx
movb $0x0, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movsbl %dl, %edx
leaq 0xa66e(%rip), %rdi      # 0xdc33
movl $0x5c, %esi
xorl %eax, %eax
callq 0x34a8
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::destroy_token(neteruhsp::token_t*)
void destroy_token( token_t* t )
{
	if ( t->content_ != nullptr )
	{
		destroy_string( t->content_ );
		t->content_ = nullptr;
	}
	xfree( t );
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x35eb
callq 0x21a0
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::uninitialize_parse_context(neteruhsp::parse_context_t*)
void uninitialize_parse_context( parse_context_t* c )
{
	if ( c->token_list_ != nullptr )
	{
		list_node_t* iter =c->token_list_->head_;
		while( iter != nullptr )
		{
			const auto next =iter->next_;
			token_t* token =reinterpret_cast<token_t*>( iter->value_ );
			destroy_token( token );
			destroy_list_node( iter );
			iter = next;
		}
		destroy_list( c->token_list_ );
	}

	c->token_list_ = nullptr;
	c->token_current_ = nullptr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0x3671
movq (%rax), %r14
testq %r14, %r14
je 0x3669
movq 0x8(%r14), %r15
movq 0x10(%r14), %rdi
callq 0x35d1
movq %r14, %rdi
callq 0x2b13
movq %r15, %r14
testq %r15, %r15
jne 0x364c
movq (%rbx), %rdi
callq 0x21a0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::read_token(neteruhsp::parse_context_t&)
token_t* read_token( parse_context_t& c )
{
	const auto read = [&c]()
	{
		auto list = create_list_node();
		list->value_ = get_token( *c.tokenize_context_ );
		return list;
	};

	if ( c.token_current_ == nullptr )
	{
		const auto node =read();
		list_append( *c.token_list_, node );
		c.token_current_ = node;
	}
	assert( c.token_current_ != nullptr );
	const auto res = c.token_current_;
	c.token_current_ = c.token_current_->next_;
	return reinterpret_cast<token_t*>( res->value_ );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
jne 0x36c2
movl $0x18, %edi
callq 0x21d0
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0x10(%rbx), %rdi
callq 0x2ea7
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x2c58
movq %r14, 0x8(%rbx)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x36df
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq 0x10(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xa585(%rip), %rdi      # 0xdc6b
leaq 0xa1ec(%rip), %rsi      # 0xd8d9
leaq 0xa593(%rip), %rcx      # 0xdc87
movl $0x798, %edx            # imm = 0x798
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::unread_token(neteruhsp::parse_context_t&, unsigned long)
void unread_token( parse_context_t& c, size_t num )
{
	if ( num <= 0 )
	{
		return;
	}

	if ( c.token_current_ == nullptr )
	{
		c.token_current_ = c.token_list_->tail_;
		--num;
	}

	while( num-- > 0 )
	{
		assert( c.token_current_ != nullptr );
		c.token_current_ = c.token_current_->prev_;
	}
}

// Assembly:
pushq %rax
testq %rsi, %rsi
je 0x3733
cmpq $0x0, 0x8(%rdi)
jne 0x3719
movq (%rdi), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rdi)
decq %rsi
testq %rsi, %rsi
je 0x3733
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x3735
movq (%rax), %rax
movq %rax, 0x8(%rdi)
decq %rsi
jne 0x3722
popq %rax
retq
leaq 0xa52f(%rip), %rdi      # 0xdc6b
leaq 0xa196(%rip), %rsi      # 0xd8d9
leaq 0xa56f(%rip), %rcx      # 0xdcb9
movl $0x7ad, %edx            # imm = 0x7AD
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::prev_token(neteruhsp::parse_context_t&, unsigned long)
token_t* prev_token( parse_context_t& c, size_t num )
{
	auto current = c.token_current_;
	if ( current == nullptr )
	{
		current = c.token_list_->tail_;
	}
	while( num-- > 0 )
	{
		assert( current != nullptr );
		current = current->prev_;
	}
	return reinterpret_cast<token_t*>( current->value_ );
}

// Assembly:
pushq %rax
movq 0x8(%rdi), %rax
testq %rax, %rax
jne 0x3765
movq (%rdi), %rax
movq 0x8(%rax), %rax
testq %rsi, %rsi
je 0x3777
testq %rax, %rax
je 0x377d
movq (%rax), %rax
decq %rsi
jne 0x376a
movq 0x10(%rax), %rax
popq %rcx
retq
leaq 0xa56d(%rip), %rdi      # 0xdcf1
leaq 0xa14e(%rip), %rsi      # 0xd8d9
leaq 0xa572(%rip), %rcx      # 0xdd04
movl $0x7bb, %edx            # imm = 0x7BB
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::create_macro()
macro_t* create_macro()
{
	auto* const res = reinterpret_cast<macro_t*>( xmalloc( sizeof(macro_t) ) );
	res->name_ = nullptr;
	res->is_ctype_ = false;
	res->param_num_ = 0;
	for ( auto& it : res->params_ )
	{
		it.default_param_ = nullptr;
	}
	res->replacing_ = nullptr;
	return res;
}

// Assembly:
pushq %rax
movl $0xa0, %edi
callq 0x21d0
xorl %ecx, %ecx
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
movl $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x70(%rax)
movups %xmm0, 0x80(%rax)
movups %xmm0, 0x90(%rax)
movq %rcx, 0x10(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::macro_free_content(neteruhsp::macro_t*)
void macro_free_content( macro_t* macro )
{
	if ( macro->name_ != nullptr )
	{
		destroy_string( macro->name_ );
		macro->name_ = nullptr;
	}

	if ( macro->replacing_ != nullptr )
	{
		destroy_string( macro->replacing_ );
		macro->replacing_ = nullptr;
	}

	for ( auto& it : macro->params_ )
	{
		if ( it.default_param_ != nullptr )
		{
			destroy_string( it.default_param_ );
			it.default_param_ = nullptr;
		}
	}
	macro->param_num_ = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3899
callq 0x21a0
movq $0x0, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x38af
callq 0x21a0
movq $0x0, 0x10(%rbx)
xorl %r14d, %r14d
movq 0x20(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x38ca
callq 0x21a0
movq $0x0, 0x20(%rbx,%r14)
addq $0x8, %r14
cmpq $0x80, %r14
jne 0x38b2
movl $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::destroy_prepro_context(neteruhsp::prepro_context_t*)
void destroy_prepro_context( prepro_context_t* pctx )
{
	assert( pctx != nullptr );
	{
		auto* node = pctx->macro_list_->head_;
		while( node != nullptr )
		{
			auto* macro = reinterpret_cast<macro_t*>( node->value_ );
			destroy_macro( macro );
			node = node->next_;;
		}
	}
	list_free_all( *pctx->macro_list_ );
	destroy_list( pctx->macro_list_ );

	if ( pctx->out_buffer_ != nullptr )
	{
		destroy_string_buffer( pctx->out_buffer_ );
		pctx->out_buffer_ = nullptr;
	}
	xfree( pctx );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x39a1
movq %rdi, %rbx
movq (%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x3963
movq 0x10(%r15), %r14
movq %r14, %rdi
callq 0x387e
movq %r14, %rdi
callq 0x21a0
movq 0x8(%r15), %r15
jmp 0x3944
movq (%rbx), %rdi
callq 0x2d06
movq (%rbx), %rdi
callq 0x21a0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x3994
movq %r14, %rdi
callq 0x2a20
movq %r14, %rdi
callq 0x21a0
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
leaq 0xa3b4(%rip), %rdi      # 0xdd5c
leaq 0x9f2a(%rip), %rsi      # 0xd8d9
leaq 0xa3b6(%rip), %rcx      # 0xdd6c
movl $0x82a, %edx            # imm = 0x82A
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::prepro_register_default_macros(neteruhsp::prepro_context_t*)
void prepro_register_default_macros( prepro_context_t* pctx )
{
	{
		auto* const nm = create_macro();
		nm->name_ = create_string( "M_PI" );
		nm->replacing_ = create_string( "3.141592653589793238" );
		prepro_register_macro( pctx, nm );
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xa0, %edi
callq 0x21d0
movq %rax, %r14
xorl %eax, %eax
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movl $0x0, 0x18(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x30(%r14)
movups %xmm0, 0x40(%r14)
movups %xmm0, 0x50(%r14)
movups %xmm0, 0x60(%r14)
movups %xmm0, 0x70(%r14)
movups %xmm0, 0x80(%r14)
movups %xmm0, 0x90(%r14)
movq %rax, 0x10(%r14)
leaq 0xa385(%rip), %rdi      # 0xdda7
callq 0x3a4c
movq %rax, (%r14)
leaq 0xa37b(%rip), %rdi      # 0xddac
callq 0x3a4c
movq %rax, 0x10(%r14)
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3a84
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::prepro_register_macro(neteruhsp::prepro_context_t*, neteruhsp::macro_t*)
bool prepro_register_macro( prepro_context_t* pctx, macro_t* macro )
{
	const auto* d = prepro_find_macro( pctx, macro->name_ );

	if ( d != nullptr )
	{
		raise_error( "プリプロセス：マクロが再定義されました（%s）", macro->name_ );
		return false;
	}

	auto* const lnode = create_list_node();
	lnode->value_ = macro;

	list_append( *pctx->macro_list_, lnode );

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
movq %r15, %rsi
callq 0x50b9
testq %rax, %rax
jne 0x3ad1
sete %bpl
movl $0x18, %edi
callq 0x21d0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r14, 0x10(%rax)
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x2c58
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb270(%rip), %rdi      # 0xed48
movq %r15, %rsi
xorl %eax, %eax
callq 0x34a8
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::(anonymous namespace)::create_string(char const*, unsigned long)
char* create_string( const char* s, size_t len )
{
	char* res = create_string( len );
	strncpy( res, s, len );
	res[len] = '\0';
	return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %rdi
callq 0x21d0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x20c0
movb $0x0, (%r15,%rbx)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::prepro_erase_macro(neteruhsp::prepro_context_t*, char const*)
bool prepro_erase_macro( prepro_context_t* pctx, const char* name )
{
	list_node_t* found_node = nullptr;
	auto* node = pctx->macro_list_->head_;
	while( node != nullptr )
	{
		auto* const macro = reinterpret_cast<macro_t*>( node->value_ );
		if ( string_equal_igcase( macro->name_, name ) )
		{
			found_node = node;
			break;
		}
		node = node->next_;
	}

	if ( found_node == nullptr )
	{ return false; }

	list_erase( *pctx->macro_list_, found_node );
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq (%rdi), %r14
movq (%r14), %r12
xorl %ebx, %ebx
testq %r12, %r12
je 0x4f2a
movq 0x10(%r12), %rax
movq (%rax), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2da2
testb %al, %al
je 0x4f21
movq %r12, %rbx
jmp 0x4f26
movq 0x8(%r12), %r12
testb %al, %al
je 0x4efe
testq %rbx, %rbx
je 0x4f3a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2cac
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::evaluate_ast_immediate(neteruhsp::ast_node_t*)
value_t* evaluate_ast_immediate( ast_node_t* ast )
{
	value_stack_t stack{};
	initialize_value_stack( &stack );

	const bool is_succeeded = evaluate_ast_node( ast, &stack );

	// 戻り値
	value_t* res = nullptr;
	if ( is_succeeded && stack.top_ == 1 )
	{
		res = create_value( *stack_peek( &stack, 0 ) );
		value_isolate( *res );
	}
	uninitialize_value_stack( &stack );
	return res;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movl $0x80, %edi
callq 0x21d0
movq %rax, (%r14)
movabsq $0x1000000000, %rax     # imm = 0x1000000000
movq %rax, 0x8(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9f10
xorl %ebx, %ebx
testb %al, %al
je 0x4faf
cmpl $0x1, 0x8(%rsp)
jne 0x4faf
movq (%rsp), %rax
movq (%rax), %rdi
callq 0x7217
movq %rax, %rbx
movq %rax, %rdi
callq 0x5109
movq %rsp, %r14
movslq 0x8(%r14), %rsi
movq %r14, %rdi
callq 0x7e30
movq (%r14), %rdi
callq 0x21a0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::value_calc_boolean(neteruhsp::value_t const&)
bool value_calc_boolean( const value_t& r )
{
	switch( value_get_primitive_tag( r ) )
	{
		case VALUE_INT:			return value_calc_int(r) != 0;
		case VALUE_DOUBLE:		return value_calc_double(r) != 0.0;
		case VALUE_STRING:		return value_calc_int(r) != 0;
		default: assert( false ); break;
	}
	return false;
}

// Assembly:
pushq %rax
movl (%rdi), %eax
cmpl $0x4, %eax
jne 0x4fe0
movq 0x8(%rdi), %rax
movl 0x8(%rax), %eax
cmpl $0x3, %eax
je 0x4fef
cmpl $0x2, %eax
je 0x4ffb
cmpl $0x1, %eax
jne 0x5013
callq 0x51df
testl %eax, %eax
setne %al
jmp 0x5011
callq 0x73f0
xorpd %xmm1, %xmm1
cmpneqsd %xmm0, %xmm1
movq %xmm1, %rax
andl $0x1, %eax
popq %rcx
retq
leaq 0x97dd(%rip), %rdi      # 0xe7f7
leaq 0x88b8(%rip), %rsi      # 0xd8d9
leaq 0xaecd(%rip), %rcx      # 0xfef5
movl $0x118c, %edx           # imm = 0x118C
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::destroy_ast_node(neteruhsp::ast_node_t*)
void destroy_ast_node( ast_node_t* node )
{
	assert( node != nullptr );
	if ( node->left_ != nullptr )
	{ destroy_ast_node( node->left_ ); }
	if ( node->right_ != nullptr )
	{ destroy_ast_node( node->right_ ); }
	xfree( node );
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x5060
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x5049
callq 0x5032
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x5057
callq 0x5032
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
leaq 0xbf7f(%rip), %rdi      # 0x10fe6
leaq 0x886b(%rip), %rsi      # 0xd8d9
leaq 0x9d15(%rip), %rcx      # 0xed8a
movl $0xbd6, %edx            # imm = 0xBD6
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::prepro_find_macro(neteruhsp::prepro_context_t*, char const*)
macro_t* prepro_find_macro( prepro_context_t* pctx, const char* name )
{
	auto* node = pctx->macro_list_->head_;
	while( node != nullptr )
	{
		auto* const macro = reinterpret_cast<macro_t*>( node->value_ );
		if ( string_equal_igcase( macro->name_, name ) )
		{
			return macro;
		}
		node = node->next_;
	}

	return nullptr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x50f7
movq 0x10(%r15), %r12
movq (%r12), %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2da2
testb %al, %al
je 0x50ed
movq %r12, %r14
jmp 0x50f1
movq 0x8(%r15), %r15
testb %al, %al
je 0x50ca
jmp 0x50fa
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::value_isolate(neteruhsp::value_t&)
void value_isolate( value_t& v )
{
	if ( v.type_ != VALUE_VARIABLE )
	{ return; }

	switch( v.variable_->type_ )
	{
		case VALUE_INT:
			value_set( &v, variable_calc_int( *v.variable_, v.index_ ) );
			break;
		case VALUE_DOUBLE:
			value_set( &v, variable_calc_double( *v.variable_, v.index_ ) );
			break;
		case VALUE_STRING:
			value_move( &v, variable_calc_string( *v.variable_, v.index_ ) );
			break;
		default:
			assert( false );
			break;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpl $0x4, (%rdi)
jne 0x51a8
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movl 0x8(%rdi), %eax
cmpl $0x3, %eax
je 0x5185
cmpl $0x2, %eax
je 0x5156
cmpl $0x1, %eax
jne 0x51b1
movl 0x10(%rbx), %esi
callq 0x6fb3
movl %eax, %ebp
cmpl $0x3, (%rbx)
jne 0x514b
movq 0x8(%rbx), %rdi
callq 0x21a0
movl $0x1, (%rbx)
movl %ebp, 0x8(%rbx)
jmp 0x51a8
movl 0x10(%rbx), %esi
callq 0x7000
cmpl $0x3, (%rbx)
jne 0x5178
movq 0x8(%rbx), %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x21a0
movsd 0x8(%rsp), %xmm0
movl $0x2, (%rbx)
movsd %xmm0, 0x8(%rbx)
jmp 0x51a8
movl 0x10(%rbx), %esi
callq 0x705c
movq %rax, %r14
cmpl $0x3, (%rbx)
jne 0x519e
movq 0x8(%rbx), %rdi
callq 0x21a0
movl $0x3, (%rbx)
movq %r14, 0x8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x963f(%rip), %rdi      # 0xe7f7
leaq 0x871a(%rip), %rsi      # 0xd8d9
leaq 0xae3e(%rip), %rcx      # 0x10004
movl $0x11ea, %edx           # imm = 0x11EA
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::value_calc_int(neteruhsp::value_t const&)
int value_calc_int( const value_t& r )
{
	switch( r.type_ )
	{
		case VALUE_INT:			return r.ivalue_;
		case VALUE_DOUBLE:		return static_cast<int>( r.dvalue_ );
		case VALUE_STRING:		return atoi( r.svalue_ );
		case VALUE_VARIABLE:	return variable_calc_int( *r.variable_, r.index_ ); break;
		default: assert( false ); break;
	}
	return 0;
}

// Assembly:
movl (%rdi), %eax
decl %eax
cmpl $0x3, %eax
ja 0x521a
leaq 0x81f1(%rip), %rcx      # 0xd3e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x8(%rdi), %eax
retq
movq 0x8(%rdi), %rdi
jmp 0x2250
movq 0x8(%rdi), %rax
movl 0x10(%rdi), %esi
movq %rax, %rdi
jmp 0x6fb3
cvttsd2si 0x8(%rdi), %eax
retq
pushq %rax
leaq 0x95d5(%rip), %rdi      # 0xe7f7
leaq 0x86b0(%rip), %rsi      # 0xd8d9
leaq 0xacf9(%rip), %rcx      # 0xff29
movl $0x1199, %edx           # imm = 0x1199
callq 0x20f0
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::(anonymous namespace)::create_string_from(int)
char* create_string_from( int v )
{
	const auto len = snprintf( nullptr, 0, "%d", v );
	auto res = create_string( len );
	sprintf( res, "%d", v );
	return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0xc9f3(%rip), %r14      # 0x11c3b
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2270
movslq %eax, %rdi
incq %rdi
callq 0x21d0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x2080
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::create_ast_node(neteruhsp::node_tag, neteruhsp::ast_node_t*, neteruhsp::ast_node_t*)
ast_node_t* create_ast_node( node_tag tag, ast_node_t* left, ast_node_t* right )
{
	auto res = reinterpret_cast<ast_node_t*>( xmalloc( sizeof(ast_node_t) ) );
	res->tag_ = tag;
	res->token_ = nullptr;
	res->left_ = left;
	res->right_ = right;
	res->flag_ = 0;
	return res;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movl $0x28, %edi
callq 0x21d0
movl %ebp, (%rax)
movq $0x0, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
movl $0x0, 0x20(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::create_ast_node(neteruhsp::node_tag, neteruhsp::token_t*, neteruhsp::ast_node_t*)
ast_node_t* create_ast_node( node_tag tag, token_t* token, ast_node_t* left )
{
	auto res = reinterpret_cast<ast_node_t*>( xmalloc( sizeof(ast_node_t) ) );
	res->tag_ = tag;
	res->token_ = token;
	res->left_ = left;
	res->right_ = nullptr;
	res->flag_ = 0;
	return res;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movl $0x28, %edi
callq 0x21d0
movl %ebp, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq $0x0, 0x18(%rax)
movl $0x0, 0x20(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::parse_script(neteruhsp::parse_context_t&)
list_t* parse_script( parse_context_t& c )
{
	auto res = create_list();

	for( ; ; )
	{
		auto statement = parse_statement( c );
		if ( statement == nullptr )
		{ break; }

		auto node = create_list_node();
		node->value_ = statement;
		list_append( *res, node );
	}

	{
		const auto token = read_token( c );
		if ( token->tag_ != TOKEN_EOF )
		{
			raise_error( "スクリプトを最後まで正しくパースできませんでした@@ %d行目", token->appear_line_ );
		}
	}

	return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x10, %edi
callq 0x21d0
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r14, %rdi
callq 0x5376
testq %rax, %rax
je 0x534f
movq %rax, %r15
movl $0x18, %edi
callq 0x21d0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r15, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c58
movq %r14, %rdi
callq 0x5376
movq %rax, %r15
testq %rax, %rax
jne 0x5320
movq %r14, %rdi
callq 0x367d
cmpl $0x0, (%rax)
jne 0x5365
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movl 0x18(%rax), %esi
leaq 0x9a4a(%rip), %rdi      # 0xedb9
xorl %eax, %eax
callq 0x34a8
// File: /workspace/github_cpp_makefile_star2_O1/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::parse_statement(neteruhsp::parse_context_t&)
ast_node_t* parse_statement( parse_context_t& c )
{
	// 何もない？
	{
		const auto token = read_token( c );
		if ( token->tag_ == TOKEN_EOF )
		{ return nullptr; }
		if ( is_eos_like_token( token->tag_ ) )
		{ return create_ast_node( NODE_EMPTY ); }
		unread_token( c );
	}

	ast_node_t* statement = nullptr;

	// ラベルを試す
	if ( statement == nullptr )
	{
		statement = parse_label_safe( c );
	}

	// 制御構文を試す
	if ( statement == nullptr )
	{
		statement = parse_control_safe( c );
	}

	// コマンドを試す
	if ( statement == nullptr )
	{
		statement = parse_command_safe( c );
	}

	// それ以外は全て代入
	if ( statement == nullptr )
	{
		statement = parse_assign_safe( c );
	}

	// ここまで来て何もないなら、パース不能
	if ( statement == nullptr )
	{
		const auto token = read_token( c );
		raise_error( "ステートメントが解析不能です@@ %d行目", token->appear_line_ );
	}

	// 最後の改行チェック
	{
		const auto token = read_token( c );
		if ( !is_eos_like_token( token->tag_ ) )
		{
			raise_error( "ステートメントをすべて正しく解析できませんでした@@ %d行目", token->appear_line_ );
		}
	}

	return statement;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x367d
movl (%rax), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0x5395
testl %eax, %eax
je 0x53b7
cmpl $0x5, %eax
jne 0x53be
movl $0x28, %edi
callq 0x21d0
movq %rax, %r14
movl $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x14(%rax)
xorl %eax, %eax
jmp 0x53cd
xorl %eax, %eax
xorl %r14d, %r14d
jmp 0x53cd
movl $0x1, %esi
movq %rbx, %rdi
callq 0x36fe
movb $0x1, %al
testb %al, %al
je 0x5425
movq %rbx, %rdi
callq 0x5482
movq %rax, %r14
testq %rax, %rax
jne 0x53ec
movq %rbx, %rdi
callq 0x54e5
movq %rax, %r14
testq %r14, %r14
jne 0x53fc
movq %rbx, %rdi
callq 0x5c05
movq %rax, %r14
testq %r14, %r14
jne 0x540c
movq %rbx, %rdi
callq 0x5cbb
movq %rax, %r14
movq %rbx, %rdi
callq 0x367d
testq %r14, %r14
je 0x5430
movl (%rax), %ecx
cmpl $0x3, %ecx
jb 0x5425
cmpl $0x5, %ecx
jne 0x5441
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x18(%rax), %esi
leaq 0x99d3(%rip), %rdi      # 0xee0d
xorl %eax, %eax
callq 0x34a8
movl 0x18(%rax), %esi
leaq 0x99f8(%rip), %rdi      # 0xee43
jmp 0x543a