LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/ruankotovich[P]B-Tree/src/seek1.cpp
// Function: main
int main(int argc, char** argv)
{
    int id;
    
    if(argc>1){ id = atoi(argv[1]);}else{std::cin >> id;}
    PrimaryBTree btree;
    
    Article_t a;
    FILE* indexFile = fopen("files/primaryindex.block", "rb");

    btree.readRoot(indexFile);

    if (indexFile != NULL) {
        auto result = btree.getArticle(id, &a, indexFile);

        if (result.first) {
            cout << a.toString();
            cout << "\n\nNumber of block read in PrimaryBTree Index to find the record: " << result.second + 1;
            fseek(indexFile, 0, SEEK_END);
            cout << "\n\nTotal number of blocks in primary index file: " << ((ftell(indexFile) / sizeof(AbstractBlock_t))) << "\n";
        } else {
            cout << "Record not found.\n";
        }
    }
    else {
        cout << "There isn't a primary index file.\n";
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x9a0, %rsp            # imm = 0x9A0
cmpl $0x2, %edi
jl 0x1878
movq 0x8(%rsi), %rdi
callq 0x1140
movl %eax, 0xc(%rsp)
jmp 0x1889
movq 0x3761(%rip), %rdi      # 0x4fe0
leaq 0xc(%rsp), %rsi
callq 0x1070
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x1a6c
leaq 0x54(%rsp), %rdi
callq 0x23a4
leaq 0x177a(%rip), %rdi      # 0x3021
leaq 0x178c(%rip), %rsi      # 0x303a
callq 0x1110
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1af2
testq %rbx, %rbx
je 0x19a5
movl 0xc(%rsp), %esi
leaq 0x30(%rsp), %rdi
leaq 0x54(%rsp), %rdx
movq %rbx, %rcx
callq 0x21f6
movq %rax, %r14
testb $0x1, %r14b
je 0x19ba
leaq 0x10(%rsp), %r15
leaq 0x54(%rsp), %rsi
movq %r15, %rdi
callq 0x2430
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x36c3(%rip), %rdi      # 0x4fd0
callq 0x1100
shrq $0x20, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1931
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10e0
movq 0x3698(%rip), %r15      # 0x4fd0
leaq 0x16fe(%rip), %rsi      # 0x303d
movl $0x41, %edx
movq %r15, %rdi
callq 0x1100
incl %r14d
movq %r15, %rdi
movl %r14d, %esi
callq 0x1170
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x10f0
leaq 0x170f(%rip), %rsi      # 0x307f
movl $0x30, %edx
movq %r15, %rdi
callq 0x1100
movq %rbx, %rdi
callq 0x1030
shrq $0xc, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0x1080
leaq 0x1768(%rip), %rsi      # 0x3103
movl $0x1, %edx
movq %rax, %rdi
jmp 0x19cd
movq 0x3624(%rip), %rdi      # 0x4fd0
leaq 0x1710(%rip), %rsi      # 0x30c3
movl $0x22, %edx
jmp 0x19cd
movq 0x360f(%rip), %rdi      # 0x4fd0
leaq 0x16e8(%rip), %rsi      # 0x30b0
movl $0x12, %edx
callq 0x1100
xorl %eax, %eax
addq $0x9a0, %rsp            # imm = 0x9A0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19ff
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1180
nop
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH01_GettingStarted/examples/for_ex.cc
// Function: main
int main()
{
	int sum = 0;
	for (int i = -100; i <= 100; ++i)
    	sum += i;
	std::cout << sum << std::endl;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x2dff(%rip), %rdi      # 0x3fd8
xorl %esi, %esi
callq 0x1080
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::getResultCapture()
IResultCapture& getResultCapture() {
        if( IResultCapture* capture = getCurrentContext().getResultCapture() )
            return *capture;
        else
            throw std::logic_error( "No result capture instance" );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0xe361
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
testq %rax, %rax
je 0xc43b
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0xb1a0
movq %rax, %rbx
leaq 0x4147c(%rip), %rsi     # 0x4d8cb
movq %rax, %rdi
callq 0xb540
movq 0x5cb72(%rip), %rsi     # 0x68fd0
movq 0x5cb4b(%rip), %rdx     # 0x68fb0
movq %rbx, %rdi
callq 0xb680
movq %rax, %r14
movq %rbx, %rdi
callq 0xb2c0
movq %r14, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::(anonymous namespace)::platformColourInstance()
IColourImpl* platformColourInstance() {
        Ptr<IConfig const> config = getCurrentContext().getConfig();
        UseColour::YesOrNo colourMode = config
            ? config->useColour()
            : UseColour::Auto;
        if( colourMode == UseColour::Auto )
            colourMode = (!isDebuggerActive() && isatty(STDOUT_FILENO) )
                ? UseColour::Yes
                : UseColour::No;
        return colourMode == UseColour::Yes
            ? PosixColourImpl::instance()
            : NoColourImpl::instance();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
callq 0xe361
movq (%rax), %rcx
leaq -0x18(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq *0x30(%rcx)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xe491
movq (%rdi), %rax
callq *0x80(%rax)
jmp 0xe493
xorl %eax, %eax
testl %eax, %eax
jne 0xe4ab
movl $0x1, %edi
callq 0xb6b0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x1, %ecx
adcl $0x1, %eax
cmpl $0x1, %eax
jne 0xe4c3
movb 0x5b0b2(%rip), %al      # 0x69568
testb %al, %al
je 0xe4ef
leaq 0x5af8f(%rip), %rbx     # 0x69450
jmp 0xe4d4
movb 0x5b0a7(%rip), %al      # 0x69570
testb %al, %al
je 0xe507
leaq 0x5af84(%rip), %rbx     # 0x69458
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0xe4e3
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x5b072(%rip), %r14     # 0x69568
movq %r14, %rdi
callq 0xb6f0
leaq 0x5af4b(%rip), %rbx     # 0x69450
jmp 0xe51d
leaq 0x5b062(%rip), %r14     # 0x69570
movq %r14, %rdi
callq 0xb6f0
leaq 0x5af3b(%rip), %rbx     # 0x69458
testl %eax, %eax
je 0xe4d4
movq %r14, %rdi
callq 0xb230
jmp 0xe4d4
jmp 0xe547
movq %rax, %rbx
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0xe53f
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
callq 0xb6d0
movq %rax, %rdi
callq 0x14fd4
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::LegacyReporterAdapter::testCaseEnded(Catch::TestCaseStats const&)
void LegacyReporterAdapter::testCaseEnded( TestCaseStats const& testCaseStats ) {
        m_legacyReporter->EndTestCase
            (   testCaseStats.testInfo,
                testCaseStats.totals,
                testCaseStats.stdOut,
                testCaseStats.stdErr );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rdi
leaq 0x8(%rsi), %rax
leaq 0x118(%rsi), %rdx
leaq 0x148(%rsi), %rcx
leaq 0x168(%rsi), %r8
movq (%rdi), %rsi
movq 0x50(%rsi), %r9
movq %rax, %rsi
popq %rbp
jmpq *%r9
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::TestSpec::matches(Catch::TestCaseInfo const&) const
bool matches( TestCaseInfo const& testCase ) const {
            // A TestSpec matches if any filter matches
            for( std::vector<Filter>::const_iterator it = m_filters.begin(), itEnd = m_filters.end(); it != itEnd; ++it )
                if( it->matches( testCase ) )
                    return true;
            return false;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq (%rdi), %r15
movq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
cmpq %rax, %r15
setne -0x29(%rbp)
je 0x14cae
movq %rsi, %rbx
movq (%r15), %r13
movq 0x8(%r15), %r12
cmpq %r12, %r13
sete %r14b
je 0x14c9b
movq (%r13), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x20(%rax)
testb %al, %al
je 0x14c9b
addq $0x8, %r13
cmpq %r12, %r13
sete %r14b
je 0x14c9b
movq (%r13), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x20(%rax)
addq $0x8, %r13
testb %al, %al
jne 0x14c7d
testb %r14b, %r14b
jne 0x14cae
addq $0x18, %r15
cmpq -0x38(%rbp), %r15
setne -0x29(%rbp)
jne 0x14c58
movb -0x29(%rbp), %al
andb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::CumulativeReporterBase::sectionEnded(Catch::SectionStats const&)
virtual void sectionEnded( SectionStats const& sectionStats ) CATCH_OVERRIDE {
            assert( !m_sectionStack.empty() );
            SectionNode& node = *m_sectionStack.back();
            node.stats = sectionStats;
            m_sectionStack.pop_back();
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0xb0(%rdi), %rax
cmpq %rax, 0xa8(%rdi)
je 0x17a8f
movq %rdi, %rbx
addq $0xa8, %rbx
movq -0x8(%rax), %rdi
addq $0x10, %rdi
callq 0x2b42c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2b496
leaq 0x36cfd(%rip), %rdi     # 0x4e793
leaq 0x35f6f(%rip), %rsi     # 0x4da0c
leaq 0x36d5a(%rip), %rcx     # 0x4e7fe
movl $0x2239, %edx           # imm = 0x2239
callq 0xb240
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::ExceptionTranslatorRegistry::tryTranslators[abi:cxx11]() const
std::string tryTranslators() const {
            if( m_translators.empty() )
                throw;
            else
                return m_translators[0]->translate( m_translators.begin()+1, m_translators.end() );
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %rcx
cmpq %rcx, %rdx
je 0x1e201
movq %rdi, %rbx
movq (%rdx), %rsi
addq $0x8, %rdx
movq (%rsi), %rax
callq *0x10(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0xb560
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::GeneratorsForTest::moveNext()
bool moveNext() {
            std::vector<IGeneratorInfo*>::const_iterator it = m_generatorsInOrder.begin();
            std::vector<IGeneratorInfo*>::const_iterator itEnd = m_generatorsInOrder.end();
            for(; it != itEnd; ++it ) {
                if( (*it)->moveNext() )
                    return true;
            }
            return false;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x38(%rdi), %r14
movq 0x40(%rdi), %r15
cmpq %r15, %r14
setne %bl
je 0x1f0c0
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
jne 0x1f0c0
addq $0x8, %r14
cmpq %r15, %r14
setne %bl
je 0x1f0c0
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r14
testb %al, %al
je 0x1f0a7
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Matchers::Impl::Generic::AllOf<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
virtual bool match( ExpressionT const& expr ) const
            {
                for( std::size_t i = 0; i < m_matchers.size(); ++i )
                    if( !m_matchers[i]->match( expr ) )
                        return false;
                return true;
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x10(%rdi), %rax
cmpq %rax, 0x18(%rdi)
sete %r15b
je 0x1f922
movq %rsi, %rbx
movq %rdi, %r14
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x1f922
movl $0x1, %r12d
movq 0x10(%r14), %rax
movq 0x18(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r12
setae %r15b
jae 0x1f922
movq (%rax,%r12,8), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x28(%rax)
incq %r12
testb %al, %al
jne 0x1f8f6
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::noMatchingTestCases(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
virtual void noMatchingTestCases( std::string const& spec ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->noMatchingTestCases( spec );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fd4f
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x28(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fd3a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testRunStarting(Catch::TestRunInfo const&)
virtual void testRunStarting( TestRunInfo const& testRunInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testRunStarting( testRunInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fd89
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x30(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fd74
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testGroupStarting(Catch::GroupInfo const&)
virtual void testGroupStarting( GroupInfo const& groupInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testGroupStarting( groupInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fdc3
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fdae
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testCaseStarting(Catch::TestCaseInfo const&)
virtual void testCaseStarting( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testCaseStarting( testInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fdfd
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x40(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fde8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::sectionStarting(Catch::SectionInfo const&)
virtual void sectionStarting( SectionInfo const& sectionInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->sectionStarting( sectionInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fe37
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x48(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fe22
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::assertionStarting(Catch::AssertionInfo const&)
virtual void assertionStarting( AssertionInfo const& assertionInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->assertionStarting( assertionInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fe71
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x50(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fe5c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::assertionEnded(Catch::AssertionStats const&)
virtual bool assertionEnded( AssertionStats const& assertionStats ) CATCH_OVERRIDE {
        bool clearBuffer = false;
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            clearBuffer |= (*it)->assertionEnded( assertionStats );
        return clearBuffer;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x10(%rdi), %r15
movq 0x18(%rdi), %r12
cmpq %r12, %r15
je 0x1feb2
movq %rsi, %r14
xorl %ebx, %ebx
movq (%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x58(%rax)
orb %al, %bl
addq $0x8, %r15
cmpq %r12, %r15
jne 0x1fe99
jmp 0x1feb4
xorl %ebx, %ebx
andb $0x1, %bl
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::sectionEnded(Catch::SectionStats const&)
virtual void sectionEnded( SectionStats const& sectionStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->sectionEnded( sectionStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1fef1
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x60(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1fedc
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testCaseEnded(Catch::TestCaseStats const&)
virtual void testCaseEnded( TestCaseStats const& testCaseStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testCaseEnded( testCaseStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ff2b
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x68(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ff16
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testGroupEnded(Catch::TestGroupStats const&)
virtual void testGroupEnded( TestGroupStats const& testGroupStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testGroupEnded( testGroupStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ff65
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x70(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ff50
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testRunEnded(Catch::TestRunStats const&)
virtual void testRunEnded( TestRunStats const& testRunStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testRunEnded( testRunStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ff9f
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x78(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ff8a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::skipTest(Catch::TestCaseInfo const&)
virtual void skipTest( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->skipTest( testInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ffdc
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x80(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ffc4
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Clara::Parser::handlePositional(unsigned long, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<Catch::Clara::Parser::Token, std::allocator<Catch::Clara::Parser::Token>>&)
Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
            if( inQuotes || std::string( "\0", 1 ).find( c ) == std::string::npos )
                return mode;

            std::string data = arg.substr( from, i-from );
            tokens.push_back( Token( Token::Positional, data ) );
            return None;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
movb 0x10(%rdi), %r13b
movb $0x1, %bl
testb %r13b, %r13b
jne 0x2532d
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
movw $0x0, (%rax)
movq $0x1, -0x8(%rax)
movsbl %dl, %esi
leaq -0x98(%rbp), %rdi
xorl %edx, %edx
callq 0xb4d0
cmpq $-0x1, %rax
sete %bl
testb %r13b, %r13b
jne 0x25347
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25347
callq 0xb350
testb %bl, %bl
je 0x25351
movl (%r12), %eax
jmp 0x253be
movq 0x8(%r12), %rdx
subq %rdx, %r15
leaq -0x78(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xb3f0
leaq -0x50(%rbp), %rdi
movl $0x0, -0x8(%rdi)
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
callq 0x31168
leaq -0x58(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x25498
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x253aa
callq 0xb350
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x253bc
callq 0xb350
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x253e3
callq 0xb350
jmp 0x253e3
movq %rax, %rbx
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x253f5
callq 0xb350
movq %rbx, %rdi
callq 0xb6d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Clara::CommandLine<Catch::ConfigData>::validate() const
void validate() const
        {
            if( m_options.empty() && m_positionalArgs.empty() && !m_floatingArg.get() )
                throw std::logic_error( "No options or arguments specified" );

            for( typename std::vector<Arg>::const_iterator  it = m_options.begin(),
                                                            itEnd = m_options.end();
                    it != itEnd; ++it )
                it->validate();
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rbx
movq 0x10(%rdi), %r14
cmpq %r14, %rbx
jne 0x257bb
cmpq $0x0, 0x48(%rdi)
jne 0x257bb
cmpq $0x0, 0x50(%rdi)
jne 0x257bb
movl $0x10, %edi
callq 0xb1a0
movq %rax, %rbx
leaq 0x28cb7(%rip), %rsi     # 0x4e445
movq %rax, %rdi
callq 0xb540
movq 0x43833(%rip), %rsi     # 0x68fd0
movq 0x4380c(%rip), %rdx     # 0x68fb0
movq %rbx, %rdi
callq 0xb680
movq %rbx, %rdi
callq 0x2604e
addq $0xa8, %rbx
cmpq %r14, %rbx
jne 0x257ac
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xb2c0
movq %r14, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Config::openStream()
IStream const* openStream() {
            if( m_data.outputFilename.empty() )
                return new CoutStream();
            else if( m_data.outputFilename[0] == '%' ) {
                if( m_data.outputFilename == "%debug" )
                    return new DebugOutStream();
                else
                    throw std::domain_error( "Unrecognised stream: " + m_data.outputFilename );
            }
            else
                return new FileStream( m_data.outputFilename );
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpq $0x0, 0x40(%rdi)
je 0x27a51
movq %rdi, %r14
addq $0x38, %r14
movq (%r14), %rax
cmpb $0x25, (%rax)
jne 0x27a89
leaq 0x26ba9(%rip), %rsi     # 0x4e5d7
movq %r14, %rdi
callq 0xb0f0
testl %eax, %eax
jne 0x27aaf
movl $0x120, %edi            # imm = 0x120
callq 0xb3b0
movq %rax, %rbx
movq %rax, %rdi
callq 0xe262
jmp 0x27aa1
movl $0x118, %edi            # imm = 0x118
callq 0xb3b0
movq %rax, %rbx
leaq 0x3ef43(%rip), %rax     # 0x669a8
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
movq 0x41545(%rip), %rax     # 0x68fb8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq 0xe8(%rax,%rcx), %rsi
callq 0xb150
jmp 0x27aa1
movl $0x208, %edi            # imm = 0x208
callq 0xb3b0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0xe100
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xb1a0
movq %rax, %rbx
leaq 0x26b1b(%rip), %rsi     # 0x4e5de
leaq -0x38(%rbp), %rdi
movq %r14, %rdx
callq 0x14ba4
movb $0x1, %r15b
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0xb490
xorl %r15d, %r15d
movq 0x41490(%rip), %rsi     # 0x68f78
movq 0x414a9(%rip), %rdx     # 0x68f98
movq %rbx, %rdi
callq 0xb680
movq %rax, %r14
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27b14
callq 0xb350
jmp 0x27b14
movq %rax, %r14
movb $0x1, %r15b
testb %r15b, %r15b
je 0x27b32
movq %rbx, %rdi
callq 0xb2c0
jmp 0x27b32
jmp 0x27b27
jmp 0x27b27
movq %rax, %r14
movq %rbx, %rdi
callq 0xb350
movq %r14, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::JunitReporter::writeTestCase(Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode> const&)
void writeTestCase( TestCaseNode const& testCaseNode ) {
            TestCaseStats const& stats = testCaseNode.value;

            // All test cases have exactly one section - which represents the
            // test case itself. That section may have 0-n nested sections
            assert( testCaseNode.children.size() == 1 );
            SectionNode const& rootSection = *testCaseNode.children.front();

            std::string className = stats.testInfo.className;

            if( className.empty() ) {
                if( rootSection.childSections.empty() )
                    className = "global";
            }
            writeSection( className, "", rootSection );
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq 0x1a0(%rsi), %rax
movq 0x1a8(%rsi), %rcx
subq %rax, %rcx
cmpq $0x8, %rcx
jne 0x2cd6b
movq %rdi, %rbx
movq (%rax), %r14
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x38(%rsi), %rax
movq 0x40(%rsi), %rdx
addq %rax, %rdx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x31168
movq 0x8(%r15), %rdx
testq %rdx, %rdx
jne 0x2cd14
movq 0xa8(%r14), %rax
cmpq 0xb0(%r14), %rax
jne 0x2cd14
leaq 0x21d4f(%rip), %rcx     # 0x4ea52
leaq -0x40(%rbp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
callq 0xb5c0
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x21db5(%rip), %rdx     # 0x4ead8
leaq -0x60(%rbp), %rdi
movq %rdx, %rsi
callq 0x253fe
leaq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2cdb8
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x2cd50
callq 0xb350
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x2cd5e
callq 0xb350
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21c7f(%rip), %rdi     # 0x4e9f1
leaq 0x20c93(%rip), %rsi     # 0x4da0c
leaq 0x21c93(%rip), %rcx     # 0x4ea13
movl $0x24da, %edx           # imm = 0x24DA
callq 0xb240
jmp 0x2cd9f
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x2cda2
callq 0xb350
jmp 0x2cda2
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x2cdb0
callq 0xb350
movq %rbx, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::CompactReporter::AssertionPrinter::printResultType(Catch::Colour::Code, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
void printResultType( Colour::Code colour, std::string passOrFail ) const {
                if( !passOrFail.empty() ) {
                    {
                        Colour colourGuard( colour );
                        stream << " " << passOrFail;
                    }
                    stream << ":";
                }
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rdx)
je 0x303d7
movq %rdx, %r14
movq %rdi, %rbx
movb $0x0, -0x19(%rbp)
movl %esi, %edi
callq 0xe3cc
movq (%rbx), %r15
leaq 0x1d60b(%rip), %rsi     # 0x4d9a1
movl $0x1, %edx
movq %r15, %rdi
callq 0xb430
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0xb430
xorl %edi, %edi
callq 0xe3cc
movq (%rbx), %rdi
leaq 0x1d8d1(%rip), %rsi     # 0x4dc94
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xb430
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x14fd4
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0xe444
movq %rbx, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::StreamBufImpl<Catch::OutputDebugWriter, 256ul>::sync()
int sync() {
            if( pbase() != pptr() ) {
                m_writer( std::string( pbase(), static_cast<std::string::size_type>( pptr() - pbase() ) ) );
                setp( pbase(), epptr() );
            }
            return 0;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdx
cmpq %rdx, %rsi
je 0x31c20
movq %rdi, %rbx
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0x38(%rbp), %r14
movq %r14, %rdi
callq 0x253fe
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x373b3(%rip), %rdi     # 0x68fb8
callq 0xb430
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x31c18
callq 0xb350
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x31c3e
callq 0xb350
movq %rbx, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::XmlWriter::XmlWriter()
XmlWriter()
        :   m_tagIsOpen( false ),
            m_needsNewline( false ),
            m_os( &Catch::cout() )
        {
            // We encode control characters, which requires
            // XML 1.1
            // see http://stackoverflow.com/questions/404107/why-are-control-characters-illegal-in-xml-1-0
            *m_os << "<?xml version=\"1.1\" encoding=\"UTF-8\"?>\n";
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movw $0x0, (%rdi)
leaq 0x8(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
leaq 0x30(%rdi), %r12
movq %r12, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb $0x0, 0x30(%rdi)
movq 0x36b39(%rip), %rdi     # 0x68fb8
movq %rdi, 0x40(%r14)
leaq 0x1c961(%rip), %rsi     # 0x4edeb
movl $0x27, %edx
callq 0xb430
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x20(%r14), %rdi
cmpq %r12, %rdi
je 0x324ae
callq 0xb350
movq %rbx, %rdi
callq 0x1401e
movq %r15, %rdi
callq 0xb6d0
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Query.cpp
// Function: mDNSResolver::Query::sendPacket(WiFiUDP&)
void Query::sendPacket(WiFiUDP& socket) {
    int bufferLength = strlen(this->name) + 18;
    unsigned char buffer[bufferLength];
    assemblePacket(buffer, bufferLength);
    socket.write(buffer, bufferLength);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0xb180
movq %rax, %r15
addl $0x12, %r15d
movq %rsp, %r12
leaq 0xf(%r15), %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x32efa
movslq %r15d, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4c74e
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Query.cpp
// Function: mDNSResolver::Query::assemblePacket(unsigned char*, int)
void Query::assemblePacket(unsigned char *buffer, int bufferLength) {
    for(int i = 0; i < bufferLength; i++) {
      buffer[i] = 0;
    }

    buffer[5] = 0x01;

    int bufferIndex = 12;
    bufferIndex = buildDNSName(buffer, bufferIndex);

    int qtype = 0x01;
    int qclass = 0x01;

    buffer[bufferIndex++] = '\0';
    buffer[bufferIndex++] = (qtype & 0xFF00) >> 8;
    buffer[bufferIndex++] = qtype & 0xFF;
    buffer[bufferIndex++] = (qclass & 0xFF00) >> 8;
    buffer[bufferIndex++] = qclass & 0xFF;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
jle 0x32f1a
movl %edx, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb1f0
movb $0x1, %r15b
movb %r15b, 0x5(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xc, %edx
callq 0x32f4a
cltq
movl $0x10000, (%rbx,%rax)   # imm = 0x10000
movb %r15b, 0x4(%rbx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Query.cpp
// Function: mDNSResolver::Query::buildDNSName(unsigned char*, unsigned int)
int Query::buildDNSName(unsigned char *buffer, unsigned int bufferIndex) {
    int wordstart = 0, wordend = 0;

    do {
      if(this->name[wordend] == '.' || this->name[wordend] == '\0') {
        const int wordlen = wordend - wordstart;
        buffer[bufferIndex++] = (unsigned char)wordlen;

        for(int i = wordstart; i < wordend; i++) {
          buffer[bufferIndex++] = this->name[i];
        }

        if(this->name[wordend] == '.') {
          wordend++;
        }
        wordstart = wordend;
      }

      wordend++;
    } while(this->name[wordstart] != '\0');

    return bufferIndex;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
xorl %edx, %edx
xorl %ecx, %ecx
movq (%rdi), %r9
movslq %ecx, %r8
movzbl (%r9,%r8), %r9d
cmpl $0x2e, %r9d
je 0x32f6a
testl %r9d, %r9d
jne 0x32fab
leal 0x1(%rax), %r9d
movl %ecx, %r10d
movl %eax, %eax
subl %edx, %r10d
movb %r10b, (%rsi,%rax)
jle 0x32f97
movslq %edx, %rax
movq (%rdi), %rdx
movb (%rdx,%rax), %dl
movl %r9d, %r10d
movb %dl, (%rsi,%r10)
incq %rax
incl %r9d
cmpq %rax, %r8
jne 0x32f7f
movq (%rdi), %rax
xorl %edx, %edx
cmpb $0x2e, (%rax,%r8)
sete %dl
addl %edx, %ecx
movl %ecx, %edx
movl %r9d, %eax
incl %ecx
movq (%rdi), %r8
movslq %edx, %r9
cmpb $0x0, (%r8,%r9)
jne 0x32f54
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/test/catch.h
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> Catch::StringMaker<mDNSResolver::Response*>::convert<mDNSResolver::Response>(mDNSResolver::Response*)
static std::string convert( U* p ) {
        if( !p )
            return "NULL";
        else
            return Detail::rawMemoryToString( p );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, -0x10(%rbp)
testq %rsi, %rsi
je 0x3a2e9
leaq -0x10(%rbp), %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x107d4
jmp 0x3a306
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x15a3f(%rip), %rsi     # 0x4fd36
leaq 0x15a3c(%rip), %rdx     # 0x4fd3a
movq %rbx, %rdi
callq 0x253fe
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::insert(mDNSResolver::Response)
void Cache::insert(Response response) {
    int existing = search(response);
    if(existing != -1) {
      this->list[existing] = response;
      return;
    }

    if(this->size == MDNS_RESOLVER_MAX_CACHE) {
      int i = oldest();
      remove(i);
    }

    this->list[this->size] = response;
    this->size += 1;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x460(%rdi), %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r12, %r12
jle 0x3a415
xorl %r13d, %r13d
movq %rbx, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xb510
testl %eax, %eax
je 0x3a412
incq %r13
addq $0x118, %r15            # imm = 0x118
cmpq %r13, %r12
jne 0x3a3ed
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x3a415
movl %r13d, %eax
cmpl $-0x1, %eax
je 0x3a444
cltq
imulq $0x118, %rax, %rax      # imm = 0x118
addq %rax, %rbx
movl $0x118, %edx            # imm = 0x118
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb2f0
cmpl $0x4, %r12d
jne 0x3a483
movq 0x100(%rbx), %rax
leaq 0x218(%rbx), %rcx
xorl %esi, %esi
movl $0x1, %edx
movq (%rcx), %rdi
cmpq %rax, %rdi
cmovbq %rdi, %rax
cmovbl %edx, %esi
incq %rdx
addq $0x118, %rcx            # imm = 0x118
cmpq %rdx, %r12
jne 0x3a45f
movq %rbx, %rdi
callq 0x3a562
movslq 0x460(%rbx), %rax
imulq $0x118, %rax, %rdi      # imm = 0x118
addq %rbx, %rdi
movl $0x118, %edx            # imm = 0x118
movq %r14, %rsi
callq 0xb2f0
incl 0x460(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::oldest()
int Cache::oldest() {
    if(this->size == 0) {
      return -1;
    }

    unsigned long oldestTTL = this->list[0].ttl;
    unsigned int oldestIndex = 0;

    for(int i = 1; i < this->size; i++) {
      if(this->list[i].ttl < oldestTTL) {
        oldestTTL = this->list[i].ttl;
        oldestIndex = i;
      }
    }

    return oldestIndex;
  }

// Assembly:
movl 0x460(%rdi), %ecx
testq %rcx, %rcx
je 0x3a55b
xorl %eax, %eax
cmpl $0x2, %ecx
jl 0x3a560
pushq %rbp
movq %rsp, %rbp
movq 0x100(%rdi), %rdx
addq $0x218, %rdi            # imm = 0x218
xorl %eax, %eax
movl $0x1, %esi
movq (%rdi), %r8
cmpq %rdx, %r8
cmovbq %r8, %rdx
cmovbl %esi, %eax
incq %rsi
addq $0x118, %rdi            # imm = 0x118
cmpq %rsi, %rcx
jne 0x3a53d
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::search(char const*)
int Cache::search(const char* name) {
    for(int i = 0; i < this->size; i++) {
      if(strcmp(this->list[i].name, name) == 0) {
        return i;
      }
    }
    return -1;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x460(%rdi), %r12
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r12, %r12
jle 0x3a69d
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
movq %r15, %rdi
movq %r14, %rsi
callq 0xb510
testl %eax, %eax
je 0x3a69a
incq %r13
addq $0x118, %r15            # imm = 0x118
cmpq %r13, %r12
jne 0x3a67a
jmp 0x3a69d
movl %r13d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::expire()
void Cache::expire() {
    unsigned long ttls[MDNS_RESOLVER_MAX_CACHE];

    for(int i = 0; i < this->size; i++) {
      this->list[i].decrementTTL();
      ttls[i] = this->list[i].ttl;
    }

    for(int i = 0; i < this->size; i++) {
      if(ttls[i] == 0) {
        remove(i);
      }
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x460(%rdi)
jle 0x3a6f7
xorl %r15d, %r15d
movq %rbx, %r14
movq %r14, %rdi
callq 0x3c3d4
movq 0x100(%r14), %rax
movq %rax, -0x40(%rbp,%r15,8)
incq %r15
movslq 0x460(%rbx), %rax
addq $0x118, %r14            # imm = 0x118
cmpq %rax, %r15
jl 0x3a6cd
cmpl $0x0, 0x460(%rbx)
jle 0x3a725
xorl %r14d, %r14d
cmpq $0x0, -0x40(%rbp,%r14,8)
jne 0x3a716
movq %rbx, %rdi
movl %r14d, %esi
callq 0x3a562
incq %r14
movslq 0x460(%rbx), %rax
cmpq %rax, %r14
jl 0x3a703
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::removeCname(int)
void Cache::removeCname(int index) {
    Response *response = &this->list[index];

    for(int i = 0; i < length(); i++) {
      if(this->list[i].cname == response) {
        this->list[i].cname = NULL;
      }
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x460(%rdi), %rcx
testq %rcx, %rcx
jle 0x3a784
movslq %esi, %rax
imulq $0x118, %rax, %rax      # imm = 0x118
addq %rdi, %rax
imulq $0x118, %rcx, %rcx      # imm = 0x118
xorl %edx, %edx
cmpq %rax, 0x110(%rdi,%rdx)
jne 0x3a778
movq $0x0, 0x110(%rdi,%rdx)
addq $0x118, %rdx            # imm = 0x118
cmpq %rdx, %rcx
jne 0x3a762
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Response.cpp
// Function: mDNSResolver::Response::Response()
Response::Response() {
    this->name[0] = '\0';
    this->resolved = false;
    this->ttl = 0;
    this->cname = NULL;
    this->ipAddress = INADDR_NONE;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10c, %rdi            # imm = 0x10C
callq 0x4c798
xorl %eax, %eax
movb %al, (%rbx)
movb %al, 0x108(%rbx)
movq %rax, 0x100(%rbx)
movq %rax, 0x110(%rbx)
movl 0x2d385(%rip), %eax     # 0x69690
movl %eax, 0x10c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Response.cpp
// Function: mDNSResolver::Response::Response(char const*)
Response::Response(const char* name) {
    strncpy(this->name, name, MDNS_MAX_NAME_LEN + 1);
    this->name[MDNS_MAX_NAME_LEN + 1] = '\0';
    this->ttl = 0;
    this->resolved = false;
    this->cname = NULL;
    this->ipAddress = INADDR_NONE;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
addq $0x10c, %rdi            # imm = 0x10C
callq 0x4c798
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb1b0
xorl %eax, %eax
movq %rax, 0x110(%r14)
movq %rax, 0x100(%r14)
movb $0x0, 0x108(%r14)
movl 0x2d331(%rip), %eax     # 0x69690
movl %eax, 0x10c(%r14)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Response.cpp
// Function: mDNSResolver::Response::Response(char const*, unsigned long)
Response::Response(const char* name, unsigned long ttl) {
    strncpy(this->name, name, MDNS_MAX_NAME_LEN + 1);
    this->name[MDNS_MAX_NAME_LEN + 1] = '\0';
    this->ttl = ttl;
    this->resolved = false;
    this->cname = NULL;
    this->ipAddress = INADDR_NONE;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq $0x10c, %rdi            # imm = 0x10C
callq 0x4c798
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
movq %r14, %rsi
callq 0xb1b0
movq %rbx, 0x100(%r15)
movb $0x0, 0x108(%r15)
movq $0x0, 0x110(%r15)
movl 0x2d2d5(%rip), %eax     # 0x69690
movl %eax, 0x10c(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/madpilot[P]mDNSResolver/src/Answer.cpp
// Function: mDNSResolver::Answer::process(unsigned char*, unsigned int, mDNSResolver::Cache&)
MDNS_RESULT Answer::process(unsigned char* buffer, unsigned int len, Cache& cache) {
    if((buffer[2] & 0b10000000) != 0b10000000) {
      // Not an answer packet
      return E_MDNS_OK;
    }

    if(buffer[2] & 0b00000010) {
      // Truncated - we don't know what to do with these
      return E_MDNS_TRUNCATED;
    }

    if (buffer[3] & 0b00001111) {
      return E_MDNS_PACKET_ERROR;
    }

    unsigned int answerCount = (buffer[6] << 8) + buffer[7];
    if(answerCount == 0) {
      return E_MDNS_OK;
    }

    unsigned int offset = 0;

    MDNS_RESULT questionResult = skipQuestions(buffer, len, &offset);
    if(questionResult != E_MDNS_OK) {
      return questionResult;
    }

    MDNS_RESULT answerResult;
    for(int i = 0; i < answerCount; i++) {
      answerResult = resolve(buffer, len, &offset, cache);
      if(answerResult != E_MDNS_OK) {
        return answerResult;
      }
    }

    resolveCnames(cache);

    return answerResult;
  }

// Assembly:
movb 0x2(%rdi), %cl
movl $0x20, %eax
testb %cl, %cl
js 0x49cd9
retq
movl $0x25, %eax
testb $0x2, %cl
jne 0x49cd8
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movl $0x23, %eax
testb $0xf, 0x3(%rdi)
je 0x49d0e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzwl 0x6(%r15), %r12d
rolw $0x8, %r12w
movl $0x20, %eax
testw %r12w, %r12w
je 0x49cff
movq %rdx, %rbx
movl %esi, %r14d
leaq -0x30(%rbp), %rdx
movl $0x0, (%rdx)
movq %r15, %rdi
callq 0x49db8
cmpl $0x20, %eax
jne 0x49cff
leaq -0x30(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rcx
callq 0x49e56
movb $0x1, %cl
cmpl $0x20, %eax
jne 0x49d8e
movzwl %r12w, %ecx
movl %ecx, -0x2c(%rbp)
movl $0x1, %ecx
movl %ecx, %r12d
cmpl %ecx, -0x2c(%rbp)
je 0x49d93
movq %r15, %rdi
movl %r14d, %esi
leaq -0x30(%rbp), %rdx
movq %rbx, %rcx
callq 0x49e56
leal 0x1(%r12), %ecx
movl %eax, %r13d
cmpl $0x20, %eax
je 0x49d65
jmp 0x49d99
movl %eax, %r13d
jmp 0x49da0
movl $0x20, %r13d
cmpl -0x2c(%rbp), %r12d
setb %cl
testb %cl, %cl
jne 0x49cff
movq %rbx, %rdi
callq 0x4a148
movl %r13d, %eax
jmp 0x49cff