LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 0x11016
testb %al, %al
je 0x25593
leaq 0x38(%r14), %rbx
movq 0x40(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0x2559a
movq %r14, %rdi
callq 0x110ae
testl %eax, %eax
js 0x2559a
movl %eax, %r15d
leaq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x25902
movl %r15d, %ecx
notb %cl
andb $0x7, %cl
pushq $0x1
popq %rax
shll %cl, %eax
shrl $0x3, %r15d
movq 0x38(%r14), %rcx
xorb %al, (%rcx,%r15)
jmp 0x2559a
addq $0x18, %r14
movq %r14, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x27f58
leaq 0x51(%rsp), %rdi
callq 0x108e4
movb $0x1, 0x74(%rsp)
movq 0x20(%rbx), %r14
leaq 0x9b(%rip), %rax        # 0x26fbc
leaq 0x20(%rsp), %rdi
movq %rax, -0x10(%rdi)
andq $0x0, -0x8(%rdi)
movq %rsp, %rsi
callq 0x27f7e
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x27974
leaq 0x30(%rsp), %rsi
leaq 0x51(%rsp), %rdx
movq %r14, %rdi
callq 0x10b30
movl %eax, 0x78(%rbx)
leaq 0x30(%rsp), %rdi
callq 0x11244
leaq 0x28(%rsp), %rdi
callq 0x14e02
movq %rbx, %rdi
callq 0x27392
leaq 0x8(%rsp), %rdi
callq 0x14e02
addq $0x78, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x11244
jmp 0x26f9b
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x14e02
jmp 0x26faa
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14e02
movq %rbx, %rdi
callq 0xfba0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x7d
popq %rdi
callq 0x15246
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r14, %rdi
callq 0x1a65d
testb %al, %al
jne 0x2752b
movq %rbx, %rdi
callq 0x27392
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x274de
cmpb $0x1, 0x230(%rax)
jne 0x274de
cmpl $0x2, 0x50(%rax)
jne 0x274de
leaq 0x1dca1(%rip), %rsi     # 0x45141
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x13c2e
leaq 0x1dc8f(%rip), %rsi     # 0x45145
leaq 0x28(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x13c2e
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movl $0xffffd8f1, %ecx       # imm = 0xFFFFD8F1
callq 0x2755e
jmp 0x27517
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movl $0xffffd8f1, %ecx       # imm = 0xFFFFD8F1
callq 0x2755e
leaq 0x28(%rsp), %rdi
callq 0xfd68
leaq 0x8(%rsp), %rdi
callq 0xfd68
addq $0x48, %rsp
popq %rbx
popq %r14
retq
jmp 0x2753f
movq %rax, %rbx
jmp 0x2754c
movq %rax, %rbx
jmp 0x27556
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xfd68
leaq 0x8(%rsp), %rdi
callq 0xfd68
movq %rbx, %rdi
callq 0xfba0
// File: /workspace/github_cpp_makefile_star2_O2/flightaware[P]beast-splitter/splitter_main.cc
// Function: beast::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, beast::Settings*, long)
void validate(boost::any &v, const std::vector<std::string> &values, beast::Settings *target_type, long int) {
        po::validators::check_first_occurrence(v);
        const std::string &s = po::validators::get_single_string(values);

        static const boost::regex r("[cdefghijbrvCDEFGHIJBRV]*");
        if (boost::regex_match(s, r)) {
            v = boost::any(beast::Settings(s));
        } else {
            throw po::validation_error(po::validation_error::invalid_option_value);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0xfae0
movq %r14, %rdi
xorl %esi, %esi
callq 0x29e76
movq %rax, %r14
movb 0x4511a(%rip), %al      # 0x6dca0
testb %al, %al
je 0x28bfb
leaq 0x450ff(%rip), %rsi     # 0x6dc90
movq %r14, %rdi
xorl %edx, %edx
callq 0x2a27a
testb %al, %al
je 0x28c4f
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1176e
pushq $0x38
popq %rdi
callq 0xf620
leaq 0x43376(%rip), %rcx     # 0x6bf38
movq %rcx, (%rax)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm0, 0x8(%rax)
movups %xmm1, 0x18(%rax)
movups %xmm2, 0x28(%rax)
movq (%rbx), %rdi
movq %rax, (%rbx)
testq %rdi, %rdi
je 0x28bf0
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4509e(%rip), %rdi     # 0x6dca0
callq 0xfc10
testl %eax, %eax
je 0x28b8a
leaq 0x4507a(%rip), %rdi     # 0x6dc90
leaq 0x1ccfc(%rip), %rsi     # 0x45919
xorl %edx, %edx
callq 0x2a004
leaq 0x140b(%rip), %rdi      # 0x2a036
leaq 0x4505e(%rip), %rsi     # 0x6dc90
leaq 0x44a7f(%rip), %rdx     # 0x6d6b8
callq 0xf580
leaq 0x4505b(%rip), %rdi     # 0x6dca0
callq 0xf440
jmp 0x28b8a
movl $0xc0, %edi
callq 0xf320
movq %rax, %rbx
leaq 0x1c6c6(%rip), %rsi     # 0x45329
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x13c2e
leaq 0x1c6b0(%rip), %rsi     # 0x45329
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x13c2e
movb $0x1, %bpl
pushq $0x21
popq %rsi
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x2a142
xorl %ebp, %ebp
leaq 0x42514(%rip), %rsi     # 0x6b1c0
leaq 0x3c95(%rip), %rdx      # 0x2c948
movq %rbx, %rdi
callq 0xfb50
movq %rax, %r14
leaq 0x44fdb(%rip), %rdi     # 0x6dca0
callq 0xf430
jmp 0x28cfd
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xfd68
jmp 0x28ce1
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0xfd68
testb %bpl, %bpl
jne 0x28cf5
jmp 0x28cfd
movq %rax, %r14
movq %rbx, %rdi
callq 0xf4c0
movq %r14, %rdi
callq 0xfba0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
cmpb $0x1, 0x12a34(%rip)     # 0x15190
je 0x27b2
movb $0x1, 0x12a2b(%rip)     # 0x15190
movq 0x12874(%rip), %rax     # 0x14fe0
movq (%rax), %rdi
xorl %r14d, %r14d
movl $0x400, %ecx            # imm = 0x400
xorl %esi, %esi
xorl %edx, %edx
callq 0x2040
pushq $0x18
popq %rbx
leaq 0x12a16(%rip), %r15     # 0x151a0
cmpq $0x200, %r14            # imm = 0x200
je 0x27a5
movq %rbx, %rdi
callq 0x21d0
movq %rax, (%r14,%r15)
addq $0x8, %r14
jmp 0x278a
andl $0x0, 0x12bf4(%rip)     # 0x153a0
popq %rbx
popq %r14
popq %r15
retq
leaq 0x90c7(%rip), %rdi      # 0xb880
leaq 0x90d9(%rip), %rsi      # 0xb899
leaq 0x90e9(%rip), %rcx      # 0xb8b0
movl $0x4c4, %edx            # imm = 0x4C4
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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, 0x129af(%rip)     # 0x15190
je 0x282d
movb $0x0, 0x129a6(%rip)     # 0x15190
cmpl $0x0, 0x12baf(%rip)     # 0x153a0
jne 0x284c
xorl %ebx, %ebx
leaq 0x129a4(%rip), %r14     # 0x151a0
cmpq $0x200, %rbx            # imm = 0x200
je 0x281e
movq (%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x2818
callq 0x21a0
andq $0x0, (%rbx,%r14)
addq $0x8, %rbx
jmp 0x27fc
andl $0x0, 0x12b7b(%rip)     # 0x153a0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x904d(%rip), %rdi      # 0xb881
leaq 0x905e(%rip), %rsi      # 0xb899
leaq 0x9092(%rip), %rcx      # 0xb8d4
movl $0x4dd, %edx            # imm = 0x4DD
callq 0x20e0
leaq 0x90a7(%rip), %rdi      # 0xb8fa
leaq 0x903f(%rip), %rsi      # 0xb899
leaq 0x9073(%rip), %rcx      # 0xb8d4
movl $0x4e1, %edx            # imm = 0x4E1
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x28a5
movl %esi, %ebx
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x21d0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x28c4
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x9070(%rip), %rdi      # 0xb91c
leaq 0x8fe6(%rip), %rsi      # 0xb899
leaq 0x9072(%rip), %rcx      # 0xb92c
movl $0x52c, %edx            # imm = 0x52C
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, %rdi
callq 0x2948
movq %rax, (%r15)
movl %r14d, 0x8(%r15)
andl $0x0, 0xc(%r15)
movl %ebx, 0x10(%r15)
movb $0x0, (%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2929
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x291e
callq 0x21a0
andq $0x0, (%rbx)
andq $0x0, 0x8(%rbx)
andl $0x0, 0x10(%rbx)
popq %rbx
retq
leaq 0x903a(%rip), %rdi      # 0xb96a
leaq 0x8f62(%rip), %rsi      # 0xb899
leaq 0x903a(%rip), %rcx      # 0xb978
movl $0x543, %edx            # imm = 0x543
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2970
movq %r14, %rdi
callq 0x20b0
movq %rax, %r15
testl %r15d, %r15d
je 0x29d6
movl 0x8(%rbx), %ecx
movl 0xc(%rbx), %edx
movl %ecx, %edi
subl %edx, %edi
leal 0x4(%r15), %esi
movq (%rbx), %rax
subl %edi, %esi
jle 0x29b1
movl 0x10(%rbx), %edx
testl %edx, %edx
cmovlel %ecx, %edx
cmpl %esi, %edx
cmovlel %esi, %edx
addl %ecx, %edx
movslq %edx, %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
movq %rax, (%rbx)
movl %r12d, 0x8(%rbx)
movl 0xc(%rbx), %edx
movslq %edx, %rdi
addq %rax, %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_O2/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
movq 0x8(%rdi), %rcx
testq %rax, %rax
je 0x2a16
movq %rcx, 0x8(%rax)
testq %rcx, %rcx
jne 0x2a1b
jmp 0x2a1e
testq %rcx, %rcx
je 0x2a27
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movb $0x1, %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2a47
cmpq $0x0, 0x8(%rdi)
jne 0x2a47
movq %rsi, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
movq %rdi, 0x8(%rsi)
retq
pushq %rax
leaq 0x8f67(%rip), %rdi      # 0xb9b6
leaq 0x8e43(%rip), %rsi      # 0xb899
leaq 0x8f86(%rip), %rcx      # 0xb9e3
movl $0x57e, %edx            # imm = 0x57E
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2a82
cmpq $0x0, 0x8(%rdi)
jne 0x2a82
movq (%rsi), %rax
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rdi, (%rsi)
retq
pushq %rax
leaq 0x8f2c(%rip), %rdi      # 0xb9b6
leaq 0x8e08(%rip), %rsi      # 0xb899
leaq 0x8f83(%rip), %rcx      # 0xba1b
movl $0x586, %edx            # imm = 0x586
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2ace
movq %rbx, %rdi
callq 0x2a67
jmp 0x2ad9
cmpq $0x0, 0x8(%r14)
jne 0x2ae4
movq %rbx, 0x8(%r14)
movq %rbx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x8f68(%rip), %rdi      # 0xba53
leaq 0x8da7(%rip), %rsi      # 0xb899
leaq 0x8f6e(%rip), %rcx      # 0xba67
movl $0x5ae, %edx            # imm = 0x5AE
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2b24
movq %rbx, %rdi
callq 0x2a2a
movq %r14, %rdi
jmp 0x2b2d
cmpq $0x0, (%rdi)
jne 0x2b38
movq %rbx, (%r14)
movq %rbx, (%rdi)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x8f5e(%rip), %rdi      # 0xba9d
leaq 0x8d53(%rip), %rsi      # 0xb899
leaq 0x8f64(%rip), %rcx      # 0xbab1
movl $0x5ba, %edx            # imm = 0x5BA
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x2bbc
movq 0x8(%r14), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2b57
movq %r14, %rdi
callq 0x21a0
movq %r15, %r14
jmp 0x2b9b
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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:
movl %edx, %ecx
xorl %eax, %eax
movsbl (%rdi,%rax), %edx
testl %edx, %edx
je 0x2c50
movsbl (%rsi,%rax), %r8d
testl %r8d, %r8d
je 0x2c50
leal -0x41(%rdx), %r9d
movl %edx, %r10d
orl $0x20, %r10d
cmpb $0x1a, %r9b
cmovael %edx, %r10d
leal -0x41(%r8), %edx
movl %r8d, %r9d
orl $0x20, %r9d
cmpb $0x1a, %dl
cmovael %r8d, %r9d
cmpl %r9d, %r10d
jne 0x2c6a
incq %rax
jmp 0x2c0f
testl %ecx, %ecx
js 0x2c65
testb %dl, %dl
sete %dl
cmpl %eax, %ecx
sete %al
testb %al, %dl
je 0x2c6a
movb $0x1, %al
retq
cmpb (%rsi,%rax), %dl
je 0x2c62
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x32cd
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 0x11cec(%rip), %rbx     # 0x14fe0
movq (%rbx), %rdi
movq %r10, %rsi
callq 0x21e0
movq (%rbx), %rdi
callq 0x2180
pushq $-0x1
popq %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, %rdi
callq 0x2948
xorl %edx, %edx
movq %rax, %rcx
cmpq %rbx, %rdx
jae 0x336b
movb (%r14,%rdx), %sil
cmpb $0x5c, %sil
jne 0x3360
leaq 0x1(%rdx), %rdi
cmpq %rbx, %rdi
jae 0x3360
movzbl (%r14,%rdi), %edx
cmpl $0x22, %edx
je 0x335a
movb $0x9, %sil
cmpl $0x74, %edx
je 0x335d
cmpl $0x6e, %edx
jne 0x3376
movb $0xa, %sil
jmp 0x335d
movb $0x22, %sil
movq %rdi, %rdx
movb %sil, (%rcx)
incq %rdx
incq %rcx
jmp 0x3326
movb $0x0, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movsbl %dl, %edx
leaq 0x8873(%rip), %rdi      # 0xbbf3
pushq $0x5c
popq %rsi
xorl %eax, %eax
callq 0x326e
// File: /workspace/github_cpp_makefile_star2_O2/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 0x340a
movq (%rax), %r14
testq %r14, %r14
je 0x3402
movq 0x8(%r14), %r15
movq 0x10(%r14), %rdi
callq 0x338a
movq %r14, %rdi
callq 0x29ed
movq %r15, %r14
jmp 0x33e3
movq (%rbx), %rdi
callq 0x21a0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
movq 0x8(%rdi), %r14
testq %r14, %r14
jne 0x3446
callq 0x29e2
movq %rax, %r14
movq 0x10(%rbx), %rdi
callq 0x2ccf
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x2b03
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x348b
movq 0x8(%rdi), %rax
testq %rax, %rax
jne 0x3485
movq (%rdi), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rdi)
decq %rsi
jmp 0x3485
testq %rax, %rax
je 0x348d
movq (%rax), %rax
movq %rax, 0x8(%rdi)
subq $0x1, %rsi
jae 0x3479
popq %rax
retq
leaq 0x8797(%rip), %rdi      # 0xbc2b
leaq 0x83fe(%rip), %rsi      # 0xb899
leaq 0x87a5(%rip), %rcx      # 0xbc47
movl $0x7ad, %edx            # imm = 0x7AD
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x34c0
movq (%rdi), %rax
addq $0x8, %rax
movq (%rax), %rax
testq %rsi, %rsi
je 0x34ec
decq %rsi
testq %rax, %rax
jne 0x34bd
leaq 0x87ab(%rip), %rdi      # 0xbc7f
leaq 0x83be(%rip), %rsi      # 0xb899
leaq 0x87b0(%rip), %rcx      # 0xbc92
movl $0x7bb, %edx            # imm = 0x7BB
callq 0x20e0
movq 0x10(%rax), %rax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
andq $0x0, (%rax)
movb $0x0, 0x8(%rax)
andl $0x0, 0x18(%rax)
pushq $0x20
popq %rcx
cmpq $0xa0, %rcx
je 0x3582
andq $0x0, (%rax,%rcx)
addq $0x8, %rcx
jmp 0x356e
andq $0x0, 0x10(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x35b3
callq 0x21a0
andq $0x0, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x35c6
callq 0x21a0
andq $0x0, 0x10(%rbx)
xorl %r14d, %r14d
cmpq $0x80, %r14
je 0x35ed
movq 0x20(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x35e7
callq 0x21a0
andq $0x0, 0x20(%rbx,%r14)
addq $0x8, %r14
jmp 0x35c9
andl $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x368a
movq %rdi, %rbx
movq (%rdi), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x365d
movq 0x10(%r14), %rdi
callq 0x3589
addq $0x8, %r14
jmp 0x3646
movq (%rbx), %rdi
callq 0x2b90
movq (%rbx), %rdi
callq 0x21a0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x367b
callq 0x28f2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21a0
leaq 0x8659(%rip), %rdi      # 0xbcea
leaq 0x8201(%rip), %rsi      # 0xb899
leaq 0x865b(%rip), %rcx      # 0xbcfa
movl $0x82a, %edx            # imm = 0x82A
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0x3554
movq %rax, %r14
leaq 0x8676(%rip), %rdi      # 0xbd35
callq 0x36e9
movq %rax, (%r14)
leaq 0x866c(%rip), %rdi      # 0xbd3a
callq 0x36e9
movq %rax, 0x10(%r14)
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x36fe
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
movq %r15, %rsi
callq 0x4769
testq %rax, %rax
jne 0x3735
callq 0x29e2
movq %r14, 0x10(%rax)
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x2b03
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
leaq 0x9506(%rip), %rdi      # 0xcc42
movq %r15, %rsi
xorl %eax, %eax
callq 0x326e
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, %rdi
callq 0x2948
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_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq (%rdi), %r14
pushq $-0x1
popq %rbp
movq %r14, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x460b
movq 0x10(%rbx), %rax
movq (%rax), %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x2c0b
testb %al, %al
jne 0x4600
addq $0x8, %rbx
jmp 0x45dd
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b57
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x80, %edi
callq 0x21d0
movq %rsp, %rsi
movq %rax, (%rsi)
movabsq $0x1000000000, %rax     # imm = 0x1000000000
movq %rax, 0x8(%rsi)
movq %rbx, %rdi
callq 0x8494
xorl %ebx, %ebx
testb %al, %al
je 0x4679
cmpl $0x1, 0x8(%rsp)
jne 0x4679
movq %rsp, %rdi
xorl %esi, %esi
callq 0x6d39
movq %rax, %rdi
callq 0x618b
movq %rax, %rbx
movq %rax, %rdi
callq 0x47ad
movq %rsp, %rdi
callq 0x6c38
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x4699
movq 0x8(%rdi), %rax
movl 0x8(%rax), %eax
cmpl $0x3, %eax
je 0x46a8
cmpl $0x2, %eax
je 0x46b4
cmpl $0x1, %eax
jne 0x46cc
callq 0x4834
testl %eax, %eax
setne %al
jmp 0x46ca
callq 0x62f2
xorpd %xmm1, %xmm1
cmpneqsd %xmm0, %xmm1
movq %xmm1, %rax
andl $0x1, %eax
popq %rcx
retq
leaq 0x80b2(%rip), %rdi      # 0xc785
leaq 0x71bf(%rip), %rsi      # 0xb899
leaq 0x970e(%rip), %rcx      # 0xddef
movl $0x118c, %edx           # imm = 0x118C
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x4719
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x4702
callq 0x46eb
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x4710
callq 0x46eb
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
leaq 0xa7c0(%rip), %rdi      # 0xeee0
leaq 0x7172(%rip), %rsi      # 0xb899
leaq 0x8556(%rip), %rcx      # 0xcc84
movl $0xbd6, %edx            # imm = 0xBD6
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %r15
pushq $-0x1
popq %rbp
movq (%r15), %r15
testq %r15, %r15
je 0x479c
movq 0x10(%r15), %r14
movq (%r14), %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x2c0b
addq $0x8, %r15
testb %al, %al
je 0x4779
jmp 0x479f
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
cmpl $0x4, (%rdi)
jne 0x47df
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movl 0x8(%rdi), %eax
cmpl $0x3, %eax
je 0x47f2
cmpl $0x2, %eax
je 0x47e1
cmpl $0x1, %eax
jne 0x4806
movl 0x10(%rbx), %esi
callq 0x5fa1
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
jmp 0x622a
popq %rbx
retq
movl 0x10(%rbx), %esi
callq 0x5fee
movq %rbx, %rdi
popq %rbx
jmp 0x624b
movl 0x10(%rbx), %esi
callq 0x604a
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
jmp 0x629f
leaq 0x7f78(%rip), %rdi      # 0xc785
leaq 0x7085(%rip), %rsi      # 0xb899
leaq 0x96e3(%rip), %rcx      # 0xdefe
movl $0x11ea, %edx           # imm = 0x11EA
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x486f
leaq 0x6b5c(%rip), %rcx      # 0xb3a0
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 0x5fa1
cvttsd2si 0x8(%rdi), %eax
retq
pushq %rax
leaq 0x7f0e(%rip), %rdi      # 0xc785
leaq 0x701b(%rip), %rsi      # 0xb899
leaq 0x959e(%rip), %rcx      # 0xde23
movl $0x1199, %edx           # imm = 0x1199
callq 0x20e0
// File: /workspace/github_cpp_makefile_star2_O2/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 0xb298(%rip), %r14      # 0xfb35
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2270
movslq %eax, %rdi
callq 0x2948
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_O2/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
pushq $0x28
popq %rdi
callq 0x21d0
movl %ebp, (%rax)
andq $0x0, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
andl $0x0, 0x20(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x28
popq %rdi
callq 0x21d0
movl %ebp, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
andq $0x0, 0x18(%rax)
andl $0x0, 0x20(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0x2aa2
movq %rax, %rbx
movq %r14, %rdi
callq 0x4994
testq %rax, %rax
je 0x496d
movq %rax, %r15
callq 0x29e2
movq %r15, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2b03
jmp 0x4947
movq %r14, %rdi
callq 0x3416
cmpl $0x0, (%rax)
jne 0x4983
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movl 0x18(%rax), %esi
leaq 0x8326(%rip), %rdi      # 0xccb3
xorl %eax, %eax
callq 0x326e
// File: /workspace/github_cpp_makefile_star2_O2/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 0x3416
movl (%rax), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0x49b3
testl %eax, %eax
je 0x49c5
cmpl $0x5, %eax
jne 0x49ca
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x48d0
xorl %r14d, %r14d
jmp 0x4a23
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x345a
movq %rbx, %rdi
callq 0x4a8b
testq %rax, %rax
jne 0x4a09
movq %rbx, %rdi
callq 0x4ac7
testq %rax, %rax
jne 0x4a09
movq %rbx, %rdi
callq 0x4e5f
testq %rax, %rax
jne 0x4a09
movq %rbx, %rdi
callq 0x4ef2
testq %rax, %rax
je 0x4a3f
movq %rax, %r14
movq %rbx, %rdi
callq 0x3416
movl (%rax), %ecx
cmpl $0x5, %ecx
ja 0x4a2e
pushq $0x27
popq %rdx
btl %ecx, %edx
jae 0x4a2e
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x18(%rax), %esi
leaq 0x8305(%rip), %rdi      # 0xcd3d
xorl %eax, %eax
callq 0x326e
movq %rbx, %rdi
callq 0x3416
movl 0x18(%rax), %esi
leaq 0x82b6(%rip), %rdi      # 0xcd07
jmp 0x4a38
// File: /workspace/github_cpp_makefile_star2_O2/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::destroy_ast(neteruhsp::list_t*)
void destroy_ast( list_t* ast )
{
	auto node = ast->head_;
	while( node != nullptr )
	{
		const auto ast_node = reinterpret_cast<ast_node_t*>( node->value_ );
		destroy_ast_node( ast_node );
		node = node->next_;
	}

	list_free_all( *ast );
	destroy_list( ast );
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdi, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x4a74
movq 0x10(%r14), %rdi
callq 0x46eb
addq $0x8, %r14
jmp 0x4a5d
movq %rbx, %rdi
callq 0x2b90
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21a0
// File: /workspace/github_cpp_makefile_star2_O2/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::parse_label_safe(neteruhsp::parse_context_t&)
ast_node_t* parse_label_safe( parse_context_t& c )
{
	const auto token = read_token( c );
	if ( token->tag_ != TOKEN_OP_MUL )
	{
		unread_token( c );
		return nullptr;
	}

	const auto ident = read_token( c );
	if ( ident->tag_ != TOKEN_IDENTIFIER )
	{
		unread_token( c, 2 );
		return nullptr;
	}

	return create_ast_node( NODE_LABEL, ident );
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x3416
cmpl $0x17, (%rax)
jne 0x4ab4
movq %rbx, %rdi
callq 0x3416
cmpl $0x23, (%rax)
jne 0x4ab8
pushq $0x1
popq %rdi
movq %rax, %rsi
xorl %edx, %edx
popq %rbx
jmp 0x48fc
pushq $0x1
jmp 0x4aba
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x345a
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/exrd[P]neteruhsp/neteruhsp/neteruhsp.cc
// Function: neteruhsp::parse_command_safe(neteruhsp::parse_context_t&)
ast_node_t* parse_command_safe( parse_context_t& c )
{
	const auto ident = read_token( c );
	if ( ident->tag_ != TOKEN_IDENTIFIER )
	{
		unread_token( c );
		return nullptr;
	}

	const auto next = read_token( c );

	bool is_not_command = false;
	switch( next->tag_ )
	{
	case TOKEN_ASSIGN:
	case TOKEN_ADD_ASSIGN:
	case TOKEN_SUB_ASSIGN:
	case TOKEN_MUL_ASSIGN:
	case TOKEN_DIV_ASSIGN:
	case TOKEN_MOD_ASSIGN:
	case TOKEN_BOR_ASSIGN:
	case TOKEN_BAND_ASSIGN:
	case TOKEN_BXOR_ASSIGN:
		is_not_command = true;
		break;
	default: break;
	}

	// "("チェック
	if ( !ident->right_space_ && next->tag_==TOKEN_LPARENTHESIS )
	{ is_not_command = true; }

	if ( is_not_command )
	{
		unread_token( c, 2 );
		return nullptr;
	}

	// あるなら引数の解析
	ast_node_t* args = nullptr;
	if ( !is_eos_like_token( next->tag_ ) )
	{
		unread_token( c );
		args = parse_arguments( c );
	}
	else
	{
		unread_token( c );
	}

	const auto command = create_ast_node( NODE_COMMAND, ident, args );
 	return command;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x3416
cmpl $0x23, (%rax)
jne 0x4ec1
movq %rax, %rbx
movq %r14, %rdi
callq 0x3416
movl (%rax), %eax
leal -0x1a(%rax), %edx
cmpl $0x6, %eax
sete %cl
cmpl $0x9, %edx
jb 0x4ec5
movb 0x1d(%rbx), %dl
xorb $0x1, %dl
andb %dl, %cl
jne 0x4ec5
cmpl $0x5, %eax
ja 0x4eda
pushq $0x27
popq %rcx
btl %eax, %ecx
jae 0x4eda
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x345a
xorl %edx, %edx
pushq $0x3
popq %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x48fc
pushq $0x1
jmp 0x4ec7
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x345a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x345a
movq %r14, %rdi
callq 0x4f74
movq %rax, %rdx
jmp 0x4eaf